/* style/resources.css */

/* Variables for colors and fonts */
:root {
    --page-resources-primary-color: #1A2B4C; /* Dark Blue */
    --page-resources-secondary-color: #FFD700; /* Gold */
    --page-resources-text-light: #FFFFFF;
    --page-resources-text-dark: #1A2B4C; /* Using primary color for dark text on light backgrounds */
    --page-resources-background-light: #F8F9FA; /* Light grey for general background */
    --page-resources-background-dark: #1A2B4C; /* Primary color for dark backgrounds */
    --page-resources-accent-text-color: #000000; /* Black for text on gold background */
    --page-resources-border-color: #e0e0e0;
    --page-resources-font-family: 'Arial', sans-serif;
}

.page-resources {
    font-family: var(--page-resources-font-family);
    line-height: 1.6;
    color: var(--page-resources-text-dark); /* Default text color for light backgrounds */
    background-color: var(--page-resources-background-light);
}

/* Hero Section */
.page-resources__hero {
    background: linear-gradient(135deg, var(--page-resources-background-dark), #3A506B); /* Gradient with a lighter shade of blue */
    padding: 80px 0;
    color: var(--page-resources-text-light);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--page-resources-secondary-color); /* Gold for main title */
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.page-resources__hero-subtitle {
    font-size: 1.4em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: rgba(255, 255, 255, 0.9);
}

.page-resources__hero-image-wrapper {
    margin-top: 40px;
}

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

/* General Section Styling */
.page-resources__section {
    padding: 60px 0;
    margin-bottom: 0;
}

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

.page-resources__section-title {
    font-size: 2.5em;
    color: var(--page-resources-primary-color);
    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: var(--page-resources-secondary-color);
    border-radius: 2px;
}

.page-resources__sub-title {
    font-size: 1.8em;
    color: var(--page-resources-primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    border-left: 5px solid var(--page-resources-secondary-color);
    padding-left: 15px;
}

.page-resources__description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: #555;
}

/* Why Us Section */
.page-resources__why-us {
    background-color: #e8eef6; /* A slightly lighter background to differentiate */
}

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

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

.page-resources__feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-resources__feature-title {
    font-size: 1.6em;
    color: var(--page-resources-secondary-color);
    margin-bottom: 15px;
}

.page-resources__feature-item p {
    color: #444;
}

.page-resources__section-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Articles List Section */
.page-resources__articles-list {
    background-color: var(--page-resources-text-light);
}

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

.page-resources__article-card {
    background-color: #f9f9f9;
    border: 1px solid var(--page-resources-border-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    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(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

.page-resources__article-title a {
    color: var(--page-resources-primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-resources__article-title a:hover {
    color: var(--page-resources-secondary-color);
}

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

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

.page-resources__btn--primary {
    background-color: var(--page-resources-secondary-color);
    color: var(--page-resources-accent-text-color); /* Black text on gold for high contrast */
    border: 2px solid var(--page-resources-secondary-color);
}

.page-resources__btn--primary:hover {
    background-color: #e6c200; /* Slightly darker gold */
    border-color: #e6c200;
}

.page-resources__btn--secondary {
    background-color: transparent;
    color: var(--page-resources-primary-color);
    border: 2px solid var(--page-resources-primary-color);
}

.page-resources__btn--secondary:hover {
    background-color: var(--page-resources-primary-color);
    color: var(--page-resources-text-light);
}

/* Deep Dive Section */
.page-resources__deep-dive {
    background-color: #f0f4f8; /* A subtle background for readability */
    padding-bottom: 80px;
}

.page-resources__deep-dive p {
    margin-bottom: 1.2em;
    color: #333;
}

/* Call to Action Section */
.page-resources__cta {
    background: linear-gradient(90deg, var(--page-resources-background-dark), #3A506B);
    color: var(--page-resources-text-light);
    text-align: center;
    padding: 80px 0;
}

.page-resources__cta .page-resources__section-title {
    color: var(--page-resources-secondary-color);
}
.page-resources__cta .page-resources__section-title::after {
    background-color: var(--page-resources-text-light);
}

.page-resources__cta .page-resources__description {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 50px;
}

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

.page-resources__cta-buttons .page-resources__btn--primary {
    background-color: var(--page-resources-secondary-color);
    color: var(--page-resources-accent-text-color);
    border-color: var(--page-resources-secondary-color);
}

.page-resources__cta-buttons .page-resources__btn--primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
}

.page-resources__cta-buttons .page-resources__btn--secondary {
    background-color: transparent;
    color: var(--page-resources-text-light);
    border: 2px solid var(--page-resources-text-light);
}

.page-resources__cta-buttons .page-resources__btn--secondary:hover {
    background-color: var(--page-resources-text-light);
    color: var(--page-resources-primary-color);
}

.page-resources__cta-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 60px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}


/* 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: 2em;
    }
    .page-resources__sub-title {
        font-size: 1.5em;
    }
    .page-resources__features-grid,
    .page-resources__articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-resources__hero {
        padding: 60px 0;
    }
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-subtitle {
        font-size: 1.1em;
    }
    .page-resources__section {
        padding: 40px 0;
    }
    .page-resources__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-resources__sub-title {
        font-size: 1.3em;
        margin-top: 30px;
    }
    .page-resources__articles-grid {
        grid-template-columns: 1fr;
    }
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__hero-subtitle {
        font-size: 1em;
    }
    .page-resources__section-title {
        font-size: 1.5em;
    }
    .page-resources__feature-title {
        font-size: 1.3em;
    }
    .page-resources__article-title {
        font-size: 1.2em;
    }
}