/* style/resources.css */

/* Base styles for the page */
.page-resources {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: #121212; /* Inherited from body, explicit for clarity */
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 600px;
    background-color: #0A2463; /* Main brand color for hero background */
    color: #ffffff;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    overflow: hidden;
}

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin-bottom: 40px;
}

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #E0B14B; /* Accent color for title */
    line-height: 1.2;
}

.page-resources__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.page-resources__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Subtle background image */
}

/* General Section Styling */
.page-resources__section {
    padding: 60px 20px;
    text-align: center;
}

.page-resources__section--dark {
    background-color: #0A2463; /* Main brand color */
    color: #ffffff;
}

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

.page-resources__container--flex {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-resources__heading {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #E0B14B; /* Accent color for main headings */
    font-weight: bold;
}

.page-resources__section--dark .page-resources__heading {
    color: #E0B14B; /* Ensure accent color on dark background */
}

.page-resources__heading--cta {
    font-size: 2.8em;
    margin-bottom: 15px;
    color: #E0B14B;
}

.page-resources__sub-heading {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #E0B14B;
    font-weight: bold;
}

.page-resources__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0; /* Slightly off-white for readability */
}

.page-resources__paragraph--cta {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 700px;
    opacity: 0.9;
}

/* Grid Layouts */
.page-resources__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources__grid--2-col {
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

.page-resources__grid--3-col {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Card Styles */
.page-resources__card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark bg */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.3s ease;
    height: 100%; /* Ensure cards in a row have same height */
}

.page-resources__card:hover {
    transform: translateY(-5px);
}

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

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

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

.page-resources__card-text {
    font-size: 1em;
    color: #f0f0f0;
    flex-grow: 1; /* Allows text to take available space */
}

/* Content Blocks for images */
.page-resources__content-block {
    text-align: left;
    margin-bottom: 30px;
}

.page-resources__image-full-width {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-resources__image-small {
    width: 100%; /* Will be constrained by parent grid column */
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}


/* Buttons */
.page-resources__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources__btn-link {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Crucial for responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
}

.page-resources__btn-primary {
    background-color: #E0B14B; /* Accent color */
    color: #0A2463; /* Main brand color for text */
    border: 2px solid #E0B14B;
}

.page-resources__btn-primary:hover {
    background-color: #f0c25a;
    border-color: #f0c25a;
    color: #0A2463;
}

.page-resources__btn-primary--large {
    padding: 18px 40px;
    font-size: 1.2em;
}

.page-resources__btn-secondary {
    background-color: transparent;
    color: #E0B14B;
    border: 2px solid #E0B14B;
}

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

.page-resources__btn-link {
    background: none;
    border: none;
    color: #E0B14B;
    padding: 0;
    font-size: 1em;
    text-decoration: underline;
    margin-top: 10px;
}

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

.page-resources__cta-footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

/* FAQ Section */
.page-resources__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-resources__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-resources__faq-title {
    font-size: 1.2em;
    color: #E0B14B; /* Accent color for FAQ questions */
    margin: 0;
    flex-grow: 1;
}

.page-resources__faq-toggle {
    font-size: 1.8em;
    color: #E0B14B;
    margin-left: 20px;
    width: 30px;
    text-align: center;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
    transform: rotate(45deg); /* Change to X or rotate for active state */
}

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

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 20px;
}

.page-resources__faq-answer .page-resources__paragraph {
    margin-bottom: 0;
    text-align: left;
    max-width: none; /* Override max-width for paragraph in answer */
}

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

    .page-resources__heading {
        font-size: 2em;
    }

    .page-resources__sub-heading {
        font-size: 1.6em;
    }

    .page-resources__paragraph {
        font-size: 1em;
    }

    .page-resources__grid--2-col {
        grid-template-columns: 1fr;
    }
}

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

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

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

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

    .page-resources__btn-primary,
    .page-resources__btn-secondary,
    .page-resources__btn-primary--large {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-resources__cta-footer {
        flex-direction: column;
        gap: 15px;
    }

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

    .page-resources__heading {
        font-size: 1.8em;
    }

    .page-resources__heading--cta {
        font-size: 2em;
    }

    .page-resources__sub-heading {
        font-size: 1.4em;
    }

    .page-resources__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .page-resources__card {
        padding: 20px;
    }

    /* Mobile image responsiveness */
    .page-resources img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__content-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important;
    }
    
    /* Specific overrides for padding on full-width blocks if they are inside a container with padding */
    .page-resources__content-block--full-width {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .page-resources__hero-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .page-resources__faq-question,
    .page-resources__faq-answer {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    /* Ensure content area images are at least 200px and responsive */
    .page-resources__image-full-width,
    .page-resources__image-small,
    .page-resources__card-image {
        min-width: 200px !important;
        min-height: 200px !important;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }

    .page-resources__heading {
        font-size: 1.5em;
    }
    
    .page-resources__heading--cta {
        font-size: 1.6em;
    }
}