/* style/resources.css */

/* Biến CSS */
:root {
    --page-resources-primary-color: #0A2239;
    --page-resources-secondary-color: #FFD700;
    --page-resources-text-light: #F5F5F5;
    --page-resources-text-dark: #333333;
    --page-resources-background-dark: #0A2239;
    --page-resources-background-light: #FFFFFF;
    --page-resources-accent-gold-hover: #E0B300;
    --page-resources-card-bg: #1A3A53;
    --page-resources-border-color: #335C80;
}

.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__hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    background: var(--page-resources-background-dark);
    color: var(--page-resources-text-light);
    padding: 60px 5%;
    gap: 30px;
}

.page-resources__hero-content {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

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

.page-resources__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
}

.page-resources__hero-button {
    display: inline-block;
    background-color: var(--page-resources-secondary-color);
    color: var(--page-resources-primary-color);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-resources__hero-button:hover {
    background-color: var(--page-resources-accent-gold-hover);
    transform: translateY(-3px);
}

.page-resources__hero-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

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

.page-resources__section {
    padding: 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

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

.page-resources__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--page-resources-secondary-color);
    border-radius: 2px;
}

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

.page-resources__article-list {
    background-color: #f8f8f8;
    border-top: 1px solid #eee;
}

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

.page-resources__article-card {
    background-color: var(--page-resources-background-light);
    border-radius: 12px;
    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(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-resources__article-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--page-resources-border-color);
}

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

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

.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-summary {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-resources__article-button {
    display: inline-block;
    background-color: var(--page-resources-primary-color);
    color: var(--page-resources-text-light);
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    align-self: flex-start;
    transition: background-color 0.3s ease;
}

.page-resources__article-button:hover {
    background-color: #071726;
}

.page-resources__cta {
    background: linear-gradient(135deg, var(--page-resources-primary-color), #1A3A53);
    color: var(--page-resources-text-light);
    text-align: center;
    padding: 80px 5%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    border-radius: 15px;
    margin: 40px auto;
}

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

.page-resources__cta-title {
    font-size: 2.8em;
    color: var(--page-resources-secondary-color);
    margin-bottom: 25px;
    line-height: 1.2;
}

.page-resources__cta-description {
    font-size: 1.2em;
    margin-bottom: 35px;
}

.page-resources__cta-button {
    display: inline-block;
    background-color: var(--page-resources-secondary-color);
    color: var(--page-resources-primary-color);
    padding: 18px 35px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    margin: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-resources__cta-button:hover {
    background-color: var(--page-resources-accent-gold-hover);
    transform: translateY(-5px);
}

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

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

.page-resources__cta-image {
    max-width: 400px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-resources__conclusion {
    text-align: center;
    padding-bottom: 80px;
}

.page-resources__conclusion-button {
    display: inline-block;
    background-color: var(--page-resources-primary-color);
    color: var(--page-resources-text-light);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 30px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-resources__conclusion-button:hover {
    background-color: #071726;
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-resources__hero {
        flex-direction: column;
        text-align: center;
    }

    .page-resources__hero-content, .page-resources__hero-image {
        max-width: 100%;
    }

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

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

    .page-resources__cta {
        flex-direction: column;
        padding: 60px 5%;
    }

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

@media (max-width: 768px) {
    .page-resources__hero {
        padding: 40px 5%;
    }

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

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

    .page-resources__section {
        padding: 40px 5%;
    }

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

    .page-resources__paragraph {
        font-size: 0.95em;
    }

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

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

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

    .page-resources__cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }
}

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

    .page-resources__hero-button {
        padding: 12px 25px;
        font-size: 0.95em;
    }

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

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

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