/* style/resources.css */

/* General Styles */
.page-resources {
    font-family: 'Arial', sans-serif;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
    line-height: 1.6;
}

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

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

.page-resources__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 100%; /* Ensure buttons are responsive */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-resources__btn-primary {
    background-color: #FFD700;
    color: #000080; /* Dark navy text for gold background */
    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 for transparent/dark background */
    border: 2px solid #FFD700;
}

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

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    min-height: 600px;
    overflow: hidden;
    background-color: #000080; /* Auxiliary color for hero background */
}

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

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

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

.page-resources__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    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;
    opacity: 0.3; /* Subtle background image */
    overflow: hidden;
}

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

/* Section Styles */
.page-resources__guides-section,
.page-resources__strategies-section,
.page-resources__news-section,
.page-resources__faq-section,
.page-resources__cta-section {
    padding: 80px 0;
}

.page-resources__dark-bg {
    background-color: #0a0a0a; /* Dark background */
    color: #ffffff;
}

.page-resources__light-bg {
    background-color: #f8f9fa; /* Light background */
    color: #333333; /* Dark text for light background */
}

.page-resources__dark-text {
    color: #333333; /* For elements on light backgrounds */
}

.page-resources__dark-link {
    color: #000080; /* Navy link on light background */
}
.page-resources__dark-link:hover {
    color: #FFD700;
}

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

.page-resources__card {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark background */
    border-radius: 10px;
    padding: 25px;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-resources__light-card {
    background-color: #ffffff; /* White card on light background */
    color: #333333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-resources__light-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-resources__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure no extra space below image */
}

.page-resources__card-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #FFD700;
}

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

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

.page-resources__light-card .page-resources__card-title a {
    color: #000080; /* Navy link on light card */
}

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

.page-resources__card-text {
    font-size: 1em;
    margin-bottom: 15px;
    flex-grow: 1; /* Push link to bottom */
}

.page-resources__card-link {
    display: inline-flex;
    align-items: center;
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

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

.page-resources__arrow {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.page-resources__card-link:hover .page-resources__arrow {
    transform: translateX(5px);
}


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

.page-resources__news-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources__news-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.page-resources__news-content {
    padding: 20px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-resources__news-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.3;
}

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

.page-resources__news-title a:hover {
    color: #e6c200;
}

.page-resources__news-date {
    font-size: 0.9em;
    color: #cccccc;
    margin-bottom: 15px;
}

.page-resources__news-summary {
    font-size: 1em;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-resources__cta-bottom {
    text-align: center;
    margin-top: 60px;
}

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

.page-resources__faq-item {
    background-color: #ffffff; /* White background for FAQ item on light section */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

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

.page-resources__faq-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #000080; /* Navy text for FAQ question */
    margin: 0;
}

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

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

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: #333333; /* Dark text for answer */
}

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

.page-resources__faq-answer p {
    margin-bottom: 15px;
    color: #333333;
}

.page-resources__faq-link {
    display: inline-block;
    padding: 8px 15px;
    background-color: #000080;
    color: #ffffff;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-resources__faq-link:hover {
    background-color: #FFD700;
    color: #000080;
}

/* CTA Section */
.page-resources__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #000080; /* Auxiliary color for CTA background */
    color: #ffffff;
}

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

.page-resources__cta-section .page-resources__section-title {
    color: #FFD700;
}

.page-resources__cta-section .page-resources__section-description {
    color: #f0f0f0;
}

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

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

@media (max-width: 768px) {
    /* Mobile Image Adapation */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-resources__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important; /* Let height adjust based on aspect ratio */
        min-height: 250px;
    }

    /* Mobile Video Adapation (none in HTML, but included for robustness) */
    .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;
    }

    /* Mobile Button Adapation */
    .page-resources__btn-primary,
    .page-resources__btn-secondary,
    .page-resources a[class*="button"],
    .page-resources a[class*="btn"],
    .page-resources__faq-link {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources__hero-buttons,
    .page-resources__cta-buttons {
        flex-direction: column !important;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* General Mobile Layout */
    .page-resources__hero-section {
        flex-direction: column;
        text-align: center;
        padding: 60px 20px;
        padding-top: var(--header-offset, 120px);
    }
    .page-resources__hero-title {
        font-size: 2.5em;
    }
    .page-resources__hero-description {
        font-size: 1.1em;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__section-description {
        font-size: 1em;
    }
    .page-resources__guides-section,
    .page-resources__strategies-section,
    .page-resources__news-section,
    .page-resources__faq-section,
    .page-resources__cta-section {
        padding: 40px 0;
    }
    .page-resources__guide-cards,
    .page-resources__strategy-cards,
    .page-resources__news-list {
        grid-template-columns: 1fr;
    }
    .page-resources__card,
    .page-resources__news-item,
    .page-resources__faq-item {
        margin-left: 15px;
        margin-right: 15px;
    }
    .page-resources__container {
        padding: 0 15px;
    }
    .page-resources__hero-image-wrapper {
        position: relative;
        height: 250px;
        margin-top: 20px;
        opacity: 0.2;
    }
    .page-resources__hero-content {
        padding: 20px 0;
    }
    .page-resources__faq-question, .page-resources__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
}