/* style/resources.css */
:root {
    --primary-color: #FF4500;
    --secondary-color: #FFD700;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f1f3f5;
    --border-color: #e0e0e0;
}

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

/* Fixed header padding adjustment */
.page-resources__hero-banner {
    padding-top: 180px; /* Desktop: Adjust based on fixed header height */
    padding-bottom: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    position: relative;
    overflow: hidden;
}

.page-resources__hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-resources__hero-image {
    width: 100%;
    max-width: 800px; /* Adjust max-width as needed */
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 40px;
    display: block; /* Ensure no extra space below image */
}

.page-resources__hero-content {
    color: var(--text-light);
    padding: 0 20px;
}

.page-resources__hero-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-light);
}

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

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

.page-resources__cta-button:hover {
    background: var(--secondary-color);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-resources__cta-button--large {
    padding: 18px 50px;
    font-size: 22px;
}

.page-resources__section {
    padding: 60px 20px;
    background: var(--bg-light);
    color: var(--text-dark);
}

.page-resources__section:nth-of-type(odd) {
    background: #ffffff;
}

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

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

.page-resources__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

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

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

.page-resources__text-block {
    font-size: 17px;
    margin-bottom: 20px;
    line-height: 1.7;
    text-align: justify;
}

.page-resources__text-block--light {
    color: var(--text-light);
}

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

.page-resources__grid-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid var(--primary-color);
}

.page-resources__grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

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

.page-resources__grid-item p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
}

.page-resources__image-responsive {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 40px auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-resources__image-full-width {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-resources__list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.page-resources__list li {
    background: #ffffff;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-size: 17px;
    color: var(--text-dark);
    border-left: 4px solid var(--secondary-color);
    line-height: 1.5;
}

.page-resources__list--light li {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border-left-color: var(--text-light);
}

.page-resources__list li strong {
    color: var(--primary-color);
}

.page-resources__list--light li strong {
    color: var(--secondary-color);
}

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

.page-resources__cta-box {
    background: var(--secondary-color);
    color: var(--text-dark);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin-top: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-resources__cta-box p {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-resources__cta-box .page-resources__cta-link {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-resources__cta-box .page-resources__cta-link:hover {
    color: #8B0000; /* Darker red */
}

.page-resources__text-center {
    text-align: center;
}

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

.page-resources__dark-section .highlight {
    color: var(--secondary-color);
}

/* FAQ Section Styles */
.page-resources__faq-section {
    background: #f9f9f9;
}

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

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

.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 15px;
    opacity: 0;
    color: var(--text-dark);
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 2000px !important;
    padding: 20px 15px !important;
    opacity: 1;
    background: #ffffff;
    border-radius: 0 0 5px 5px;
}

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

.page-resources__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.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;
    color: var(--primary-color);
}

.page-resources__faq-toggle {
    font-size: 28px; /* Increased size for better visibility */
    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; /* Increased size for better visibility */
    height: 32px; /* Increased size for better visibility */
}

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

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

    .page-resources__hero-description {
        font-size: 17px;
    }

    .page-resources__section-title {
        font-size: 32px;
    }

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

    .page-resources__text-block, .page-resources__list li {
        font-size: 16px;
    }

    .page-resources__faq-question h3 {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-banner {
        padding-top: 160px !important; /* Mobile: Adjust based on fixed header height */
        padding-bottom: 40px;
    }

    .page-resources__hero-image {
        margin-bottom: 30px;
    }

    .page-resources__hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .page-resources__hero-description {
        font-size: 15px;
        margin-bottom: 25px;
    }

    .page-resources__cta-button {
        padding: 12px 30px;
        font-size: 18px;
    }

    .page-resources__cta-button--large {
        padding: 15px 40px;
        font-size: 20px;
    }

    .page-resources__section {
        padding: 40px 15px;
    }

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

    .page-resources__text-block, .page-resources__list li, .page-resources__grid-item p {
        font-size: 15px;
    }

    .page-resources__grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-resources__grid-item {
        padding: 25px;
    }

    .page-resources__grid-title {
        font-size: 19px;
        margin-bottom: 10px;
    }

    .page-resources__list li {
        padding: 12px 15px;
        margin-bottom: 8px;
    }

    .page-resources__faq-list {
        margin-top: 30px;
    }

    .page-resources__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }

    .page-resources__faq-question h3 {
        font-size: 16px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }

    .page-resources__faq-toggle {
        margin-left: 10px;
        width: 28px;
        height: 28px;
        font-size: 24px;
    }

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

    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 15px !important;
    }

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

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 28px;
    }

    .page-resources__hero-description {
        font-size: 14px;
    }

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

    .page-resources__cta-button--large {
        font-size: 18px;
        padding: 12px 30px;
    }

    .page-resources__section-title {
        font-size: 24px;
    }

    .page-resources__grid-title {
        font-size: 18px;
    }

    .page-resources__text-block, .page-resources__list li, .page-resources__grid-item p {
        font-size: 14px;
    }

    .page-resources__faq-question h3 {
        font-size: 15px;
    }

    .page-resources__faq-toggle {
        font-size: 22px;
        width: 26px;
        height: 26px;
    }
}