/* style/resources.css */

/* Biến CSS */
:root {
    --page-resources-primary-color: #0A2239;
    --page-resources-secondary-color: #FFD700;
    --page-resources-accent-color: #FF4500; /* OrangeRed */
    --page-resources-text-dark: #333;
    --page-resources-text-light: #fff;
    --page-resources-background-light: #F5F5DC; /* Beige */
    --page-resources-card-bg: #ffffff;
    --page-resources-border-color: #e0e0e0;
}

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

.page-resources .highlight {
    color: var(--page-resources-secondary-color);
}

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

/* Hero Section */
.page-resources__hero {
    background-color: var(--page-resources-primary-color);
    color: var(--page-resources-text-light);
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    overflow: hidden;
    text-align: center; /* Default for mobile */
}

.page-resources__hero-content {
    flex: 1;
    max-width: 600px;
    margin: 0 auto;
    z-index: 1;
}

.page-resources__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--page-resources-text-light);
}

.page-resources__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.8);
}

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

.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;
    white-space: nowrap;
}

.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: #e6c200;
    border-color: #e6c200;
}

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

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

.page-resources__hero-image-wrapper {
    flex: 1;
    display: none; /* Hidden by default, shown on larger screens */
    justify-content: center;
    align-items: center;
}

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

/* Intro Text Section */
.page-resources__intro-text {
    padding: 60px 0;
    background-color: var(--page-resources-background-light);
}

.page-resources__intro-heading {
    font-size: 2.5em;
    color: var(--page-resources-primary-color);
    text-align: center;
    margin-bottom: 30px;
}

.page-resources__intro-paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    color: var(--page-resources-text-dark);
}

/* Articles Section */
.page-resources__articles {
    padding: 60px 0;
    background-color: #f8f8f8;
}

.page-resources__section-title {
    font-size: 2.8em;
    color: var(--page-resources-primary-color);
    text-align: center;
    margin-bottom: 20px;
}

.page-resources__section-description {
    font-size: 1.1em;
    color: var(--page-resources-text-dark);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

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

.page-resources__article-card h3 {
    padding: 20px 20px 10px;
    font-size: 1.5em;
    color: var(--page-resources-primary-color);
}

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

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

.page-resources__article-excerpt {
    padding: 0 20px 15px;
    font-size: 0.95em;
    color: var(--page-resources-text-dark);
    flex-grow: 1;
}

.page-resources__read-more-btn {
    display: inline-block;
    padding: 10px 20px;
    margin: 0 20px 20px;
    background-color: var(--page-resources-secondary-color);
    color: var(--page-resources-primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: 2px solid var(--page-resources-secondary-color);
}

.page-resources__read-more-btn:hover {
    background-color: #e6c200;
    border-color: #e6c200;
}

/* Call to Action Section */
.page-resources__cta {
    background-color: var(--page-resources-primary-color);
    color: var(--page-resources-text-light);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-resources__cta-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    z-index: 0;
}

.page-resources__cta .page-resources__container {
    position: relative;
    z-index: 1;
}

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

.page-resources__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

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

/* More Value Section */
.page-resources__more-value {
    padding: 60px 0;
    background-color: var(--page-resources-background-light);
}

.page-resources__more-value-title {
    font-size: 2.5em;
    color: var(--page-resources-primary-color);
    text-align: center;
    margin-bottom: 40px;
}

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

.page-resources__value-item {
    background-color: var(--page-resources-card-bg);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
}

.page-resources__value-heading {
    font-size: 1.8em;
    color: var(--page-resources-secondary-color);
    margin-bottom: 15px;
}

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

/* Responsive Design */
@media (min-width: 768px) {
    .page-resources__hero {
        text-align: left;
        padding: 100px 0;
    }

    .page-resources__hero-content {
        margin: 0;
    }

    .page-resources__hero-actions {
        justify-content: flex-start;
    }

    .page-resources__hero-image-wrapper {
        display: flex;
    }
}

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

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

    .page-resources__hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .page-resources__btn {
        width: 80%;
        max-width: 300px;
    }

    .page-resources__intro-heading,
    .page-resources__section-title,
    .page-resources__cta-title,
    .page-resources__more-value-title {
        font-size: 2em;
    }

    .page-resources__intro-paragraph,
    .page-resources__section-description,
    .page-resources__cta-description {
        font-size: 0.95em;
    }

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

@media (min-width: 1024px) {
    .page-resources__hero-title {
        font-size: 4em;
    }

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