/* style/resources.css */

/* Biến CSS */
:root {
    --page-resources-primary-color: #003366;
    --page-resources-secondary-color: #FFCC00;
    --page-resources-text-light: #ffffff;
    --page-resources-text-dark: #333333;
    --page-resources-background-light: #f4f7f6;
    --page-resources-background-dark: #002244;
    --page-resources-accent-color: #ffcc99; /* Derived from complementary of primary */
    --page-resources-hover-color: #e6b800; /* Darker shade of secondary for hover */
    --page-resources-border-color: #004488;
}

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

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

.page-resources__hero-section {
    background: linear-gradient(135deg, var(--page-resources-primary-color), var(--page-resources-background-dark));
    color: var(--page-resources-text-light);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-resources__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

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

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

.page-resources__hero-title {
    font-size: 3.2em;
    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 30px;
    color: var(--page-resources-text-light);
}

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

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

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

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

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

.page-resources__button--small {
    padding: 8px 15px;
    font-size: 0.9em;
}

.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__featured-articles {
    padding: 60px 0;
    background-color: var(--page-resources-background-light);
}

.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-text-light);
    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 6px 20px rgba(0, 0, 0, 0.15);
}

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

.page-resources__article-card .page-resources__article-title {
    font-size: 1.4em;
    padding: 15px 20px 10px;
    color: var(--page-resources-primary-color);
    margin: 0;
}

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

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

.page-resources__article-summary {
    padding: 0 20px 15px;
    color: var(--page-resources-text-dark);
    flex-grow: 1;
}

.page-resources__article-card .page-resources__button {
    margin: 0 20px 20px;
    align-self: flex-start;
}

.page-resources__all-articles {
    padding: 60px 0;
    background-color: var(--page-resources-background-light);
}

.page-resources__article-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.page-resources__list-item {
    background-color: var(--page-resources-text-light);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: flex-start;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__list-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.page-resources__list-thumbnail {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 20px;
    flex-shrink: 0;
}

.page-resources__list-content {
    flex-grow: 1;
}

.page-resources__list-title {
    font-size: 1.3em;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--page-resources-primary-color);
}

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

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

.page-resources__list-summary {
    font-size: 0.95em;
    color: var(--page-resources-text-dark);
    margin-bottom: 15px;
}

.page-resources__cta-section {
    background-color: var(--page-resources-primary-color);
    color: var(--page-resources-text-light);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-resources__cta-section--bottom {
    background-color: var(--page-resources-background-dark);
}

.page-resources__cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.page-resources__cta-content {
    position: relative;
    z-index: 2;
}

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

.page-resources__cta-title {
    font-size: 2.8em;
    color: var(--page-resources-secondary-color);
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-resources__cta-description {
    font-size: 1.1em;
    max-width: 700px;
    margin: 0 auto 40px;
}

.page-resources__cta-buttons .page-resources__button {
    margin: 0 10px;
}

.page-resources__about-gi8 {
    padding: 60px 0;
    background-color: var(--page-resources-text-light);
}

.page-resources__about-content p {
    margin-bottom: 15px;
    font-size: 1.05em;
    color: var(--page-resources-text-dark);
}

.page-resources__faq-section {
    padding: 60px 0;
    background-color: var(--page-resources-background-light);
}

.page-resources__faq-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.page-resources__faq-item {
    background-color: var(--page-resources-text-light);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-resources__faq-question {
    width: 100%;
    background-color: var(--page-resources-primary-color);
    color: var(--page-resources-text-light);
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: bold;
    text-align: left;
    border: none;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-resources__faq-question:hover {
    background-color: var(--page-resources-border-color);
}

.page-resources__faq-question::after {
    content: '+';
    font-size: 1.5em;
    color: var(--page-resources-secondary-color);
    transition: transform 0.3s ease;
}

.page-resources__faq-question.active::after {
    content: '-';
    transform: rotate(180deg);
}

.page-resources__faq-answer {
    padding: 0 25px;
    background-color: #f9f9f9;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-resources__faq-answer.active {
    max-height: 200px; /* Adjust as needed for content length */
    padding: 15px 25px;
}

.page-resources__faq-answer p {
    margin: 0;
    color: var(--page-resources-text-dark);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-resources__hero-title {
        font-size: 2.5em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__article-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-resources__list-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .page-resources__list-thumbnail {
        margin-right: 0;
        margin-bottom: 15px;
        width: 100%;
        height: 180px;
    }
    .page-resources__cta-title {
        font-size: 2.2em;
    }
    .page-resources__cta-buttons .page-resources__button {
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-title {
        font-size: 2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__article-grid {
        grid-template-columns: 1fr;
    }
    .page-resources__article-card {
        margin-bottom: 20px;
    }
    .page-resources__cta-title {
        font-size: 1.8em;
    }
    .page-resources__cta-description {
        font-size: 0.95em;
    }
    .page-resources__cta-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .page-resources__cta-buttons .page-resources__button {
        width: 80%;
        max-width: 300px;
    }
    .page-resources__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-resources__faq-answer {
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__hero-description {
        font-size: 0.9em;
    }
    .page-resources__section-title {
        font-size: 1.5em;
    }
    .page-resources__button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .page-resources__article-card .page-resources__article-title {
        font-size: 1.2em;
    }
    .page-resources__list-title {
        font-size: 1.1em;
    }
    .page-resources__list-thumbnail {
        height: 150px;
    }
    .page-resources__cta-title {
        font-size: 1.6em;
    }
}