/* style/resources.css */

.page-resources {
    color: #333333; /* Dark text for light body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop */
}

.page-resources__hero-section {
    position: relative;
    overflow: hidden;
    color: #FFFFFF; /* Light text for hero section */
    background-color: #000000; /* Dark background for hero */
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 500px;
}

.page-resources__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6; /* Ensure text readability */
    z-index: 0;
}

.page-resources__hero-container {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.page-resources__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFFFF;
}

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

.page-resources__hero-button {
    display: inline-block;
    background-color: #FCBC45; /* Login color */
    color: #000000;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    font-size: 1.1em;
}

.page-resources__hero-button:hover {
    background-color: #e0a53b;
}

.page-resources__articles-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
}

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

.page-resources__section-subtitle {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 40px;
}

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

.page-resources__article-card {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.page-resources__article-thumbnail {
    width: 100%;
    height: 225px; /* Ensure minimum height */
    object-fit: cover;
    display: block;
}

.page-resources__article-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: calc(100% - 225px); /* Adjust based on thumbnail height */
}

.page-resources__article-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    font-weight: bold;
}

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

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

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

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

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

.page-resources__promo-cta {
    background-color: #000000; /* Main color */
    color: #FFFFFF;
    padding: 60px 20px;
    text-align: center;
    margin-top: 60px;
}

.page-resources__promo-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFFFF;
}

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

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

.page-resources__promo-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-resources__promo-button--register {
    background-color: #FFFFFF; /* Register color */
    color: #000000;
    border: 2px solid #FFFFFF;
}

.page-resources__promo-button--register:hover {
    background-color: transparent;
    color: #FFFFFF;
}

.page-resources__promo-button--login {
    background-color: #FCBC45; /* Login color */
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-resources__promo-button--login:hover {
    background-color: transparent;
    color: #FCBC45;
}

.page-resources__about-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.page-resources__about-content {
    flex: 1;
    min-width: 300px;
}

.page-resources__about-title {
    font-size: 2.2em;
    color: #000000;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-resources__about-text {
    font-size: 1em;
    color: #444444;
    margin-bottom: 15px;
}

.page-resources__about-button {
    display: inline-block;
    background-color: #000000;
    color: #FFFFFF;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

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

.page-resources__about-image {
    flex: 1;
    min-width: 300px;
    max-width: 600px; /* Constrain max width for image */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__promo-title {
        font-size: 2.5em;
    }
}

@media (max-width: 768px) {
    .page-resources {
        padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
    }
    .page-resources__hero-section {
        padding: 60px 15px;
        min-height: 400px;
    }
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__hero-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-resources__articles-section {
        padding: 15px;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__section-subtitle {
        font-size: 1em;
    }
    .page-resources__articles-grid {
        grid-template-columns: 1fr;
    }
    .page-resources__article-thumbnail {
        height: 200px; /* Adjust thumbnail height for mobile */
    }
    .page-resources__article-card {
        margin-bottom: 20px;
    }
    .page-resources__promo-cta {
        padding: 40px 15px;
    }
    .page-resources__promo-title {
        font-size: 2em;
    }
    .page-resources__promo-description {
        font-size: 1em;
    }
    .page-resources__promo-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__promo-button {
        width: 100%;
        max-width: 300px;
    }
    .page-resources__about-section {
        flex-direction: column;
        padding: 15px;
        margin: 40px auto;
    }
    .page-resources__about-image {
        max-width: 100%;
        width: 100%; /* Ensure mobile images don't cause overflow */
        height: auto;
    }

    /* Ensure all content area images are responsive and don't overflow */
    .page-resources img {
        max-width: 100%;
        height: auto;
    }
}

/* Ensure all content area images are not smaller than 200px (desktop) */
.page-resources__hero-image,
.page-resources__article-thumbnail,
.page-resources__about-image {
    min-width: 200px;
    min-height: 200px;
}

/* Override any potential small image sizes in content area */
.page-resources img {
    min-width: 200px; /* Global minimum for content images */
    min-height: 200px; /* Global minimum for content images */
    object-fit: cover; /* Ensure images fill their space without distortion */
}

@media (max-width: 768px) {
    .page-resources img {
        max-width: 100%;
        height: auto;
        min-width: unset; /* Allow images to shrink on mobile */
        min-height: unset; /* Allow images to shrink on mobile */
    }
    /* Specific override for card thumbnails to prevent them from being too small on mobile */
    .page-resources__article-thumbnail {
        min-width: 200px;
        min-height: 150px; /* Adjust height for better mobile display, still >200 area */
    }
}

.page-resources__article-card--animate {
    animation: fadeInSlideUp 0.6s ease-out forwards;
}

@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}