/* style/resources.css */
.page-resources {
    color: #ffffff; /* Light text for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-resources__hero-section {
    background-color: #0A192F; /* Main brand color */
    padding: 80px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.page-resources__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.page-resources__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Overlay with dark background for text readability */
}

.page-resources__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    color: #ffffff;
}

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

.page-resources__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.page-resources__hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

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

.page-resources__button--primary {
    background-color: #FFD700; /* Auxiliary color */
    color: #0A192F; /* Dark text for auxiliary background */
    border: 2px solid #FFD700;
}

.page-resources__button--primary:hover {
    background-color: #e6c200;
    transform: translateY(-3px);
}

.page-resources__button--secondary {
    background-color: transparent;
    color: #FFD700; /* Auxiliary color */
    border: 2px solid #FFD700;
}

.page-resources__button--secondary:hover {
    background-color: #FFD700;
    color: #0A192F;
    transform: translateY(-3px);
}

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

.page-resources__section-title {
    font-size: 2.5em;
    color: #FFD700;
    text-align: center;
    margin-bottom: 40px;
    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: #FFD700;
    border-radius: 2px;
}

.page-resources__sub-title {
    font-size: 2em;
    color: #f0f0f0;
    margin-top: 50px;
    margin-bottom: 25px;
    border-left: 5px solid #FFD700;
    padding-left: 15px;
}

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

.page-resources__call-to-action {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 60px;
}

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

.page-resources__article-card {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for cards */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.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;
    color: #FFD700;
    margin-bottom: 15px;
    line-height: 1.3;
}

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

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

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

.page-resources__button--link {
    background-color: #0A192F;
    color: #FFD700;
    border: 1px solid #FFD700;
    padding: 10px 20px;
    font-size: 0.9em;
    border-radius: 5px;
    align-self: flex-start;
    min-width: unset;
}

.page-resources__button--link:hover {
    background-color: #FFD700;
    color: #0A192F;
}

.page-resources__image-full-width {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    margin: 60px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }
    .page-resources__hero-description {
        font-size: 1.2em;
    }
    .page-resources__section-title {
        font-size: 2.2em;
    }
    .page-resources__sub-title {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .page-resources {
        padding-top: var(--header-offset, 80px); /* Adjust for mobile header offset */
    }
    .page-resources__hero-section {
        padding: 60px 15px;
    }
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__button {
        width: 100%;
        max-width: 300px;
    }
    .page-resources__content-area {
        padding: 40px 15px;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__sub-title {
        font-size: 1.5em;
    }
    .page-resources__paragraph {
        font-size: 1em;
    }
    .page-resources__article-grid {
        grid-template-columns: 1fr;
    }
    .page-resources__article-image {
        height: 180px; /* Smaller height for mobile article images */
    }
    .page-resources__article-title {
        font-size: 1.3em;
    }
    /* Mobile content images must use max-width: 100%; height: auto; */
    .page-resources__content-area img {
        max-width: 100%;
        height: auto;
    }
    .page-resources__image-full-width {
        margin: 40px auto;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-section {
        padding: 40px 10px;
    }
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__hero-description {
        font-size: 0.9em;
    }
    .page-resources__content-area {
        padding: 30px 10px;
    }
    .page-resources__section-title {
        font-size: 1.5em;
    }
    .page-resources__sub-title {
        font-size: 1.3em;
    }
    .page-resources__paragraph {
        font-size: 0.9em;
    }
    .page-resources__article-card {
        padding: 15px;
    }
    .page-resources__article-title {
        font-size: 1.1em;
    }
    .page-resources__article-summary {
        font-size: 0.85em;
    }
}