/* style/resources.css */
.page-resources {
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
    background-color: #FFFFFF;
    color: #333333;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-resources__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    background-color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

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

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

.page-resources__hero-description {
    font-size: 1.2em;
    color: #333333;
    margin-bottom: 30px;
}

.page-resources__hero-button {
    display: inline-block;
    background-color: #FCBC45;
    color: #000000;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-resources__hero-button:hover {
    background-color: #e0a53b;
    transform: translateY(-2px);
}

.page-resources__hero-image {
    width: 100%;
    max-width: 1200px;
    margin-top: 40px;
}

.page-resources__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-resources__introduction-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.page-resources__introduction-title {
    font-size: 2.2em;
    color: #000000;
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-resources__introduction-text {
    font-size: 1.1em;
    color: #333333;
    margin-bottom: 20px;
    text-align: justify;
}

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

.page-resources__section-title {
    font-size: 2.5em;
    color: #000000;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-resources__section-description {
    font-size: 1.1em;
    color: #555555;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__category-overview {
    margin-bottom: 60px;
}

.page-resources__category-title {
    font-size: 1.8em;
    color: #000000;
    margin-top: 40px;
    margin-bottom: 15px;
    border-bottom: 2px solid #FCBC45;
    padding-bottom: 10px;
    font-weight: bold;
}

.page-resources__category-text {
    font-size: 1em;
    color: #444444;
    margin-bottom: 20px;
    text-align: justify;
}

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

.page-resources__article-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-resources__card-image-wrapper {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    overflow: hidden;
}

.page-resources__card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

.page-resources__card-title {
    font-size: 1.5em;
    color: #000000;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-resources__card-title a {
    text-decoration: none;
    color: #000000;
    transition: color 0.3s ease;
}

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

.page-resources__card-summary {
    font-size: 0.95em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-resources__card-button {
    display: inline-block;
    background-color: #000000;
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.page-resources__card-button:hover {
    background-color: #333333;
}

.page-resources__section-description--bottom {
    margin-top: 40px;
    margin-bottom: 0;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.page-resources__cta-section {
    background-color: #000000;
    color: #FFFFFF;
    padding: 80px 20px;
    text-align: center;
    border-radius: 12px;
    margin: 40px auto;
    max-width: 1200px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-resources__cta-title {
    font-size: 2.8em;
    margin-bottom: 25px;
    color: #FCBC45;
    font-weight: bold;
}

.page-resources__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.page-resources__cta-button--register {
    background-color: #FFFFFF;
    color: #000000;
}

.page-resources__cta-button--register:hover {
    background-color: #e0e0e0;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.3);
}

.page-resources__cta-button--login {
    background-color: #FCBC45;
    color: #000000;
}

.page-resources__cta-button--login:hover {
    background-color: #e0a53b;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(252, 188, 69, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 2.4em;
    }
    .page-resources__section-title {
        font-size: 2.1em;
    }
    .page-resources__cta-title {
        font-size: 2.4em;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-section {
        flex-direction: column;
        padding: 40px 15px;
    }
    .page-resources__hero-content {
        margin-bottom: 30px;
    }
    .page-resources__hero-title {
        font-size: 2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__hero-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-resources__introduction-section,
    .page-resources__content-section,
    .page-resources__cta-section {
        padding: 30px 15px;
    }
    .page-resources__introduction-title {
        font-size: 1.8em;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__category-title {
        font-size: 1.5em;
    }
    .page-resources__articles-grid {
        grid-template-columns: 1fr;
    }
    .page-resources__article-card {
        margin-bottom: 20px;
    }
    .page-resources__card-image-wrapper {
        height: 200px;
    }
    .page-resources__card-title {
        font-size: 1.3em;
    }
    .page-resources__cta-title {
        font-size: 2em;
    }
    .page-resources__cta-description {
        font-size: 1em;
    }
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__cta-button {
        width: 100%;
        max-width: 300px;
        padding: 15px 25px;
        font-size: 1.05em;
    }
    .page-resources__hero-image img,
    .page-resources__article-card img {
        max-width: 100%;
        height: auto;
    }
    /* Ensure content area images are not too small */
    .page-resources img {
        min-width: 200px;
        min-height: 200px;
        object-fit: cover;
    }
    .page-resources__card-image {
        min-width: 200px;
        min-height: 200px;
    }
    .page-resources__hero-image img {
        min-width: 300px;
        min- /* roughly 16:9 for hero */
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__section-title {
        font-size: 1.6em;
    }
    .page-resources__introduction-title {
        font-size: 1.6em;
    }
    .page-resources__cta-title {
        font-size: 1.8em;
    }
}