/* style/resources.css */

/* Base styles for the page content wrapper */
.page-resources {
    font-family: 'Arial', sans-serif;
    color: #f0f0f0; /* Light text for dark background */
    background-color: #1a1a2e; /* Dark background, slightly lighter than main color for depth */
    line-height: 1.6;
    padding-bottom: 50px; /* Space for potential fixed footer/CTA */
}

/* Container for consistent content width */
.page-resources__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.page-resources__hero {
    background: linear-gradient(135deg, #0A2463, #001a4d); /* Darker gradient for hero */
    color: #ffffff;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFD700; /* Accent color for main title */
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources__hero-subtitle {
    font-size: 1.4em;
    max-width: 800px;
    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: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.page-resources__btn--primary {
    background-color: #FFD700; /* Accent color */
    color: #0A2463; /* Main color for text */
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-resources__btn--primary:hover {
    background-color: #e6c200;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.page-resources__btn--secondary {
    background-color: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.page-resources__btn--secondary:hover {
    background-color: #FFD700;
    color: #0A2463;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.page-resources__btn--outline {
    background-color: transparent;
    color: #FFD700;
    border: 1px solid #FFD700;
    padding: 10px 20px;
    font-size: 0.95em;
    border-radius: 5px;
}

.page-resources__btn--outline:hover {
    background-color: #FFD700;
    color: #0A2463;
    transform: translateY(-2px);
}

.page-resources__btn--small {
    padding: 10px 25px;
    font-size: 1em;
    border-radius: 5px;
    margin-top: 20px;
}

/* General Section Styles */
.page-resources__section-title {
    font-size: 2.8em;
    color: #FFD700;
    text-align: center;
    margin-bottom: 30px;
    padding-top: 60px;
    font-weight: bold;
}

.page-resources__section-subtitle {
    font-size: 1.2em;
    color: #c0c0c0;
    text-align: center;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Intro Section */
.page-resources__intro {
    padding: 60px 0;
    background-color: #0A2463; /* Main brand color */
    color: #f0f0f0;
    text-align: center;
}

.page-resources__intro p {
    font-size: 1.1em;
    max-width: 900px;
    margin: 20px auto;
}

/* Content Sections */
.page-resources__content-section {
    padding: 80px 0;
    background-color: #1a1a2e; /* Slightly darker background for contrast */
}

.page-resources__category {
    background-color: #0A2463;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 60px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-left: 5px solid #FFD700;
}

.page-resources__category-title {
    font-size: 2.2em;
    color: #FFD700;
    margin-bottom: 20px;
    text-align: left;
    font-weight: bold;
}

.page-resources__category p {
    font-size: 1.05em;
    margin-bottom: 15px;
    color: #e0e0e0;
}

/* Image styles */
.page-resources__image-wrapper {
    margin: 30px 0;
    text-align: center;
}

.page-resources__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-resources__image:hover {
    transform: scale(1.02);
}

/* Detail Pages Section */
.page-resources__detail-pages {
    padding: 80px 0;
    background-color: #001a4d; /* Even darker blue */
}

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

.page-resources__article-card {
    background-color: #0A2463;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources__article-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #FFD700;
    font-weight: bold;
}

.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-description {
    font-size: 0.95em;
    color: #e0e0e0;
    margin-bottom: 20px;
    flex-grow: 1; /* Ensures description takes available space */
}

/* Bottom CTA Section */
.page-resources__cta-bottom {
    background: linear-gradient(45deg, #0A2463, #001a4d);
    padding: 80px 0;
    text-align: center;
    color: #ffffff;
}

.page-resources__cta-text {
    font-size: 1.3em;
    max-width: 800px;
    margin: 20px auto 40px auto;
    line-height: 1.7;
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }
    .page-resources__hero-subtitle {
        font-size: 1.2em;
    }
    .page-resources__section-title {
        font-size: 2.2em;
    }
    .page-resources__category-title {
        font-size: 1.8em;
    }
    .page-resources__articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-resources__hero {
        padding: 80px 0 60px 0;
    }
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-subtitle {
        font-size: 1.1em;
    }
    .page-resources__hero-actions,
    .page-resources__cta-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__btn {
        width: 80%;
        margin: 0 auto;
    }
    .page-resources__section-title {
        font-size: 1.8em;
        padding-top: 40px;
    }
    .page-resources__section-subtitle,
    .page-resources__cta-text {
        font-size: 1em;
    }
    .page-resources__category {
        padding: 30px;
        margin-bottom: 40px;
    }
    .page-resources__category-title {
        font-size: 1.6em;
    }
    .page-resources__article-card {
        padding: 25px;
    }
    .page-resources__article-title {
        font-size: 1.3em;
    }
}

@media (max-width: 480px) {
    .page-resources__container {
        padding: 0 15px;
    }
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__hero-subtitle {
        font-size: 0.95em;
    }
    .page-resources__btn {
        width: 90%;
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-resources__section-title {
        font-size: 1.5em;
        margin-bottom: 20px;
    }
    .page-resources__category {
        padding: 25px;
        margin-bottom: 30px;
    }
    .page-resources__category-title {
        font-size: 1.4em;
    }
    .page-resources__articles-grid {
        grid-template-columns: 1fr;
    }
}