/* style/resources.css */

/* --- General Styles --- */
.page-resources {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

.page-resources__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-resources__section-title {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-resources__section-title--light {
    color: #ffffff;
}

.page-resources__text-block {
    font-size: 1.1em;
    color: #f0f0f0;
    text-align: center;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__text-block--light {
    color: #ffffff;
}

.page-resources__btn-primary {
    display: inline-block;
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 2px solid #017439;
    font-size: 1.1em;
    cursor: pointer;
}

.page-resources__btn-primary:hover {
    background-color: #005f2e;
    transform: translateY(-2px);
}

.page-resources__btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    border: 2px solid #ffffff;
    font-size: 1.1em;
    cursor: pointer;
}

.page-resources__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
    transform: translateY(-2px);
}

.page-resources__btn-text {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-resources__btn-text:hover {
    color: #005f2e;
    text-decoration: underline;
}

.page-resources__btn-text--light {
    color: #ffffff;
}

.page-resources__btn-text--light:hover {
    color: #f0f0f0;
    text-decoration: underline;
}

.page-resources__card {
    background-color: rgba(255, 255, 255, 0.1); /* Light background on dark body */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff; /* Text color for card */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.page-resources__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-resources__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-resources__card-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-resources__card-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__card-title a:hover {
    color: #017439;
    text-decoration: underline;
}

.page-resources__card-description {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow description to take available space */
}

/* --- Hero Section --- */
.page-resources__hero-section {
    position: relative;
    padding: 100px 0;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: #0a0a0a; /* Fallback, but shared.css body is #0a0a0a */
    min-height: 600px;
}

.page-resources__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.4; /* Slightly dim the background image */
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

.page-resources__hero-section .page-resources__container {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.page-resources__hero-title {
    font-size: 3.8em;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-resources__hero-description {
    font-size: 1.4em;
    color: #f0f0f0;
    margin-bottom: 40px;
    line-height: 1.5;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-resources__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* --- Overview Section --- */
.page-resources__overview-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Slightly lighter dark background */
}

/* --- Video Section --- */
.page-resources__video-section {
    padding: 80px 0;
    background-color: #017439; /* Brand color background */
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Ensures video section is not hidden by sticky header on initial load */
}

.page-resources__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto 30px auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-resources__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

.page-resources__video-link {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
}

/* --- Guides Section --- */
.page-resources__guides-section {
    padding: 80px 0;
    background-color: #0a0a0a;
}

.page-resources__article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* --- Tips & Secrets Section --- */
.page-resources__tips-secrets-section {
    padding: 80px 0;
    background-color: #017439; /* Brand color background */
}

.page-resources__tips-secrets-section .page-resources__section-title {
    color: #ffffff;
}

.page-resources__tips-secrets-section .page-resources__text-block {
    color: #ffffff;
}

.page-resources__card--dark-bg {
    background-color: rgba(0, 0, 0, 0.3); /* Darker card background for contrast on brand color */
    color: #ffffff;
}

.page-resources__card--dark-bg .page-resources__card-title a {
    color: #ffffff;
}

.page-resources__card--dark-bg .page-resources__card-title a:hover {
    color: #f0f0f0;
}

.page-resources__card--dark-bg .page-resources__card-description {
    color: #f0f0f0;
}

/* --- Security Section --- */
.page-resources__security-section {
    padding: 80px 0;
    background-color: #1a1a1a;
}

.page-resources__info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* --- FAQ Section --- */
.page-resources__faq-section {
    padding: 80px 0;
    background-color: #017439; /* Brand color background */
}

.page-resources__faq-list {
    max-width: 800px;
    margin: 50px auto 0 auto;
}

.page-resources__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2em;
    color: #ffffff;
    transition: background-color 0.3s ease;
}

.page-resources__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-resources__faq-title {
    margin: 0;
    color: #ffffff;
    font-size: 1.2em; /* Adjusted for consistency */
}

.page-resources__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
    transform: rotate(45deg);
}

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 1000px !important; /* Use !important to ensure override */
    padding: 15px 25px 20px 25px;
}

.page-resources__faq-answer p {
    margin: 0;
    color: #f0f0f0;
}

/* --- CTA Section --- */
.page-resources__cta-section {
    padding: 80px 0;
    background-color: #0a0a0a;
    text-align: center;
}

.page-resources__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 40px;
}

.page-resources__btn-primary--large,
.page-resources__btn-secondary--large {
    padding: 18px 40px;
    font-size: 1.2em;
    min-width: 220px;
}


/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 3em;
    }
    .page-resources__hero-description {
        font-size: 1.2em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-resources {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-resources__hero-section {
        padding: 80px 0;
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
        min-height: 500px;
    }

    .page-resources__hero-title {
        font-size: 2.5em;
    }

    .page-resources__hero-description {
        font-size: 1em;
    }

    .page-resources__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-resources__btn-primary,
    .page-resources__btn-secondary,
    .page-resources__btn-primary--large,
    .page-resources__btn-secondary--large,
    .page-resources a[class*="button"],
    .page-resources a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
        font-size: 1em;
    }

    .page-resources__cta-buttons,
    .page-resources__button-group,
    .page-resources__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        flex-direction: column; /* Ensure vertical stacking on mobile */
    }

    .page-resources__container {
        padding: 0 15px;
    }

    .page-resources__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-resources__text-block {
        font-size: 1em;
    }

    .page-resources__article-grid,
    .page-resources__info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-resources__card-image {
        height: 180px;
    }

    .page-resources__card {
        padding: 20px;
    }

    .page-resources__card-title {
        font-size: 1.3em;
    }

    .page-resources__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    /* Mobile image, video, and container adaptations */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-resources video,
    .page-resources__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__video-section,
    .page-resources__video-container,
    .page-resources__video-wrapper,
    .page-resources__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-resources__video-wrapper {
        padding-bottom: 75% !important; /* Adjust aspect ratio for mobile if needed, e.g., 4:3 */
    }
}