/* =========================================
   NHÀ NỘI TRÚ ANPHONGSÔ
   MAIN STYLESHEET
   ========================================= */

/* 1. GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Roboto:wght@300;400;500;600;700&display=swap');


/* 2. ROOT VARIABLES */
:root {
    --navy: #142B49;
    --gold: #B99A62;
    --cream: #F6F3EC;
    --white: #FFFFFF;
    --text: #333333;
    --light-text: #666666;
    --border: #E8E2D6;
}


/* 3. RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text);
    background-color: var(--white);
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
}


/* 4. HEADER */
.header {
    min-height: 105px;
    padding: 12px 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}


/* 5. BRAND AND LOGO */
.brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 76px;
    height: 76px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.04);
}

.brand-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 23px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
}

.brand-text p {
    font-size: 11px;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-top: 4px;
}


/* 6. NAVIGATION */
#navigation {
    display: flex;
    align-items: center;
    gap: 25px;
}

#navigation a {
    color: var(--navy);
    font-size: 13px;
    font-weight: 600;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

#navigation a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--gold);
    transition: width 0.3s ease;
}

#navigation a:hover {
    color: var(--gold);
}

#navigation a:hover::after {
    width: 100%;
}


/* 7. MOBILE MENU BUTTON */
.menu-toggle {
    display: none;
    border: none;
    background: transparent;
    color: var(--navy);
    font-size: 28px;
    cursor: pointer;
}


/* 8. HERO SECTION */
.hero {
    min-height: 550px;
    padding: 100px 8%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);

    background:
        linear-gradient(
            rgba(20, 43, 73, 0.75),
            rgba(20, 43, 73, 0.75)
        ),
        url('../images/banner.jpg');

    background-size: cover;
    background-position: center;
}

.hero h2 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 600;
    line-height: 1.3;
    max-width: 900px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 17px;
    max-width: 750px;
    line-height: 1.8;
}


/* 9. GENERAL SECTION */
section {
    padding: 80px 8%;
}

.section-label {
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-heading {
    font-family: 'Playfair Display', serif;
    color: var(--navy);
    font-size: 34px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
}

.section-description {
    color: var(--light-text);
    max-width: 750px;
    margin: 0 auto 40px;
    text-align: center;
}


/* 10. INTRO SECTION */
.intro {
    background: var(--white);
    text-align: center;
}

.intro h2 {
    font-family: 'Playfair Display', serif;
    color: var(--navy);
    font-size: 34px;
    margin-bottom: 20px;
}

.intro p {
    max-width: 850px;
    margin: 0 auto;
    color: var(--light-text);
    font-size: 16px;
}


/* 11. CORE VALUES */
.core-values {
    background: var(--cream);
    text-align: center;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.value-card {
    background: var(--white);
    padding: 30px 18px;
    border-bottom: 3px solid var(--gold);
    border-radius: 3px;
    box-shadow: 0 5px 20px rgba(20, 43, 73, 0.05);
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 25px rgba(20, 43, 73, 0.12);
}

.value-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: var(--navy);
    margin-bottom: 12px;
}

.value-card p {
    font-size: 14px;
    color: var(--light-text);
}


/* 12. FEATURES */
.features {
    background: var(--white);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.feature {
    padding: 35px 28px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.feature::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 45px;
    height: 3px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.feature:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(20, 43, 73, 0.09);
}

.feature:hover::after {
    width: 100%;
}

.feature h3 {
    font-family: 'Playfair Display', serif;
    color: var(--navy);
    font-size: 23px;
    margin-bottom: 15px;
}

.feature p {
    color: var(--light-text);
    font-size: 15px;
}


/* 13. CLOSING MESSAGE */
.closing-message {
    background: var(--navy);
    color: var(--white);
    text-align: center;
    padding: 65px 8%;
}

.closing-message h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 15px;
}

.closing-message p {
    max-width: 750px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.85);
}


/* 14. PAGE BANNER */
.page-banner {
    background:
        linear-gradient(
            rgba(20, 43, 73, 0.85),
            rgba(20, 43, 73, 0.85)
        ),
        url('../images/banner.jpg');

    background-size: cover;
    background-position: center;
    padding: 85px 8%;
    text-align: center;
    color: var(--white);
}

.page-banner h2 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 12px;
}

.page-banner p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}


/* 15. ABOUT SECTION */
.about-section {
    background: var(--white);
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-content h3 {
    font-family: 'Playfair Display', serif;
    color: var(--navy);
    font-size: 25px;
    margin: 35px 0 15px;
}

.about-content p {
    color: var(--light-text);
    font-size: 16px;
    margin-bottom: 18px;
    text-align: justify;
}


/* 16. FOOTER */
footer {
    background: #10233D;
    color: var(--white);
    padding: 55px 8% 25px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 35px;
}

.footer-content h3 {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    font-size: 21px;
    margin-bottom: 18px;
}

.footer-content p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-content a {
    display: block;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    margin-bottom: 9px;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}


/* =========================================
   RESPONSIVE DESIGN
   ========================================= */


/* 17. TABLET */
@media (max-width: 1000px) {

    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    #navigation {
        gap: 15px;
    }

    #navigation a {
        font-size: 12px;
    }

    .hero h2 {
        font-size: 40px;
    }

}


/* 18. MOBILE */
@media (max-width: 900px) {

    .header {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
    }

    #navigation {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 15px 0;
        border-top: 1px solid var(--border);
    }

    #navigation.active {
        display: flex;
    }

    #navigation a {
        width: 100%;
        padding: 12px 0;
        font-size: 14px;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

}


/* 19. SMALL MOBILE */
@media (max-width: 600px) {

    section {
        padding: 55px 6%;
    }

    .header {
        min-height: 85px;
        padding: 10px 5%;
    }

    .logo-img {
        width: 60px;
        height: 60px;
    }

    .brand-text h1 {
        font-size: 18px;
    }

    .brand-text p {
        font-size: 9px;
        letter-spacing: 1px;
    }

    .hero {
        min-height: 420px;
        padding: 70px 6%;
    }

    .hero h2 {
        font-size: 30px;
    }

    .hero p {
        font-size: 14px;
    }

    .intro h2,
    .section-heading {
        font-size: 27px;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .value-card {
        padding: 25px 20px;
    }

    .page-banner {
        padding: 65px 6%;
    }

    .page-banner h2 {
        font-size: 30px;
    }

    .closing-message h2 {
        font-size: 25px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    footer {
        padding: 45px 6% 20px;
    }

}
/* =========================================
   ADVANCED VISUAL EFFECTS
   ========================================= */

/* Hiệu ứng chuyển động mượt */
.value-card,
.feature,
.footer-content a,
.logo-img {
    transition: all 0.35s ease;
}

/* Hiệu ứng hình ảnh */
img {
    transition: transform 0.4s ease;
}

/* Nút bấm */
button,
.btn {
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Tiêu đề trang */
.page-banner h2 {
    animation: fadeInUp 0.8s ease both;
}

.page-banner p {
    animation: fadeInUp 1s ease both;
}

/* Hiệu ứng xuất hiện */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Lựa chọn văn bản */
::selection {
    background: var(--gold);
    color: var(--white);
}

/* Cuộn trang */
html {
    scroll-behavior: smooth;
}

/* Hỗ trợ người dùng hạn chế chuyển động */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
/* SCROLL REVEAL */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
/* HERO BUTTON */

.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    padding: 14px 30px;
    background: var(--gold);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid var(--gold);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hero-button:hover {
    background: transparent;
    color: var(--white);
    transform: translateY(-3px);
}

.hero-button span {
    font-size: 19px;
}
/* HERO BUTTON */

.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    padding: 14px 30px;
    background: var(--gold);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid var(--gold);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hero-button:hover {
    background: transparent;
    color: var(--white);
    transform: translateY(-3px);
}

.hero-button span {
    font-size: 19px;
}
/* =========================================
   HERO CONTENT - BANNER ENHANCEMENT
   ========================================= */

.hero {
    position: relative;
    overflow: hidden;
}

.hero-content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero .eyebrow {
    display: inline-block;
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 22px;
}

.hero-content h2 {
    margin-bottom: 22px;
}

.hero-content p {
    margin: 0 auto;
}

.hero-button {
    margin-top: 30px;
    min-width: 175px;
    justify-content: center;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.15);
}

.hero-button:hover {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}
/* FIX HEADER - LOGO AND BRAND */

.header {
    min-height: 105px;
    display: flex;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.brand .logo-img {
    width: 76px !important;
    height: 76px !important;
    max-width: none;
    object-fit: contain;
    flex-shrink: 0;
}

.brand h1 {
    font-family: 'Playfair Display', serif;
    font-size: 23px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
}

.brand p {
    font-size: 11px;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-top: 4px;
}

@media (max-width: 600px) {
    .brand .logo-img {
        width: 60px !important;
        height: 60px !important;
    }

    .brand h1 {
        font-size: 18px;
    }

    .brand p {
        font-size: 9px;
        letter-spacing: 1px;
    }
}
/* VISION - MISSION - CORE VALUES */

.vision-mission {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 80px 8%;
    background: var(--cream);
}

.vision-card {
    background: var(--white);
    padding: 35px 28px;
    border-top: 3px solid var(--gold);
    box-shadow: 0 5px 20px rgba(20, 43, 73, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vision-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(20, 43, 73, 0.12);
}

.vision-card h3 {
    font-family: 'Playfair Display', serif;
    color: var(--navy);
    font-size: 22px;
    margin: 15px 0;
}

.vision-card p {
    color: var(--light-text);
    font-size: 15px;
    line-height: 1.8;
}

@media (max-width: 900px) {
    .vision-mission {
        grid-template-columns: 1fr;
        padding: 55px 6%;
    }
}
/* FIX VISION MISSION LAYOUT */

main .vision-mission {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 25px !important;
    width: 100%;
    align-items: stretch;
}

main .vision-mission .vision-card {
    display: block !important;
    min-width: 0;
    padding: 35px 28px;
    background: #FFFFFF;
    border-top: 3px solid #B99A62;
    box-shadow: 0 5px 20px rgba(20, 43, 73, 0.06);
}

main .vision-mission .vision-card h3 {
    margin: 15px 0;
    color: #142B49;
    font-size: 22px;
}

main .vision-mission .vision-card p {
    line-height: 1.8;
    color: #666666;
}

@media (max-width: 900px) {
    main .vision-mission {
        grid-template-columns: 1fr !important;
    }
}
/* HÌNH ẢNH TRANG GIỚI THIỆU */

.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 45px;
}

.about-image {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(20, 43, 73, 0.15);
}

.about-image img {
    display: block;
    width: 100%;
    height: 380px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .about-section {
        grid-template-columns: 1fr;
    }

    .about-image img {
        height: 280px;
    }
}
/* THƯ VIỆN ẢNH TRANG GIỚI THIỆU */

.about-gallery {
    padding: 70px 8%;
    background: var(--cream);
}

.gallery-heading {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 35px;
}

.gallery-heading h2 {
    font-family: 'Playfair Display', serif;
    color: var(--navy);
    font-size: 30px;
    margin: 15px 0;
}

.gallery-heading p {
    color: var(--light-text);
    line-height: 1.8;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(20, 43, 73, 0.12);
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 340px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item img {
        height: 260px;
    }
}
/* CHUYÊN MỤC TRANG CHỦ */

.home-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 45px 8%;
    background: var(--cream);
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 25px;
    background: #FFFFFF;
    border-bottom: 3px solid var(--gold);
    text-decoration: none;
    color: var(--navy);
    box-shadow: 0 5px 20px rgba(20, 43, 73, 0.07);
    transition: 0.3s ease;
}

.category-tab:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(20, 43, 73, 0.12);
}

.category-number {
    color: var(--gold);
    font-size: 14px;
    font-weight: 700;
}

.category-title {
    flex: 1;
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
}

.category-arrow {
    font-size: 23px;
    color: var(--gold);
}

@media (max-width: 768px) {
    .home-categories {
        grid-template-columns: 1fr;
        padding: 30px 6%;
    }
}
/* TIN NỔI BẬT TRANG CHỦ */

.featured-news {
    padding: 65px 8%;
    background: #FFFFFF;
}

.featured-heading {
    margin-bottom: 30px;
    border-bottom: 1px solid #E5E5E5;
    padding-bottom: 18px;
}

.featured-heading h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: var(--navy);
    margin-top: 10px;
}

.featured-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 35px;
    align-items: center;
}

.featured-image {
    overflow: hidden;
    border-radius: 6px;
}

.featured-image img {
    display: block;
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.featured-content {
    padding: 15px 0;
}

.news-category {
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.featured-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 29px;
    line-height: 1.4;
    color: var(--navy);
    margin: 18px 0;
}

.featured-content p {
    color: var(--light-text);
    line-height: 1.8;
    margin-bottom: 22px;
}

@media (max-width: 768px) {
    .featured-main {
        grid-template-columns: 1fr;
    }

    .featured-image img {
        height: 280px;
    }

    .featured-content h3 {
        font-size: 24px;
    }
}
/* TIN TỨC MỚI NHẤT */

.latest-news {
    padding: 65px 8%;
    background: var(--cream);
}

.latest-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 30px;
}

.latest-heading h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: var(--navy);
    margin-top: 10px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.news-card {
    background: #FFFFFF;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 5px 20px rgba(20, 43, 73, 0.07);
}

.news-card img {
    display: block;
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.news-card-content {
    padding: 25px;
}

.news-card-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    line-height: 1.5;
    color: var(--navy);
    margin: 12px 0;
}

.news-card-content p {
    color: var(--light-text);
    line-height: 1.8;
    margin-bottom: 18px;
}

.news-card-content a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 700;
}

.news-card-content a:hover {
    color: var(--navy);
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .latest-heading h2 {
        font-size: 26px;
    }

    .news-card img {
        height: 240px;
    }
}
/* SỰ KIỆN TRANG CHỦ */

.home-events {
    padding: 65px 8%;
    background: #FFFFFF;
}

.events-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 30px;
}

.events-heading h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: var(--navy);
    margin-top: 10px;
}

.event-feature {
    display: grid;
    grid-template-columns: 220px 1fr;
    background: var(--cream);
    border-left: 4px solid var(--gold);
    padding: 35px;
    gap: 35px;
    align-items: center;
}

.event-date {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 130px;
    background: var(--navy);
    color: #FFFFFF;
    text-align: center;
    padding: 20px;
}

.event-date span {
    font-size: 12px;
    letter-spacing: 2px;
    color: #D8BD82;
}

.event-date strong {
    font-family: 'Playfair Display', serif;
    font-size: 27px;
    margin-top: 10px;
}

.event-description h3 {
    font-family: 'Playfair Display', serif;
    color: var(--navy);
    font-size: 25px;
    margin-bottom: 12px;
}

.event-description p {
    color: var(--light-text);
    line-height: 1.8;
    margin-bottom: 18px;
}

@media (max-width: 768px) {
    .event-feature {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .event-date {
        min-height: 110px;
    }

    .events-heading h2 {
        font-size: 26px;
    }
}
/* HOẠT ĐỘNG TRANG CHỦ */

.home-activities {
    padding: 65px 8%;
    background: var(--cream);
}

.activities-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 30px;
}

.activities-heading h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: var(--navy);
    margin-top: 10px;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
}

.activity-card {
    position: relative;
    display: block;
    height: 340px;
    overflow: hidden;
    border-radius: 6px;
    text-decoration: none;
    background: var(--navy);
}

.activity-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.activity-card:hover img {
    transform: scale(1.05);
}

.activity-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 28px;
    background: linear-gradient(
        transparent 25%,
        rgba(10, 25, 45, 0.85)
    );
    color: #FFFFFF;
}

.activity-overlay span {
    color: #E4C98F;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.activity-overlay h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .activities-grid {
        grid-template-columns: 1fr;
    }

    .activity-card {
        height: 280px;
    }

    .activities-heading h2 {
        font-size: 26px;
    }
}
/* HIỆU ỨNG HOVER TOÀN TRANG */

/* Thẻ tin tức */
.news-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(20, 43, 73, 0.16);
}

/* Thẻ hoạt động */
.activity-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.activity-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(20, 43, 73, 0.2);
}

/* Ảnh tin nổi bật */
.featured-image img {
    transition: transform 0.5s ease;
}

.featured-image:hover img {
    transform: scale(1.04);
}

/* Khu vực sự kiện */
.event-feature {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.event-feature:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(20, 43, 73, 0.12);
}

/* Các thẻ giá trị cốt lõi */
.value-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.value-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 28px rgba(20, 43, 73, 0.12);
}

/* Các thẻ nội dung */
.feature {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.feature:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 28px rgba(20, 43, 73, 0.12);
}

/* Nút liên kết */
.text-link,
.news-card-content a {
    transition: color 0.3s ease;
}

/* Hạn chế chuyển động nếu người dùng yêu cầu */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
/* BIẾN TOÀN BỘ KHUNG THÀNH LIÊN KẾT */

.news-card,
.featured-main,
.event-feature {
    display: grid;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

/* HIỆU ỨNG KHI DI CHUỘT VÀO KHUNG TIN TỨC */

.news-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(20, 43, 73, 0.16);
}

/* HIỆU ỨNG TIN NỔI BẬT */

.featured-main {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.featured-main:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(20, 43, 73, 0.12);
}

/* HIỆU ỨNG KHUNG SỰ KIỆN */

.event-feature {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.event-feature:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(20, 43, 73, 0.12);
}

/* DÒNG ĐỌC THÊM */

.news-read-more {
    display: inline-block;
    color: var(--gold);
    font-weight: 700;
    margin-top: 5px;
}

/* CON TRỎ KHI DI CHUỘT */

.news-card:hover,
.featured-main:hover,
.event-feature:hover {
    cursor: pointer;
}
/* THU NHỎ KHUNG TIN TỨC */

.latest-news {
    padding: 45px 10%;
}

.news-grid {
    grid-template-columns: repeat(2, minmax(0, 420px));
    justify-content: center;
    gap: 22px;
}

.news-card img {
    height: 210px;
}

.news-card-content {
    padding: 18px;
}

.news-card-content h3 {
    font-size: 19px;
    line-height: 1.4;
    margin: 10px 0;
}

.news-card-content p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.news-read-more {
    font-size: 14px;
}

@media (max-width: 768px) {
    .latest-news {
        padding: 35px 6%;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card img {
        height: 200px;
    }
}

/* THƯ VIỆN - BA DANH MỤC CHÍNH */

.library-categories {
    padding: 65px 8%;
    background: var(--cream);
}

.library-heading {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
}

.library-heading h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: var(--navy);
    margin: 12px 0;
}

.library-heading p {
    color: var(--light-text);
    line-height: 1.8;
}

.library-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.library-card {
    display: flex;
    flex-direction: column;
    min-height: 300px;
    padding: 30px;
    background: #FFFFFF;
    border: 1px solid #E8E3D9;
    border-top: 3px solid var(--gold);
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.library-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 14px 30px rgba(20, 43, 73, 0.13);
}

.library-icon {
    font-size: 35px;
    color: var(--gold);
    margin-bottom: 15px;
}

.library-number {
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--gold);
    font-weight: 700;
}

.library-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: var(--navy);
    margin: 12px 0;
}

.library-card p {
    color: var(--light-text);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 22px;
}

.library-link {
    color: var(--gold);
    font-size: 14px;
    font-weight: 700;
    margin-top: auto;
}

@media (max-width: 768px) {
    .library-grid {
        grid-template-columns: 1fr;
    }

    .library-card {
        min-height: 250px;
    }

    .library-heading h2 {
        font-size: 26px;
    }
}
/* HIỂN THỊ BA DANH MỤC TRÊN MỘT HÀNG NGANG */

.library-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    align-items: stretch;
}

/* TOÀN BỘ KHUNG ĐỀU CÓ THỂ NHẤN */

.library-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 320px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* HIỆU ỨNG NỔI KHI DI CHUỘT */

.library-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 35px rgba(20, 43, 73, 0.18);
}

/* HIỆU ỨNG KHI NHẤN */

.library-card:active {
    transform: translateY(-4px);
}

/* HIỂN THỊ TRÊN ĐIỆN THOẠI */

@media (max-width: 768px) {
    .library-grid {
        grid-template-columns: 1fr;
    }
}
/* SÁCH ĐIỆN TỬ - HAI DANH MỤC */

.ebook-categories {
    padding: 65px 8%;
    background: var(--cream);
}

.ebook-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 420px));
    justify-content: center;
    gap: 30px;
}

.ebook-card {
    display: flex;
    flex-direction: column;
    min-height: 320px;
    padding: 35px;
    background: #FFFFFF;
    border: 1px solid #E8E3D9;
    border-top: 3px solid var(--gold);
    border-radius: 6px;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.ebook-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 35px rgba(20, 43, 73, 0.18);
}

.ebook-number {
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.ebook-icon {
    font-size: 42px;
    margin: 15px 0;
}

.ebook-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 25px;
    color: var(--navy);
    margin: 10px 0;
}

.ebook-card p {
    color: var(--light-text);
    font-size: 14px;
    line-height: 1.8;
}

.ebook-link {
    color: var(--gold);
    font-size: 14px;
    font-weight: 700;
    margin-top: auto;
    padding-top: 20px;
}

@media (max-width: 768px) {
    .ebook-grid {
        grid-template-columns: 1fr;
    }
}
/* FIX GIAO DIỆN SÁCH ĐIỆN TỬ */

main .ebook-categories .ebook-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 420px)) !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 30px !important;
    width: 100%;
}

main .ebook-categories .ebook-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
    min-width: 0;
    min-height: 320px;
    background: #FFFFFF;
    padding: 35px;
    border: 1px solid #E8E3D9;
    border-top: 3px solid #B99A62;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

main .ebook-categories .ebook-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 16px 35px rgba(20, 43, 73, 0.18) !important;
}

main .ebook-categories .ebook-card:active {
    transform: translateY(-4px) !important;
}

@media (max-width: 768px) {
    main .ebook-categories .ebook-grid {
        grid-template-columns: 1fr !important;
    }
}
/* =====================================
   TRINH BAY TRANG GIOI THIEU
   ===================================== */

/* BỐ CỤC CÁC MỤC */
body main .intro,
body main .about-section,
body main .vision-mission,
body main .core-values {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 55px 3% !important;
    text-align: left !important;
    box-sizing: border-box !important;
}

/* NỘI DUNG RỘNG TOÀN TRANG */
body main .about-content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

/* NHÃN MỤC CHÍNH 01, 02, 03, 04 */
body main .intro > .section-label,
body main .about-section .about-content > .section-label,
body main .vision-mission .vision-card:first-child > .section-label,
body main .core-values .section-heading > .section-label {
    display: block !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    margin-bottom: 18px !important;
}

/* NHÃN PHỤ */
body main .vision-card:not(:first-child) .section-label {
    font-size: 13px !important;
}

/* TIÊU ĐỀ */
body main .intro h2,
body main .about-content h2,
body main .core-values h2 {
    font-size: 32px !important;
    line-height: 1.4 !important;
    text-align: left !important;
}

body main .vision-card h3 {
    font-size: 24px !important;
}

/* NỘI DUNG VĂN BẢN */
body main .intro p,
body main .about-content p,
body main .vision-card p,
body main .core-values p {
    max-width: none !important;
    width: 100% !important;
    font-size: 20px !important;
    line-height: 1.9 !important;
    text-align: justify !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* CÁC MỤC XẾP THÀNH MỘT CỘT */
body main .vision-mission {
    display: block !important;
}

body main .vision-card {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 30px !important;
    padding: 25px 0 !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid #ddd !important;
    box-shadow: none !important;
}

/* 5 GIÁ TRỊ GIÁO DỤC XẾP DỌC */
body main .values-grid {
    display: block !important;
}

body main .value-card {
    display: block !important;
    width: 100% !important;
    margin: 0 0 20px !important;
    padding: 20px 0 !important;
    box-sizing: border-box !important;
}

/* ẨN ẢNH TRONG PHẦN GIỚI THIỆU */
body main .about-section img,
body main .about-gallery {
    display: none !important;
}

/* HIỂN THỊ TRÊN ĐIỆN THOẠI */
@media (max-width: 768px) {
    body main .intro,
    body main .about-section,
    body main .vision-mission,
    body main .core-values {
        padding: 35px 5% !important;
    }

    body main .intro p,
    body main .about-content p,
    body main .vision-card p,
    body main .core-values p {
        font-size: 17px !important;
    }

    body main .intro h2,
    body main .about-content h2,
    body main .core-values h2 {
        font-size: 25px !important;
    }

    body main .vision-card h3 {
        font-size: 21px !important;
    }
}
/* TACH RIENG MUC 3 VA MUC 4 */
body main .vision-mission {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

body main .core-values {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    text-align: left !important;
}

body main .core-values .section-heading {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    text-align: left !important;
}

body main .core-values .section-heading h2,
body main .core-values .section-heading p {
    text-align: left !important;
}

body main .core-values .values-grid {
    width: 100% !important;
    text-align: left !important;
}
/* FIX RIENG MUC 03 VA MUC 04 TRANG GIOI THIEU */

/* MỤC 03: BỎ KHUNG BA CỘT */
body main section.vision-mission {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    padding: 55px 3% !important;
    background: #FFFFFF !important;
    border: none !important;
    box-shadow: none !important;
}

body main section.vision-mission .vision-card {
    width: 100% !important;
    margin: 0 0 30px !important;
    padding: 25px 0 !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid #E8E2D6 !important;
    box-shadow: none !important;
    transform: none !important;
}

/* MỤC 04: CĂN TRÁI VÀ TÁCH RIÊNG */
body main section.core-values {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    padding: 55px 3% !important;
    background: #F6F3EC !important;
    text-align: left !important;
    border: none !important;
    box-shadow: none !important;
}

body main section.core-values .section-heading {
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 30px !important;
    text-align: left !important;
}

body main section.core-values .section-heading h2,
body main section.core-values .section-heading p {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body main section.core-values .values-grid {
    display: block !important;
    width: 100% !important;
}
/* DONG BO NHAN 4 MUC TRANG GIOI THIEU */
body main .intro > .section-label,
body main .about-section .about-content > .section-label,
body main .vision-mission .vision-card:first-child > .section-label,
body main .core-values .section-heading > .section-label {
    display: block !important;
    font-family: 'Roboto', sans-serif !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    line-height: 1.5 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    color: #B99A62 !important;
    text-align: left !important;
    margin: 0 0 18px 0 !important;
}
body main section.core-values .section-heading span.section-label {
    font: 800 22px/1.5 'Roboto', sans-serif !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    color: #B99A62 !important;
}
