/* style/resources.css */

/* Base styles for the page */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Default light text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

/* Container for consistent spacing */
.page-resources__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    padding: 100px 0 60px;
    text-align: center;
    overflow: hidden;
    background-color: #003366; /* Main brand color for hero background */
    color: #ffffff; /* White text on dark brand color */
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.page-resources__hero-section .page-resources__container {
    position: relative;
    z-index: 1;
}

.page-resources__main-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #FFD700; /* Auxiliary color for main title */
}

.page-resources__intro-text {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-resources__section--guides {
    background-color: #f8f8f8; /* Light background for guides section */
    color: #333333; /* Dark text on light background */
}

.page-resources__section--benefits {
    background-color: #003366; /* Dark brand color for benefits section */
    color: #ffffff; /* White text on dark brand color */
}

.page-resources__section--faq {
    background-color: #f8f8f8; /* Light background for FAQ section */
    color: #333333; /* Dark text on light background */
}

.page-resources__section--cta {
    background-color: #003366; /* Dark brand color for CTA section */
    color: #ffffff; /* White text on dark brand color */
}

.page-resources__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: inherit;
}

.page-resources__section--guides .page-resources__section-title,
.page-resources__section--faq .page-resources__section-title {
    color: #003366; /* Main brand color for titles on light backgrounds */
}

.page-resources__section-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: inherit;
}

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

.page-resources__card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: left;
    transition: transform 0.3s ease;
    color: #333333; /* Dark text on white card background */
}

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

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

.page-resources__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #003366; /* Main brand color for card titles */
}

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

.page-resources__card-title a:hover {
    color: #FFD700;
}

.page-resources__card-text {
    font-size: 1em;
    margin-bottom: 20px;
}

/* Benefit List */
.page-resources__benefit-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
}

.page-resources__benefit-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white background on dark section */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-resources__benefit-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #FFD700; /* Auxiliary color for benefit titles on dark background */
}

.page-resources__benefit-text {
    font-size: 1em;
    color: #f0f0f0;
}

/* Call to Action Buttons */
.page-resources__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin: 10px;
    border: 2px solid transparent;
}

.page-resources__btn-primary {
    background-color: #FFD700; /* Auxiliary color for primary button */
    color: #003366; /* Dark text on light button */
    border-color: #FFD700;
}

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

.page-resources__btn-secondary {
    background-color: transparent;
    color: #003366; /* Dark text on transparent button on light background */
    border-color: #003366;
}

.page-resources__section--cta .page-resources__btn-secondary {
    color: #ffffff; /* White text on transparent button on dark background */
    border-color: #ffffff;
}

.page-resources__btn-secondary:hover {
    background-color: #003366;
    color: #ffffff;
}

.page-resources__btn-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 40px;
    max-width: 300px;
}

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

/* 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: #ffffff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    color: #333333; /* Dark text on white FAQ item background */
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #f0f0f0;
    border-bottom: 1px solid #e0e0e0;
    color: #003366; /* Main brand color for question text */
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-resources__faq-question:hover {
    background-color: #e5e5e5;
}

.page-resources__faq-heading {
    margin: 0;
    font-size: 1.1em;
}

.page-resources__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #003366;
    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: #333333;
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 1000px !important;
    padding: 15px 25px;
}

/* Ensure no image filters are used */
.page-resources img {
    filter: none !important;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-resources__main-title {
        font-size: 2.5em;
    }

    .page-resources__section-title {
        font-size: 2em;
    }

    .page-resources__card-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

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

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

    .page-resources__main-title {
        font-size: 2em;
    }

    .page-resources__intro-text {
        font-size: 1em;
    }

    .page-resources__section-title {
        font-size: 1.8em;
    }

    .page-resources__section-description {
        font-size: 0.95em;
    }

    .page-resources__card-grid {
        grid-template-columns: 1fr;
    }

    .page-resources__benefit-list {
        grid-template-columns: 1fr;
    }

    .page-resources__cta-button {
        padding: 12px 25px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    /* Images responsiveness */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

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

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

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

    .page-resources__faq-item {
        margin: 0 15px 15px;
    }

    .page-resources__faq-question,
    .page-resources__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
}

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

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

    .page-resources__cta-button {
        font-size: 0.9em;
    }
}