/* style/resources.css */

/* Root variables for consistent theming */
:root {
    --primary-color: #007BFF;
    --secondary-color: #28A745;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark-card: rgba(0, 0, 0, 0.1);
    --border-light: #e0e0e0;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.2);
}

.page-resources {
    font-family: 'Arial', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

/* Fixed navigation bar spacing */
.page-resources__hero-banner {
    padding-top: 180px; /* Desktop: Adjust based on fixed header height */
    position: relative;
    width: 100%;
    overflow: hidden;
}

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

.page-resources__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-resources__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.page-resources__section-title--light {
    color: var(--text-light);
}

.page-resources__section-title--light::after {
    background-color: var(--secondary-color);
}

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

.page-resources .highlight {
    color: var(--primary-color);
}

.page-resources__section-title--light .highlight {
    color: var(--secondary-color);
}

/* Hero Banner Section */
.page-resources__hero-banner {
    background: linear-gradient(135deg, #007BFF, #28A745);
    color: var(--text-light);
    text-align: center;
    padding: 80px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-resources__hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-resources__hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

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

.page-resources__hero-cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 15px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__hero-cta-button:hover {
    background-color: #218838;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Introduction Section */
.page-resources__introduction-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.page-resources__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-resources__content-wrapper .page-resources__text-block {
    flex: 1;
}

.page-resources__content-wrapper .page-resources__image-block {
    flex: 1;
    text-align: center;
}

.page-resources__image-full {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px var(--shadow-light);
}

.page-resources__text-block p {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.page-resources__text-block strong {
    font-weight: bold;
    color: var(--primary-color);
}

/* Criteria Section */
.page-resources__criteria-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), #0056b3); /* Darker primary gradient */
    color: var(--text-light);
}

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

.page-resources__criteria-card {
    background: rgba(255, 255, 255, 0.15); /* Slightly transparent white for dark background */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    color: var(--text-light);
}

.page-resources__criteria-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.25);
}

.page-resources__card-icon {
    width: 120px; /* Larger icon size */
    height: auto;
    margin-bottom: 20px;
    filter: brightness(1.2); /* Slightly brighten icons for visibility on dark background, no color change */
}

.page-resources__card-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--text-light);
}

.page-resources__card-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-light);
}

/* Benefits Section */
.page-resources__benefits-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.page-resources__benefits-section .page-resources__content-wrapper {
    flex-direction: row-reverse; /* Image on right, text on left */
}

.page-resources__cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__cta-button:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-resources__faq-section {
    padding: 80px 0;
    background-color: #f1f3f5; /* Light grey background for FAQ */
}

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

.page-resources__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow-light);
}

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

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 2000px !important; /* Ensure it expands fully */
    padding: 25px !important;
    opacity: 1;
    background: #ffffff;
    border-radius: 0 0 8px 8px;
    border-top: 1px solid var(--border-light);
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    color: var(--text-dark);
}

.page-resources__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
    box-shadow: 0 4px 12px var(--shadow-hover);
}

.page-resources__faq-question:active {
    background: #eeeeee;
}

.page-resources__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    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: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--bg-light);
}

.page-resources__faq-item.active .page-resources__faq-toggle {
    color: var(--secondary-color);
    transform: rotate(45deg); /* Rotate for minus sign effect */
}

.page-resources__faq-answer p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 40px;
    }
    .page-resources__hero-description {
        font-size: 18px;
    }
    .page-resources__section-title {
        font-size: 30px;
    }
    .page-resources__section-subtitle {
        font-size: 16px;
    }
    .page-resources__criteria-card {
        padding: 25px;
    }
    .page-resources__card-title {
        font-size: 22px;
    }
    .page-resources__card-icon {
        width: 100px;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-banner {
        padding-top: 160px !important; /* Mobile: Adjust based on fixed header height */
        padding: 60px 15px;
    }
    .page-resources__hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-resources__hero-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-resources__hero-cta-button {
        padding: 12px 30px;
        font-size: 18px;
    }

    .page-resources__introduction-section,
    .page-resources__criteria-section,
    .page-resources__benefits-section,
    .page-resources__faq-section {
        padding: 40px 0;
    }

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

    .page-resources__section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }
    .page-resources__section-subtitle {
        font-size: 15px;
        margin-bottom: 40px;
    }

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

    .page-resources__image-full {
        border-radius: 8px;
    }

    .page-resources__text-block p {
        font-size: 15px;
    }

    .page-resources__criteria-grid {
        grid-template-columns: 1fr;
    }
    .page-resources__criteria-card {
        padding: 20px;
    }
    .page-resources__card-icon {
        width: 80px;
    }
    .page-resources__card-title {
        font-size: 20px;
    }
    .page-resources__card-description {
        font-size: 14px;
    }

    .page-resources__cta-button {
        font-size: 16px;
        padding: 12px 25px;
    }

    .page-resources__faq-question {
        padding: 15px 20px;
    }
    .page-resources__faq-question h3 {
        font-size: 16px;
    }
    .page-resources__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }
    .page-resources__faq-answer {
        padding: 0 20px;
    }
    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 20px !important;
    }
    .page-resources__faq-answer p {
        font-size: 15px;
    }

    /* Ensure all images are responsive and prevent overflow */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__content-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}