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

.page-resources__hero-section {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 450px; /* Minimum height for hero section */
}

.page-resources__hero-container {
    max-width: 900px;
    margin: 0 auto;
    z-index: 2;
    position: relative;
}

.page-resources__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: #ffc107; /* Auxiliary color for emphasis */
}

.page-resources__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    max-width: 800px;
    opacity: 0.9;
}

.page-resources__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: 1;
}

.page-resources__cta-button {
    display: inline-block;
    background-color: #ffc107; /* Auxiliary color */
    color: #007bff; /* Main color for text contrast */
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 2;
    position: relative;
}

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

.page-resources__articles-section {
    padding: 60px 20px;
    background-color: #f8f9fa;
}

.page-resources__container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-resources__section-title {
    font-size: 2.5em;
    color: #007bff; /* Main color */
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

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

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

.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-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(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-resources__article-image {
    width: 100%;
    height: 250px;
    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.6em;
    color: #007bff; /* Main color */
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-resources__article-title a {
    color: #007bff; /* Main color */
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

.page-resources__read-more-button {
    display: inline-block;
    background-color: #ffc107; /* Auxiliary color */
    color: #007bff; /* Main color for text contrast */
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95em;
    transition: background-color 0.3s ease;
    align-self: flex-start; /* Align button to start of flex container */
}

.page-resources__read-more-button:hover {
    background-color: #e0a800;
}

.page-resources__pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    gap: 10px;
}

.page-resources__pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #007bff; /* Main color */
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-resources__pagination-link:hover {
    background-color: #007bff;
    color: #ffffff;
}

.page-resources__pagination-link--active {
    background-color: #007bff;
    color: #ffffff;
    pointer-events: none;
}

.page-resources__cta-section {
    background-color: #007bff; /* Main color */
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
}

.page-resources__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #ffc107; /* Auxiliary color */
}

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

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

.page-resources__cta-button--primary {
    background-color: #ffc107; /* Auxiliary color */
    color: #007bff; /* Main color for text contrast */
    padding: 18px 35px;
    font-size: 1.2em;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

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

.page-resources__cta-button--secondary {
    background-color: transparent;
    border: 2px solid #ffc107; /* Auxiliary color */
    color: #ffc107; /* Auxiliary color */
    padding: 18px 35px;
    font-size: 1.2em;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.page-resources__cta-button--secondary:hover {
    background-color: #ffc107;
    color: #007bff; /* Main color for text contrast */
    transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }
    .page-resources__hero-description {
        font-size: 1.1em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__article-title {
        font-size: 1.4em;
    }
    .page-resources__cta-title {
        font-size: 2.4em;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-section {
        padding: 60px 20px;
    }
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-resources__articles-section {
        padding: 40px 15px;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__section-description {
        font-size: 0.95em;
    }
    .page-resources__articles-grid {
        grid-template-columns: 1fr;
    }
    .page-resources__article-image {
        height: 200px; /* Ensure images are not too small */
        max-width: 100%; /* Prevent overflow */
        height: auto; /* Maintain aspect ratio */
    }
    .page-resources__article-content {
        padding: 20px;
    }
    .page-resources__article-title {
        font-size: 1.3em;
    }
    .page-resources__article-summary {
        font-size: 0.9em;
    }
    .page-resources__read-more-button {
        padding: 8px 15px;
        font-size: 0.9em;
    }
    .page-resources__cta-section {
        padding: 60px 20px;
    }
    .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--primary,
    .page-resources__cta-button--secondary {
        width: 100%;
        max-width: 300px;
        padding: 15px 25px;
        font-size: 1.1em;
    }
    /* Ensure all images within .page-resources are responsive and don't cause overflow */
    .page-resources img {
        max-width: 100%;
        height: auto;
    }
}

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