@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700;800;900&display=swap');

/* --- DESIGN SYSTEM & CSS VARIABLES --- */
:root {
    /* Color Palette */
    --primary: #C8102E;
    /* Red Cross Red */
    --primary-hover: #A00B22;
    /* Darker Red */
    --secondary: #0F7A50;
    /* Health Green */
    --secondary-hover: #0B5C3C;
    /* Darker Green */
    --accent: #EAB308;
    /* Amber Yellow for badges */

    /* Backgrounds */
    --bg-light: #F8FAFC;
    /* Light Slate Gray */
    --bg-card: #FFFFFF;
    /* White Card */
    --bg-dark: #0F172A;
    /* Dark Slate Gray */
    --bg-dark-light: #1E293B;
    /* Medium Slate Gray */

    /* Typography */
    --font-heading: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Text Colors */
    --text-main: #1E293B;
    /* Charcoal */
    --text-muted: #64748B;
    /* Slate Muted */
    --text-light: #F8FAFC;
    /* Off-White */
    --text-white: #FFFFFF;
    /* Pure White */

    /* Borders & Shadows */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.12);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET & GLOBAL STYLES --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
    overflow-x: clip;
    width: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-light);
    overflow-x: clip;
    width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--bg-dark);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    list-style: none;
}

/* --- UTILITY CLASSES --- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section-bg {
    background-color: var(--bg-card);
}

.section-title {
    text-align: center;
    max-width: 860px;
    margin: 0 auto 50px auto;
}

.section-title span {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.section-title h2 {
    font-size: 2.25rem;
    margin-bottom: 16px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.text-gradient-red {
    background: linear-gradient(135deg, var(--primary) 0%, #E11D48 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-green {
    background: linear-gradient(135deg, var(--secondary) 0%, #10B981 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-white);
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.08);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}

.btn-white-red {
    background-color: #ffffff !important;
    color: var(--primary) !important;
    border: 2px solid var(--primary) !important;
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.15) !important;
}

.btn-white-red i {
    color: var(--primary) !important;
}

.btn-white-red:hover {
    background-color: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(200, 16, 46, 0.3) !important;
}

.btn-white-red:hover i {
    color: #ffffff !important;
}

/* --- EYE-CATCHING HOTLINE BUTTON --- */
.course-btn-hotline {
    background: linear-gradient(135deg, #C8102E 0%, #E11D48 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    padding: 13px 28px !important;
    border-radius: 50px !important;
    border: none !important;
    box-shadow: 0 6px 20px rgba(200, 16, 46, 0.4) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.course-btn-hotline i {
    color: #ffffff !important;
    font-size: 1.15rem;
    display: inline-block;
    animation: phonePulse 2s infinite ease-in-out;
}

.course-btn-hotline:hover {
    transform: translateY(-3px) scale(1.04) !important;
    box-shadow: 0 10px 28px rgba(200, 16, 46, 0.55) !important;
    background: linear-gradient(135deg, #b00d27 0%, #be123c 100%) !important;
    color: #ffffff !important;
}

@keyframes phonePulse {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    10%,
    30%,
    50% {
        transform: scale(1.25) rotate(-15deg);
    }

    20%,
    40% {
        transform: scale(1.25) rotate(15deg);
    }

    60% {
        transform: scale(1) rotate(0deg);
    }
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--text-white);
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.08);
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}

.btn-outline {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-white);
}

.btn-outline:hover {
    background-color: var(--text-white);
    color: var(--bg-dark);
    border-color: var(--text-white);
    transform: translateY(-2px);
}

.btn-outline-dark {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-dark:hover {
    background-color: var(--primary);
    color: var(--text-white);
    transform: translateY(-2px);
}

/* --- HEADER & TOPBAR --- */
.header {
    background-color: var(--bg-card);
    position: sticky;
    top: 0;
    z-index: 9999 !important;
    transition: box-shadow 0.3s ease;
    box-shadow: var(--shadow-sm);
}

/* --- HEADER MARQUEE TICKER BAR --- */
.header-ticker-bar {
    background-color: var(--secondary);
    color: #ffffff;
    padding: 7px 0;
    overflow: hidden;
    font-size: 0.9rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    height: 38px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.12);
}

.header-ticker-container {
    width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.ticker-content {
    width: 100%;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

.ticker-track {
    display: inline-flex;
    align-items: center;
    gap: 40px;
    white-space: nowrap;
    will-change: transform;
    animation: marqueeContinuous 22s linear infinite;
}

.ticker-track:hover {
    animation-play-state: paused;
}

.ticker-divider {
    color: #FACC15;
    font-size: 0.75rem;
}

@keyframes marqueeContinuous {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-top {
    background-color: var(--bg-card);
}

.header-top-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-contact a {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.header-contact a:hover {
    color: var(--primary);
}

/* Red Hotline shape badge & Shaking animation */
.header-contact a.hotline-btn {
    background: linear-gradient(135deg, var(--primary) 0%, #A00B22 100%);
    color: #ffffff !important;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 14px rgba(200, 16, 46, 0.35);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.header-contact a.hotline-btn:hover {
    background: linear-gradient(135deg, #D91234 0%, #B50C27 100%);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 20px rgba(200, 16, 46, 0.5);
    color: #ffffff !important;
}

.hotline-icon {
    display: inline-block;
    animation: popRhythmicRing 2.2s infinite ease-in-out;
    transform-origin: center center;
    color: #ffffff;
    font-size: 0.95rem;
}

@keyframes popRhythmicRing {
    0% {
        transform: rotate(0deg) scale(1);
    }

    3% {
        transform: rotate(-22deg) scale(1.35);
    }

    6% {
        transform: rotate(22deg) scale(1.35);
    }

    9% {
        transform: rotate(-20deg) scale(1.3);
    }

    12% {
        transform: rotate(20deg) scale(1.3);
    }

    15% {
        transform: rotate(-15deg) scale(1.25);
    }

    18% {
        transform: rotate(15deg) scale(1.25);
    }

    21% {
        transform: rotate(-8deg) scale(1.15);
    }

    24% {
        transform: rotate(0deg) scale(1);
    }

    100% {
        transform: rotate(0deg) scale(1);
    }
}

.header-social {
    display: flex;
    gap: 8px;
}

.header-social a {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--text-white);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.header-social a:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.site-header-sticky {
    position: sticky;
    top: 0;
    z-index: 9999 !important;
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.12);
}

.header-nav-bar {
    background-color: var(--primary);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 68px;
    height: 68px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title,
.logo-subtitle {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.35;
}

.logo-slogan {
    font-size: 0.76rem;
    font-weight: 700;
    color: #0F7A50;
    letter-spacing: 0.2px;
    margin-top: 3px;
    line-height: 1.25;
    text-align: center;
    display: block;
    width: 100%;
}

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
    padding: 12px 0;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-white);
    position: relative;
    padding: 6px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--text-white);
    transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: #ffd7d7;
}

/* --- DROPDOWN NAVIGATION MENU --- */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-arrow {
    font-size: 0.75rem;
    margin-left: 6px;
    transition: transform var(--transition-fast);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    background-color: var(--secondary);
    min-width: 220px;
    border-radius: 6px;
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

/* Invisible bridge to prevent hover loss when moving mouse to shifted dropdown */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    width: 100%;
    height: 12px;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-item {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-white);
    padding: 10px 20px;
    text-transform: none;
    transition: all var(--transition-fast);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    display: block;
}

.dropdown-item:hover {
    background-color: var(--secondary-hover);
    color: #ffd7d7;
    padding-left: 24px;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--bg-dark);
}

/* --- MAIN TOP BANNER --- */
.main-top-banner {
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    overflow: hidden;
}

.main-top-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- BANNER SLIDER (multi-banner) --- */
.banner-slider {
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}
.banner-slides { position: relative; width: 100%; }
.banner-slide {
    position: absolute; top: 0; left: 0; width: 100%;
    opacity: 0; transition: opacity 0.8s ease-in-out; z-index: 0;
}
.banner-slide.active { position: relative; opacity: 1; z-index: 1; }
.banner-slide img { width: 100%; height: auto; display: block; }
.banner-slide a { display: block; }
.banner-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
    background: rgba(255,255,255,0.75); backdrop-filter: blur(4px);
    border: none; color: #c0392b; font-size: 1.5rem;
    width: 44px; height: 44px; border-radius: 50%;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease; opacity: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.banner-slider:hover .banner-nav { opacity: 1; }
.banner-nav:hover { background: #c0392b; color: #fff; transform: translateY(-50%) scale(1.1); }
.banner-prev { left: 16px; }
.banner-next { right: 16px; }
.banner-dots {
    position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
    z-index: 10; display: flex; gap: 10px;
}
.banner-dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: rgba(255,255,255,0.6); border: 2px solid rgba(192,57,43,0.4);
    cursor: pointer; transition: all 0.3s ease;
}
.banner-dot.active {
    background: #c0392b; border-color: #c0392b;
    transform: scale(1.2); box-shadow: 0 0 6px rgba(192,57,43,0.5);
}
.banner-dot:hover:not(.active) { background: rgba(192,57,43,0.4); }
@media (max-width: 768px) {
    .banner-nav { width: 34px; height: 34px; font-size: 1.1rem; opacity: 1; }
    .banner-prev { left: 8px; } .banner-next { right: 8px; }
    .banner-dots { bottom: 10px; gap: 8px; }
    .banner-dot { width: 10px; height: 10px; }
}

/* --- HERO SECTION --- */
.hero {
    background: #f7f8f7;
    color: var(--text-main);
    padding: 88px 0 132px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #e4e8e5;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 72px;
    height: 3px;
    background: var(--primary);
    transform: translateX(-50%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    padding: 0;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 22px;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.hero-tagline::before {
    content: '';
    width: 26px;
    height: 1px;
    background: currentColor;
}

.hero h1 {
    font-size: clamp(2.65rem, 4.3vw, 4rem);
    color: #17221d;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.2;
    letter-spacing: -0.04em;
}

.hero h1 span.highlight {
    color: #b5122f;
    display: inline-block;
}

.hero h1 span.highlight-green {
    color: #087345;
    display: inline-block;
}

.hero-desc {
    font-size: 1.02rem;
    color: #59645e;
    line-height: 1.75;
    margin-bottom: 32px;
    max-width: 690px;
}

.hero-btns {
    display: flex;
    gap: 12px;
}

.hero-btns .btn {
    min-width: 190px;
    min-height: 50px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.95rem;
}

.hero-btns .btn-primary {
    box-shadow: 0 8px 20px rgba(200, 16, 46, 0.16);
}

.hero-btn-outline {
    background: #ffffff;
    border-color: #cfd6d1;
    color: #27312c;
}

.hero-btn-outline:hover {
    background: #f0f3f1;
    border-color: #aeb9b2;
    color: #17221d;
}

.hero-center {
    text-align: center;
    max-width: 1020px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-center .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.hero-center .hero-desc {
    margin-left: auto;
    margin-right: auto;
}

.hero-center .hero-btns {
    justify-content: center;
}

.hero-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: var(--transition-normal);
}

.hero-card:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateX(10px);
}

.hero-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background-color: var(--text-white);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.hero-card-content h3 {
    font-size: 1.1rem;
    color: var(--text-white);
    margin-bottom: 4px;
}

.hero-card-content p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* --- STATS COUNTER --- */
.stats {
    background-color: #ffffff;
    color: var(--text-main);
    padding: 35px 20px;
    margin-top: -80px;
    position: relative;
    z-index: 10;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.02);
    border: 1px solid #E2E8F0;
    border-top: 4px solid var(--primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.stats-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border-right: 1px solid #E2E8F0;
    padding: 10px 15px;
}

.stats-item:last-child {
    border-right: none;
}

.stats-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(200, 16, 46, 0.05);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.stats-item:hover .stats-icon-wrapper {
    background-color: var(--primary);
    color: #ffffff;
    transform: scale(1.05);
}

.stats-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.stats-number {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--bg-dark);
    line-height: 1.15;
    margin-bottom: 2px;
}

.stats-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Responsive stats panel overrides */
@media (max-width: 991px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stats-item {
        border-right: none;
        border-bottom: 1px solid #E2E8F0;
        padding-bottom: 20px;
        justify-content: flex-start;
        padding-left: 20%;
    }

    .stats-item:nth-child(even) {
        border-right: none;
    }

    .stats-item:nth-child(3),
    .stats-item:nth-child(4) {
        border-bottom: none;
        padding-bottom: 0;
    }
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stats-item {
        border-right: none;
        border-bottom: 1px solid #E2E8F0;
        padding-bottom: 15px;
        padding-left: 10%;
    }

    .stats-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

/* --- COURSES --- */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.course-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 10px 28px rgba(19, 36, 27, 0.055);
    border: 1px solid #dce3de;
    border-top: 3px solid var(--primary);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.course-card::before {
    display: none;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 42px rgba(19, 36, 27, 0.1);
    border-color: #c8d2cb;
    border-top-color: var(--primary);
}

.course-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 24px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.course-card:hover .course-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.course-icon-wrapper.c-orange {
    background-color: rgba(250, 84, 28, 0.08);
    color: #FA541C;
    box-shadow: 0 4px 12px rgba(250, 84, 28, 0.1);
}

.course-icon-wrapper.c-blue {
    background-color: rgba(24, 144, 255, 0.08);
    color: #1890FF;
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.1);
}

.course-icon-wrapper.c-green {
    background-color: rgba(82, 196, 26, 0.08);
    color: #52C41A;
    box-shadow: 0 4px 12px rgba(82, 196, 26, 0.1);
}

.course-icon-wrapper.c-yellow {
    background-color: rgba(250, 219, 20, 0.08);
    color: #D4B106;
    box-shadow: 0 4px 12px rgba(250, 219, 20, 0.15);
}

.course-icon-wrapper.c-purple {
    background-color: rgba(114, 46, 209, 0.08);
    color: #722ED1;
    box-shadow: 0 4px 12px rgba(114, 46, 209, 0.1);
}

.course-icon-wrapper.c-cyan {
    background-color: rgba(19, 194, 194, 0.08);
    color: #13C2C2;
    box-shadow: 0 4px 12px rgba(19, 194, 194, 0.1);
}

.course-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 14px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    display: inline-block;
}

.course-tag.t-orange {
    color: #FA541C;
    background-color: rgba(250, 84, 28, 0.08);
}

.course-tag.t-blue {
    color: #1890FF;
    background-color: rgba(24, 144, 255, 0.08);
}

.course-tag.t-green {
    color: #52C41A;
    background-color: rgba(82, 196, 26, 0.08);
}

.course-tag.t-yellow {
    color: #B38600;
    background-color: rgba(250, 219, 20, 0.1);
}

.course-tag.t-purple {
    color: #722ED1;
    background-color: rgba(114, 46, 209, 0.08);
}

.course-tag.t-cyan {
    color: #13C2C2;
    background-color: rgba(19, 194, 194, 0.08);
}

.course-tag.t-red {
    color: var(--primary);
    background-color: rgba(200, 16, 46, 0.08);
}

/* --- ABOUT: MISSION & OPERATING PRINCIPLES --- */
.orientation-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 60px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dbe2dd;
    border-top: 4px solid var(--primary);
    border-radius: 10px;
    box-shadow: 0 14px 34px rgba(19, 36, 27, 0.07);
}

.orientation-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-content: start;
    gap: 18px;
    min-width: 0;
    padding: 32px 30px 34px;
}

.orientation-item+.orientation-item {
    border-left: 1px solid #e3e8e5;
}

.orientation-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: var(--primary);
    font-size: 1.15rem;
    background: #fff5f6;
    border: 1px solid #f2d7dc;
    border-radius: 8px;
}

.orientation-content h3 {
    min-height: 48px;
    margin: 0 0 14px;
    padding-bottom: 14px;
    color: var(--bg-dark);
    font-size: 1.08rem;
    font-weight: 750;
    line-height: 1.45;
    border-bottom: 1px solid #edf0ee;
}

.orientation-content p {
    margin: 0;
    color: #58697c;
    font-size: 0.91rem;
    line-height: 1.75;
}

@media (max-width: 1024px) {
    .orientation-panel {
        grid-template-columns: 1fr;
    }

    .orientation-item {
        grid-template-columns: 52px minmax(0, 1fr);
        padding: 28px 30px;
    }

    .orientation-item+.orientation-item {
        border-top: 1px solid #e3e8e5;
        border-left: 0;
    }

    .orientation-content h3 {
        min-height: 0;
    }
}

@media (max-width: 640px) {
    .orientation-panel {
        margin-top: 40px;
        border-radius: 8px;
    }

    .orientation-item {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 14px;
        padding: 24px 20px 26px;
    }

    .orientation-icon {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .orientation-content h3 {
        margin-bottom: 12px;
        padding-bottom: 12px;
        font-size: 1rem;
    }

    .orientation-content p {
        font-size: 0.875rem;
        line-height: 1.7;
    }
}

.course-link i {
    width: 27px;
    height: 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f9e9ec;
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.course-card:hover .course-link {
    color: var(--primary-hover);
}

.course-card:hover .course-link i {
    transform: translateX(2px);
    background: var(--primary);
    color: #ffffff;
}

/* --- ABOUT SECTION --- */
.about-split-section {
    position: relative;
    width: 100%;
    background-color: #ffffff;
    overflow: hidden;
}

.about-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    width: 100%;
}

.about-split-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.about-split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    display: block;
}

.about-split-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 80px 40px;
}

.about-content-inner {
    width: 100%;
    max-width: 580px;
}

@media (min-width: 1025px) {
    .about-split-content {
        padding-left: 80px;
        padding-right: calc((100vw - 1280px) / 2 + 24px);
    }
}

@media (max-width: 1024px) {
    .about-split-grid {
        grid-template-columns: 1fr;
    }

    .about-split-image {
        aspect-ratio: 16/9;
        order: -1;
    }

    .about-split-content {
        padding: 60px 24px;
    }
}

.about-badge-circle {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 8px solid rgba(200, 16, 46, 0.05);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-logo-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
}

.about-logo-wrapper img {
    width: 100%;
    height: 100%;
}

.about-experience-badge {
    position: absolute;
    top: -15px;
    right: -15px;
    background-color: #ffffff;
    color: var(--primary);
    border: 1px solid #E2E8F0;
    padding: 12px 18px;
    border-radius: 14px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    text-align: center;
    min-width: 110px;
}

.about-experience-badge .years {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 2px;
    display: block;
}

.about-experience-badge .text {
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
    line-height: 1.3;
    display: block;
}

.about-content h3 {
    font-size: 1.85rem;
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.about-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-list-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.about-list-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(15, 122, 80, 0.1);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.about-list-text h4 {
    font-size: 1.05rem;
    color: var(--bg-dark);
    margin-bottom: 2px;
}

.about-list-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* --- ACTIVITIES / NEWS --- */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.activity-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.activity-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.activity-img-wrapper {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.activity-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.activity-card:hover .activity-img-wrapper img {
    transform: scale(1.08);
}

.activity-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: var(--secondary);
    color: var(--text-white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

.activity-content {
    padding: 24px;
}

.activity-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    gap: 12px;
}

.activity-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.activity-content h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.activity-content h3 a:hover {
    color: var(--primary);
}

.activity-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.activity-link {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.activity-link:hover {
    color: var(--primary-hover);
}

/* --- REGISTRATION SECTION & FORM --- */
.register-bg {
    background-color: #083A22;
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}

.register-bg::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    opacity: 0.5;
}

.register-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.register-content .tag {
    color: #ffffff;
    background-color: var(--primary);
    border: none;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
}

.register-content h2 {
    color: var(--text-white);
    font-size: 2.25rem;
    margin-bottom: 24px;
    font-weight: 800;
}

.register-content p {
    opacity: 0.8;
    margin-bottom: 32px;
    font-size: 1.05rem;
}

.register-bullets {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.register-bullet-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.register-bullet-icon {
    color: var(--primary);
    font-size: 1.1rem;
    margin-top: 2px;
}

.register-bullet-text {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Form Styling */
.register-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    color: var(--text-main);
}

.register-card h3 {
    font-size: 1.25rem;
    line-height: 1.45;
    margin-bottom: 24px;
    text-align: center;
    color: var(--bg-dark);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group-full {
    grid-column: span 2;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid #E2E8F0;
    background-color: #F8FAFC;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-main);
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--text-white);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.form-checkbox input {
    margin-top: 3px;
    accent-color: var(--primary);
}

.register-card .btn {
    width: 100%;
}

/* Toast message for registration feedback */
.toast-msg {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 16px;
    display: none;
    align-items: center;
    gap: 10px;
}

.toast-success {
    background-color: #DEF7EC;
    color: #03543F;
    border: 1px solid #BCF0DA;
    display: flex;
}

.toast-error {
    background-color: #FDE8E8;
    color: #9B1C1C;
    border: 1px solid #FBD5D5;
    display: flex;
}

/* --- VIDEOS SECTION --- */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.video-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    cursor: pointer;
}

.video-card:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.video-thumbnail-wrapper {
    position: relative;
    height: 200px;
    background-color: var(--bg-dark);
}

.video-thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: var(--transition-normal);
}

.video-card:hover .video-thumbnail-wrapper img {
    transform: scale(1.04);
    opacity: 0.75;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(200, 16, 46, 0.4);
    transition: var(--transition-normal);
    z-index: 2;
}

.video-play-btn i {
    margin-left: 4px;
    /* Align play triangle */
}

.video-card:hover .video-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: var(--text-white);
    color: var(--primary);
    box-shadow: 0 4px 25px rgba(255, 255, 255, 0.5);
}

.video-content {
    padding: 20px;
}

.video-content h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.video-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.videos-cta {
    text-align: center;
    margin-top: 40px;
}

/* --- PARTNERS --- */
.partners-bg {
    background-color: #F1F5F9;
    padding: 50px 0;
    border-top: 1px solid #E2E8F0;
    border-bottom: 1px solid #E2E8F0;
}

.partners-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

.partners-flex {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.partner-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.9;
    transition: all var(--transition-normal);
}

.partner-logo:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.partner-logo img {
    height: 48px;
    width: auto;
}

.partner-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--bg-dark-light);
}

/* --- CONTACT SECTION --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
}

.contact-info h3 {
    font-size: 1.85rem;
    margin-bottom: 24px;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background-color: rgba(200, 16, 46, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 1.05rem;
    color: var(--bg-dark);
    margin-bottom: 4px;
}

.contact-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

.contact-text p a {
    word-break: break-word;
    overflow-wrap: break-word;
}

.contact-map-wrapper {
    height: 100%;
    min-height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid #E2E8F0;
    position: relative;
}

#map {
    height: 100%;
    width: 100%;
    min-height: 400px;
    position: relative;
    z-index: 1 !important;
}

/* Ensure Leaflet controls & popups never float over sticky header */
.leaflet-container {
    z-index: 1 !important;
}

.leaflet-top,
.leaflet-bottom,
.leaflet-pane,
.leaflet-popup-pane,
.leaflet-control {
    z-index: 10 !important;
}

/* --- FOOTER --- */
.footer {
    background: linear-gradient(135deg, #C8102E 0%, #900A20 100%);
    color: #ffffff;
    padding: 80px 0 30px 0;
    border-top: 4px solid #A00B22;
    box-shadow: inset 0 10px 30px rgba(0, 0, 0, 0.15);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-col h3 {
    color: #ffffff;
    font-size: 1.25rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #0F7A50;
    border-radius: 2px;
}

.footer-about .logo {
    margin-bottom: 20px;
}

.footer-about .logo-title {
    color: #ffffff;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(6px);
}

.footer-links a i {
    color: #ffffff;
    background: #0F7A50;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    flex-shrink: 0;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
}

.footer-contact-item i {
    color: #ffffff;
    background: #0F7A50;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-contact-item p {
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.85);
    transition: var(--transition-fast);
}

.footer-bottom-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* --- RESPONSIVENESS --- */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.75rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-item {
        border-right: none;
        padding: 10px 0;
    }

    .courses-grid,
    .activities-grid,
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-wrapper,
    .register-wrapper,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-badge-img {
        order: -1;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 10px 20px;
    }

    .logo {
        gap: 8px;
    }

    .logo-icon {
        width: 52px;
        height: 52px;
    }

    .logo-title,
    .logo-subtitle {
        font-size: 0.85rem;
        letter-spacing: 0.2px;
    }

    .header-nav-bar {
        background-color: transparent;
        height: 0;
        padding: 0;
        box-shadow: none;
        overflow: visible;
    }

    .header-email,
    .header-social {
        display: none;
    }

    .header-contact a.hotline-btn {
        padding: 6px 12px;
        font-size: 0.82rem;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: var(--bg-card);
        flex-direction: column;
        align-items: center;
        padding: 40px 0;
        gap: 30px;
        transition: var(--transition-normal);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        color: var(--primary);
        padding: 10px 0;
    }

    .nav-link::after {
        background-color: var(--primary);
    }

    .nav-link:hover {
        color: var(--primary-hover);
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.1rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-btns {
        flex-direction: column;
    }

    .courses-grid,
    .activities-grid,
    .videos-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group-full {
        grid-column: span 1;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .topbar {
        display: none;
    }

    /* Mobile Dropdown styles */
    .nav-dropdown {
        width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .nav-dropdown .dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .nav-dropdown .dropdown-menu {
        position: static;
        width: 85%;
        background-color: #f1f5f9;
        box-shadow: none;
        border-radius: 8px;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        /* controlled by JS toggle */
        padding: 5px 0;
        margin-top: 5px;
    }

    .nav-dropdown.active .dropdown-menu {
        display: flex;
    }

    .nav-dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }

    .nav-dropdown .dropdown-item {
        color: var(--primary);
        text-align: center;
        padding: 10px 15px;
        border-bottom: 1px solid #e2e8f0;
    }

    .nav-dropdown .dropdown-item:hover {
        background-color: #e2e8f0;
        color: var(--primary-hover);
        padding-left: 15px;
        /* disable shift on mobile */
    }
}


/* --- VIDEO MODAL STYLES --- */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.video-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
}

.video-modal-container {
    position: relative;
    width: 90%;
    max-width: 900px;
    background-color: #000000;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
}

.video-modal.active .video-modal-container {
    transform: scale(1);
}

.video-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    z-index: 10;
}

.video-modal-close:hover {
    background-color: var(--primary);
    transform: rotate(90deg);
}

.video-modal-content {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
}

.video-modal-content iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* --- ABOUT PAGE (GIOI THIEU) STYLES --- */
.page-hero {
    background-color: #064E3B;
    background-image: linear-gradient(rgba(6, 78, 59, 0.82), rgba(2, 44, 34, 0.88)), url('../images/logo (4).png');
    background-repeat: repeat;
    background-size: 320px auto;
    padding: 85px 0 65px 0;
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero.page-hero-about {
    background-color: #064E3B;
    background-image: linear-gradient(rgba(6, 78, 59, 0.82), rgba(2, 44, 34, 0.88)), url('../images/logo (4).png');
    background-repeat: repeat;
    background-size: 320px auto;
    padding: 85px 0 65px 0;
}

.page-hero-about .about-hero-content {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    padding: 0;
    max-width: 100%;
    margin: 0 auto;
    box-shadow: none;
}

.about-hero-title {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 2.1rem !important;
    font-weight: 800 !important;
    font-style: normal !important;
    color: var(--primary) !important;
    /* Red Cross Red */
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    margin-bottom: 12px !important;
    letter-spacing: 0.5px;
    line-height: 1.35;
}

.about-hero-subtitle {
    font-size: 1.25rem;
    font-style: italic;
    color: #ffffff;
    margin-bottom: 24px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .page-hero.page-hero-about {
        padding: 60px 0 40px 0;
    }

    .page-hero-about .about-hero-content {
        padding: 0;
        margin: 0 15px;
    }

    .about-hero-title {
        font-size: 1.3rem !important;
        line-height: 1.4;
    }

    .about-hero-subtitle {
        font-size: 1.05rem;
        margin-bottom: 18px;
    }
}

.page-hero h1 {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #ffffff;
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumbs a {
    color: #ffffff;
    text-decoration: none;
    transition: var(--transition-fast);
}

.breadcrumbs a:hover {
    color: #FFF2E8;
    text-decoration: underline;
}

/* Timeline Layout */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 40px auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 30px;
    width: 20px;
    height: 20px;
    background-color: #ffffff;
    border: 4px solid var(--primary);
    border-radius: 50%;
    z-index: 5;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
    border-color: var(--secondary);
}

.timeline-content {
    background-color: #ffffff;
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid #E2E8F0;
    transition: var(--transition-normal);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.timeline-item:nth-child(even) .timeline-content:hover {
    border-color: var(--secondary);
}

.timeline-year {
    display: inline-block;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.timeline-item:nth-child(even) .timeline-year {
    color: var(--secondary);
}

.timeline-content h4 {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--bg-dark);
}

/* Organizational Chart - Modern Hierarchical Tree Layout */
.org-chart-wrapper {
    width: 100%;
    max-width: 1040px;
    margin: 30px auto 10px auto;
    padding: 10px 0 30px 0;
    box-sizing: border-box;
    overflow: hidden;
}

.org-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

/* Clean Card Base Styling - Crisp & Premium */
.org-card {
    background-color: #ffffff;
    border-radius: 14px;
    padding: 18px 14px;
    box-shadow: 0 6px 18px -4px rgba(15, 23, 42, 0.06), 0 2px 6px -2px rgba(15, 23, 42, 0.03);
    border: 1px solid #E2E8F0;
    border-top: 5px solid var(--primary);
    text-align: center;
    position: relative;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
}

.org-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px -4px rgba(15, 23, 42, 0.12), 0 6px 12px -2px rgba(15, 23, 42, 0.04);
}

/* Color Accent Variations */
.org-card-top {
    max-width: 320px;
    border-top-color: #C8102E;
}

.org-card-top .org-icon {
    color: #C8102E;
    background: rgba(200, 16, 46, 0.08);
}

.org-card-pgd1 {
    max-width: 280px;
    border-top-color: #0284C7;
}

.org-card-pgd1 .org-icon {
    color: #0284C7;
    background: rgba(2, 132, 199, 0.08);
}

.org-card-tckt {
    max-width: 270px;
    border-top-color: #EAB308;
}

.org-card-tckt .org-icon {
    color: #D97706;
    background: rgba(234, 179, 8, 0.1);
}

.org-card-pgd2 {
    max-width: 280px;
    border-top-color: #722ED1;
}

.org-card-pgd2 .org-icon {
    color: #722ED1;
    background: rgba(114, 46, 209, 0.08);
}

.org-card-sub {
    width: 100%;
    max-width: 160px;
    padding: 14px 10px;
}

.org-card-dt {
    border-top-color: #10B981;
}

.org-card-dt .org-icon {
    color: #10B981;
    background: rgba(16, 185, 129, 0.08);
}

.org-card-htqt {
    border-top-color: #06B6D4;
}

.org-card-htqt .org-icon {
    color: #06B6D4;
    background: rgba(6, 182, 212, 0.08);
}

.org-card-hlscc {
    border-top-color: #0F7A50;
}

.org-card-hlscc .org-icon {
    color: #0F7A50;
    background: rgba(15, 122, 80, 0.08);
}

.org-card-tchc {
    border-top-color: #8B5CF6;
}

.org-card-tchc .org-icon {
    color: #8B5CF6;
    background: rgba(139, 92, 246, 0.08);
}

/* Icon & Typography */
.org-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.org-card-sub .org-icon {
    width: 36px;
    height: 36px;
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.org-title {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: #0F172A;
    margin: 0 0 4px 0;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

.org-card-sub .org-title {
    font-size: 0.88rem;
}

.org-sublabel {
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 6px;
    display: block;
    line-height: 1.3;
}

.org-card-sub .org-sublabel {
    font-size: 0.76rem;
    margin-bottom: 4px;
}

.org-desc {
    font-size: 0.8rem;
    color: #64748B;
    line-height: 1.38;
    margin: 0;
}

.org-card-sub .org-desc {
    font-size: 0.74rem;
    line-height: 1.3;
}

/* --- PERFECT PSEUDO-ELEMENT TREE CONNECTORS --- */
.org-level-top {
    display: flex;
    justify-content: center;
    width: 100%;
    position: relative;
    padding-bottom: 24px;
}

.org-level-top::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 2px;
    height: 24px;
    background-color: #2563EB;
    transform: translateX(-50%);
}

.org-level-middle {
    display: flex;
    width: 100%;
    justify-content: space-between;
    position: relative;
}

.org-col-mid {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 24px 6px 0 6px;
    box-sizing: border-box;
}

/* Horizontal line across middle row */
.org-col-mid::before {
    content: '';
    position: absolute;
    top: 0;
    height: 2px;
    background-color: #2563EB;
}

.org-col-mid:first-child::before {
    left: 50%;
    right: 0;
}

.org-col-mid:nth-child(2)::before {
    left: 0;
    right: 0;
}

.org-col-mid:last-child::before {
    left: 0;
    right: 50%;
}

/* Vertical stem entering middle card */
.org-col-mid::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 24px;
    background-color: #2563EB;
    transform: translateX(-50%);
}

/* Sub-branch layout under PGĐ 1 & PGĐ 2 */
.org-sub-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: relative;
    padding-top: 24px;
}

/* Vertical stem from PGĐ card to sub-row */
.org-sub-branch::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 24px;
    background-color: #2563EB;
    transform: translateX(-50%);
}

.org-sub-row {
    display: flex;
    width: 100%;
    justify-content: center;
    position: relative;
}

.org-sub-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-top: 20px;
    box-sizing: border-box;
}

/* Horizontal line for sub level */
.org-sub-col::before {
    content: '';
    position: absolute;
    top: 0;
    height: 2px;
    background-color: #2563EB;
}

.org-sub-col:first-child::before {
    left: 50%;
    right: 0;
}

.org-sub-col:last-child::before {
    left: 0;
    right: 50%;
}

/* Vertical stem into sub card */
.org-sub-col::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 20px;
    background-color: #2563EB;
    transform: translateX(-50%);
}

/* Mobile Responsive */
@media (max-width: 768px) {

    .org-level-top::after,
    .org-col-mid::before,
    .org-col-mid::after,
    .org-sub-branch::before,
    .org-sub-col::before,
    .org-sub-col::after {
        display: none;
    }

    .org-level-middle {
        flex-direction: column;
        gap: 20px;
    }

    .org-col-mid {
        padding: 0;
    }

    .org-sub-branch {
        padding-top: 14px;
    }

    .org-sub-row {
        flex-direction: column;
        gap: 14px;
        padding-top: 0;
        padding-left: 14px;
        border-left: 3px solid #2563EB;
    }

    .org-sub-col {
        padding-top: 0;
    }

    .org-card {
        max-width: 100%;
    }
}

/* Faculty Grid */
.faculty-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.faculty-card {
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    transition: var(--transition-normal);
}

.faculty-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.faculty-img-wrapper {
    width: 45%;
    min-width: 180px;
    overflow: hidden;
    position: relative;
}

.faculty-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.faculty-card:hover .faculty-img-wrapper img {
    transform: scale(1.05);
}

.faculty-info {
    padding: 24px;
    width: 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.faculty-info h4 {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--bg-dark);
    margin-bottom: 4px;
}

.faculty-role {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.faculty-card:nth-child(even) .faculty-role {
    color: var(--secondary);
}

.faculty-bio {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* About Intro Grid Styles */
.about-intro-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 50px;
}

.about-intro-title {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--bg-dark);
    margin-bottom: 20px;
    line-height: 1.25;
}

.about-intro-btns {
    display: flex;
    gap: 20px;
}

.about-intro-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.about-intro-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* About Page Responsive */
@media (max-width: 900px) {
    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 0;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
    }

    .timeline-dot {
        left: 20px !important;
        right: auto !important;
    }

    .faculty-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .faculty-card {
        flex-direction: column;
    }

    .faculty-img-wrapper {
        width: 100%;
        height: 250px;
    }

    .faculty-info {
        width: 100%;
        padding: 20px;
    }
}

/* --- COURSES PAGE (KHOA HOC) STYLES --- */
.course-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: #ffffff;
    border: 1px solid #E2E8F0;
    padding: 10px 22px;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-main);
    cursor: pointer;
    border-radius: 30px;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(200, 16, 46, 0.2);
}

/* Detailed Course Layout */
.detailed-courses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.detailed-course-card {
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid #F1F5F9;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.02), 0 2px 4px -1px rgba(15, 23, 42, 0.02);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.detailed-course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.06), 0 10px 10px -5px rgba(15, 23, 42, 0.03);
    border-color: #E2E8F0;
}

.detailed-course-header {
    margin-bottom: 16px;
}

.detailed-course-header h3 {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--bg-dark);
    margin-top: 4px;
    margin-bottom: 10px;
    line-height: 1.3;
}

/* Accordion Metadata Styling */
.accordion-meta-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px dashed #E2E8F0;
    margin-bottom: 16px;
}

.accordion-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-main);
}

.accordion-meta-item i {
    color: var(--primary);
    width: 18px;
    text-align: center;
    font-size: 0.9rem;
}

.cc-green .accordion-meta-item i {
    color: #52C41A;
}

.cc-blue .accordion-meta-item i {
    color: #1890FF;
}

.cc-yellow .accordion-meta-item i {
    color: #D4B106;
}

.cc-purple .accordion-meta-item i {
    color: #722ED1;
}

.cc-cyan .accordion-meta-item i {
    color: #13C2C2;
}

/* Accordion Layout */
.course-accordion {
    border-top: 1px solid #F1F5F9;
    padding-top: 15px;
    margin-bottom: 20px;
}

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--bg-dark);
    cursor: pointer;
    text-align: left;
    outline: none;
}

.accordion-header i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.accordion-header.active i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content-inner {
    padding: 12px 0 6px 0;
    font-size: 0.9rem;
    color: var(--text-main);
}

.syllabus-list {
    list-style: none;
    padding: 0;
    margin: 8px 0;
}

.syllabus-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.syllabus-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.75rem;
    color: var(--primary);
    position: absolute;
    left: 0;
    top: 2px;
}

.cc-green .syllabus-list li::before {
    color: #52C41A;
}

.cc-blue .syllabus-list li::before {
    color: #1890FF;
}

.cc-yellow .syllabus-list li::before {
    color: #D4B106;
}

.cc-purple .syllabus-list li::before {
    color: #722ED1;
}

.cc-cyan .syllabus-list li::before {
    color: #13C2C2;
}

/* Accreditation Section Layout */
.accreditation-wrapper {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 36px;
    align-items: center;
}

.accreditation-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.accreditation-img img {
    width: 100%;
    height: auto;
    display: block;
}

.accreditation-list {
    margin-top: 24px;
}

.accreditation-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.accreditation-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background-color: rgba(15, 122, 80, 0.08);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.accreditation-text h4 {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 700;
    color: var(--bg-dark);
    margin-bottom: 4px;
    font-size: 1rem;
}

.accreditation-text p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Course Page Responsive */
@media (max-width: 900px) {
    .detailed-courses-grid {
        grid-template-columns: 1fr;
    }

    .accreditation-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .accreditation-img {
        max-width: 480px;
        margin: 0 auto;
    }
}

/* Course Card Image Wrapper Styles */
.course-image-wrapper {
    width: 100%;
    height: 180px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
    border: 1px solid rgba(226, 232, 240, 0.5);
}

.course-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.course-card>.course-image-wrapper {
    height: 215px;
    margin-bottom: 0;
    border: 0;
    border-bottom: 1px solid #e7ebe8;
    border-radius: 0;
}

.course-card .course-image-wrapper,
.detailed-course-card .course-image-wrapper {
    position: relative !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    margin-bottom: 16px !important;
}

.course-card .course-image-wrapper .course-tag,
.detailed-course-card .course-image-wrapper .course-tag {
    position: absolute !important;
    z-index: 5 !important;
    top: 14px !important;
    left: 14px !important;
    margin: 0 !important;
    padding: 6px 14px !important;
    border: none !important;
    border-radius: 20px !important;
    background: #ffffff !important;
    color: #0F7A50 !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.14) !important;
    backdrop-filter: blur(8px) !important;
}

.course-card .course-image-wrapper .course-tag::before,
.detailed-course-card .course-image-wrapper .course-tag::before {
    display: none !important;
}

.course-card:hover .course-image-wrapper img,
.detailed-course-card:hover .course-image-wrapper img {
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .course-card>.course-image-wrapper {
        height: 210px;
    }

    .course-card-body {
        padding: 22px 20px 19px;
    }

    .course-card h3 {
        min-height: 0;
    }
}

/* --- DEDICATED NEWS PAGE (TIN TUC) STYLES --- */
.news-spotlight {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid #F1F5F9;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.02);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-spotlight:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.05), 0 10px 10px -5px rgba(15, 23, 42, 0.03);
    border-color: #E2E8F0;
}

.news-spotlight-img {
    height: 380px;
    position: relative;
    overflow: hidden;
}

.news-spotlight-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-spotlight:hover .news-spotlight-img img {
    transform: scale(1.04);
}

.news-spotlight-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.news-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-spotlight-content h2 {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--bg-dark);
    line-height: 1.35;
    margin-bottom: 14px;
    transition: color 0.2s ease;
}

.news-spotlight-content h2 a:hover {
    color: var(--primary);
}

.news-spotlight-content p {
    font-size: 0.94rem;
    line-height: 1.6;
    color: var(--text-main);
    margin-bottom: 20px;
}

/* News Grid layout */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.news-card {
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid #F1F5F9;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.02);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.05), 0 10px 10px -5px rgba(15, 23, 42, 0.03);
    border-color: #E2E8F0;
}

.news-card-img {
    height: 200px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #F1F5F9;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-card:hover .news-card-img img {
    transform: scale(1.06);
}

.news-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-content h3 {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--bg-dark);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3.2rem;
}

.news-card-content p {
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid #F1F5F9;
}

.read-more-link {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: gap 0.2s ease;
}

.read-more-link:hover {
    gap: 8px;
}

/* Modal Article Lightbox Reader */
.article-reader-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

.modal-container {
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-2xl);
    position: relative;
    display: flex;
    flex-direction: column;
    animation: modalSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background-color: #F1F5F9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    color: var(--text-main);
    font-size: 1.1rem;
    z-index: 10;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background-color: var(--primary);
    color: #ffffff;
}

.modal-hero-img {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.modal-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-article-body {
    padding: 32px;
}

.modal-article-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #F1F5F9;
    padding-bottom: 16px;
}

.modal-article-header h1 {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--bg-dark);
    line-height: 1.3;
    margin-top: 8px;
    margin-bottom: 12px;
}

.modal-article-content {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-main);
    text-align: justify;
}

.modal-article-content p {
    margin-bottom: 18px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .news-spotlight {
        grid-template-columns: 1fr;
    }

    .news-spotlight-img {
        height: 250px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .modal-hero-img {
        height: 200px;
    }

    .modal-article-body {
        padding: 20px;
    }

    .modal-article-header h1 {
        font-size: 1.4rem;
    }
}

/* --- SIDEBAR AND PAGINATION COMMON STYLES --- */
.page-with-sidebar {
    display: grid;
    grid-template-columns: 3.2fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-page-grid {
    grid-template-columns: 1.25fr 1fr;
    gap: 35px;
}

.page-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid #F1F5F9;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.01);
}

.contact-form-widget {
    padding: 35px;
}

@media (max-width: 768px) {
    .sidebar-widget {
        padding: 18px;
    }

    .contact-form-widget {
        padding: 20px;
    }
}

.sidebar-widget h3 {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--bg-dark);
    margin-bottom: 16px;
    border-bottom: 1px solid #F1F5F9;
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-input-group {
    display: flex;
    align-items: center;
    border: 1px solid #E2E8F0;
    border-radius: 30px;
    overflow: hidden;
    background-color: #ffffff;
    transition: border-color 0.2s ease;
}

.search-input-group:focus-within {
    border-color: var(--primary);
}

.search-input-group input {
    flex-grow: 1;
    border: none;
    outline: none;
    padding: 10px 18px;
    font-size: 0.88rem;
    color: var(--text-main);
    background: none;
    width: 100%;
}

.search-input-group button {
    border: none;
    background: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 10px 18px;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.search-input-group button:hover {
    color: var(--primary);
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-list-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    text-decoration: none;
}

.category-list-item a:hover,
.category-list-item.active a {
    background-color: #F1F5F9;
    color: var(--primary);
    font-weight: 600;
}

.category-list-item .count-badge {
    background-color: #F1F5F9;
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all 0.2s ease;
}

.category-list-item:hover .count-badge,
.category-list-item.active .count-badge {
    background-color: var(--primary);
    color: #ffffff;
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    grid-column: 1 / -1;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: var(--radius-full);
    border: 1px solid #E2E8F0;
    background-color: #ffffff;
    color: var(--text-main);
    font-size: 0.88rem;
    font-weight: 600;
    font-family: 'Be Vietnam Pro', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.pagination-link:hover,
.pagination-link.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(200, 16, 46, 0.15);
}

@media (max-width: 991px) {
    .page-with-sidebar {
        grid-template-columns: 1fr;
    }

    .page-sidebar {
        position: static;
        margin-top: 40px;
    }

    /* Reorder sidebars to be at the top on mobile for search/filters pages */
    .page-with-sidebar.sidebar-first-mobile {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .page-with-sidebar.sidebar-first-mobile .page-sidebar {
        order: -1;
        margin-top: 0;
        margin-bottom: 20px;
    }
}


/* --- COURSE DETAIL PAGE --- */
.course-detail-page {
    background: #fff;
}

.course-detail-page .header {
    border-bottom: 1px solid #eef2f7;
}

.course-detail-hero {
    padding: 34px 0 0;
    overflow: hidden;
    background: linear-gradient(180deg, #fff 0%, #fff 70%, #f8fafc 100%);
}

.course-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    margin-bottom: 38px;
    color: #64748b;
    font-size: .82rem;
    font-weight: 500;
}

.course-breadcrumbs a {
    color: #475569;
}

.course-breadcrumbs a:hover {
    color: var(--primary);
}

.course-breadcrumbs i {
    flex: 0 0 auto;
    color: #cbd5e1;
    font-size: .58rem;
}

.course-breadcrumbs span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.course-detail-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
    gap: clamp(48px, 7vw, 90px);
    align-items: center;
}

.course-detail-intro {
    padding-bottom: 54px;
}

.course-detail-eyebrow,
.course-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--primary);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .1em;
    line-height: 1.3;
    text-transform: uppercase;
}

.course-detail-eyebrow::before,
.course-section-kicker::before {
    width: 26px;
    height: 2px;
    background: currentColor;
    content: '';
}

.course-detail-intro h1 {
    max-width: 760px;
    margin: 17px 0 20px;
    color: #111827;
    font-size: clamp(2.2rem, 4.3vw, 4rem);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1.13;
}

.course-detail-lead {
    max-width: 680px;
    color: #475569;
    font-size: 1.03rem;
    line-height: 1.75;
}

.course-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.course-detail-actions .btn {
    min-height: 50px;
    padding: 12px 22px;
}

.course-btn-light {
    border: 1px solid #dbe2ea;
    background: #fff;
    color: #1e293b;
}

.course-btn-light:hover {
    border-color: #94a3b8;
    background: #f8fafc;
    color: #0f172a;
}

.course-detail-visual {
    position: relative;
    align-self: center;
    overflow: hidden;
    border-radius: 24px;
    background: transparent;
}

.course-detail-visual::after {
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, .48));
    content: '';
    pointer-events: none;
}

.course-detail-visual img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.course-detail-image-label {
    position: absolute;
    z-index: 1;
    right: 24px;
    bottom: 24px;
    left: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: .86rem;
    font-weight: 700;
}

.course-detail-image-label i {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 50%;
    background: rgba(15, 23, 42, .3);
}

.course-facts {
    position: relative;
    z-index: 3;
    display: flex;
    margin-top: -1px;
    border: 1px solid #e5eaf0;
    border-radius: 0 0 16px 16px;
    background: #fff;
    box-shadow: 0 16px 35px rgba(15, 23, 42, .06);
}

.course-fact {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
    padding: 24px;
    border-right: 1px solid #edf0f4;
}

.course-fact:last-child {
    border-right: 0;
}

.course-fact>i {
    flex: 0 0 auto;
    margin-top: 2px;
    color: var(--primary);
    font-size: 1.1rem;
}

.course-fact div {
    min-width: 0;
}

.course-fact span,
.course-enrollment-card small {
    display: block;
    margin-bottom: 5px;
    color: #94a3b8;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.course-fact strong {
    display: block;
    overflow: hidden;
    color: #1e293b;
    font-size: .84rem;
    font-weight: 700;
    line-height: 1.45;
    text-overflow: ellipsis;
}

.course-detail-content {
    padding-top: 86px;
    background: #fff;
}

.course-detail-page #register {
    scroll-margin-top: 86px;
}

.course-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: clamp(50px, 7vw, 90px);
    align-items: start;
}

.course-detail-main {
    min-width: 0;
}

.course-content-section {
    padding-bottom: 64px;
    margin-bottom: 64px;
    border-bottom: 1px solid #e8edf2;
}

.course-content-section:last-child {
    margin-bottom: 0;
}

.course-content-section>h2,
.course-related-heading h2 {
    margin: 12px 0 20px;
    color: #111827;
    font-size: clamp(1.65rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.25;
}

.course-content-section>p {
    color: #475569;
    font-size: 1rem;
    line-height: 1.85;
}

.course-section-intro {
    max-width: 680px;
    margin-bottom: 28px;
}

.course-curriculum {
    border-top: 1px solid #e2e8f0;
}

.curriculum-group {
    display: grid;
    grid-template-columns: minmax(230px, .8fr) minmax(0, 1.2fr);
    gap: 45px;
    padding: 32px 0;
    border-bottom: 1px solid #e2e8f0;
}

.curriculum-heading {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.curriculum-index {
    display: grid;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 8px;
    background: #fcebee;
    color: var(--primary);
    font-size: .78rem;
    font-weight: 800;
}

.curriculum-practical .curriculum-index {
    background: #e7f4ee;
    color: var(--secondary);
}

.curriculum-heading div>span {
    color: #94a3b8;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.curriculum-heading h3 {
    margin-top: 4px;
    color: #172033;
    font-size: 1.05rem;
    font-weight: 750;
    line-height: 1.4;
}

.curriculum-group ul {
    padding: 0;
    margin: -12px 0 0;
    list-style: none;
}

.curriculum-group li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 13px;
    color: #334155;
    font-size: .94rem;
    line-height: 1.65;
}

.curriculum-group li i {
    display: grid;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    place-items: center;
    border-radius: 50%;
    background: #dcefe5;
    color: var(--secondary);
    font-size: .62rem;
}

.course-info-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.course-info-panels article {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 25px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.course-info-panels article>i {
    display: grid;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 8px;
    background: #fcebee;
    color: var(--primary);
}

.course-info-panels h3 {
    margin-bottom: 7px;
    color: #1e293b;
    font-size: .95rem;
    font-weight: 800;
}

.course-info-panels p {
    color: #64748b;
    font-size: .86rem;
    line-height: 1.6;
}

.course-faq-list {
    border-top: 1px solid #e2e8f0;
}

.course-faq-list details {
    border-bottom: 1px solid #e2e8f0;
}

.course-faq-list summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 22px 0;
    color: #1e293b;
    font-size: .96rem;
    font-weight: 700;
    line-height: 1.5;
    cursor: pointer;
    list-style: none;
}

.course-faq-list summary::-webkit-details-marker {
    display: none;
}

.course-faq-list summary i {
    color: var(--primary);
    transition: transform .2s ease;
}

.course-faq-list details[open] summary i {
    transform: rotate(45deg);
}

.course-faq-list details p {
    max-width: 700px;
    padding: 0 38px 22px 0;
    color: #64748b;
    font-size: .91rem;
    line-height: 1.7;
}

.course-enrollment-card {
    position: sticky;
    top: 185px;
    padding: 30px;
    border: 1px solid #e2e8f0;
    border-top: 4px solid var(--primary);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

.course-enrollment-label {
    display: block;
    margin-bottom: 7px;
    color: #64748b;
    font-size: .73rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.course-enrollment-price {
    display: block;
    color: var(--primary);
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.35;
}

.course-enrollment-card>p {
    padding-bottom: 22px;
    margin-top: 8px;
    border-bottom: 1px solid #e8edf2;
    color: #64748b;
    font-size: .84rem;
    line-height: 1.6;
}

.course-enrollment-card ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.course-enrollment-card li {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 16px 0;
    border-bottom: 1px solid #eef2f6;
    color: #334155;
    font-size: .83rem;
    font-weight: 650;
    line-height: 1.45;
}

.course-enrollment-card li>i {
    width: 20px;
    margin-top: 3px;
    color: var(--primary);
    text-align: center;
}

.course-enrollment-card li span {
    min-width: 0;
}

.course-enrollment-card .btn {
    width: 100%;
    min-height: 49px;
    margin-top: 24px;
}

.course-enrollment-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    margin-top: 18px;
    color: #1e293b;
    font-size: .94rem;
    font-weight: 800;
}

.course-enrollment-phone i {
    color: var(--secondary);
}

.course-enrollment-phone small {
    margin-bottom: 2px;
}

.course-related-section {
    border-top: 1px solid #e8edf2;
    background: #f8fafc;
}

.course-related-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 32px;
}

.course-related-heading h2 {
    margin-bottom: 0;
}

.course-related-heading>a {
    flex: 0 0 auto;
    padding-bottom: 6px;
    color: var(--primary);
    font-size: .88rem;
    font-weight: 750;
}

.course-related-heading>a i,
.course-related-body a i {
    margin-left: 5px;
    transition: transform .2s ease;
}

.course-related-heading>a:hover i,
.course-related-body a:hover i {
    transform: translateX(4px);
}

.course-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.course-related-card {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    transition: transform .25s ease, box-shadow .25s ease;
}

.course-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 35px rgba(15, 23, 42, .07);
}

.course-related-image {
    display: block;
    height: 205px;
    overflow: hidden;
    background: #e2e8f0;
}

.course-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.course-related-card:hover img {
    transform: scale(1.04);
}

.course-related-body {
    padding: 22px;
}

.course-related-body>span {
    color: var(--primary);
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.course-related-body h3 {
    min-height: 52px;
    margin: 8px 0 17px;
    font-size: 1.05rem;
    font-weight: 750;
    line-height: 1.5;
}

.course-related-body h3 a {
    color: #172033;
}

.course-related-body>div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 15px;
    border-top: 1px solid #eef2f6;
}

.course-related-body small {
    color: #64748b;
    font-size: .76rem;
}

.course-related-body>div a {
    color: var(--primary);
    font-size: .78rem;
    font-weight: 750;
    white-space: nowrap;
}

.course-mobile-cta {
    display: none;
}

.course-not-found {
    display: grid;
    min-height: 65vh;
    padding: 80px 0;
    place-items: center;
    background: #f8fafc;
}

.course-not-found-card {
    max-width: 640px;
    padding: 56px 40px;
    margin: 0 auto;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.course-not-found-code {
    color: var(--primary);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .15em;
}

.course-not-found-card h1 {
    margin: 10px 0 12px;
    font-size: 2rem;
}

.course-not-found-card p {
    margin-bottom: 24px;
    color: #64748b;
    line-height: 1.7;
}

.detailed-course-header h3 a,
.course-card h3 a {
    color: inherit;
}

.course-image-wrapper>a {
    display: block;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .course-facts {
        flex-direction: column;
    }
    .course-fact {
        border-right: 0;
        border-bottom: 1px solid #edf0f4;
    }
    .course-fact:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 1050px) {
    .course-detail-layout {
        grid-template-columns: minmax(0, 1fr) 310px;
        gap: 45px;
    }
}

@media (max-width: 900px) {
    .course-detail-hero-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .course-detail-intro {
        padding-bottom: 38px;
    }

    .course-detail-visual,
    .course-detail-visual img {
        min-height: auto;
    }

    .course-detail-layout {
        grid-template-columns: 1fr;
    }

    .course-enrollment-card {
        position: static;
        order: -1;
    }

    .course-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .course-related-card:last-child {
        display: none;
    }
}

@media (max-width: 640px) {
    .course-detail-page {
        padding-bottom: 72px;
    }

    .course-detail-hero {
        padding-top: 22px;
    }

    .course-breadcrumbs {
        margin-bottom: 28px;
    }

    .course-detail-intro h1 {
        margin-top: 13px;
        font-size: 2.05rem;
        letter-spacing: -.035em;
    }

    .course-detail-lead {
        font-size: .94rem;
        line-height: 1.7;
    }

    .course-detail-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .course-detail-visual,
    .course-detail-visual img {
        min-height: auto;
    }

    .course-detail-visual {
        border-radius: 14px;
    }

    .course-detail-image-label {
        right: 16px;
        bottom: 16px;
        left: 16px;
        font-size: .78rem;
    }

    .course-facts {
        margin-right: -2px;
        margin-left: -2px;
    }

    .course-fact {
        gap: 10px;
        padding: 18px 14px;
    }

    .course-fact>i {
        font-size: .95rem;
    }

    .course-fact strong {
        font-size: .76rem;
    }

    .course-detail-content {
        padding-top: 58px;
    }

    .course-detail-layout {
        gap: 52px;
    }

    .course-content-section {
        padding-bottom: 46px;
        margin-bottom: 46px;
    }

    .curriculum-group {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .curriculum-group ul {
        margin-top: 0;
    }

    .course-info-panels,
    .course-related-grid {
        grid-template-columns: 1fr;
    }

    .course-related-card:last-child {
        display: block;
    }

    .course-related-heading {
        align-items: flex-start;
    }

    .course-related-heading>a {
        padding-top: 30px;
    }

    .course-related-image {
        height: 210px;
    }

    .course-enrollment-card {
        padding: 26px 22px;
    }

    .course-mobile-cta {
        position: fixed;
        z-index: 990;
        right: 0;
        bottom: 0;
        left: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        padding: 10px 16px;
        border-top: 1px solid #e2e8f0;
        background: rgba(255, 255, 255, .97);
        box-shadow: 0 -8px 25px rgba(15, 23, 42, .09);
        backdrop-filter: blur(10px);
    }

    .course-mobile-cta>div {
        min-width: 0;
    }

    .course-mobile-cta small {
        display: block;
        color: #94a3b8;
        font-size: .62rem;
        font-weight: 700;
        text-transform: uppercase;
    }

    .course-mobile-cta strong {
        display: block;
        max-width: 52vw;
        overflow: hidden;
        color: #1e293b;
        font-size: .76rem;
        line-height: 1.4;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .course-mobile-cta .btn {
        flex: 0 0 auto;
        min-height: 44px;
        padding: 9px 19px;
    }
}

/* Curriculum Card Grid Redesign */
.course-curriculum-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 25px;
}

.curriculum-card {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    transition: all var(--transition-fast);
}

.curriculum-card:hover {
    border-color: #CBD5E1;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
}

.curriculum-card-header {
    border-bottom: 1px solid #F1F5F9;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.curriculum-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.badge-theory {
    background-color: #FEF2F2;
    color: var(--primary);
}

.badge-practical {
    background-color: #ECFDF5;
    color: var(--secondary);
}

.curriculum-card-header h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--bg-dark);
    margin: 0;
}

.curriculum-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.curriculum-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.93rem;
    color: var(--text-main);
    line-height: 1.6;
}

.curriculum-list li .bullet-point {
    width: 6px;
    height: 6px;
    background-color: var(--primary);
    border-radius: 50%;
    margin-top: 9px;
    flex-shrink: 0;
}

.curriculum-card:nth-child(2) .curriculum-list li .bullet-point {
    background-color: var(--secondary);
}

@media (max-width: 768px) {
    .course-curriculum-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .course-detail-page *,
    .course-detail-page *::before,
    .course-detail-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* --- NEW HOME PAGE HERO REDESIGN STYLES --- */
.hero-image-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-frame {
    position: relative;
    width: 100%;
    max-width: 440px;
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    overflow: visible;
    /* to allow floating badges to overflow slightly */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    border: 6px solid rgba(255, 255, 255, 0.12);
}

.hero-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-image-frame:hover img {
    transform: scale(1.03);
}

.floating-badge {
    position: absolute;
    background-color: #ffffff;
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.15), 0 10px 10px -5px rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 5;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--bg-dark);
    transition: all 0.3s ease;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.floating-badge i {
    color: var(--primary);
    font-size: 1.1rem;
}

.badge-cpr {
    top: 12%;
    left: -40px;
}

.badge-ifrc {
    bottom: 12%;
    right: -30px;
}

.floating-badge:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 25px 30px -5px rgba(15, 23, 42, 0.2);
}



.hero-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 64px;
    border-top: 1px solid #dde3df;
    padding-top: 28px;
    position: relative;
    z-index: 2;
}

.hero-feature-card {
    background: transparent;
    border: 0;
    padding: 18px 20px;
    border-radius: 14px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    color: var(--text-main);
    box-shadow: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-feature-card:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(28, 45, 36, 0.07);
}

.hero-feature-card .feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background-color: #e8f1ec;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    box-shadow: none;
}

.hero-feature-card .feature-content h4 {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--bg-dark);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.hero-feature-card .feature-content p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.hero-feature-card.red-box {
    background-color: var(--primary);
    border-color: var(--primary-hover);
    color: var(--text-white);
}

.hero-feature-card.red-box:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.hero-feature-card.red-box .feature-icon {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--text-white);
    box-shadow: none;
}

.hero-feature-card.red-box .feature-content h4 {
    color: var(--text-white);
}

.hero-feature-card.red-box .feature-content p {
    color: rgba(255, 255, 255, 0.85);
}

.hero-feature-card.green-box {
    background-color: var(--secondary);
    color: var(--text-white);
}

.hero-feature-card.green-box:hover {
    background-color: var(--secondary-hover);
}

.hero-feature-card.green-box .feature-icon {
    background-color: var(--primary);
    color: var(--text-white);
    box-shadow: none;
}

.hero-feature-card.green-box .feature-content h4 {
    color: var(--text-white);
}

.hero-feature-card.green-box .feature-content p {
    color: rgba(255, 255, 255, 0.85);
}

/* Hero Section Responsiveness overrides */
@media (max-width: 991px) {
    .hero {
        padding: 72px 0 120px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

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

    .hero-btns {
        justify-content: center;
    }

    .hero-features-grid {
        grid-template-columns: 1fr;
        gap: 4px;
        margin-top: 44px;
        padding-top: 20px;
    }

    .badge-cpr {
        left: -10px;
    }

    .badge-ifrc {
        right: -10px;
    }

    .hero-image-frame {
        max-width: 360px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 56px 0 108px;
    }

    .hero-tagline {
        font-size: 0.7rem;
        letter-spacing: 0.9px;
    }

    .hero h1 {
        font-size: clamp(2rem, 9.5vw, 2.55rem);
        line-height: 1.22;
        letter-spacing: -0.035em;
    }

    .hero-desc {
        font-size: 0.94rem;
        line-height: 1.7;
    }

    .hero-btns {
        width: 100%;
    }

    .hero-btns .btn {
        width: 100%;
    }

    .hero-feature-card {
        padding: 16px 6px;
    }
}

/* --- DETAILED NEWS ARTICLE STYLES (chi-tiet-tin.php) --- */
.article-detail-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid #E2E8F0;
    box-shadow: var(--shadow-sm);
}

.article-body-content {
    font-family: var(--font-body);
    color: var(--text-main);
    font-size: 1.05rem;
    line-height: 1.8;
}

.article-body-content p {
    margin-bottom: 24px;
    text-align: justify;
}

/* Drop Cap (first character) styling for premium journalistic look */
.article-body-content>p:first-of-type::first-letter {
    font-size: 3.2rem;
    font-weight: 900;
    float: left;
    line-height: 0.85;
    margin-right: 12px;
    margin-top: 4px;
    color: var(--primary);
    font-family: var(--font-heading);
}

.article-body-content h2,
.article-body-content h3,
.article-body-content h4 {
    color: var(--bg-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    margin-top: 36px;
    margin-bottom: 16px;
    line-height: 1.3;
}

.article-body-content h2 {
    font-size: 1.6rem;
}

.article-body-content h3 {
    font-size: 1.35rem;
}

.article-body-content blockquote {
    margin: 35px 0;
    padding: 20px 24px;
    background-color: var(--bg-light);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--text-muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

.article-body-content ul,
.article-body-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.article-body-content ul li {
    list-style-type: disc;
    margin-bottom: 8px;
}

.article-body-content ol li {
    list-style-type: decimal;
    margin-bottom: 8px;
}

.article-body-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 28px auto;
    display: block;
    box-shadow: var(--shadow-md);
    border: 1px solid #E2E8F0;
}

/* Share buttons hover micro-animation */
.share-btn {
    transition: transform var(--transition-fast), opacity var(--transition-fast) !important;
}

.share-btn:hover {
    transform: scale(1.15) translateY(-2px);
    opacity: 0.9;
}

/* Next / Prev nav style overrides */
.article-prev-next-nav a {
    transition: color var(--transition-fast);
}

.article-prev-next-nav a:hover {
    color: var(--primary) !important;
}

.recent-post-item {
    transition: transform var(--transition-fast);
}

.recent-post-item:hover {
    transform: translateX(6px);
}

.cta-banner-widget h3 {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 12px !important;
}

/* Responsive fixes for article reader details */
@media (max-width: 768px) {
    .article-detail-container {
        padding: 24px 20px;
    }

    .article-detail-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .share-buttons-group {
        width: 100%;
        justify-content: flex-start;
    }

    .article-prev-next-nav {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .next-article-box {
        border-left: none !important;
        padding-left: 0 !important;
        text-align: left !important;
    }
}

/* Search highlight styles */
.search-highlight {
    background-color: #FEF08A;
    color: #0F172A;
    padding: 0 3px;
    border-radius: 3px;
    font-weight: 700;
}

/* Custom responsive overrides for small mobile screens */
@media (max-width: 576px) {
    .floating-badge span {
        display: none;
    }

    .floating-badge {
        padding: 10px;
        border-radius: 50%;
    }

    .badge-cpr {
        left: 10px;
        top: 10px;
    }

    .badge-ifrc {
        right: 10px;
        bottom: 10px;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    .hero-title {
        font-size: clamp(2rem, 9.5vw, 2.55rem);
        line-height: 1.22;
        letter-spacing: -0.035em;
    }

    .hero-desc {
        font-size: 0.94rem;
        line-height: 1.7;
    }

    .hero-btns {
        width: 100%;
    }

    .hero-btns .btn {
        width: 100%;
    }

    .hero-feature-card {
        padding: 16px 6px;
    }
}

/* --- DETAILED NEWS ARTICLE STYLES & SHARE BAR (chi-tiet-tin.php) --- */
.article-detail-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid #E2E8F0;
    box-shadow: var(--shadow-sm);
    box-sizing: border-box;
    width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}

.article-detail-title {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.35;
    color: #0F172A;
    margin-bottom: 18px;
    text-transform: none;
    text-align: left;
    overflow-wrap: break-word;
    word-break: break-word;
}

.article-detail-meta {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 1px solid #F1F5F9 !important;
    padding-bottom: 20px !important;
    margin-bottom: 30px !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    width: 100% !important;
}

.news-meta {
    display: flex !important;
    gap: 14px 18px !important;
    font-size: 0.88rem !important;
    color: var(--text-muted) !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}

.share-buttons-group {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
    margin: 0 !important;
    padding: 0 !important;
}

.share-label {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: #475569 !important;
    margin-right: 2px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.share-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer !important;
    font-family: 'Be Vietnam Pro', sans-serif !important;
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    outline: none !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.share-btn.sb-fb {
    background: #1877F2 !important;
}

.share-btn.sb-fb:hover {
    background: #0d65d9 !important;
    transform: translateY(-2px) scale(1.1) !important;
    box-shadow: 0 6px 16px rgba(24, 119, 242, 0.35) !important;
}

.share-btn.sb-zalo {
    background: #0068FF !important;
    font-size: 0.75rem !important;
    letter-spacing: -0.3px !important;
}

.share-btn.sb-zalo:hover {
    background: #0052cc !important;
    transform: translateY(-2px) scale(1.1) !important;
    box-shadow: 0 6px 16px rgba(0, 104, 255, 0.35) !important;
}

.share-btn.sb-copy {
    background: #64748B !important;
}

.share-btn.sb-copy:hover {
    background: #475569 !important;
    transform: translateY(-2px) scale(1.1) !important;
    box-shadow: 0 6px 16px rgba(100, 116, 139, 0.35) !important;
}

.share-btn.copied {
    background: #10B981 !important;
    transform: scale(1.15) !important;
}

.article-summary-lead {
    font-size: 1.12rem;
    font-weight: 600;
    line-height: 1.6;
    color: var(--bg-dark);
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    margin-bottom: 30px;
    font-style: italic;
    overflow-wrap: break-word;
    word-break: break-word;
}

.article-prev-next-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    border-top: 1px solid #F1F5F9;
    padding-top: 30px;
    margin-top: 50px;
}

@media (max-width: 768px) {
    .article-detail-container {
        padding: 24px 16px !important;
    }

    .article-detail-title {
        font-size: 1.38rem !important;
        line-height: 1.3 !important;
    }

    .article-detail-meta {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 14px !important;
    }

    .news-meta {
        flex-wrap: wrap !important;
        gap: 8px 12px !important;
        font-size: 0.82rem !important;
    }

    .share-buttons-group {
        width: 100% !important;
        justify-content: flex-start !important;
    }

    .article-summary-lead {
        font-size: 0.98rem !important;
        padding-left: 14px !important;
    }

    .article-prev-next-nav {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

.news-card-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid #F1F5F9;
}

    .news-card-footer>span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
    }

    .read-more-link {
        font-family: 'Be Vietnam Pro', sans-serif;
        font-weight: 700;
        font-size: 0.88rem;
        color: var(--primary);
        display: inline-flex;
        align-items: center;
        gap: 5px;
        white-space: nowrap;
        flex-shrink: 0;
        cursor: pointer;
        transition: gap 0.2s ease;
    }

    .news-meta {
        display: flex;
        gap: 14px 18px;
        font-size: 0.88rem;
        color: var(--text-muted);
        align-items: center;
        flex-wrap: wrap;
    }

    .share-buttons-group {
        display: flex;
        gap: 10px;
        align-items: center;
    }

    .article-summary-lead {
        font-size: 1.12rem;
        font-weight: 600;
        line-height: 1.6;
        color: var(--bg-dark);
        border-left: 4px solid var(--primary);
        padding-left: 20px;
        margin-bottom: 30px;
        font-style: italic;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .article-prev-next-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        border-top: 1px solid #F1F5F9;
        padding-top: 30px;
        margin-top: 50px;
    }

    @media (max-width: 768px) {
        .article-detail-container {
            padding: 24px 16px !important;
        }

        .article-detail-title {
            font-size: 1.38rem !important;
            line-height: 1.3 !important;
        }

        .article-detail-meta {
            flex-direction: column;
            align-items: flex-start;
            gap: 14px;
        }

        .news-meta {
            flex-wrap: wrap;
            gap: 8px 12px;
            font-size: 0.82rem;
        }

        .share-buttons-group {
            width: 100%;
            justify-content: flex-start;
        }

        .article-summary-lead {
            font-size: 0.98rem !important;
            padding-left: 14px !important;
        }

        .article-prev-next-nav {
            grid-template-columns: 1fr !important;
            gap: 20px !important;
        }

        .next-article-box {
            border-left: none !important;
            padding-left: 0 !important;
            text-align: left !important;
        }

        .sidebar-widget {
            padding: 20px 16px !important;
        }

        .category-list-item a {
            padding: 8px 10px !important;
            font-size: 0.85rem !important;
        }

        .category-list-item .count-badge {
            flex-shrink: 0;
            margin-left: 8px;
        }
    }

    /* Search highlight styles */
    .search-highlight {
        background-color: #FEF08A;
        color: #0F172A;
        padding: 0 3px;
        border-radius: 3px;
        font-weight: 700;
    }

    /* Custom responsive overrides for small mobile screens */
    /* Custom responsive overrides for tablet and mobile screens */
    @media (max-width: 991px) {
        .header-top-wrapper {
            display: flex !important;
            justify-content: space-between !important;
            align-items: center !important;
            gap: 10px !important;
            padding: 10px 0 !important;
        }

        .header-top .logo {
            display: flex !important;
            align-items: center !important;
            gap: 8px !important;
            flex: 0 1 auto !important;
            min-width: 0 !important;
        }

        .header-top .logo-icon {
            width: 48px !important;
            height: 48px !important;
            flex: 0 0 48px !important;
        }

        .header-top .logo-text {
            display: flex !important;
            flex-direction: column !important;
            min-width: 0 !important;
        }

        .header-top .logo-title,
        .header-top .logo-subtitle {
            font-size: 0.82rem !important;
            line-height: 1.25 !important;
            white-space: nowrap !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
        }

        .header-top .logo-slogan {
            font-size: 0.65rem !important;
            white-space: nowrap !important;
        }

        .header-right {
            display: flex !important;
            align-items: center !important;
            gap: 10px !important;
            flex: 0 0 auto !important;
        }

        .header-email,
        .header-social {
            display: none !important;
        }

        .header-contact a.hotline-btn {
            padding: 5px 12px !important;
            font-size: 0.8rem !important;
        }

        .menu-toggle {
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            cursor: pointer !important;
            padding: 8px !important;
            color: var(--primary) !important;
            font-size: 1.4rem !important;
            z-index: 10005 !important;
            pointer-events: auto !important;
        }

        .header-nav-bar {
            background-color: transparent !important;
            height: 0 !important;
            padding: 0 !important;
            box-shadow: none !important;
            overflow: visible !important;
        }

        .nav-menu {
            position: fixed !important;
            top: 0 !important;
            left: -100% !important;
            width: 280px !important;
            max-width: 85vw !important;
            height: 100vh !important;
            background-color: #ffffff !important;
            flex-direction: column !important;
            align-items: flex-start !important;
            padding: 80px 24px 40px 24px !important;
            gap: 16px !important;
            transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
            box-shadow: 10px 0 30px rgba(15, 23, 42, 0.25) !important;
            overflow-y: auto !important;
            z-index: 10000 !important;
        }

        .nav-menu.active {
            left: 0 !important;
        }

        .nav-menu .nav-link {
            color: var(--text-dark) !important;
            padding: 12px 0 !important;
            font-size: 0.95rem !important;
            font-weight: 600 !important;
            width: 100% !important;
            border-bottom: 1px solid #F1F5F9 !important;
        }

        .nav-menu .nav-link::after {
            display: none !important;
        }

        .nav-menu .nav-link:hover,
        .nav-menu .nav-link.active {
            color: var(--primary) !important;
        }
    }

    @media (max-width: 768px) {
        .header-contact {
            display: none !important;
        }

        .header-top .logo-icon {
            width: 42px !important;
            height: 42px !important;
            flex: 0 0 42px !important;
        }

        .header-top .logo-title,
        .header-top .logo-subtitle {
            font-size: 0.7rem !important;
        }

        .header-top .logo-slogan {
            display: none !important;
        }

        .user-chip-name {
            max-width: 70px !important;
        }
    }

    @media (max-width: 480px) {
        .user-chip-name {
            display: none !important;
        }
    }

    @media (max-width: 991px) {
        .floating-badge span {
            display: none;
        }

        .floating-badge {
            padding: 10px;
            border-radius: 50%;
        }

        .badge-cpr {
            left: 10px;
            top: 10px;
        }

        .badge-ifrc {
            right: 10px;
            bottom: 10px;
        }

        /* Stats grid mobile override to prevent content overflow and clipping */
        .stats-grid {
            grid-template-columns: 1fr !important;
            gap: 0 !important;
        }

        .stats-item {
            border-right: none !important;
            border-bottom: 1px solid #E2E8F0 !important;
            padding: 18px 0 !important;
            justify-content: center !important;
            padding-left: 0 !important;
        }

        .stats-item:last-child {
            border-bottom: none !important;
            padding-bottom: 0 !important;
        }
    }

    /* Overrides for About page intro section responsiveness */
    @media (max-width: 991px) {
        .about-intro-grid {
            grid-template-columns: 1fr !important;
            gap: 30px !important;
        }

        .about-intro-img {
            width: 100%;
            max-height: 400px;
            overflow: hidden;
        }

        .about-intro-img img {
            width: 100%;
            height: 100%;
            max-height: 400px;
            object-fit: cover;
            border-radius: var(--radius-lg);
        }

        .about-intro-title {
            font-size: 1.75rem;
        }
    }

    @media (max-width: 480px) {
        .header-top-wrapper {
            padding: 10px 12px;
        }

        .logo-icon {
            width: 44px;
            height: 44px;
        }

        .logo-title,
        .logo-subtitle {
            font-size: 0.72rem;
        }

        .logo-slogan {
            font-size: 0.62rem;
        }

        .hero h1 {
            font-size: 1.75rem;
        }

        .about-intro-title {
            font-size: 1.5rem;
        }

        .about-intro-btns {
            flex-direction: column;
            gap: 12px;
        }
    }



    /* --- PAGINATION STYLING --- */
    .pagination-container {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin-top: 40px;
        margin-bottom: 20px;
    }

    .pagination-link {
        width: 42px;
        height: 42px;
        border-radius: 10px;
        background-color: #ffffff;
        border: 1px solid #E2E8F0;
        color: var(--text-main);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 0.95rem;
        box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
        transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .pagination-link:hover {
        border-color: var(--primary);
        color: var(--primary);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(200, 16, 46, 0.15);
    }

    .pagination-link.active {
        background-color: var(--primary);
        border-color: var(--primary);
        color: #ffffff;
        box-shadow: 0 4px 14px rgba(200, 16, 46, 0.3);
    }

    /* --- CATEGORY TREE & SUB-CATEGORIES --- */
    .category-tree {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .cat-tree-item {
        margin-bottom: 6px;
        border-radius: 10px;
        transition: all 0.25s ease;
    }

    .cat-tree-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 10px 14px !important;
        border-radius: 10px !important;
        cursor: pointer !important;
        user-select: none !important;
        transition: all 0.2s ease !important;
        gap: 8px !important;
    }

    .cat-tree-header:hover,
    .cat-tree-item.active>.cat-tree-header,
    .cat-tree-item.active>.cat-tree-link {
        background-color: rgba(200, 16, 46, 0.08) !important;
        color: var(--primary) !important;
    }

    .cat-tree-link {
        display: flex !important;
        align-items: center !important;
        color: var(--text-main) !important;
        font-weight: 600 !important;
        font-size: 0.92rem !important;
        text-decoration: none !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    .cat-tree-item.active .cat-tree-link,
    .cat-tree-item.active .cat-title {
        color: var(--primary) !important;
    }

    .cat-meta {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        margin-left: 6px !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }

    .cat-arrow {
        font-size: 0.8rem;
        color: var(--text-muted);
        transition: transform 0.25s ease;
    }

    .cat-tree-item.expanded .cat-arrow {
        transform: rotate(180deg);
        color: var(--primary);
    }

    .cat-sub-list {
        list-style: none;
        padding-left: 16px;
        padding-top: 4px;
        padding-bottom: 6px;
        margin: 0;
        display: none;
    }

    .cat-tree-item.expanded .cat-sub-list {
        display: block;
    }

    .cat-sub-item {
        margin-bottom: 3px;
    }

    .cat-sub-item a {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        padding: 7px 10px 7px 12px !important;
        font-size: 0.85rem !important;
        color: #475569 !important;
        text-decoration: none !important;
        border-left: 2px solid #E2E8F0 !important;
        transition: all 0.2s ease !important;
        border-radius: 0 6px 6px 0 !important;
    }

    .cat-sub-item a>span:first-child {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        word-break: break-word !important;
    }

    .cat-sub-item a:hover,
    .cat-sub-item.active a {
        color: var(--primary);
        border-left-color: var(--primary);
        background-color: #F8FAFC;
        font-weight: 600;
    }

    .sub-count {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        font-size: 0.75rem;
        background: #F1F5F9;
        color: #64748B;
        padding: 2px 7px;
        border-radius: 10px;
        font-weight: 500;
    }

    .cat-sub-item.active .sub-count {
        background: rgba(200, 16, 46, 0.12);
        color: var(--primary);
        font-weight: 700;
    }

    /* Header Logged-In User Profile Dropdown UI/UX */
    .user-menu-wrapper {
        position: relative;
    }

    .header-auth-top {
        display: flex;
        align-items: center;
        margin-left: 12px;
    }

    .header-auth-top .user-chip-btn {
        background: #F8FAFC;
        border: 1px solid #E2E8F0;
        color: #0F172A;
        padding: 6px 14px 6px 6px;
        border-radius: 30px;
        box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
        transition: all 0.25s ease;
    }

    .header-auth-top .user-chip-btn:hover {
        background: #ffffff;
        border-color: #CBD5E1;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
    }

    .header-auth-top .header-login-btn {
        background: #C8102E;
        color: #ffffff;
        font-size: 0.86rem;
        font-weight: 800;
        padding: 8px 20px;
        border-radius: 20px;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        box-shadow: 0 4px 12px rgba(200, 16, 46, 0.25);
        transition: all 0.25s ease;
    }

    .header-auth-top .header-login-btn:hover {
        background: #A00B22;
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(200, 16, 46, 0.35);
    }

    .user-chip-btn {
        background: #ffffff;
        color: #0F172A;
        font-size: 0.86rem;
        font-weight: 700;
        padding: 5px 14px 5px 6px;
        border-radius: 30px;
        border: none;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
        transition: all 0.25s ease;
        text-decoration: none;
    }

    .user-chip-btn:hover {
        background: #F8FAFC;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
        transform: translateY(-1px);
    }

    .user-avatar-circle {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: linear-gradient(135deg, #0F7A50 0%, #15803D 100%);
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.78rem;
        font-weight: 800;
        text-transform: uppercase;
        flex-shrink: 0;
    }

    .user-chip-name {
        max-width: 130px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1;
    }

    .user-chip-arrow {
        font-size: 0.75rem;
        color: #64748B;
        transition: transform 0.25s ease;
    }

    .user-menu-wrapper:hover .user-chip-arrow {
        transform: rotate(180deg);
    }

    /* Dropdown Card */
    .user-dropdown-card {
        display: none !important;
        position: absolute !important;
        top: calc(100% + 6px) !important;
        right: 0 !important;
        width: 250px !important;
        background: #ffffff !important;
        border-radius: 14px !important;
        box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18) !important;
        border: 1px solid #E2E8F0 !important;
        padding: 8px 0 !important;
        z-index: 999999 !important;
    }

    .user-dropdown-card::before {
        content: '' !important;
        position: absolute !important;
        top: -14px !important;
        left: 0 !important;
        right: 0 !important;
        height: 16px !important;
        background: transparent !important;
    }

    .user-menu-wrapper:hover .user-dropdown-card,
    .user-dropdown-card.show {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .user-card-header {
        padding: 12px 16px 14px 16px;
        border-bottom: 1px solid #F1F5F9;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .user-card-avatar {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: linear-gradient(135deg, #C8102E 0%, #A00B22 100%);
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        font-weight: 800;
        flex-shrink: 0;
    }

    .user-card-info {
        overflow: hidden;
    }

    .user-card-title {
        font-size: 0.9rem;
        font-weight: 700;
        color: #0F172A;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .user-card-sub {
        font-size: 0.78rem;
        color: #64748B;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .user-card-body {
        padding: 6px 0;
    }

    .user-card-link {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 16px;
        font-size: 0.86rem;
        font-weight: 600;
        color: #334155;
        text-decoration: none;
        transition: all 0.2s ease;
    }

    .user-card-link i {
        font-size: 0.9rem;
        color: #64748B;
        width: 18px;
        text-align: center;
        transition: color 0.2s;
    }

    .user-card-link:hover {
        background-color: #F8FAFC;
        color: #C8102E;
    }

    .user-card-link:hover i {
        color: #C8102E;
    }

    .user-card-link.logout-link {
        color: #DC2626;
        border-top: 1px solid #F1F5F9;
        margin-top: 4px;
        padding-top: 12px;
    }

    .user-card-link.logout-link i {
        color: #DC2626;
    }

    .user-card-link.logout-link:hover {
        background-color: #FEF2F2;
        color: #991B1B;
    }
