/* style/resources.css */

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

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

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

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

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

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

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

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

.page-resources__hero-description {
    font-size: 1.3em;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: #e0e0e0;
}

/* 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.2s ease;
    cursor: pointer;
    border: none;
}

.page-resources__btn--primary {
    background-color: #FFCC00;
    color: #003366;
    margin: 10px;
}

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

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

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

/* Why Resources Section */
.page-resources__why-resources {
    text-align: left;
}

.page-resources__why-resources .page-resources__section-title {
    text-align: center;
    margin-bottom: 40px;
}

.page-resources__content-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.page-resources__text-content {
    flex: 2;
    min-width: 300px;
}

.page-resources__text-content p {
    margin-bottom: 15px;
    color: #333;
    text-align: justify;
}

.page-resources__text-content ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: #333;
    text-align: left;
}

.page-resources__text-content ul li {
    margin-bottom: 8px;
    font-weight: 500;
}

.page-resources__text-content ul li strong {
    color: #003366;
}

.page-resources__image-wrapper {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-resources__img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Resource Categories Section */
.page-resources__resource-categories {
    background-color: #e9ecef;
}

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

.page-resources__category-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.page-resources__category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.page-resources__category-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.page-resources__category-title {
    font-size: 1.5em;
    color: #003366;
    margin-bottom: 15px;
}

.page-resources__category-description {
    font-size: 1em;
    color: #555;
}

/* Articles List Section */
.page-resources__articles-list {
    background-color: #f8f9fa;
}

.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: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources__article-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-resources__article-card h3 {
    padding: 20px 20px 10px;
    font-size: 1.3em;
    color: #003366;
}

.page-resources__article-card h3 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

.page-resources__article-description {
    padding: 0 20px 20px;
    font-size: 0.95em;
    color: #555;
    min-height: 100px; /* Ensure consistent height for descriptions */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-resources__article-card .page-resources__btn {
    margin: 0 20px 20px;
    width: calc(100% - 40px);
    text-align: center;
    box-sizing: border-box;
}

/* Call to Action Bottom Section */
.page-resources__cta-bottom {
    background: linear-gradient(135deg, #003366 0%, #001a33 100%);
    color: #ffffff;
    padding: 80px 0;
}

.page-resources__cta-bottom .page-resources__section-title {
    color: #FFCC00;
}

.page-resources__cta-bottom .page-resources__section-intro {
    color: #e0e0e0;
    margin-bottom: 50px;
}

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


/* Responsive Design */
@media (max-width: 992px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }

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

    .page-resources__content-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .page-resources__text-content,
    .page-resources__image-wrapper {
        min-width: unset;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-resources__hero {
        padding: 80px 0;
    }

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

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

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

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

    .page-resources__categories-grid,
    .page-resources__article-grid {
        grid-template-columns: 1fr;
    }

    .page-resources__cta-buttons {
        flex-direction: column;
    }

    .page-resources__btn {
        width: 80%;
        margin: 10px auto;
    }
}

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

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

    .page-resources__btn {
        padding: 12px 20px;
        font-size: 1em;
        width: 90%;
    }
}