/* style/resources.css */

/* Biến CSS cho màu sắc */
:root {
    --page-resources-primary-color: #0A2239;
    --page-resources-secondary-color: #E0B400;
    --page-resources-text-light: #F8F8F8;
    --page-resources-text-dark: #333333;
    --page-resources-bg-light: #FFFFFF;
    --page-resources-bg-dark: #0A2239;
    --page-resources-accent-color: #f5ddc6; /* Complementary to primary */
    --page-resources-hover-color: #c9a300; /* Slightly darker secondary for hover */
}

.page-resources {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--page-resources-text-dark);
    background-color: var(--page-resources-bg-light);
}

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

/* Hero Section */
.page-resources__hero-section {
    background: linear-gradient(135deg, var(--page-resources-bg-dark), #1A3E5C);
    color: var(--page-resources-text-light);
    padding: 100px 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-resources__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: var(--page-resources-secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

/* General Section Styling */
.page-resources__section-title {
    font-size: 2.2em;
    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__section-subtitle {
    font-size: 1.1em;
    text-align: center;
    color: var(--page-resources-text-dark);
    margin-bottom: 50px;
}

.page-resources__intro-section, .page-resources__categories-section, .page-resources__articles-list-section, .page-resources__why-dola789-section {
    padding: 60px 0;
}

.page-resources__intro-section p {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-resources__image--full-width {
    width: 100%;
    height: auto;
    margin: 40px 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Grid Layouts */
.page-resources__grid {
    display: grid;
    gap: 30px;
}

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

/* Category Cards */
.page-resources__category-card {
    background-color: var(--page-resources-bg-light);
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-resources__card-title {
    font-size: 1.4em;
    color: var(--page-resources-primary-color);
    margin-bottom: 15px;
}

.page-resources__card-description {
    font-size: 1em;
    color: var(--page-resources-text-dark);
}

/* Article List */
.page-resources__articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.page-resources__article-card {
    background-color: var(--page-resources-bg-light);
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

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

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

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

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

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

.page-resources__article-meta {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 15px;
}

.page-resources__article-summary {
    font-size: 1em;
    color: var(--page-resources-text-dark);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Why Dola789 Section */
.page-resources__why-dola789-section {
    background-color: #f9f9f9;
}

.page-resources__why-dola789-section p {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-resources__list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-resources__list li {
    background-color: var(--page-resources-bg-light);
    border-left: 5px solid var(--page-resources-secondary-color);
    padding: 15px 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 5px;
    font-size: 1.05em;
    color: var(--page-resources-text-dark);
}

.page-resources__list li strong {
    color: var(--page-resources-primary-color);
}

/* Call to Action Section */
.page-resources__cta-section {
    background: linear-gradient(45deg, var(--page-resources-primary-color), #2A4F73);
    color: var(--page-resources-text-light);
    padding: 80px 0;
    text-align: center;
}

.page-resources__cta-content {
    max-width: 900px;
}

.page-resources__cta-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--page-resources-secondary-color);
}

.page-resources__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    line-height: 1.7;
}

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

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

.page-resources__btn--primary:hover {
    background-color: var(--page-resources-hover-color);
    border-color: var(--page-resources-hover-color);
    transform: translateY(-2px);
}

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

.page-resources__btn--secondary:hover {
    background-color: #1A3E5C;
    border-color: #1A3E5C;
    transform: translateY(-2px);
}

.page-resources__btn--large {
    padding: 15px 35px;
    font-size: 1.2em;
}

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

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

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

    .page-resources__articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

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

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

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

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

    .page-resources__intro-section, .page-resources__categories-section, .page-resources__articles-list-section, .page-resources__why-dola789-section, .page-resources__cta-section {
        padding: 40px 0;
    }

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

    .page-resources__article-title {
        font-size: 1.2em;
    }

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

    .page-resources__btn--large {
        padding: 12px 25px;
        font-size: 1.05em;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-section {
        padding: 60px 0;
    }

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

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

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

    .page-resources__grid--3-cols {
        grid-template-columns: 1fr;
    }

    .page-resources__articles-grid {
        grid-template-columns: 1fr;
    }

    .page-resources__article-content {
        padding: 20px;
    }

    .page-resources__article-title {
        font-size: 1.1em;
    }

    .page-resources__cta-title {
        font-size: 1.6em;
    }

    .page-resources__btn {
        width: 100%;
        box-sizing: border-box;
    }
}