/* style/resources.css */

/* Base Styles */
.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 */
}

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

.page-resources__section {
    padding: 60px 0;
}

.page-resources__dark-bg {
    background-color: #1a1a2e; /* Inherit from body or use a darker variant if needed */
    color: #ffffff;
}

.page-resources__light-bg {
    background-color: #2a2a3e; /* Slightly lighter than body bg for contrast */
    color: #ffffff;
}

.page-resources__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-resources__sub-title {
    font-size: 1.8em;
    color: #FFFFFF; /* White for sub-titles on dark backgrounds */
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-resources p {
    margin-bottom: 15px;
}

.page-resources a {
    color: #FFFF00; /* Yellow for links on dark background */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources a:hover {
    color: #017439; /* Primary brand color on hover */
    text-decoration: underline;
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

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

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

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

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

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Overlay for text readability */
}

/* Call to Action Buttons */
.page-resources__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources__btn-promo {
    background-color: #C30808; /* Specific color for promo/login/register */
    color: #FFFF00; /* Specific font color for promo/login/register */
    border: 2px solid #C30808;
}

.page-resources__btn-promo:hover {
    background-color: #a00606;
    border-color: #a00606;
    color: #ffffff;
}

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

.page-resources__btn-secondary:hover {
    background-color: #FFFFFF;
    color: #017439;
}

/* Content Grid */
.page-resources__content-grid {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.page-resources__content-grid--reverse {
    flex-direction: row-reverse;
}

.page-resources__text-block,
.page-resources__image-block {
    flex: 1;
    min-width: 0; /* Allow flex items to shrink */
}

.page-resources__content-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

/* Lists */
.page-resources__ordered-list,
.page-resources__unordered-list {
    margin-left: 20px;
    margin-bottom: 15px;
}

.page-resources__ordered-list li,
.page-resources__unordered-list li {
    margin-bottom: 10px;
    color: #f0f0f0;
}

/* CTA Block within content */
.page-resources__cta-block {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background-color: #017439; /* Brand primary color */
    border-radius: 10px;
    color: #ffffff;
}

.page-resources__cta-text {
    font-size: 1.5em;
    margin-bottom: 20px;
    font-weight: bold;
}

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

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

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

.page-resources__faq-item {
    background-color: #2a2a3e; /* Slightly lighter card background */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}

.page-resources__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFFF00; /* Yellow for FAQ questions */
    transition: background-color 0.3s ease;
}

.page-resources__faq-item summary:hover {
    background-color: #3a3a4e;
}

.page-resources__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-resources__faq-qtext {
    flex-grow: 1;
}

.page-resources__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: #017439; /* Brand primary color for toggle icon */
}

.page-resources__faq-item[open] .page-resources__faq-toggle {
    content: "−";
}

.page-resources__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: #f0f0f0;
}

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

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

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

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

    .page-resources__hero-section {
        min-height: 450px;
        padding: 80px 0;
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header */
    }

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

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

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

    .page-resources__cta-button {
        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-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

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

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

    .page-resources__content-grid {
        flex-direction: column;
        gap: 30px;
    }

    .page-resources__content-grid--reverse {
        flex-direction: column; /* Reset to column for mobile */
    }

    .page-resources__content-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
}