/* style/resources.css */
.page-resources {
    padding-top: var(--header-offset, 120px); /* Ensures 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 {
    background-color: #000000;
    color: #FFFFFF;
    padding: 80px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

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

.page-resources__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FCBC45; /* Login button color for emphasis */
    line-height: 1.2;
}

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

.page-resources__hero-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin: 0 10px;
    min-width: 180px;
    text-align: center;
}

.page-resources__hero-button--register {
    background-color: #FFFFFF;
    color: #000000;
    border: 2px solid #FFFFFF;
}

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

.page-resources__hero-button--login {
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
}

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

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

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

.page-resources__featured-articles {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.page-resources__section-title {
    font-size: 2.5em;
    color: #000000;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.page-resources__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FCBC45;
    border-radius: 2px;
}

.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;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
}

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

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

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

.page-resources__article-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    line-height: 1.3;
}

.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-category {
    font-size: 0.9em;
    color: #666666;
    margin-bottom: 15px;
    font-weight: bold;
}

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

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

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

.page-resources__in-depth-content {
    max-width: 1000px;
    margin: 80px auto;
    padding: 0 20px;
}

.page-resources__subsection-title {
    font-size: 2em;
    color: #000000;
    margin-top: 50px;
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

.page-resources__subsection-title::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #FCBC45;
    font-size: 0.8em;
    top: 5px;
}

.page-resources__content-paragraph {
    font-size: 1.1em;
    color: #444444;
    margin-bottom: 25px;
    line-height: 1.7;
}

.page-resources__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px 0;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

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

.page-resources__cta-section {
    background-color: #000000;
    color: #FFFFFF;
    padding: 80px 20px;
    text-align: center;
    margin-top: 60px;
}

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

.page-resources__cta-button {
    display: inline-block;
    padding: 18px 35px;
    font-size: 1.3em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-resources__cta-button:hover {
    background-color: #E0A83D;
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-resources__hero-section {
        padding: 60px 15px;
    }

    .page-resources__hero-title {
        font-size: 2.5em;
    }

    .page-resources__hero-description {
        font-size: 1em;
    }

    .page-resources__hero-button {
        padding: 12px 25px;
        font-size: 1em;
        margin: 0 5px 15px;
        min-width: unset;
        width: 100%;
        max-width: 250px;
    }

    .page-resources__hero-section {
        flex-direction: column;
    }

    .page-resources__hero-image-wrapper {
        margin-top: 30px;
    }

    .page-resources__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .page-resources__articles-grid {
        grid-template-columns: 1fr;
    }

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

    .page-resources__article-title {
        font-size: 1.3em;
    }

    .page-resources__article-image {
        height: 180px;
    }

    .page-resources__in-depth-content {
        margin: 60px auto;
        padding: 0 15px;
    }

    .page-resources__subsection-title {
        font-size: 1.7em;
        margin-top: 40px;
    }

    .page-resources__content-paragraph {
        font-size: 0.95em;
    }

    .page-resources__content-image {
        margin: 30px 0;
    }

    .page-resources__cta-section {
        padding: 60px 15px;
    }

    .page-resources__cta-description {
        font-size: 1.1em;
        margin-bottom: 30px;
    }

    .page-resources__cta-button {
        padding: 15px 30px;
        font-size: 1.1em;
    }

    /* Ensure images do not overflow on mobile */
    .page-resources img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 2em;
    }

    .page-resources__section-title {
        font-size: 1.8em;
    }

    .page-resources__subsection-title {
        font-size: 1.5em;
    }

    .page-resources__hero-button {
        width: 100%;
        max-width: 280px;
    }
}