/* ============================================================
   site.css - CSS dùng chung cho toàn bộ site (cả 3 brand).
   Màu sắc theo brand được inject qua 2 biến:
     --brand-primary, --brand-secondary
   (gán inline trong MainLayout.razor từ Brands.ThemePrimaryColor /
   ThemeSecondaryColor trong CSDL; theme-*.css cung cấp giá trị fallback).

   Design system theo Figma (mục 3.1/3.2 tài liệu phân tích, brand "main"
   - PTE APAC, brand duy nhất đã có thiết kế Figma):
     - Primary    = --brand-primary   (#442A82, theme-main.css)
     - Primary 2  = --brand-secondary (#E23563, accent/badge/hover)
     - Primary 3  = --color-gold      (#F5BB57, accent phụ - icon/highlight,
                    dùng chung cho cả 3 brand, không đổi theo theme)
     - Gray       = --color-gray      (#505C66, body text/border/section bg)
     - Gradient "Số liệu" = Primary 3 -> Primary 2 (--gradient-stats)
     - Font: Montserrat. Heading = 700/32px/130%. Body = 500/16px/160%/2%.
   ============================================================ */

:root {
    --color-gold: #F5BB57;
    --color-gray: #505C66;
    --color-dark: #1A1A2E;
    --gradient-stats: linear-gradient(90deg, #F5BB57 0%, #E23563 100%);
    --gradient-hero-overlay: linear-gradient(135deg, rgba(68,42,130,0.82) 0%, rgba(226,53,99,0.72) 100%);
    --section-gap: 4rem;
    --content-max-width: 1200px;
    --radius-card: 16px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: "Montserrat", "Noto Sans SC", Arial, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 160%;
    letter-spacing: 0.02em;
    color: var(--color-gray);
    background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 130%;
    letter-spacing: -0.01em;
    color: var(--brand-primary, #442A82);
    margin: 0 0 1rem;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

a {
    color: var(--brand-primary, #442A82);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ---------------- Header / NavMenu ---------------- */

.site-header {
    background-color: var(--brand-primary, #442A82);
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    position: relative;
}

.navbar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar-logo:hover {
    text-decoration: none;
    opacity: 0.9;
}

.navbar-logo-img {
    height: 44px;
    max-width: 180px;
    width: auto;
    display: block;
    object-fit: contain;
}

.navbar-brand-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
    line-height: 1.2;
    white-space: nowrap;
}

.navbar-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.navbar-links a {
    color: #ffffff;
    font-weight: 600;
}

.navbar-links a:hover {
    color: var(--brand-secondary, #E23563);
    text-decoration: none;
}

.navbar-lang-switcher {
    display: flex;
    gap: 0.5rem;
}

.navbar-lang-switcher a {
    color: #ffffff;
    opacity: 0.7;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

.navbar-lang-switcher a.active,
.navbar-lang-switcher a:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.15);
    text-decoration: none;
}

/* Nút CTA "Đăng ký tư vấn" trên Header (Figma mục 2.6) */
.navbar-cta {
    display: inline-block;
    background-color: var(--brand-secondary, #E23563);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.45rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.15s ease;
}

.navbar-cta:hover {
    opacity: 0.88;
    color: #ffffff;
    text-decoration: none;
}

/* Hamburger button - chỉ hiện ở mobile */
.navbar-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #ffffff;
}

.navbar-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.navbar-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar-hamburger.open span:nth-child(2) {
    opacity: 0;
}

.navbar-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile responsive - Hamburger menu (Figma mục 2.7) */
@media (max-width: 768px) {
    .navbar-hamburger {
        display: flex;
    }

    .navbar-links {
        display: none;
        flex-direction: column;
        gap: 0;
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        padding: 0.5rem 0;
    }

    .navbar-links.open {
        display: flex;
    }

    .navbar-links li {
        width: 100%;
    }

    .navbar-links a {
        display: block;
        padding: 0.65rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .navbar-cta {
        width: 100%;
        text-align: center;
        margin: 0.5rem 0 0;
        padding: 0.6rem;
    }

    .navbar-lang-switcher {
        margin-top: 0.25rem;
    }
}

/* ---------------- Main content ---------------- */

.site-main {
    flex: 1;
    max-width: var(--content-max-width, 1200px);
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

@media (max-width: 768px) {
    .site-main {
        padding: 1.5rem 1rem 3rem;
    }
}

/* ============================================================
   Hero banner – Figma mục 2.1: "hình ảnh/video lớn, tiêu đề chính
   + mô tả ngắn + 2 nút CTA".
   Dùng background-image khi ảnh brand tồn tại (set qua style inline
   trong Home.razor) + gradient overlay luôn luôn che phía trên.
   Khi chưa có ảnh thực (wwwroot/images/{brand}/banner-home.jpg),
   fallback gradient thuần vẫn trông đẹp đúng màu brand.
   ============================================================ */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 540px;
    padding: 5rem 2rem 4rem;
    margin: -2rem -1.5rem 0;
    /* Gradient overlay trên ảnh nền – ảnh nền set qua --hero-bg: url(...) */
    background:
        var(--gradient-hero-overlay),
        var(--hero-bg, linear-gradient(135deg, var(--brand-primary, #442A82) 0%, var(--brand-secondary, #E23563) 100%));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    overflow: hidden;
}

/* Noise texture overlay nhẹ tạo chiều sâu */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 60% 40%, rgba(255,255,255,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
    width: 100%;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    margin-bottom: 0.75rem;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.25);
    line-height: 1.15;
}

.hero-tagline {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.hero-desc {
    max-width: 620px;
    margin: 0 auto 2.5rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7;
    font-size: 1.05rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.btn-hero-primary {
    background-color: #ffffff;
    border-color: #ffffff;
    color: var(--brand-primary, #442A82);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.btn-hero-primary:hover {
    color: var(--brand-primary, #442A82);
    opacity: 0.92;
    transform: translateY(-1px);
}

.btn-hero-secondary {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255,255,255,0.8);
    color: #ffffff;
    backdrop-filter: blur(4px);
}

.btn-hero-secondary:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.22);
    border-color: #ffffff;
}

.placeholder-note {
    max-width: 720px;
    margin: 0 auto;
    color: var(--color-gray);
    font-style: italic;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .hero {
        min-height: 420px;
        padding: 4rem 1.5rem 3rem;
        margin: -1.5rem -1rem 0;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 360px;
        padding: 3rem 1.25rem 2.5rem;
    }

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

    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

.page-section h1 {
    color: var(--brand-primary, #442A82);
    border-bottom: 3px solid var(--brand-secondary, #E23563);
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* ============================================================
   Trang chủ (/{culture}) - các khối nội dung theo Figma mục 2.1
   ============================================================ */

.section-title {
    color: var(--brand-primary, #442A82);
    margin: 0 0 1.25rem;
}

.section-subtitle {
    max-width: 640px;
    color: var(--color-gray);
    margin: -0.5rem 0 2rem;
    font-size: 1.05rem;
    line-height: 1.65;
}

.section-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.section-heading .section-title {
    margin-bottom: 0;
}

.section-link {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--brand-secondary, #E23563);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.section-link:hover {
    text-decoration: none;
    opacity: 0.8;
}

.about-intro {
    max-width: 760px;
    color: var(--color-gray);
    line-height: 1.7;
    margin: 0 0 2.5rem;
    font-size: 1.05rem;
}

/* ============================================================
   Số liệu nổi bật (Figma mục 2.1 "Số Liệu" – gradient strip)
   Hiển thị dạng dải ngang gradient toàn chiều rộng,
   số lớn nổi bật trên nền gradient Primary3→Primary2.
   ============================================================ */

.stats-strip {
    background: var(--gradient-stats);
    border-radius: var(--radius-card);
    padding: 2.5rem 2rem;
    margin: 0 0 0.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    text-align: center;
}

.stats-strip .stats-grid {
    gap: 0;
}

.stat-item {
    padding: 1.25rem 1rem;
    border-radius: 12px;
    background-color: rgba(255,255,255,0.12);
    position: relative;
}

.stats-strip .stat-item {
    background: transparent;
    border-radius: 0;
    padding: 0.5rem 1rem;
}

.stats-strip .stat-item + .stat-item {
    border-left: 1px solid rgba(255,255,255,0.25);
}

.stat-number {
    display: block;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
}

/* Khi dùng ngoài stats-strip (standalone card), dùng gradient text */
.stats-grid:not(.stats-strip .stats-grid) .stat-number {
    background: var(--gradient-stats);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-label {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255,255,255,0.88);
    line-height: 1.4;
}

.stats-grid:not(.stats-strip .stats-grid) .stat-label {
    color: var(--color-gray);
}

@media (max-width: 600px) {
    .stats-strip {
        padding: 1.5rem 1rem;
    }

    .stats-strip .stat-item {
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.2);
        padding: 1rem 0.5rem;
    }

    .stats-strip .stat-item:first-child {
        border-top: none;
    }
}

/* ---------------- Phương pháp giảng dạy / USP ---------------- */

.usp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.usp-item {
    padding: 2rem 1.5rem;
    border-radius: var(--radius-card);
    border: 1.5px solid #ede8f9;
    background-color: #faf8ff;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    cursor: default;
}

.usp-item:hover {
    box-shadow: 0 8px 28px rgba(68,42,130,0.1);
    transform: translateY(-3px);
    border-color: var(--brand-primary, #442A82);
}

.usp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 14px;
    background: var(--gradient-stats);
    color: #ffffff;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(226,53,99,0.25);
}

.usp-item h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    color: var(--brand-primary, #442A82);
    line-height: 1.3;
}

.usp-item p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--color-gray);
    line-height: 1.6;
}

/* ---------------- Đội ngũ giảng viên ---------------- */

.teacher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.75rem;
}

.teacher-card {
    text-align: center;
    padding: 2rem 1rem 1.5rem;
    border-radius: var(--radius-card);
    border: 1.5px solid #ede8f9;
    background-color: #faf8ff;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.teacher-card:hover {
    box-shadow: 0 8px 24px rgba(68,42,130,0.1);
    transform: translateY(-2px);
}

.teacher-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5.5rem;
    height: 5.5rem;
    margin: 0 auto 1.1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-primary, #442A82), var(--brand-secondary, #E23563));
    color: #ffffff;
    font-weight: 700;
    font-size: 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(68,42,130,0.2);
}

.teacher-avatar--photo {
    background: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.teacher-avatar--photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.teacher-name {
    margin: 0 0 0.3rem;
    font-size: 1.05rem;
    color: var(--brand-primary, #442A82);
}

.teacher-role {
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-gray);
    line-height: 1.4;
}

/* ---------------- Spacing chung giữa các section trang chủ ---------------- */

.page-section + .page-section {
    margin-top: var(--section-gap, 4rem);
}

/* ---------------- Footer ---------------- */

.site-footer {
    background-color: var(--color-gray);
    color: #f2f2f2;
    margin-top: auto;
}

.footer-default .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
}

.footer-default .footer-inner--4col {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 2rem;
}

@media (max-width: 860px) {
    .footer-default .footer-inner--4col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .footer-default .footer-inner--4col {
        grid-template-columns: 1fr;
    }
}

.footer-logo-link {
    display: inline-block;
    margin-bottom: 0.75rem;
    text-decoration: none;
}

.footer-logo-img {
    height: 40px;
    max-width: 160px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1); /* trắng hóa logo trên nền tối */
}

.footer-brand-name {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-default .footer-col h4 {
    color: var(--color-gold);
    margin-bottom: 0.5rem;
}

.footer-default .footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-default .footer-col ul li a {
    color: #f2f2f2;
}

.footer-default .footer-col ul li a:hover {
    color: var(--color-gold);
}

.footer-default .footer-contact ul li {
    color: #cccccc;
    line-height: 1.5;
}

.footer-default .footer-tagline {
    color: #cccccc;
    margin-top: 0.25rem;
}

.footer-social {
    display: flex;
    gap: 0.6rem;
    margin-top: 1rem;
}

.footer-social__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #f2f2f2;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.footer-social__link:hover {
    background-color: var(--color-gold);
    color: var(--color-gray);
}

/* Khối đăng ký nhận bản tin - hiển thị phía trên 4 cột footer */
.footer-newsletter {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.75rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.footer-newsletter__text h4 {
    margin: 0 0 0.25rem;
    color: var(--color-gold);
}

.footer-newsletter__text p {
    margin: 0;
    color: #cccccc;
    font-size: 0.9rem;
    max-width: 420px;
}

.footer-newsletter__form {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.footer-newsletter__form input[type="email"] {
    padding: 0.65rem 0.9rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    min-width: 240px;
    font-size: 0.9rem;
}

.footer-newsletter__form input[type="email"]::placeholder {
    color: #aaaaaa;
}

.footer-newsletter__form input[type="email"]:focus {
    outline: none;
    border-color: var(--color-gold);
}

.footer-newsletter__success {
    color: var(--color-gold);
    font-weight: 600;
    margin: 0;
}

.footer-newsletter__error {
    width: 100%;
    margin: 0.4rem 0 0;
    color: #ff8a8a;
    font-size: 0.85rem;
}

.footer-bottom {
    text-align: center;
    padding: 0.75rem;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaaaaa;
}

/* Footer rút gọn cho Yueaixue (FooterTemplateCode = "footer-tq") */
.footer-tq .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-tq .footer-tagline {
    color: #cccccc;
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
}

.footer-tq .footer-copyright {
    font-size: 0.85rem;
    color: #aaaaaa;
}

/* ============================================================
   Tin tức - trang danh sách (/{culture}/tin-tuc) và chi tiết
   (/{culture}/tin-tuc/{slug}). Theo Figma mục 2.3/2.4 + 3.3
   (NewsCard, InfoBadge).
   ============================================================ */

/* ---------------- Tabs lọc danh mục ---------------- */

.news-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0 2rem;
}

.news-tab {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    border: 1px solid var(--color-gray);
    color: var(--color-gray);
    font-weight: 600;
    font-size: 0.9rem;
}

.news-tab:hover {
    text-decoration: none;
    border-color: var(--brand-primary, #442A82);
    color: var(--brand-primary, #442A82);
}

.news-tab--active,
.news-tab--active:hover {
    background-color: var(--brand-primary, #442A82);
    border-color: var(--brand-primary, #442A82);
    color: #ffffff;
}

/* ---------------- Badge danh mục ---------------- */

.news-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    background: var(--gradient-stats);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.news-badge--detail {
    margin-bottom: 0.75rem;
}

/* ---------------- NewsCard ---------------- */

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.news-card {
    display: flex;
    flex-direction: column;
    color: inherit;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.news-card:hover {
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(68, 42, 130, 0.12);
    transform: translateY(-2px);
}

.news-card__image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #f2f2f2;
}

.news-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-card__image .news-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
}

.news-card__body {
    padding: 1rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.news-card__date {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-gold);
}

.news-card__title {
    margin: 0;
    font-size: 1.1rem;
    line-height: 130%;
    color: var(--brand-primary, #442A82);
}

.news-card__summary {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-gray);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Bài viết nổi bật - thẻ lớn nằm ngang trên cùng trang danh sách */
.news-card--featured {
    flex-direction: row;
    margin-bottom: 2rem;
}

.news-card--featured .news-card__image {
    flex: 1 1 50%;
    aspect-ratio: auto;
}

.news-card--featured .news-card__body {
    flex: 1 1 50%;
    justify-content: center;
    padding: 1.5rem 2rem;
}

.news-card--featured .news-card__title {
    font-size: 1.5rem;
}

.news-card--featured .news-card__summary {
    -webkit-line-clamp: 4;
}

@media (max-width: 720px) {
    .news-card--featured {
        flex-direction: column;
    }
}

/* ---------------- Pagination ---------------- */

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    margin: 2rem 0;
}

.pagination__link {
    display: inline-block;
    min-width: 2.25rem;
    text-align: center;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
    color: var(--color-gray);
    font-weight: 600;
    font-size: 0.9rem;
}

.pagination__link:hover {
    text-decoration: none;
    border-color: var(--brand-primary, #442A82);
    color: var(--brand-primary, #442A82);
}

.pagination__link--active,
.pagination__link--active:hover {
    background-color: var(--brand-primary, #442A82);
    border-color: var(--brand-primary, #442A82);
    color: #ffffff;
}

.pagination__link--disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ---------------- Breadcrumb ---------------- */

.breadcrumb {
    font-size: 0.85rem;
    color: var(--color-gray);
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: var(--color-gray);
}

.breadcrumb__sep {
    margin: 0 0.4rem;
}

.breadcrumb__current {
    color: var(--brand-primary, #442A82);
    font-weight: 600;
}

/* ---------------- Trang chi tiết tin tức ---------------- */

.news-detail__date {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-gold);
    margin: -0.5rem 0 1rem;
}

.news-detail__image {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.news-detail__content {
    line-height: 160%;
}

.news-detail__content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ============================================================
   Trang tĩnh (Pages) - vd "Giới thiệu", "Cơ sở vật chất"
   (/{culture}/{slug}). Dùng chung breadcrumb/page-section với Tin tức.
   ============================================================ */

.static-page__content {
    line-height: 160%;
}

.static-page__content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.static-page__gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.static-page__gallery-item {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    background-color: #f2f2f2;
}

.static-page__gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.static-page__gallery-item figcaption {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    color: var(--color-gray);
}

/* ============================================================
   Khóa học - trang danh sách (/{culture}/khoa-hoc) và chi tiết
   (/{culture}/khoa-hoc/{slug}). Dùng chung .news-tabs/.news-grid/
   .news-badge/.pagination/.breadcrumb với Tin tức; bổ sung các
   class .course-* riêng cho thẻ khóa học và trang chi tiết.
   ============================================================ */

/* ---------------- CourseCard ---------------- */

.course-card {
    display: flex;
    flex-direction: column;
    color: inherit;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.course-card:hover {
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(68, 42, 130, 0.12);
    transform: translateY(-2px);
}

.course-card__image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #f2f2f2;
}

.course-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.course-card__image .news-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
}

.course-card__body {
    padding: 1rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1 1 auto;
}

.course-card__title {
    margin: 0;
    font-size: 1.1rem;
    line-height: 130%;
    color: var(--brand-primary, #442A82);
}

.course-card__summary {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-gray);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-card__meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.75rem;
    font-size: 0.8rem;
    color: var(--color-gray);
}

.course-card__meta li {
    position: relative;
    padding-left: 0.9rem;
}

.course-card__meta li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gradient-stats);
}

.course-card__price {
    margin: auto 0 0;
    padding-top: 0.5rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--brand-secondary, #E23563);
    border-top: 1px solid #f0f0f0;
}

.course-card__price span {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--color-gray);
}

/* ---------------- Trang chi tiết khóa học ---------------- */

.course-detail__banner {
    width: 100%;
    aspect-ratio: 21 / 9;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    background-color: #f2f2f2;
}

.course-detail__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.course-detail__title {
    margin: 0;
}

.course-detail__price {
    flex: 0 0 auto;
    text-align: right;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-secondary, #E23563);
    white-space: nowrap;
}

.course-detail__price span {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-gray);
}

.course-detail__summary {
    font-size: 1.05rem;
    color: var(--color-gray);
    margin: 0.5rem 0 1.5rem;
}

.course-detail__meta {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
}

.course-detail__meta li {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.9rem;
}

.course-detail__meta li strong {
    color: var(--brand-primary, #442A82);
    font-size: 1rem;
}

.course-detail__section-title {
    font-size: 1.5rem;
    line-height: 130%;
    color: var(--brand-primary, #442A82);
    margin: 2.5rem 0 1.25rem;
}

.course-detail__content {
    line-height: 160%;
}

.course-detail__content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* "Tổng quan khóa học" - lưới ô tính năng */
.course-detail__overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

.course-detail__overview-item {
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    background-color: #fafafa;
}

.course-detail__overview-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--gradient-stats);
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.course-detail__overview-item h3 {
    margin: 0 0 0.4rem;
    font-size: 1rem;
    color: var(--brand-primary, #442A82);
}

.course-detail__overview-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-gray);
}

/* "Lộ trình học" - timeline các bước */
.course-detail__roadmap {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.course-detail__roadmap-step {
    display: flex;
    gap: 1rem;
    padding-bottom: 1.5rem;
    position: relative;
}

.course-detail__roadmap-step:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 1.25rem;
    top: 2.75rem;
    bottom: 0;
    width: 2px;
    background-color: #e5e5e5;
}

.course-detail__roadmap-number {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--brand-primary, #442A82);
    color: #ffffff;
    font-weight: 700;
    z-index: 1;
}

.course-detail__roadmap-body h3 {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
    color: var(--brand-primary, #442A82);
}

.course-detail__roadmap-body p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-gray);
}

/* "Bạn sẽ nhận được gì" - danh sách checklist */
.course-detail__highlights {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.75rem 1.5rem;
}

.course-detail__highlights li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.95rem;
}

.course-detail__highlights li::before {
    content: "\2713";
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--gradient-stats);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
}

/* CTA liên hệ cuối trang chi tiết */
.course-detail__cta {
    margin: 2.5rem 0 1rem;
    padding: 2rem;
    border-radius: 12px;
    background: var(--gradient-stats);
    color: #ffffff;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.course-detail__cta h3 {
    margin: 0 0 0.25rem;
    color: #ffffff;
}

.course-detail__cta p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.course-detail__cta .btn {
    flex: 0 0 auto;
    display: inline-block;
    padding: 0.65rem 1.5rem;
    border-radius: 999px;
    background-color: #ffffff;
    color: var(--brand-primary, #442A82);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.course-detail__cta .btn:hover {
    text-decoration: none;
    opacity: 0.9;
}

@media (max-width: 720px) {
    .course-detail__header {
        flex-direction: column;
    }

    .course-detail__price {
        text-align: left;
    }

    .course-detail__cta {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================================
   Nút bấm & thông báo dùng chung (CTA, form liên hệ...).
   ============================================================ */

.btn {
    display: inline-block;
    padding: 0.7rem 1.75rem;
    border-radius: 999px;
    border: 2px solid var(--brand-primary, #442A82);
    background-color: var(--brand-primary, #442A82);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.4;
}

.btn:hover {
    text-decoration: none;
    opacity: 0.9;
    color: #ffffff;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background-color: var(--brand-primary, #442A82);
    border-color: var(--brand-primary, #442A82);
    color: #ffffff;
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--brand-primary, #442A82);
    color: var(--brand-primary, #442A82);
}

.btn-secondary:hover {
    color: var(--brand-primary, #442A82);
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.alert-error {
    background-color: #fdecea;
    color: #c0392b;
    border: 1px solid #f5c6c2;
}

.alert-success {
    background-color: #e9f7ef;
    color: #1e7e34;
    border: 1px solid #b7e1c1;
}

/* ============================================================
   Trang Liên hệ (/{culture}/lien-he).
   ============================================================ */

.contact-intro {
    max-width: 640px;
    margin: 0.5rem 0 2rem;
    color: var(--color-gray);
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(280px, 380px) 1fr;
    gap: 2.5rem;
    align-items: start;
}

@media (max-width: 860px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

.contact-info {
    background-color: #f7f5fb;
    border-radius: 12px;
    padding: 1.75rem;
}

.contact-info h2 {
    margin-top: 0;
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    color: var(--brand-primary, #442A82);
}

.contact-info__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.contact-info__item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.contact-info__icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background-color: var(--brand-primary, #442A82);
    color: #ffffff;
}

.contact-info__item strong {
    display: block;
    font-size: 0.9rem;
    color: var(--color-dark, #1a1a1a);
}

.contact-info__item p {
    margin: 0.15rem 0 0;
    color: var(--color-gray);
    font-size: 0.95rem;
}

.contact-info__item a {
    color: var(--color-gray);
    text-decoration: none;
}

.contact-info__item a:hover {
    color: var(--brand-primary, #442A82);
    text-decoration: underline;
}

.contact-info__map {
    margin-top: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    line-height: 0;
}

.contact-success {
    max-width: 640px;
}

.contact-success h2 {
    margin-top: 0;
    color: #1e7e34;
}

.contact-success .btn {
    margin-top: 0.5rem;
}

.contact-form {
    max-width: 640px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-form__note {
    margin: -0.5rem 0 0;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background-color: #f5f0fb;
    color: var(--brand-primary, #442A82);
    font-size: 0.9rem;
}

.contact-form .form-row {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.contact-form .form-row--checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.6rem;
}

.contact-form .form-row--checkbox input[type="checkbox"] {
    margin-top: 0.3rem;
    flex: 0 0 auto;
}

.contact-form label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-gray);
}

.contact-form .required {
    color: var(--brand-secondary, #E23563);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
    padding: 0.7rem 0.9rem;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--color-gray);
    width: 100%;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--brand-primary, #442A82);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button[type="submit"] {
    align-self: flex-start;
}

/* ============================================================
   Khối "Tải tài liệu" trên trang Chi tiết tin tức.
   ============================================================ */

.document-cta {
    margin-top: 2.5rem;
    padding: 1.75rem;
    border-radius: 12px;
    background-color: #f7f5fb;
    border: 1px solid #ece7f5;
}

.document-cta__info {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.document-cta__thumbnail {
    flex: 0 0 auto;
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 8px;
}

.document-cta__info h2 {
    margin-top: 0;
    margin-bottom: 0.4rem;
    font-size: 1.2rem;
    color: var(--brand-primary, #442A82);
}

.document-cta__info p {
    margin: 0;
    color: var(--color-gray);
    font-size: 0.95rem;
}

.document-cta__form {
    max-width: 640px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.document-cta__form .form-row {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.document-cta__form .form-row--checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.6rem;
}

.document-cta__form .form-row--checkbox input[type="checkbox"] {
    margin-top: 0.3rem;
    flex: 0 0 auto;
}

.document-cta__form label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-gray);
}

.document-cta__form .required {
    color: var(--brand-secondary, #E23563);
}

.document-cta__form input[type="text"],
.document-cta__form input[type="tel"],
.document-cta__form input[type="email"],
.document-cta__form select {
    padding: 0.7rem 0.9rem;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--color-gray);
    width: 100%;
    background-color: #ffffff;
}

.document-cta__form input:focus,
.document-cta__form select:focus {
    outline: none;
    border-color: var(--brand-primary, #442A82);
}

.document-cta__form button[type="submit"] {
    align-self: flex-start;
}

.document-cta__success {
    max-width: 640px;
}

.document-cta__success h2 {
    margin-top: 0;
    color: #1e7e34;
}

.document-cta__success .btn {
    margin-top: 0.5rem;
}
