/* style/resources.css */

/* --- General Styles for Page Resources --- */
.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;
    box-sizing: border-box;
}

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

.page-resources__section-description,
.page-resources__section-text {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-resources__dark-bg {
    background-color: #1a1a1a; /* Slightly lighter dark background for sections */
    color: #ffffff;
    padding: 60px 0;
}

.page-resources__light-bg {
    background-color: #242424; /* Dark gray for "light" sections to ensure contrast with body */
    color: #ffffff; /* Still light text for contrast */
    padding: 60px 0;
}

/* --- Hero Section --- */
.page-resources__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    min-height: 600px;
    overflow: hidden;
    background-color: #1a1a1a; /* Dark background for hero */
}

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

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Darken image for better text readability */
    filter: none; /* No color filters */
}

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    color: #ffffff;
}

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #26A9E0;
}

.page-resources__hero-description {
    font-size: 1.4em;
    margin-bottom: 40px;
    line-height: 1.5;
    color: #f0f0f0;
}

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

/* --- Buttons --- */
.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
}

.page-resources__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

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

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

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

/* --- Introduction Section --- */
.page-resources__introduction-section .page-resources__section-description,
.page-resources__introduction-section .page-resources__section-text {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Guide & Strategy Grids --- */
.page-resources__guide-grid,
.page-resources__strategy-grid,
.page-resources__news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources__guide-card,
.page-resources__strategy-item,
.page-resources__news-card {
    background-color: #2e2e2e; /* Darker card background */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: #ffffff;
}

.page-resources__guide-card:hover,
.page-resources__strategy-item:hover,
.page-resources__news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-resources__card-image,
.page-resources__strategy-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    filter: none; /* No color filters */
}

.page-resources__guide-card h3,
.page-resources__strategy-item h3,
.page-resources__news-card h3 {
    font-size: 1.5em;
    margin: 20px 20px 10px;
    color: #26A9E0; /* Brand color for card titles */
}

.page-resources__guide-card h3 a,
.page-resources__strategy-item h3 a,
.page-resources__news-card h3 a {
    color: #26A9E0;
    text-decoration: none;
}

.page-resources__guide-card h3 a:hover,
.page-resources__strategy-item h3 a:hover,
.page-resources__news-card h3 a:hover {
    text-decoration: underline;
}

.page-resources__card-text {
    font-size: 1em;
    margin: 0 20px 20px;
    flex-grow: 1; /* Make text take up available space */
    color: #f0f0f0;
}

.page-resources__card-link {
    display: inline-block;
    margin: 0 20px 20px;
    padding: 10px 15px;
    background-color: #26A9E0;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    align-self: flex-start; /* Align link to the start */
    transition: background-color 0.3s ease;
}

.page-resources__card-link:hover {
    background-color: #1e87b7;
}

/* --- FAQ Section --- */
.page-resources__faq-list {
    max-width: 900px;
    margin: 40px auto;
    border-radius: 10px;
    overflow: hidden;
    background-color: #2e2e2e; /* Darker background for FAQ list */
}

.page-resources__faq-item {
    border-bottom: 1px solid #444;
}

.page-resources__faq-item:last-child {
    border-bottom: none;
}

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

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

.page-resources__faq-question h3 {
    margin: 0;
    color: #26A9E0;
}

.page-resources__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    transition: transform 0.3s ease;
    color: #ffffff;
}

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

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #3a3a3a; /* Slightly lighter for answer content */
    color: #f0f0f0;
}

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

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

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

/* --- CTA Section --- */
.page-resources__cta-section {
    text-align: center;
    padding: 80px 20px;
}

.page-resources__cta-section .page-resources__section-description {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* --- Responsive Adjustments --- */
@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) {
    /* Fixed header offset handling for mobile */
    .page-resources__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__section-description,
    .page-resources__section-text {
        font-size: 0.95em;
    }

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

    /* Ensure all image containers are responsive */
    .page-resources__hero-image-wrapper,
    .page-resources__guide-card,
    .page-resources__strategy-item,
    .page-resources__news-card,
    .page-resources__container,
    .page-resources__cta-buttons,
    .page-resources__hero-cta,
    .page-resources__faq-cta {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Buttons responsiveness */
    .page-resources__btn-primary,
    .page-resources__btn-secondary,
    .page-resources a[class*="button"],
    .page-resources a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important; /* Full width for buttons on mobile */
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
    }

    .page-resources__hero-cta,
    .page-resources__faq-cta,
    .page-resources__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
    }

    .page-resources__guide-grid,
    .page-resources__strategy-grid,
    .page-resources__news-grid {
        grid-template-columns: 1fr; /* Single column layout for cards */
        padding: 0 15px; /* Add padding to grid containers */
    }

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

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

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__hero-description {
        font-size: 0.9em;
    }
    .page-resources__section-title {
        font-size: 1.5em;
    }
    .page-resources__section-description,
    .page-resources__section-text {
        font-size: 0.85em;
    }
}