/* style/resources.css */

/* General styles for the resources page content */
.page-resources {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Dark grey for good contrast on light backgrounds */
    line-height: 1.6;
    background-color: #f8f9fa; /* Light background */
}

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

.page-resources__section-title {
    color: #007BFF; /* Primary blue */
    font-size: 2.5em;
    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; /* Secondary gold */
    border-radius: 2px;
}

.page-resources__sub-title {
    color: #0056b3; /* Darker primary blue for good contrast */
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 20px;
    border-left: 5px solid #FFD700;
    padding-left: 15px;
}

.page-resources__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #555555; /* Slightly lighter than main text for readability */
}

.page-resources__highlight {
    color: #007BFF; /* Primary blue for emphasis */
    font-weight: bold;
}

.page-resources__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    font-size: 1em;
    text-align: center;
}

.page-resources__btn--primary {
    background-color: #007BFF; /* Primary blue */
    color: #ffffff; /* White text on primary blue */
    border: 2px solid #007BFF;
}

.page-resources__btn--primary:hover {
    background-color: #0056b3; /* Darker blue on hover */
    border-color: #0056b3;
}

.page-resources__btn--secondary {
    background-color: #FFD700; /* Secondary gold */
    color: #333333; /* Dark text on secondary gold for contrast */
    border: 2px solid #FFD700;
}

.page-resources__btn--secondary:hover {
    background-color: #e6c200; /* Darker gold on hover */
    border-color: #e6c200;
}

/* Hero Section */
.page-resources__hero-section {
    background: linear-gradient(135deg, #007BFF, #0056b3); /* Primary blue gradient */
    color: #ffffff;
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
    gap: 40px;
}

.page-resources__hero-content {
    max-width: 600px;
}

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFD700; /* Gold for title on dark background */
    line-height: 1.2;
}

.page-resources__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #e0e0e0; /* Light grey for description */
}

.page-resources__hero-image-wrapper {
    flex-shrink: 0;
    max-width: 400px;
}

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

/* Introduction Section */
.page-resources__introduction {
    padding: 60px 0;
    background-color: #ffffff;
    text-align: center;
}

.page-resources__introduction .page-resources__paragraph {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__content-image {
    max-width: 100%;
    height: auto;
    margin: 30px auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Categories Section */
.page-resources__categories {
    padding: 60px 0;
    background-color: #f0f4f8; /* Light blue-grey background */
}

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

.page-resources__category-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, box-shadow 0.3s ease;
}

.page-resources__category-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

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

.page-resources__category-title {
    font-size: 1.5em;
    color: #007BFF; /* Primary blue */
    margin-bottom: 15px;
}

.page-resources__category-description {
    font-size: 1em;
    color: #666666; /* Medium grey */
}

/* Detail Pages List Section */
.page-resources__detail-pages {
    padding: 60px 0;
    background-color: #ffffff;
}

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

.page-resources__article-item {
    background-color: #fdfdfd;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
    border-top: 5px solid #007BFF; /* Primary blue accent */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-resources__article-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    min-height: 60px; /* Ensure consistent height for titles */
}

.page-resources__article-title a {
    color: #007BFF; /* Primary blue for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__article-title a:hover {
    color: #0056b3; /* Darker blue on hover */
    text-decoration: underline;
}

.page-resources__article-description {
    font-size: 0.95em;
    color: #777777;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow description to take available space */
}

/* CTA Section */
.page-resources__cta-section {
    background-color: #007BFF; /* Primary blue background */
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
}

.page-resources__cta-section .page-resources__section-title {
    color: #FFD700; /* Gold title on blue background */
}

.page-resources__cta-section .page-resources__section-title::after {
    background-color: #ffffff; /* White line on blue background */
}

.page-resources__cta-section .page-resources__paragraph {
    color: #e0e0e0;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

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

.page-resources__cta-buttons .page-resources__btn--primary {
    background-color: #FFD700; /* Gold button */
    color: #333333; /* Dark text on gold */
    border-color: #FFD700;
}

.page-resources__cta-buttons .page-resources__btn--primary:hover {
    background-color: #e6c200; /* Darker gold on hover */
    border-color: #e6c200;
}

.page-resources__cta-buttons .page-resources__btn--secondary {
    background-color: transparent;
    color: #ffffff; /* White text */
    border-color: #ffffff;
}

.page-resources__cta-buttons .page-resources__btn--secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

/* Further Exploration Section (for 1500+ words) */
.page-resources__further-exploration {
    padding: 60px 0;
    background-color: #ffffff;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }
    .page-resources__hero-description {
        font-size: 1.1em;
    }
    .page-resources__hero-section {
        flex-direction: column;
        padding: 60px 20px;
    }
    .page-resources__hero-image-wrapper {
        margin-top: 30px;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__sub-title {
        font-size: 1.5em;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__category-grid,
    .page-resources__article-list {
        grid-template-columns: 1fr;
    }
    .page-resources__cta-buttons {
        flex-direction: column;
    }
    .page-resources__btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__sub-title {
        font-size: 1.3em;
    }
    .page-resources__btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .page-resources__hero-section {
        padding: 40px 15px;
    }
}