/* style/resources.css */

:root {
    --primary-color: #FFD700;
    --secondary-color: #000080;
    --text-light: #f0f0f0;
    --text-dark: #333333;
    --bg-dark-card: rgba(255, 255, 255, 0.1);
    --border-light: #e0e0e0;
}

.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Default text color for dark body background */
    background-color: transparent; /* Body background handled by shared.css */
}

.page-resources__section-spacing {
    padding: 80px 0;
}

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

.page-resources__section-title {
    font-size: 3em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-resources__section-text {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px auto;
    color: var(--text-light);
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding-top: var(--header-offset, 120px); /* Ensure header offset */
    overflow: hidden;
    background-color: var(--secondary-color);
}

.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;
}

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

.page-resources__hero-title {
    font-size: 4.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--primary-color);
}

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

.page-resources__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 15px 35px;
    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;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources__btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 2px solid var(--primary-color);
}

.page-resources__btn-primary:hover {
    background-color: #e6c200;
    color: var(--secondary-color);
    border-color: #e6c200;
}

.page-resources__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-resources__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.page-resources__center-button {
    text-align: center;
    margin-top: 50px;
}

/* Info Cards */
.page-resources__info-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.page-resources__card {
    background-color: var(--bg-dark-card);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    flex: 1;
    min-width: 300px;
    max-width: 45%;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
    box-sizing: border-box;
}

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

.page-resources__card-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-resources__card-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-resources__card-title a:hover {
    text-decoration: underline;
}

.page-resources__card p {
    font-size: 1em;
    line-height: 1.7;
}

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

.page-resources__content-image {
    display: block;
    margin: 60px auto 0 auto;
    border-radius: 10px;
    max-width: 100%;
    height: auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Enforce min size */
    min-height: 200px;
}

/* Dark Section */
.page-resources__dark-section {
    background-color: var(--secondary-color);
    color: #ffffff;
}

.page-resources__dark-section .page-resources__section-title,
.page-resources__dark-section .page-resources__section-text {
    color: #ffffff;
}

.page-resources__dark-section .page-resources__card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.page-resources__dark-section .page-resources__card-title {
    color: var(--primary-color);
}

.page-resources__dark-section .page-resources__btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}

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

/* Video Section */
.page-resources__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 50px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    width: 100%;
    box-sizing: border-box;
}

.page-resources__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    cursor: pointer;
}

/* FAQ Section */
.page-resources__faq-list {
    margin-top: 50px;
}

.page-resources__faq-item {
    background-color: var(--bg-dark-card);
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

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

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

.page-resources__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--primary-color);
    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 30px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-light);
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 1000px !important; /* Important for JS functionality */
    padding: 20px 30px;
}

.page-resources__faq-answer p {
    margin: 0;
}

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

.page-resources__cta-title {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.page-resources__cta-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #ffffff;
}

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

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

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

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

    .page-resources__info-cards {
        flex-direction: column;
        align-items: center;
    }

    .page-resources__card {
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-section {
        min-height: 60vh;
        padding-top: var(--header-offset, 120px) !important;
    }

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

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

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

    .page-resources__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .page-resources__section-text {
        font-size: 1em;
        margin-bottom: 40px;
    }

    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        padding: 12px 25px;
        font-size: 1em;
        width: 100%;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-bottom: 15px; /* Add spacing between stacked buttons */
    }

    .page-resources__hero-cta-buttons,
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 10px; /* Adjust gap for stacked buttons */
    }

    .page-resources__card {
        max-width: 100%;
        padding: 25px;
    }

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

    /* Mobile image and video 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__video-wrapper,
    .page-resources__hero-section,
    .page-resources__cta-buttons,
    .page-resources__hero-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__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure video section respects header on mobile */
    }

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

    .page-resources__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    .page-resources__faq-answer {
        padding: 15px 20px;
    }

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

    .page-resources__cta-description {
        font-size: 1em;
    }
}