/* style/resources.css */

/* Base styles for the resources page */
.page-resources {
    font-family: 'Arial', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f8f8;
}

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

.page-resources__section {
    padding: 60px 0;
}

.page-resources__section:nth-of-type(odd) {
    background-color: #ffffff;
}

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

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

/* Hero Section */
.page-resources__hero {
    background: linear-gradient(135deg, #003366, #1a4a7a);
    color: #ffffff;
    padding: 100px 0;
    text-align: center;
}

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFCC00; /* Contrast with dark blue background */
}

.page-resources__hero-subtitle {
    font-size: 1.3em;
    max-width: 900px;
    margin: 0 auto 40px auto;
    line-height: 1.8;
}

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

/* Buttons */
.page-resources__btn {
    display: inline-block;
    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;
    white-space: nowrap;
}

.page-resources__btn--primary {
    background-color: #FFCC00;
    color: #003366;
    border: 2px solid #FFCC00;
}

.page-resources__btn--primary:hover {
    background-color: #e6b800;
    transform: translateY(-2px);
}

.page-resources__btn--secondary {
    background-color: transparent;
    color: #FFCC00;
    border: 2px solid #FFCC00;
}

.page-resources__btn--secondary:hover {
    background-color: #FFCC00;
    color: #003366;
    transform: translateY(-2px);
}

.page-resources__btn--accent {
    background-color: #FFCC00;
    color: #003366;
    border: 1px solid #FFCC00;
    padding: 8px 15px;
    font-size: 0.9em;
}

.page-resources__btn--accent:hover {
    background-color: #e6b800;
    color: #003366;
}

.page-resources__btn--small {
    padding: 8px 15px;
    font-size: 0.95em;
}

.page-resources__btn--large {
    padding: 18px 35px;
    font-size: 1.2em;
    background-color: #FFCC00;
    color: #003366;
    border: 2px solid #FFCC00;
}

.page-resources__btn--large:hover {
    background-color: #e6b800;
    transform: translateY(-3px);
}

/* About Section - Features Grid */
.page-resources__about {
    background-color: #f0f4f8;
}

.page-resources__grid {
    display: grid;
    gap: 30px;
}

.page-resources__grid--2-cols {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-resources__feature-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.page-resources__feature-item:hover {
    transform: translateY(-5px);
}

.page-resources__feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

.page-resources__feature-title {
    font-size: 1.5em;
    color: #003366;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-resources__feature-description {
    color: #666;
    font-size: 1em;
}

/* Articles Grid */
.page-resources__articles {
    background-color: #ffffff;
}

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

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

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

.page-resources__article-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

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

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

.page-resources__article-title a {
    color: #003366;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

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

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

.page-resources__article-description .page-resources__link--inline {
    color: #003366;
    text-decoration: underline;
    font-weight: bold;
}

.page-resources__article-description .page-resources__link--inline:hover {
    color: #FFCC00;
}

.page-resources__article-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto; /* Push buttons to the bottom */
}

/* Call to Action Bottom */
.page-resources__cta-bottom {
    background: linear-gradient(45deg, #003366, #0a4d8c);
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
}

.page-resources__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFCC00; /* Contrast with dark blue background */
}

.page-resources__cta-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.7;
}

.page-resources__cta-description .page-resources__link--inline {
    color: #FFCC00;
    text-decoration: underline;
    font-weight: bold;
}

.page-resources__cta-description .page-resources__link--inline:hover {
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__cta-title {
        font-size: 2.2em;
    }
    .page-resources__grid--2-cols {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-resources__hero {
        padding: 80px 0;
    }
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-subtitle {
        font-size: 1.1em;
    }
    .page-resources__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__btn {
        width: 80%;
        margin: 0 auto;
    }
    .page-resources__section {
        padding: 40px 0;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__section-description {
        font-size: 1em;
    }
    .page-resources__article-grid {
        grid-template-columns: 1fr;
    }
    .page-resources__article-content {
        padding: 20px;
    }
    .page-resources__article-title {
        font-size: 1.2em;
    }
    .page-resources__cta-bottom {
        padding: 60px 0;
    }
    .page-resources__cta-title {
        font-size: 1.8em;
    }
    .page-resources__cta-description {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__btn {
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-resources__btn--large {
        padding: 15px 25px;
        font-size: 1.1em;
    }
    .page-resources__article-actions {
        flex-direction: column;
        gap: 8px;
    }
    .page-resources__btn--small {
        width: 100%;
    }
}