/* style/resources.css */

:root {
    --primary-color: #007BFF; /* Deep Blue */
    --secondary-color: #FFC107; /* Amber/Gold */
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --background-light: #f4f7f6;
    --background-dark: #0a192f; /* Darker blue for contrast */
    --border-color: #e0e0e0;
}

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

.page-resources a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

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

.page-resources__section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.page-resources__section:last-of-type {
    border-bottom: none;
}

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

.page-resources__section-subtitle {
    font-size: 1.2em;
    color: var(--text-color-dark);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Banner */
.page-resources__hero-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--background-dark));
    color: var(--text-color-light);
    padding: 100px 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.page-resources__hero-content {
    max-width: 900px;
}

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

.page-resources__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    line-height: 1.5;
    color: #e0e0e0;
}

.page-resources__hero-description a {
    color: var(--secondary-color);
}

.page-resources__hero-description a:hover {
    color: var(--text-color-light);
}

.page-resources__cta-button {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--secondary-color);
    color: var(--text-color-light);
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-resources__cta-button:hover {
    background-color: #e6b000;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Content Grid */
.page-resources__content-grid {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.page-resources__content-grid.reverse-order {
    flex-direction: row-reverse;
}

.page-resources__text-content {
    flex: 1;
}

.page-resources__text-content h3 {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-resources__text-content p {
    margin-bottom: 15px;
    font-size: 1.05em;
    line-height: 1.7;
}

.page-resources__image-wrapper {
    flex: 1;
    min-width: 300px;
}

.page-resources__image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

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

.page-resources__card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    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(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-resources__card-image {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 20px;
}

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

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

.page-resources__card-title a:hover {
    color: var(--secondary-color);
}

.page-resources__card-description {
    font-size: 1em;
    color: var(--text-color-dark);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-resources__card-button {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--secondary-color);
    color: var(--text-color-light);
    border-radius: 5px;
    font-size: 0.95em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: auto;
}

.page-resources__card-button:hover {
    background-color: #e6b000;
    transform: translateY(-2px);
    text-decoration: none;
}

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

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background-color: #ffffff;
    cursor: pointer;
    font-size: 1.15em;
    font-weight: bold;
    color: var(--primary-color);
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f5f5f5;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.15em;
    color: var(--primary-color);
}

.faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
    line-height: 1;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 25px;
    background-color: #f9f9f9;
    color: var(--text-color-dark);
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Adjust as needed for content */
    padding: 25px;
}

.faq-answer p {
    margin: 0;
    font-size: 1em;
    line-height: 1.6;
}

/* Latest Articles */
.page-resources__article-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources__article-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources__article-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-resources__article-content {
    padding: 25px;
}

.page-resources__article-title {
    font-size: 1.3em;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-resources__article-title a {
    color: var(--primary-color);
}

.page-resources__article-title a:hover {
    color: var(--secondary-color);
}

.page-resources__article-excerpt {
    font-size: 0.95em;
    color: var(--text-color-dark);
    margin-bottom: 15px;
}

.page-resources__article-date {
    font-size: 0.85em;
    color: #777777;
    display: block;
}

.page-resources__view-all {
    text-align: center;
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__main-title {
        font-size: 3em;
    }
    .page-resources__hero-description {
        font-size: 1.15em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__content-grid {
        flex-direction: column;
    }
    .page-resources__content-grid.reverse-order {
        flex-direction: column;
    }
    .page-resources__image-wrapper {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-banner {
        padding: 80px 15px;
    }
    .page-resources__main-title {
        font-size: 2.5em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__section {
        padding: 40px 0;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__section-subtitle {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-resources__card-grid {
        grid-template-columns: 1fr;
    }
    .page-resources__card {
        padding: 25px;
    }
    .page-resources__card-title {
        font-size: 1.3em;
    }
    .faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .faq-question h3 {
        font-size: 1em;
    }
    .faq-toggle {
        font-size: 1.5em;
    }
    .faq-answer {
        padding: 15px 20px;
    }
    .page-resources__article-list {
        grid-template-columns: 1fr;
    }
    .page-resources__article-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .page-resources__main-title {
        font-size: 2em;
    }
    .page-resources__hero-description {
        font-size: 0.9em;
    }
    .page-resources__cta-button {
        padding: 12px 25px;
        font-size: 0.9em;
    }
    .page-resources__section-title {
        font-size: 1.5em;
    }
    .page-resources__card-title {
        font-size: 1.2em;
    }
    .page-resources__article-title {
        font-size: 1.1em;
    }
}