/* style/resources.css */

/* Biến CSS cho màu sắc */
:root {
    --page-resources-primary-color: #0A244A; /* Deep Blue */
    --page-resources-secondary-color: #FFD700; /* Gold */
    --page-resources-text-light: #FFFFFF; /* White for dark backgrounds */
    --page-resources-text-dark: #333333; /* Dark gray for light backgrounds */
    --page-resources-background-light: #F8F8F8;
    --page-resources-background-dark: #071C35; /* Slightly darker than primary */
    --page-resources-border-color: #E0E0E0;
}

/* Reset cơ bản và kiểu chữ chung trong phạm vi trang */
.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 strong {
    font-weight: bold;
    color: var(--page-resources-primary-color);
}

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

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

.page-resources__hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 36, 74, 0.9), rgba(255, 215, 0, 0.2));
    z-index: 1;
}

.page-resources__hero .page-resources__container {
    position: relative;
    z-index: 2;
}

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

.page-resources__hero-subtitle {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.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; /* Darker gold */
    border-color: #E6C200;
    color: var(--page-resources-primary-color);
}

.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: var(--page-resources-background-dark);
    border-color: var(--page-resources-background-dark);
    color: var(--page-resources-text-light);
}

/* General Section Styling */
.page-resources__section {
    padding: 60px 0;
    border-bottom: 1px solid var(--page-resources-border-color);
}

.page-resources__section:last-of-type {
    border-bottom: none;
}

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

.page-resources__section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--page-resources-secondary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.page-resources__sub-title {
    font-size: 1.5em;
    color: var(--page-resources-primary-color);
    margin-top: 30px;
    margin-bottom: 20px;
    text-align: left;
}

.page-resources__section-text {
    font-size: 1em;
    margin-bottom: 15px;
    color: var(--page-resources-text-dark);
    text-align: justify;
}

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

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

.page-resources__list, .page-resources__ordered-list {
    list-style-position: inside;
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--page-resources-text-dark);
}

.page-resources__list li, .page-resources__ordered-list li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.page-resources__list strong, .page-resources__ordered-list strong {
    color: var(--page-resources-primary-color);
}

/* Detail Pages Section */
.page-resources__detail-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources__detail-item {
    background-color: var(--page-resources-text-light);
    border: 1px solid var(--page-resources-border-color);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 5px 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__detail-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

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

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

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

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

/* FAQ Section */
.page-resources__faq-item {
    background-color: var(--page-resources-text-light);
    border: 1px solid var(--page-resources-border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.page-resources__faq-question {
    font-size: 1.1em;
    color: var(--page-resources-primary-color);
    margin-bottom: 10px;
}

.page-resources__faq-answer {
    font-size: 0.95em;
    color: var(--page-resources-text-dark);
}

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

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

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

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

    .page-resources__section {
        padding: 40px 0;
    }
}

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

    .page-resources__hero-subtitle {
        font-size: 0.9em;
    }

    .page-resources__btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }

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

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

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