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

.page-resources {
    padding-top: 120px; /* For fixed header desktop */
    color: var(--text-dark);
    background: var(--bg-light);
}

@media (max-width: 768px) {
    .page-resources {
        padding-top: 100px; /* For fixed header mobile */
    }
}

/* Hero Banner Section */
.page-resources__hero-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ffc107 100%); /* Lighter gold gradient */
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: var(--text-light);
}

.page-resources__hero-content {
    max-width: 900px;
    z-index: 2;
    margin-bottom: 40px;
}

.page-resources__hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.page-resources__hero-description {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-dark);
}

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

.page-resources__cta-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__cta-button--primary {
    background: var(--secondary-color);
    color: var(--text-light);
    border: 2px solid var(--secondary-color);
}

.page-resources__cta-button--primary:hover {
    background: darken(var(--secondary-color), 10%);
    border-color: darken(var(--secondary-color), 10%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-resources__cta-button--secondary {
    background: var(--bg-white);
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

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

.page-resources__hero-image-wrapper {
    width: 100%;
    max-width: 1000px;
    margin-top: 40px;
    z-index: 1;
}

.page-resources__hero-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* General Section Styling */
.page-resources__section {
    padding: 80px 20px;
    background: var(--bg-light);
}

.page-resources__section:nth-of-type(odd) {
    background: var(--bg-white);
}

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

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

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

.page-resources__section-intro {
    font-size: 18px;
    color: var(--text-dark);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* Card Grid Styling */
.page-resources__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-resources__card {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-resources__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.page-resources__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.page-resources__card-link {
    text-decoration: none;
    color: inherit;
}

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

.page-resources__card-description {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-resources__button {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    border: 2px solid var(--primary-color);
}

.page-resources__button:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Review Grid Styling */
.page-resources__review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-resources__review-card {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-resources__review-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.page-resources__review-logo {
    width: 150px; /* Larger logo for review cards */
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-resources__review-name {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-resources__review-link {
    text-decoration: none;
    color: inherit;
}

.page-resources__review-link:hover {
    text-decoration: underline;
}

.page-resources__review-summary {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-resources__view-all {
    text-align: center;
}

.page-resources__button--large {
    padding: 15px 40px;
    font-size: 18px;
    border-radius: 50px;
}

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

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

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--bg-white);
    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(--secondary-color);
}

.page-resources__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: var(--secondary-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: 28px;
    height: 28px;
}

.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 20px;
    opacity: 0;
    background: #f9f9f9;
    border-top: none;
    border-radius: 0 0 5px 5px;
}

.page-resources__faq-answer p {
    padding-bottom: 20px;
    margin: 0;
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.6;
}

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

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

/* 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: 32px;
    }
    .page-resources__section-intro {
        font-size: 16px;
    }
    .page-resources__card-title {
        font-size: 20px;
    }
    .page-resources__review-name {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-banner {
        flex-direction: column;
        padding: 40px 15px;
    }
    .page-resources__hero-content {
        margin-bottom: 30px;
    }
    .page-resources__hero-title {
        font-size: 32px;
    }
    .page-resources__hero-description {
        font-size: 16px;
    }
    .page-resources__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__cta-button {
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
    }
    .page-resources__hero-image-wrapper {
        margin-top: 30px;
    }
    .page-resources__section {
        padding: 60px 15px;
    }
    .page-resources__section-title {
        font-size: 28px;
    }
    .page-resources__section-intro {
        font-size: 15px;
        margin-bottom: 30px;
    }
    .page-resources__card-grid {
        grid-template-columns: 1fr;
    }
    .page-resources__card-image {
        height: 180px;
    }
    .page-resources__card-title {
        font-size: 18px;
    }
    .page-resources__card-description {
        font-size: 14px;
    }
    .page-resources__review-grid {
        grid-template-columns: 1fr;
    }
    .page-resources__review-logo {
        width: 120px;
    }
    .page-resources__review-name {
        font-size: 20px;
    }
    .page-resources__review-summary {
        font-size: 14px;
    }
    .page-resources__button--large {
        width: 100%;
        font-size: 16px;
        padding: 12px 25px;
    }
    .page-resources__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-resources__faq-question h3 {
        font-size: 16px;
        width: calc(100% - 40px);
    }
    .page-resources__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-resources__faq-answer {
        padding: 0 15px;
    }
    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 15px !important;
    }
    .page-resources__faq-answer p {
        padding-bottom: 15px;
        font-size: 15px;
    }
}