/* style/resources.css */

/* Base styles for the page content */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #000; /* Assuming body background is black based on instructions */
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
    background: linear-gradient(135deg, #0A2463, #000); /* Dark blue to black gradient */
    color: #ffffff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* To contain the image */
}

.page-resources__hero-content {
    max-width: 900px;
    margin-bottom: 40px;
    z-index: 1; /* Ensure text is above image */
}

.page-resources__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFD700; /* Gold for emphasis */
    line-height: 1.2;
}

.page-resources__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-resources__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources__btn-link {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    max-width: 100%; /* Ensure button does not exceed container width */
}

.page-resources__btn-primary {
    background-color: #FFD700; /* Gold */
    color: #0A2463; /* Dark blue text */
    border: 2px solid #FFD700;
}

.page-resources__btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
}

.page-resources__btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Gold text */
    border: 2px solid #FFD700;
}

.page-resources__btn-secondary:hover {
    background-color: #FFD700;
    color: #0A2463;
}

.page-resources__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-top: 40px;
    box-sizing: border-box;
}

.page-resources__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* General Section Styles */
.page-resources__section {
    padding: 60px 20px;
}

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

.page-resources__section-title {
    font-size: 2.5em;
    color: #FFD700; /* Gold for titles */
    text-align: center;
    margin-bottom: 40px;
}

.page-resources__sub-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-top: 30px;
    margin-bottom: 20px;
}

.page-resources__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.8;
    color: #f0f0f0; /* Light text for dark backgrounds */
}

/* Background Colors for Sections */
.page-resources__dark-bg {
    background-color: #0A2463; /* Main brand dark blue */
    color: #ffffff;
}

.page-resources__light-bg {
    background-color: #1a3a70; /* Slightly lighter dark blue for contrast */
    color: #ffffff;
}

/* Image Styles within Content */
.page-resources__image-full-width {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px 0;
    border-radius: 8px;
    object-fit: cover;
}

.page-resources__image-center {
    display: block;
    margin: 40px auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

/* Guide Items */
.page-resources__guide-item {
    background-color: rgba(255, 255, 255, 0.1); /* Translucent white on dark blue */
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__guide-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-resources__btn-link {
    background-color: #FFD700;
    color: #0A2463;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    display: inline-block;
}

.page-resources__btn-link:hover {
    background-color: #e6c200;
}

.page-resources__cta-buttons-inline {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Strategy List */
.page-resources__strategy-list,
.page-resources__responsibility-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-resources__list-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    margin-bottom: 15px;
    border-left: 5px solid #FFD700;
    border-radius: 5px;
    font-size: 1.1em;
    color: #f0f0f0;
}

.page-resources__list-item strong {
    color: #FFD700;
}

/* FAQ Section */
.page-resources__faq-section {
    background-color: #1a3a70;
}

.page-resources__faq-list {
    margin-top: 40px;
}

.page-resources__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.page-resources__faq-question:hover {
    background-color: #1a3a70; /* Slightly lighter on hover */
}

.page-resources__faq-question-text {
    margin: 0;
    color: #ffffff;
}

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

.page-resources__faq-item.active .page-resources__faq-toggle {
    transform: rotate(45deg); /* Rotate for minus sign */
}

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 30px; /* Adjust padding to match question */
    background-color: rgba(255, 255, 255, 0.05); /* Lighter background for answer */
    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; /* Sufficiently large height for content */
    padding: 20px 30px; /* Restore padding when active */
}

.page-resources__faq-answer .page-resources__text-block {
    margin-bottom: 15px;
}

.page-resources__faq-answer .page-resources__btn-link {
    margin-top: 0; /* Adjust margin for links inside FAQ answers */
}


/* CTA Bottom Section */
.page-resources__cta-bottom {
    text-align: center;
    background: linear-gradient(135deg, #0A2463, #000);
    padding: 80px 20px;
}

.page-resources__cta-content {
    max-width: 900px;
}

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

@media (max-width: 768px) {
    .page-resources__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding-top */
    }

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

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

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

    .page-resources__btn-primary,
    .page-resources__btn-secondary,
    .page-resources__btn-link {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }
    
    .page-resources__cta-buttons-inline {
        flex-direction: column;
        gap: 15px;
    }

    .page-resources__section {
        padding: 40px 15px;
    }

    .page-resources__container {
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
        max-width: 100% !important;
        width: 100% !important;
    }

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

    .page-resources__sub-title {
        font-size: 1.5em;
    }

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

    .page-resources__guide-item {
        padding: 20px;
    }

    .page-resources__guide-title {
        font-size: 1.5em;
    }

    .page-resources__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }

    .page-resources__faq-answer {
        padding: 0 20px;
    }

    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 15px 20px;
    }

    /* Image responsiveness for all images */
    .page-resources img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Ensure all containers holding images are responsive */
    .page-resources__hero-image-wrapper,
    .page-resources__image-full-width,
    .page-resources__image-center,
    .page-resources__cta-bottom .page-resources__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Video responsiveness - if any, ensure it's covered */
    .page-resources video,
    .page-resources__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__video-section,
    .page-resources__video-container,
    .page-resources__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-resources__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
}

/* Ensure no CSS filter on images */
.page-resources img {
    filter: none; /* Explicitly disable any filter */
}

/* Color contrast fixes based on body background #000 (dark) */
.page-resources {
    color: #ffffff; /* Light text on dark body */
}
.page-resources__card, /* Assuming .page-resources__guide-item is a card */
.page-resources__guide-item {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent light on dark */
    color: #ffffff; /* Light text */
}
.page-resources__btn-primary {
    background: #FFD700; /* Gold background */
    color: #0A2463; /* Dark blue text */
}
.page-resources__btn-secondary {
    background: transparent;
    color: #FFD700; /* Gold text */
    border-color: #FFD700;
}
.page-resources__btn-link {
    background: #FFD700; /* Gold background */
    color: #0A2463; /* Dark blue text */
}
.page-resources__faq-question {
    background-color: #0A2463; /* Dark blue background */
    color: #ffffff; /* White text */
}
.page-resources__faq-answer {
    background-color: rgba(255, 255, 255, 0.05); /* Lighter translucent background */
    color: #f0f0f0; /* Off-white text */
}