/* style/resources.css */

/* --- Base Styles --- */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Light body background #f4f4f4, so dark text */
    background-color: #f4f4f4;
}

.page-resources a {
    text-decoration: none;
    color: #FFD700; /* Brand color for links */
    transition: color 0.3s ease;
}

.page-resources a:hover {
    color: #1A202C; /* Auxiliary color on hover */
}

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

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

.page-resources__section {
    padding: 60px 0;
    margin-bottom: 20px;
}

.page-resources__section-title {
    font-size: 36px;
    font-weight: bold;
    color: #1A202C; /* Auxiliary color for main titles */
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-resources__section-intro {
    font-size: 18px;
    color: #555555;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-resources__sub-title {
    font-size: 24px;
    font-weight: 600;
    color: #1A202C;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* --- Hero Section --- */
.page-resources__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background: linear-gradient(135deg, #FFD700, #1A202C); /* Brand color gradient */
    color: #ffffff; /* White text on dark/brand background */
}

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

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

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

.page-resources__hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-resources__hero-image {
    width: 100%;
    margin-top: 30px; /* Space between text and image */
}

.page-resources__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-resources__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #FFD700; /* Primary brand color for CTA */
    color: #1A202C; /* Dark text on golden button for contrast */
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    border: 2px solid #FFD700;
}

.page-resources__cta-button:hover {
    background: #1A202C; /* Auxiliary color on hover */
    color: #FFD700; /* Golden text on dark button */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: #FFD700;
}

/* --- Grid Layouts --- */
.page-resources__grid {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

.page-resources__grid--3-cols {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-resources__grid--2-cols {
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

/* --- Card Styles --- */
.page-resources__card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333333; /* Dark text on light card */
}

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

.page-resources__card img {
    width: 100%;
    max-width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure it behaves as a block element */
}

.page-resources__card-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #1A202C; /* Auxiliary color for card titles */
    line-height: 1.3;
}

.page-resources__card-title a {
    color: #1A202C;
}

.page-resources__card-title a:hover {
    color: #FFD700;
}

.page-resources__card-description {
    font-size: 16px;
    color: #666666;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow description to take available space */
}

.page-resources__card-link {
    display: inline-block;
    padding: 10px 25px;
    background: #1A202C; /* Auxiliary color for card links */
    color: #FFD700; /* Golden text on dark button */
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 2px solid #1A202C;
}

.page-resources__card-link:hover {
    background: #FFD700; /* Primary brand color on hover */
    color: #1A202C; /* Dark text on golden button */
    border-color: #FFD700;
}

/* --- Dark Section Styles --- */
.page-resources__dark-section {
    background: #1A202C; /* Auxiliary color as background */
    color: #ffffff; /* White text on dark background */
}

.page-resources__dark-section .page-resources__section-title,
.page-resources__dark-section .page-resources__section-intro,
.page-resources__dark-section .page-resources__sub-title {
    color: #FFD700; /* Golden text for titles in dark sections */
}

.page-resources__dark-section a {
    color: #FFD700;
}

.page-resources__dark-section a:hover {
    color: #ffffff;
}

.page-resources__content-block {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 40px;
}

.page-resources__text-block {
    flex: 1;
    padding-right: 20px;
}

.page-resources__image-block {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-resources__image-block img {
    width: 100%;
    max-width: 600px; /* Constrain image size */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    display: block;
}

/* --- News Card Styles --- */
.page-resources__news-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: #333333;
}

.page-resources__news-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.page-resources__news-content {
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.page-resources__news-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #1A202C;
    line-height: 1.3;
}

.page-resources__news-title a {
    color: #1A202C;
}

.page-resources__news-title a:hover {
    color: #FFD700;
}

.page-resources__news-date {
    font-size: 14px;
    color: #999999;
    margin-bottom: 15px;
}

.page-resources__news-summary {
    font-size: 16px;
    color: #666666;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* --- FAQ Section --- */
.page-resources__section--faq {
    background-color: #f9f9f9; /* Slightly lighter background for FAQ */
    padding-top: 80px;
    padding-bottom: 80px;
}

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

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

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    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: #f5f5f5;
    border-color: #d0d0d0;
}