@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800;900&family=Inter:wght@400;500;600;700&display=swap');

body {
    font-family: 'Be Vietnam Pro', sans-serif;
    background: #ffffff;
    overflow-x: hidden;
}

/* ===== Hero Carousel ===== */
.hero-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 600px;
    max-height: none;
    overflow: hidden;
}

.hero-carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-carousel-slide {
    min-width: 100%;
    height: 100%;
}

.hero-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Dots */
.hero-carousel-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-dot.active {
    background: #fff;
    transform: scale(1.2);
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* Arrow buttons */
.hero-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
}

.hero-carousel-wrapper:hover .hero-carousel-arrow {
    opacity: 1;
}

.hero-carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.hero-arrow-prev {
    left: 20px;
}

.hero-arrow-next {
    right: 20px;
}

@media (max-width: 768px) {
    .hero-carousel-wrapper {
        height: auto;
        min-height: 0;
        max-height: none;
    }

    .hero-carousel-track {
        height: auto;
    }

    .hero-carousel-slide {
        height: auto;
    }

    .hero-carousel-slide img {
        height: auto;
        object-fit: contain;
    }

    .hero-carousel-arrow {
        top: 50%;
        width: 34px;
        height: 34px;
        opacity: 0.82;
    }

    .hero-arrow-prev {
        left: 8px;
    }

    .hero-arrow-next {
        right: 8px;
    }

    .hero-dot {
        width: 9px;
        height: 9px;
    }

    .hero-carousel-dots {
        bottom: 10px;
        gap: 7px;
    }

    section[id] {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    #courses-section>div:first-child {
        margin-bottom: 1.5rem !important;
    }
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
}

.red-gradient {
    background: linear-gradient(135deg, #004cb6 0%, #0062e6 100%);
}

/* ===== CTA Button - ULTRA Eye-catching ===== */
.btn-cta-flash {
    background: linear-gradient(135deg, #ff2d2d 0%, #ff6b35 25%, #ffaa00 50%, #ff6b35 75%, #ff2d2d 100%);
    background-size: 400% 100%;
    animation: cta-gradient-shift 3s ease infinite, cta-attention 4s ease-in-out infinite;
    color: #fff;
    font-weight: 900;
    font-size: 15px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 20px rgba(255, 45, 45, 0.45),
        0 0 50px rgba(255, 107, 53, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.btn-cta-flash>* {
    position: relative;
    z-index: 2;
}

.btn-cta-flash:hover {
    transform: scale(1.12) !important;
    box-shadow:
        0 8px 40px rgba(255, 45, 45, 0.6),
        0 0 80px rgba(255, 107, 53, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation-play-state: paused;
}

.btn-cta-flash:active {
    transform: scale(0.95) !important;
}

/* Shimmer sweep */
.btn-cta-flash::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: cta-shimmer 2s ease-in-out infinite;
    z-index: 1;
}

/* Outer glow ring */
.btn-cta-flash::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: inherit;
    border: 2px solid rgba(255, 107, 53, 0.5);
    opacity: 0;
    z-index: -1;
    animation: cta-ring-pulse 1.8s ease infinite;
}

@keyframes cta-gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes cta-shimmer {
    0% {
        left: -100%;
    }

    50% {
        left: 120%;
    }

    100% {
        left: 120%;
    }
}

@keyframes cta-ring-pulse {
    0% {
        opacity: 0.7;
        transform: scale(1);
    }

    50% {
        opacity: 0;
        transform: scale(1.2);
    }

    100% {
        opacity: 0;
        transform: scale(1.2);
    }
}

/* Wiggle to attract attention */
@keyframes cta-attention {

    0%,
    80%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    84% {
        transform: scale(1.06) rotate(-2deg);
    }

    88% {
        transform: scale(1.06) rotate(2deg);
    }

    92% {
        transform: scale(1.06) rotate(-1.5deg);
    }

    96% {
        transform: scale(1.06) rotate(1deg);
    }
}

/* ===== Section Ribbon Title ===== */
.section-ribbon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.section-ribbon-wrapper::before,
.section-ribbon-wrapper::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, #004cb6);
    max-width: 280px;
}

.section-ribbon-wrapper::after {
    background: linear-gradient(90deg, #004cb6, transparent);
}

.section-ribbon {
    position: relative;
    background: linear-gradient(135deg, #004cb6, #0062e6);
    color: #fff;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 2px;
    padding: 12px 40px;
    text-transform: uppercase;
    clip-path: polygon(8% 0%, 92% 0%, 100% 50%, 92% 100%, 8% 100%, 0% 50%);
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 76, 182, 0.3);
}

.text-editorial {
    letter-spacing: -0.02em;
}

html {
    scroll-behavior: smooth;
}

/* ===== Scroll Animations ===== */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delay for children */
.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

.stagger-5 {
    transition-delay: 0.5s;
}

.stagger-6 {
    transition-delay: 0.6s;
}

/* ===== Nav ===== */
.nav-link {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #52525b;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #1d4ed8;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #1d4ed8;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: #1d4ed8;
    font-weight: 700;
}

.nav-link.active::after {
    width: 100%;
}

.nav-link-mobile {
    color: #27272a;
    font-weight: 600;
    padding: 6px 0;
    border-left: 3px solid transparent;
    padding-left: 10px;
    transition: border-color 0.2s, color 0.2s;
}

.nav-link-mobile.active {
    color: #1d4ed8;
    border-left-color: #1d4ed8;
}

/* ===== Hero Text Animation ===== */
.hero-title {
    animation: heroSlideUp 1s ease forwards;
    opacity: 0;
}

.hero-subtitle {
    animation: heroSlideUp 1s ease 0.3s forwards;
    opacity: 0;
}

.hero-buttons {
    animation: heroSlideUp 1s ease 0.6s forwards;
    opacity: 0;
}

@keyframes heroSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Stat Counter Pulse ===== */
.stat-number {
    transition: transform 0.3s ease;
}

.stat-number:hover {
    transform: scale(1.1);
}

/* ===== Card Lift ===== */
.card-lift {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

/* ===== Teacher Avatar Float ===== */
.teacher-avatar {
    transition: transform 0.5s ease, border-color 0.3s ease;
}

.teacher-avatar:hover {
    transform: translateY(-6px) scale(1.05);
}

/* ===== Button Shine Effect ===== */
.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-shine:hover::before {
    left: 100%;
}

/* ===== Toast ===== */
.toast-message {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 600;
    z-index: 9999;
    animation: slideIn 0.3s ease, fadeOut 0.5s ease 3s forwards;
    max-width: 400px;
}

.toast-success {
    background: #10b981;
    color: white;
}

.toast-error {
    background: #ef4444;
    color: white;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Price */
.price-original {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 0.875rem;
}

/* ===== Floating Contact Buttons ===== */
.floating-contacts {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    max-width: calc(100vw - 40px);
}

.fc-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.fc-btn::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    opacity: 0.5;
    transition: opacity 0.3s;
}

.fc-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.fc-btn:hover::before {
    opacity: 0.8;
    animation: fc-ring-pulse 1s ease infinite;
}

.fc-btn:hover::after {
    animation: none !important;
    opacity: 0 !important;
}

.fc-youtube {
    background: linear-gradient(135deg, #FF0000, #cc0000);
}

.fc-zalo {
    background: linear-gradient(135deg, #0068FF, #0054cc);
}

.fc-phone {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.fc-messenger {
    background: linear-gradient(135deg, #00B2FF, #006AFF);
}

.fc-youtube::after,
.fc-zalo::after,
.fc-messenger::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    animation: fc-phone-pulse 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    z-index: -1;
    pointer-events: none;
}

.fc-youtube::after {
    background: rgba(255, 0, 0, 0.25);
    animation-delay: 1.5s;
}

.fc-zalo::after {
    background: rgba(0, 104, 255, 0.25);
    animation-delay: 0.5s;
}

.fc-messenger::after {
    background: rgba(0, 106, 255, 0.25);
    animation-delay: 1s;
}

@keyframes fc-ring-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

/* Phone button pulse animation */
.fc-phone::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.25);
    animation: fc-phone-pulse 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes fc-phone-pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .floating-contacts {
        bottom: 80px;
        right: 10px;
        left: auto;
        gap: 10px;
        max-width: calc(100vw - 20px);
    }

    .fc-btn {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }

    .fc-btn svg {
        width: 18px;
        height: 18px;
    }

    .fc-btn span {
        font-size: 12px !important;
    }

    .scroll-top-btn {
        bottom: 16px;
        right: 10px;
        width: 38px;
        height: 38px;
    }
}

/* ===== News Card Hover Line ===== */
.news-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, #004cb6, #0062e6);
    transition: width 0.4s ease;
}

.news-card:hover::after {
    width: 100%;
}

/* ===== News Detail Page — Premium Redesign ===== */
:root {
    --nd-text: #1a1a2e;
    --nd-text-secondary: #64748b;
    --nd-accent: #0062e6;
    --nd-accent-light: #e8f0fe;
    --nd-border: #e2e8f0;
    --nd-bg: #f1f5f9;
    --nd-white: #ffffff;
    --nd-radius: 16px;
}

/* Hero Banner */
.news-hero-banner {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
}

.news-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.1) 60%, rgba(0, 0, 0, 0.3) 100%);
}

.news-hero-breadcrumb {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    padding: 0 40px;
    z-index: 2;
}

.news-hero-breadcrumb ul {
    list-style: none;
    margin: 0;
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.news-hero-breadcrumb li {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.news-hero-breadcrumb li.sep {
    color: rgba(255, 255, 255, 0.4);
    font-size: 16px;
}

.news-hero-breadcrumb li.active {
    color: #fff;
    font-weight: 500;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-hero-breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.news-hero-breadcrumb a:hover {
    color: #fff;
}

/* Simple breadcrumb fallback */
.news-detail-breadcrumb {
    background: var(--nd-white);
    padding: 16px 40px;
    border-bottom: 1px solid var(--nd-border);
}

.news-detail-breadcrumb ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 1200px;
    margin: 0 auto;
}

.news-detail-breadcrumb li {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
}

.news-detail-breadcrumb a {
    color: var(--nd-accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.news-detail-breadcrumb a:hover {
    text-decoration: underline;
}

.news-detail-breadcrumb .separator {
    color: var(--nd-text-secondary);
}

.news-detail-breadcrumb .current {
    color: var(--nd-text);
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Body */
.nd-body {
    background: var(--nd-bg);
    padding: 40px 24px 60px;
    min-height: 60vh;
}

.nd-container {
    max-width: 1200px;
    margin: 0 auto;
}

.nd-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

/* Main Article */
.nd-main {
    min-width: 0;
}

.nd-article {
    background: var(--nd-white);
    border-radius: var(--nd-radius);
    padding: 40px 44px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.04);
}

.nd-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--nd-accent-light);
    color: var(--nd-accent);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.nd-title {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 30px;
    font-weight: 800;
    color: var(--nd-text);
    line-height: 1.35;
    margin: 0 0 24px 0;
    letter-spacing: -0.02em;
}

.nd-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--nd-border);
}

.nd-meta-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nd-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0062e6, #33aeff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.nd-author-avatar .material-symbols-outlined {
    font-size: 20px;
}

.nd-author-name {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--nd-text);
}

.nd-date {
    display: block;
    font-size: 12px;
    color: var(--nd-text-secondary);
    margin-top: 2px;
}

.nd-share-btns {
    display: flex;
    gap: 8px;
}

.nd-share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--nd-border);
    background: var(--nd-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--nd-text-secondary);
    transition: all 0.2s;
}

.nd-share-btn:hover {
    background: var(--nd-accent);
    color: #fff;
    border-color: var(--nd-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 98, 230, 0.3);
}

/* Sapo */
.nd-sapo {
    font-size: 19px;
    font-weight: 500;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 28px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f0f7ff 0%, #f8fafc 100%);
    border-left: 4px solid var(--nd-accent);
    border-radius: 0 12px 12px 0;
}

/* Content Body */
.nd-content {
    font-size: 17px;
    line-height: 1.8;
    color: #374151;
}

.nd-content h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--nd-text);
    margin: 32px 0 18px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--nd-accent);
    line-height: 1.3;
}

.nd-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--nd-text);
    margin: 36px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--nd-accent-light);
}

.nd-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--nd-text);
    margin: 28px 0 12px;
}

.nd-content p {
    margin-bottom: 16px;
}

.nd-content ul,
.nd-content ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.nd-content li {
    margin-bottom: 10px;
}

.nd-content strong {
    color: var(--nd-text);
}

.nd-content figure {
    margin: 32px 0;
    text-align: center;
}

/* Table Styles */
.nd-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 15px;
    background-color: var(--nd-white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.nd-content th,
.nd-content td {
    border: 1px solid var(--nd-border);
    padding: 12px 16px;
    text-align: left;
}

.nd-content th {
    background-color: var(--nd-bg);
    font-weight: 700;
    color: var(--nd-text);
}

.nd-content tr:nth-child(even) {
    background-color: #f8fafc;
}

.nd-content table-responsive {
    overflow-x: auto;
    display: block;
    width: 100%;
}

.nd-content img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    display: block;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 24px 0;
}

.nd-content figure {
    max-width: 100% !important;
    width: auto !important;
}

.nd-content figure img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 0;
}

.nd-content figcaption {
    font-size: 13px;
    color: var(--nd-text-secondary);
    font-style: italic;
    margin-top: 12px;
    padding: 8px 16px;
    background: #f8fafc;
    display: inline-block;
    border-radius: 8px;
}

/* Tags */
.nd-tags-section {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--nd-border);
}

.nd-tag-chip {
    display: inline-block;
    padding: 6px 16px;
    background: #f1f5f9;
    color: var(--nd-text-secondary);
    font-size: 13px;
    font-weight: 500;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.nd-tag-chip:hover {
    background: var(--nd-accent-light);
    color: var(--nd-accent);
    border-color: var(--nd-accent);
}

/* Sidebar */
.nd-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.nd-sidebar-card {
    background: var(--nd-white);
    border-radius: var(--nd-radius);
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.04);
}

.nd-sidebar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--nd-text);
    margin: 0 0 14px 0;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--nd-accent);
}

.nd-related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nd-related-item {
    border-bottom: 1px solid #f1f5f9;
}

.nd-related-item:last-child {
    border-bottom: none;
}

.nd-related-item a {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    text-decoration: none;
    transition: all 0.2s;
}

.nd-related-item a:hover {
    transform: translateX(4px);
}

.nd-related-thumb {
    width: 80px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.nd-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.nd-related-item a:hover .nd-related-thumb img {
    transform: scale(1.08);
}

.nd-related-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nd-related-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--nd-text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.nd-related-item a:hover .nd-related-title {
    color: var(--nd-accent);
}

.nd-related-date {
    font-size: 12px;
    color: var(--nd-text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* CTA Card */
.nd-sidebar-cta {
    background: linear-gradient(135deg, #0046a8 0%, #0062e6 50%, #33aeff 100%);
    border-radius: var(--nd-radius);
    padding: 24px 20px;
    text-align: center;
    color: #fff;
    box-shadow: 0 8px 32px rgba(0, 98, 230, 0.25);
}

.nd-cta-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.nd-cta-icon .material-symbols-outlined {
    font-size: 28px;
    color: #fff;
}

.nd-sidebar-cta h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
}

.nd-sidebar-cta p {
    font-size: 14px;
    opacity: 0.85;
    margin: 0 0 20px;
    line-height: 1.5;
}

.nd-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--nd-accent);
    font-weight: 700;
    font-size: 14px;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.nd-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    background: #f0f7ff;
}

/* Footer Nav */
.nd-footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 60px;
    padding: 40px 0 20px;
    background: transparent;
    border-top: 1px solid var(--nd-border);
    border-radius: 0;
    box-shadow: none;
}

.nd-footer-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 28px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.nd-nav-back {
    color: var(--nd-text);
    background: var(--nd-white);
    border: 1px solid var(--nd-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.nd-nav-back:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.nd-nav-home {
    color: #fff !important;
    background: linear-gradient(135deg, #0062e6, #33aeff);
    border: 1px solid transparent;
    box-shadow: 0 4px 12px rgba(0, 98, 230, 0.25);
}

.nd-nav-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 98, 230, 0.35);
    filter: brightness(1.05);
}

/* ===== Register Button Wave ===== */
/* Wave xanh dương — dùng cho nút trên nền sáng (layout/home) */
.btn-wave-blue {
    position: relative;
    overflow: visible;
}

.btn-wave-blue::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: inherit;
    background: rgba(0, 98, 230, 0.25);
    animation: btn-wave-pulse 2s ease infinite;
    z-index: -1;
}

/* Wave trắng — dùng cho nút trên nền xanh (nd-sidebar-cta) */
.nd-cta-btn {
    position: relative;
    overflow: visible;
    isolation: isolate;
}

.nd-cta-btn::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.3);
    animation: btn-wave-pulse 2s ease infinite;
    z-index: -1;
}

@keyframes btn-wave-pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.08);
        opacity: 0;
    }

    100% {
        transform: scale(0.95);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .nd-layout {
        grid-template-columns: 1fr;
    }

    .nd-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .nd-sidebar-card,
    .nd-sidebar-cta {
        flex: 1;
        min-width: 280px;
    }
}

@media (max-width: 768px) {

    /* Hero banner override inline styles */
    .news-hero-banner {
        height: 320px !important;
    }

    .news-hero-banner h1 {
        font-size: 1.4rem !important;
        line-height: 1.3 !important;
        margin-bottom: 12px !important;
    }

    .news-hero-banner .material-symbols-outlined {
        font-size: 14px !important;
    }

    .news-hero-breadcrumb {
        padding: 0 16px;
        bottom: 16px;
    }

    .news-hero-breadcrumb ul {
        padding: 8px 14px;
        gap: 6px;
        font-size: 12px;
    }

    .nd-body {
        padding: 20px 12px 40px;
    }

    .nd-article {
        padding: 24px 16px;
        border-radius: 12px;
    }

    .nd-title {
        font-size: 22px;
    }

    .nd-sapo {
        font-size: 16px;
        padding: 16px 18px;
    }

    .nd-content {
        font-size: 16px;
    }

    .nd-content img {
        max-width: 100% !important;
        height: auto !important;
    }

    .nd-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .nd-share-btns {
        align-self: flex-end;
    }

    .nd-footer-nav {
        flex-direction: column;
        gap: 12px;
        padding: 20px;
    }

    .nd-footer-nav a {
        width: 100%;
        justify-content: center;
    }

    .nd-sidebar {
        flex-direction: column;
    }

    .nd-sidebar-card,
    .nd-sidebar-cta {
        min-width: unset;
        width: 100%;
        box-sizing: border-box;
    }

    .nd-sidebar-cta {
        padding: 24px 20px;
    }

    .nd-sidebar-cta h4 {
        font-size: 16px;
    }

    .nd-sidebar-cta p {
        font-size: 13px;
    }

    .news-detail-breadcrumb {
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .news-hero-banner {
        height: 260px !important;
    }

    .news-hero-banner h1 {
        font-size: 1.15rem !important;
    }

    .news-hero-banner>div:last-child {
        padding: 0 12px 20px !important;
    }

    .nd-body {
        padding: 12px 8px 30px;
    }

    .nd-article {
        padding: 20px 14px;
    }

    .nd-title {
        font-size: 19px;
    }

    .nd-content {
        font-size: 15px;
        line-height: 1.7;
    }

    .nd-cta-btn {
        padding: 10px 24px;
        font-size: 13px;
    }
}

/* ================================================================
   PREMIUM EFFECTS — Nâng cấp hiệu ứng chuyên nghiệp
   ================================================================ */

/* ===== 1. Parallax nhẹ cho Hero Carousel (Đã bỏ zoom) ===== */
.hero-carousel-slide img {
    /* Đã bỏ zoom ảnh banner */
}

/* ===== 2. Card 3D Tilt Hover (Khóa học + Tin tức) ===== */
.card-3d-hover {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

.card-3d-hover:hover {
    transform: translateY(-10px) rotateX(2deg) rotateY(-2deg);
    box-shadow:
        0 25px 50px rgba(0, 76, 182, 0.12),
        0 10px 20px rgba(0, 0, 0, 0.06);
}

.card-3d-hover .card-3d-shine {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, transparent 50%);
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.card-3d-hover:hover .card-3d-shine {
    opacity: 1;
}

/* ===== 3. Gradient Border Animation cho Form ===== */
.gradient-border-wrap {
    position: relative;
    border-radius: 24px;
    padding: 4px;
    background: linear-gradient(135deg, #004cb6, #60a5fa, #f59e0b, #ef4444, #60a5fa, #004cb6);
    background-size: 400% 400%;
    animation: gradient-border-rotate 3s ease infinite;
    box-shadow: 0 0 20px rgba(0, 76, 182, 0.15);
}

.gradient-border-wrap>* {
    border-radius: 21px;
}

@keyframes gradient-border-rotate {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ===== 4. Teacher Avatar — Hover Glow Ring ===== */
.teacher-glow {
    position: relative;
    transition: transform 0.5s ease;
}

.teacher-glow::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #004cb6, #60a5fa, #0062e6, #004cb6);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
    filter: blur(6px);
}

.teacher-glow:hover {
    transform: translateY(-8px) scale(1.05);
}

.teacher-glow:hover::before {
    opacity: 0.7;
    animation: glow-spin 3s linear infinite;
}

@keyframes glow-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== 5. Floating Dots Background (Stats section) ===== */
.floating-dots {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.floating-dots span {
    position: absolute;
    display: block;
    width: 6px;
    height: 6px;
    background: rgba(0, 76, 182, 0.08);
    border-radius: 50%;
    animation: float-dot 20s linear infinite;
}

.floating-dots span:nth-child(1) {
    left: 10%;
    animation-duration: 22s;
    animation-delay: 0s;
    width: 8px;
    height: 8px;
}

.floating-dots span:nth-child(2) {
    left: 25%;
    animation-duration: 18s;
    animation-delay: 2s;
}

.floating-dots span:nth-child(3) {
    left: 40%;
    animation-duration: 25s;
    animation-delay: 4s;
    width: 10px;
    height: 10px;
}

.floating-dots span:nth-child(4) {
    left: 55%;
    animation-duration: 20s;
    animation-delay: 1s;
}

.floating-dots span:nth-child(5) {
    left: 70%;
    animation-duration: 23s;
    animation-delay: 3s;
    width: 7px;
    height: 7px;
}

.floating-dots span:nth-child(6) {
    left: 85%;
    animation-duration: 19s;
    animation-delay: 5s;
}

.floating-dots span:nth-child(7) {
    left: 15%;
    animation-duration: 21s;
    animation-delay: 6s;
    width: 5px;
    height: 5px;
}

.floating-dots span:nth-child(8) {
    left: 50%;
    animation-duration: 24s;
    animation-delay: 7s;
}

@keyframes float-dot {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-10vh) rotate(720deg);
        opacity: 0;
    }
}

/* ===== 6. Section Divider Wave ===== */
.wave-divider {
    position: relative;
    overflow: hidden;
}

.wave-divider::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%23f9f9f9' d='M0,30 C360,60 720,0 1080,30 C1260,45 1350,50 1440,30 L1440,60 L0,60Z'/%3E%3C/svg%3E") no-repeat bottom center;
    background-size: cover;
    pointer-events: none;
}

/* ===== 7. Image Reveal on Scroll ===== */
.img-reveal {
    position: relative;
    overflow: hidden;
}

.img-reveal::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #004cb6;
    z-index: 2;
    transform-origin: left;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.img-reveal.revealed::before {
    transform: scaleX(0);
    transform-origin: right;
}

/* ===== 8. Pulse Glow cho Stats Number ===== */
.stat-number {
    position: relative;
}

.stat-number::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #004cb6, transparent);
    border-radius: 2px;
    opacity: 0;
    animation: stat-line-pulse 2s ease-in-out infinite;
    animation-delay: 1s;
}

.stat-number:hover::after {
    opacity: 1;
}

@keyframes stat-line-pulse {

    0%,
    100% {
        opacity: 0;
        transform: scaleX(0.3);
    }

    50% {
        opacity: 0.6;
        transform: scaleX(1);
    }
}

/* ===== 9. Smooth link arrow bounce ===== */
.link-arrow-bounce:hover .material-symbols-outlined {
    animation: arrow-bounce 0.6s ease infinite;
}

@keyframes arrow-bounce {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }
}

/* ===== 10. Nút "Đăng ký ngay" trong card khóa học — Ripple Effect ===== */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease, opacity 0.5s ease;
    opacity: 0;
}

.btn-ripple:hover::after {
    width: 300px;
    height: 300px;
    opacity: 1;
}

/* ================================================================
   DETAIL PAGE — CTA Banner & Sticky Mobile Bar
   ================================================================ */

/* ===== CTA Banner cuối bài viết ===== */
.detail-cta-banner {
    margin-top: 48px;
    border-radius: 20px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #004cb6 100%);
    padding: 4px;
    position: relative;
    overflow: hidden;
}

.detail-cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #004cb6, #60a5fa, #f59e0b, #ef4444, #60a5fa, #004cb6);
    background-size: 400% 400%;
    animation: gradient-border-rotate 3s ease infinite;
    border-radius: 20px;
    z-index: 0;
}

.detail-cta-inner {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #004cb6 100%);
    border-radius: 17px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.detail-cta-text h3 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 8px;
}

.detail-cta-text p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .detail-cta-inner {
        flex-direction: column;
        text-align: center;
        padding: 28px 20px;
    }

    .detail-cta-text h3 {
        font-size: 1.25rem;
    }
}

/* ===== Sticky CTA trên Mobile ===== */
.sticky-cta-mobile {
    display: none;
}

@media (max-width: 768px) {
    .sticky-cta-mobile {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 999;
        padding: 10px 16px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    }

    .sticky-cta-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 14px;
        background: linear-gradient(135deg, #ff2d2d 0%, #ff6b35 50%, #ffaa00 100%);
        background-size: 200% 100%;
        animation: cta-gradient-shift 3s ease infinite;
        color: #fff;
        font-weight: 800;
        font-size: 15px;
        letter-spacing: 0.5px;
        border-radius: 12px;
        text-decoration: none;
        box-shadow: 0 4px 16px rgba(255, 45, 45, 0.35);
        transition: transform 0.2s ease;
    }

    .sticky-cta-btn:active {
        transform: scale(0.97);
    }

    /* Đẩy floating contacts lên cao hơn khi có sticky bar */
    .floating-contacts {
        bottom: 150px !important;
    }

    .scroll-top-btn {
        bottom: 80px !important;
    }
}

/* ================================================================
   WHY CHOOSE US — Carousel
   ================================================================ */
.wcu-carousel {
    position: relative;
    background: #f1f5f9;
}

.wcu-prev,
.wcu-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    color: #1e293b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    opacity: 0;
}

.wcu-carousel:hover .wcu-prev,
.wcu-carousel:hover .wcu-next {
    opacity: 1;
}

.wcu-prev:hover,
.wcu-next:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.wcu-prev {
    left: 12px;
}

.wcu-next {
    right: 12px;
}

.wcu-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.wcu-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.wcu-dot.active {
    background: #fff;
    transform: scale(1.2);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
}

/* ===== QUY TRÌNH SECTION ===== */

/* Timeline wrapper */
.qt-timeline {
    position: relative;
    margin-top: 60px;
    padding-bottom: 20px;
}

/* Vertical connector line */
.qt-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    transform: translateX(-50%);
    background: linear-gradient(to bottom, #004cb6 0%, #0062e6 50%, #004cb6 100%);
    opacity: 0.18;
    z-index: 0;
}

/* Each step block */
.qt-step {
    position: relative;
    margin-bottom: 64px;
    z-index: 1;
}

.qt-step:last-child {
    margin-bottom: 0;
}

/* Badge centered on the line */
.qt-step-badge {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.qt-badge-label {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2px;
    color: #0062e6;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 2px;
}

.qt-badge-number {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #004cb6, #0062e6);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 900;
    box-shadow: 0 4px 20px rgba(0, 76, 182, 0.35), 0 0 0 6px rgba(0, 98, 230, 0.12);
    border: 3px solid #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qt-step:hover .qt-badge-number {
    transform: scale(1.12);
    box-shadow: 0 8px 32px rgba(0, 76, 182, 0.5), 0 0 0 10px rgba(0, 98, 230, 0.12);
}

/* Two-column layout per step */
.qt-step-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 80px;
    align-items: center;
    padding-top: 10px;
}

/* Image on left, text on right (default) */
.qt-step-right {
    /* image col is first in DOM */
}

/* Text on left, image on right */
.qt-step-left {
    /* text col is first in DOM */
}

/* Image column */
.qt-img-col {
    position: relative;
}

.qt-img-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 76, 182, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    aspect-ratio: 4/3;
}

.qt-img-wrap:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 24px 60px rgba(0, 76, 182, 0.22);
}

.qt-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}

.qt-img-wrap:hover img {
    transform: scale(1.06);
}

/* Decorative accent corner */
.qt-img-accent {
    position: absolute;
    width: 80px;
    height: 80px;
    bottom: -12px;
    right: -12px;
    border-radius: 14px;
    background: linear-gradient(135deg, #004cb6, #0062e6);
    opacity: 0.18;
    z-index: -1;
    pointer-events: none;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.qt-img-wrap:hover .qt-img-accent {
    transform: scale(1.01);
    opacity: 0.25;
}

.qt-img-accent--alt {
    right: auto;
    left: -12px;
}

/* Text column */
.qt-text-col {
    padding: 8px 0;
}

.qt-text-card {
    background: #f8faff;
    border: 1px solid rgba(0, 76, 182, 0.1);
    border-left: 4px solid #0062e6;
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: 0 2px 16px rgba(0, 76, 182, 0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.qt-text-card:hover {
    box-shadow: 0 8px 32px rgba(0, 76, 182, 0.12);
    transform: translateY(-3px);
}

.qt-step-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 900;
    color: #004cb6;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.qt-step-title .material-symbols-outlined {
    font-size: 1.4rem;
    color: #0062e6;
    background: rgba(0, 98, 230, 0.1);
    border-radius: 8px;
    padding: 4px;
}

.qt-text-card p {
    font-size: 0.94rem;
    color: #475569;
    line-height: 1.75;
    margin-bottom: 12px;
}

.qt-text-card p:last-child {
    margin-bottom: 0;
}

/* Step-left: text card border flipped */
.qt-step-left .qt-text-card {
    border-left: none;
    border-right: 4px solid #0062e6;
    text-align: right;
}

.qt-step-left .qt-step-title {
    flex-direction: row-reverse;
}

/* Pulse dot on badge when in view */
.qt-step-badge.in-view .qt-badge-number::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(0, 98, 230, 0.4);
    animation: qt-ring-pulse 1.6s ease-out infinite;
    pointer-events: none;
}

@keyframes qt-ring-pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1.6);
    }
}

/* Mobile responsive */
@media (max-width: 767px) {
    .qt-line {
        left: 28px;
    }

    .qt-step-badge {
        left: 28px;
        top: 0;
    }

    .qt-badge-number {
        width: 46px;
        height: 46px;
        font-size: 1.1rem;
    }

    .qt-step-inner {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-left: 64px;
        padding-top: 0;
    }

    .qt-step-left .qt-img-col {
        order: -1;
    }

    .qt-step-left .qt-text-card {
        border-right: none;
        border-left: 4px solid #0062e6;
        text-align: left;
    }

    .qt-step-left .qt-step-title {
        flex-direction: row;
    }

    .qt-text-card {
        padding: 20px 20px;
    }
}

/* ================================================================
   VOUCHER SECTION STYLES
   ================================================================ */
/* Font Family Utility */
.font-body-md {
    font-family: 'Inter', sans-serif;
}
.font-headline-md {
    font-family: 'Montserrat', sans-serif;
}
.font-display-lg {
    font-family: 'Montserrat', sans-serif;
}

/* Custom Colors Utility (Tránh phụ thuộc Tailwind config toàn cục) */
.bg-voucher-red { background-color: #ff4d4d; }
.bg-voucher-yellow { background-color: #ffcc00; }
.text-voucher-text-red { color: #e60000; }
.text-voucher-text-gray { color: #555555; }
.text-voucher-link-blue { color: #0066cc; }
.bg-voucher-btn-red { background-color: #e60000; }

/* Thiết kế cho cuống vé bên trái */
.ticket-stub {
    position: relative;
    background-color: #ff4d4d; /* voucher-red */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px; /* w-30 */
    flex-shrink: 0;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    /* Tạo đường kẻ đứt nét phân tách ở mép phải */
    border-right: 2px dashed rgba(255, 255, 255, 0.85);
}

/* Tạo hiệu ứng răng cưa khoét sâu ở mép ngoài cùng bên trái */
.ticket-stub::before {
    content: '';
    position: absolute;
    left: -5px; /* Đẩy sang trái để một nửa hình tròn cắt vào */
    top: 8px;   /* Giữ khoảng cách ở trên và dưới để không mất bo góc của card */
    bottom: 8px;
    width: 10px;
    /* Cắt răng cưa bằng màu trắng trùng với màu nền bọc ngoài */
    background-image: radial-gradient(circle at 5px 50%, #ffffff 4px, transparent 4.5px);
    background-size: 10px 14px;
    z-index: 20;
}

/* Bo góc mềm mại cho toàn bộ card */
.voucher-card {
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    min-height: 150px; /* Dùng min-height để tự co giãn khi nội dung dài, tránh tràn nút */
    width: 100%;
    max-width: 440px; /* Giới hạn chiều rộng tối đa để tránh trống trải khi màn hình rộng */
    margin: 0 auto;   /* Căn giữa card */
}

/* Cấu hình xoay mặc định của chiếc vé vàng */
.ticket-yellow-svg {
    transform-origin: center;
    transform: rotate(-15deg);
    transition: transform 0.3s ease;
}

/* Định nghĩa hiệu ứng rung lắc (shake animation) khi hover */
@keyframes ticket-shake {
    0% { transform: rotate(-15deg) scale(1.05); }
    15% { transform: rotate(-18deg) scale(1.05); }
    30% { transform: rotate(-12deg) scale(1.05); }
    45% { transform: rotate(-17deg) scale(1.05); }
    60% { transform: rotate(-13deg) scale(1.05); }
    75% { transform: rotate(-16deg) scale(1.05); }
    90% { transform: rotate(-14deg) scale(1.05); }
    100% { transform: rotate(-15deg) scale(1.05); }
}

/* Kích hoạt hiệu ứng khi hover vào card voucher */
.voucher-card:hover .ticket-yellow-svg {
    animation: ticket-shake 0.6s ease-in-out infinite;
}

/* Responsive: Thu nhỏ voucher card trên mobile */
@media (max-width: 639px) {
    .ticket-stub {
        width: 56px;
        border-top-left-radius: 6px;
        border-bottom-left-radius: 6px;
        border-right-width: 1.5px;
    }
    .ticket-stub::before {
        width: 8px;
        left: -4px;
        background-image: radial-gradient(circle at 4px 50%, #ffffff 3px, transparent 3.5px);
        background-size: 8px 10px;
    }
    .voucher-card {
        min-height: 76px;
        max-width: 280px;
        border-radius: 6px;
    }
    .voucher-carousel-dots {
        margin-top: 8px;
        gap: 6px;
    }
    .voucher-dot {
        width: 7px;
        height: 7px;
    }
    #vouchers-section {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
}

/* Emerald Colors for Auto-Applied Badge */
.bg-emerald-50 { background-color: #ecfdf5; }
.text-emerald-700 { color: #047857; }
.border-emerald-200 { border-color: #a7f3d0; }
.text-emerald-600 { color: #059669; }

/* Pulse Light Animation */
@keyframes pulse-light {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.9); }
}
.animate-pulse-light {
    animation: pulse-light 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Voucher Carousel Dots */
.voucher-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.voucher-dot {
    width: 10px;
    height: 10px;
    border-radius: 9999px;
    background-color: #d1d5db;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.voucher-dot.active {
    width: 24px;
    background-color: #ff4d4d;
}

.voucher-dot:hover:not(.active) {
    background-color: #9ca3af;
}

/* Voucher Carousel Drag Effect */
.voucher-carousel-wrapper {
    cursor: grab;
    user-select: none;
}

.voucher-carousel-wrapper.dragging {
    cursor: grabbing;
}

/* Feature Carousel Dots & Wrapper */
.feature-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.feature-dot {
    width: 10px;
    height: 10px;
    border-radius: 9999px;
    background-color: #d1d5db;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.feature-dot.active {
    width: 24px;
    background-color: #004cb6;
}

.feature-dot:hover:not(.active) {
    background-color: #9ca3af;
}

.feature-carousel-wrapper {
    cursor: grab;
    user-select: none;
}

.feature-carousel-wrapper.dragging {
    cursor: grabbing;
}