/* style/resources.css */

:root {
    --primary-color: #FFD700;
    --secondary-color: #8B0000;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark-section: #1a1a1a; /* Adjusted for contrast on dark body background */
    --bg-light-section: #f0f0f0;
    --card-bg: #2a2a2a;
    --border-color: #444444;
    --button-hover-dark: #e6c200;
    --button-hover-light: #a00000;
}

.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Default text color for dark body background */
    background-color: var(--dark-bg-1); /* Inherited from shared.css */
    padding-top: 0; /* Assumes shared.css sets padding-top on body */
}

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

.page-resources__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-resources__section-description {
    font-size: 18px;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__dark-bg {
    background-color: var(--dark-bg-1);
    color: var(--text-light);
}

.page-resources__dark-section {
    background-color: var(--bg-dark-section);
    color: var(--text-light);
}

.page-resources__card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    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__card-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-resources__card p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.page-resources__card-link {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-resources__card-link:hover {
    background-color: var(--button-hover-light);
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: 80px 20px; /* Adjusted padding-top via inline style for header offset */
    overflow: hidden;
    background-color: var(--bg-dark-section);
}

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    color: var(--text-light);
}

.page-resources__hero-title {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
}

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

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

.page-resources__hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: brightness(0.8);
}

/* Intro Section */
.page-resources__intro-section {
    padding: 80px 0;
    background-color: var(--dark-bg-1);
}

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

/* Guide Section */
.page-resources__guides-section {
    padding: 80px 0;
}

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

.page-resources__guide-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-resources__guide-card .page-resources__card-title {
    font-size: 20px;
    color: var(--primary-color);
}

.page-resources__guide-card p {
    font-size: 15px;
    margin-bottom: 15px;
}

/* Strategies Section */
.page-resources__strategies-section {
    padding: 80px 0;
    background-color: var(--dark-bg-1);
}

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

.page-resources__strategy-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-resources__strategy-item .page-resources__card-title {
    font-size: 20px;
    color: var(--primary-color);
}

.page-resources__strategy-item p {
    font-size: 15px;
    margin-bottom: 15px;
}

/* News Section */
.page-resources__news-section {
    padding: 80px 0;
}

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

.page-resources__news-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-resources__news-card .page-resources__card-title {
    font-size: 20px;
    color: var(--primary-color);
}

.page-resources__news-card p {
    font-size: 15px;
    margin-bottom: 15px;
}

/* FAQ Section */
.page-resources__faq-section {
    padding: 80px 0;
    background-color: var(--dark-bg-1);
}

.page-resources__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

.page-resources__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

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

.page-resources__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-light);
    pointer-events: none;
}

.page-resources__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 20px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
    color: var(--text-light);
    transform: rotate(45deg); /* Changed from '-' to rotate '+' */
}

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    background: #222222;
    border-radius: 0 0 8px 8px;
    color: #cccccc;
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 2000px !important;
    padding: 20px 25px !important;
    opacity: 1;
}

/* Support Section */
.page-resources__support-section {
    padding: 80px 0;
}

.page-resources__support-contact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources__contact-item {
    text-align: center;
}

.page-resources__contact-item img {
    
    
    margin-bottom: 20px;
    object-fit: contain;
}

.page-resources__contact-item h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-resources__contact-item p {
    font-size: 16px;
    color: #cccccc;
    margin-bottom: 20px;
}

/* CTA Section */
.page-resources__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--dark-bg-1);
}

.page-resources__btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-dark);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-resources__btn-primary:hover {
    background-color: var(--button-hover-dark);
    transform: translateY(-2px);
}

.page-resources__btn-secondary {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-resources__btn-secondary:hover {
    background-color: var(--button-hover-light);
    transform: translateY(-1px);
}

.page-resources__btn-large {
    padding: 20px 40px;
    font-size: 24px;
}

.page-resources__cta-buttons {
    margin-top: 30px;
    text-align: center;
}

/* Responsive styles */

@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 48px;
    }
    .page-resources__hero-description {
        font-size: 20px;
    }
    .page-resources__section-title {
        font-size: 32px;
    }
    .page-resources__section-description {
        font-size: 17px;
    }
    .page-resources__intro-cards,
    .page-resources__guide-cards,
    .page-resources__strategy-grid,
    .page-resources__news-grid,
    .page-resources__support-contact {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    /* General mobile reset and image/button rules */
    .page-resources {
        font-size: 16px;
        line-height: 1.6;
        padding-top: 0 !important; /* Assume shared.css handles body padding-top */
    }

    .page-resources__container {
        padding: 20px 15px;
    }

    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: cover;
    }
    
    .page-resources__intro-card img,
    .page-resources__guide-card img,
    .page-resources__strategy-item img,
    .page-resources__news-card img {
        height: 200px !important; /* Smaller height for content images on mobile */
    }

    .page-resources__card,
    .page-resources__intro-card,
    .page-resources__guide-card,
    .page-resources__strategy-item,
    .page-resources__news-card,
    .page-resources__contact-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 20px;
    }

    /* Buttons mobile adaptation */
    .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;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
        font-size: 18px;
    }

    .page-resources__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 15px;
        display: flex;
        flex-direction: column;
    }

    /* Hero Section */
    .page-resources__hero-section {
        min-height: 450px;
        padding: 60px 15px;
    }
    .page-resources__hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-resources__hero-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    /* Section Titles and Descriptions */
    .page-resources__section-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    .page-resources__section-description {
        font-size: 15px;
        margin-bottom: 30px;
    }

    /* Card Layouts */
    .page-resources__intro-cards,
    .page-resources__guide-cards,
    .page-resources__strategy-grid,
    .page-resources__news-grid,
    .page-resources__support-contact {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-resources__card-title {
        font-size: 20px;
    }

    .page-resources__card p {
        font-size: 14px;
    }

    /* FAQ Section */
    .page-resources__faq-list {
        margin-top: 20px;
    }
    .page-resources__faq-question {
        padding: 15px 20px;
        flex-wrap: wrap;
    }
    .page-resources__faq-question h3 {
        font-size: 16px;
        width: calc(100% - 40px);
    }
    .page-resources__faq-toggle {
        margin-left: 10px;
        width: 28px;
        height: 28px;
        font-size: 24px;
    }
    .page-resources__faq-answer {
        padding: 0 20px;
    }
    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 15px 20px !important;
    }

    /* Support Contact Images */
    .page-resources__contact-item img {
        
        
    }
    .page-resources__contact-item h3 {
        font-size: 20px;
    }
    .page-resources__contact-item p {
        font-size: 14px;
    }
}