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

:root {
    --bg-main: #f5f8f6; /* Sạch sẽ, nền xám nhạt ánh xanh bộ đội */
    --bg-surface: rgba(255, 255, 255, 0.95);
    --bg-surface-opaque: #ffffff;
    --border-color: rgba(0, 0, 0, 0.08);
    --border-color-glow: rgba(18, 93, 48, 0.25);
    
    --primary: #125d30; /* Xanh lục quân đội Việt Nam chính thống (Deep Army Green) */
    --primary-glow: rgba(18, 93, 48, 0.15);
    --primary-hover: #0b3d1f;
    
    --accent: #da9f1a; /* Vàng đồng quân hàm (Military Gold / Brass) */
    --accent-glow: rgba(218, 159, 26, 0.2);
    
    --military-red: #da251d; /* Đỏ cờ Tổ quốc / Đỏ biểu trưng Thái Sơn (Vietnamese Flag Red / Thai Son Red) */
    --military-red-glow: rgba(218, 37, 29, 0.15);
    
    --text-primary: #111c14;
    --text-secondary: #323f36; /* Xám lục đậm dễ đọc */
    --text-muted: #66786c;
    
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    --glow-shadow: 0 4px 20px rgba(18, 93, 48, 0.08);
    --font-sans: 'Be Vietnam Pro', 'Plus Jakarta Sans', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Background Gradients */
.bg-gradient-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
}

.shape-1 {
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: var(--primary);
    opacity: 0.18;
    animation: floatShape1 18s infinite ease-in-out;
}

.shape-2 {
    bottom: -10%;
    left: -10%;
    width: 700px;
    height: 700px;
    background: var(--military-red);
    opacity: 0.12;
    animation: floatShape2 22s infinite ease-in-out;
}

.shape-3 {
    top: 35%;
    left: 20%;
    width: 500px;
    height: 500px;
    background: var(--accent);
    opacity: 0.1;
    animation: floatShape3 20s infinite ease-in-out;
}

@keyframes floatShape1 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -60px) scale(1.1); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes floatShape2 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-50px, 40px) scale(1.05); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes floatShape3 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, 50px) scale(1.15); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Typography & Layout */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, var(--text-primary) 0%, #3e5046 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 10px auto 0 auto;
    border-radius: 2px;
}

p {
    color: var(--text-secondary);
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 32px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 30%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
}

.btn:hover::after {
    left: 130%;
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #178041 100%);
    color: #fff;
    box-shadow: 0 4px 18px rgba(38, 191, 100, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, #1e9d52 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(38, 191, 100, 0.6);
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, #c78f00 100%);
    color: #000;
    box-shadow: 0 4px 18px rgba(255, 184, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-accent:hover {
    background: linear-gradient(135deg, #ffc933 0%, #e6a500 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 184, 0, 0.55);
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.glass-panel:hover {
    border-color: var(--border-color-glow);
    box-shadow: 0 10px 40px rgba(191, 38, 66, 0.15);
}

/* Header */
header.main-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
}

header .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

header .logo-box img {
    height: 55px;
    width: auto;
}

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

header .logo-title {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    text-transform: uppercase;
}

header .logo-subtitle {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
}

header nav ul {
    display: flex;
    list-style: none;
    gap: clamp(8px, 1.2vw, 15px);
    align-items: center;
}

header nav a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding: 6px clamp(8px, 0.8vw, 12px);
    border-radius: 20px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

header nav a:hover {
    color: var(--primary);
    background: rgba(27, 138, 71, 0.06);
}

header nav li.active a {
    color: #ffffff !important;
    background: var(--primary) !important;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(27, 138, 71, 0.2);
}

/* Dropdown Menu Styles */
header nav ul li.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-surface);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 260px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.dropdown-menu li {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    color: var(--text-secondary) !important;
    transition: var(--transition) !important;
    border-bottom: none !important;
}

.dropdown-menu li a:hover {
    color: var(--primary) !important;
    background: rgba(27, 138, 71, 0.05) !important;
    padding-left: 25px !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 40px 0 50px 0;
    background: linear-gradient(135deg, #f0f7f2 0%, #e8f5ec 50%, #fef9f0 100%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #123524 !important;
    border: 1px solid rgba(224, 169, 109, 0.5) !important;
    padding: 6px 16px;
    border-radius: 30px;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    animation: badgePulse 2.5s infinite;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@keyframes badgePulse {
    0% { box-shadow: 0 0 0 0 rgba(224, 169, 109, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(224, 169, 109, 0); }
    100% { box-shadow: 0 0 0 0 rgba(224, 169, 109, 0); }
}

.hero-badge i {
    color: var(--accent);
}

.hero-content h1 span {
    color: var(--primary);
    display: block;
}

.hero-content p {
    font-size: 1.15rem;
    margin: 20px 0 35px 0;
}

.hero-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 35px;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-feature-item i {
    color: var(--primary);
    font-size: 1.2rem;
}

/* Forms styling */
.lead-form-container {
    padding: 30px;
}

.lead-form-container h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    text-align: center;
}

.lead-form-container p {
    font-size: 0.85rem;
    text-align: center;
    margin-bottom: 24px;
}

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

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(27, 138, 71, 0.1);
}

/* Modern Pill Search Bar */
.modern-search-bar {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 6px 6px 6px 18px;
    max-width: 450px;
    width: 100%;
    transition: var(--transition);
}

.modern-search-bar:focus-within {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 12px rgba(27, 138, 71, 0.15);
}

.modern-search-bar input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    padding: 8px 10px 8px 0 !important;
    outline: none !important;
    font-size: 0.95rem;
    color: var(--text-primary) !important;
    min-width: 0;
}

.modern-search-bar input::placeholder {
    color: var(--text-muted);
}

.modern-search-bar button {
    border-radius: 50px !important;
    padding: 10px 24px !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    margin: 0 !important;
}

select.form-control option {
    background: var(--bg-surface-opaque);
    color: var(--text-primary);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
}

.checkbox-group input {
    margin-top: 4px;
}

.checkbox-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Courses Section */
.courses-section {
    padding: 40px 0;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.toggle-schedule-btn {
    white-space: normal !important;
    line-height: 1.4 !important;
    height: auto !important;
    min-height: 40px;
}

.course-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.course-card-img {
    height: 220px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.course-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.course-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: #fff;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

.course-card-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-card-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.course-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
}

.stat-val {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--primary);
}

.stat-lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.course-price-box {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 20px;
}

.course-price {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--accent);
    text-shadow: 0 0 10px rgba(224, 169, 109, 0.2);
}

.course-installment {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Interactive Cost Calculator */
.calc-section {
    padding: 40px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(191, 38, 66, 0.03) 50%, transparent 100%);
}

.calc-panel {
    padding: 40px;
}

.calc-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
}

.calc-controls {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.calc-result-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 30px;
    border: 1px dashed var(--border-color);
}

.calc-result-title {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.calc-price {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 24px;
}

.calc-schedule {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.calc-schedule-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.calc-schedule-item span:first-child {
    color: var(--text-secondary);
}

.calc-schedule-item span:last-child {
    font-weight: 600;
}

/* Tabs & Dashboards */
.features-dashboard-section {
    padding: 40px 0;
}

.tab-nav {
    display: flex;
    justify-content: center;
    list-style: none;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
    gap: 15px;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.05rem;
    padding: 16px 24px;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

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

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

/* DAT Simulator Panel */
.dat-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
}

.dat-status-panel {
    padding: 24px;
}

.dat-map-panel {
    min-height: 350px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border-radius: 12px;
}

.dat-map-panel img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.dat-map-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
}

.progress-bar-container {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    height: 10px;
    border-radius: 5px;
    margin: 10px 0;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    width: 0;
    transition: width 1.5s ease-in-out;
}

/* Theory test module */
.quiz-panel {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
}

.quiz-question {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quiz-option {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 16px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
}

.quiz-option:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary);
}

.quiz-option.correct {
    background: rgba(38, 191, 100, 0.15) !important;
    border-color: #26bf64 !important;
}

.quiz-option.incorrect {
    background: rgba(191, 38, 38, 0.15) !important;
    border-color: #bf2626 !important;
}

.quiz-explanation {
    margin-top: 24px;
    padding: 20px;
    border-left: 4px solid var(--primary);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0 8px 8px 0;
    display: none;
}

/* Cabin Booking */
.booking-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 35px;
}

.time-slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.time-slot {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    font-weight: 500;
}

.time-slot.active {
    background: var(--primary);
    border-color: var(--primary);
}

.time-slot.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* 120 Hazard Simulator */
.hazard-panel {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
}

.hazard-video-container {
    width: 100%;
    height: 380px;
    background: #000;
    border-radius: 12px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hazard-video-placeholder {
    text-align: center;
    color: var(--text-secondary);
}

.hazard-video-placeholder i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 16px;
    cursor: pointer;
}

.hazard-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Policies */
.policies-section {
    padding: 40px 0;
    background: rgba(255, 255, 255, 0.01);
}

.policies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.policy-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.policy-icon {
    font-size: 2rem;
    color: var(--primary);
}

.policy-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.policy-list li {
    position: relative;
    padding-left: 20px;
}

.policy-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Referral */
.referral-section {
    padding: 40px 0;
}

.referral-panel {
    padding: 40px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.referral-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    text-align: left;
    margin-top: 30px;
}

.code-box {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

/* Modal Dialog */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-container {
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 35px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.modal-close {
    font-size: 1.5rem;
    cursor: pointer;
    background: transparent;
    border: none;
    color: var(--text-secondary);
}

.modal-close:hover {
    color: #fff;
}

/* Wizard Steps */
.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.wizard-steps::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--border-color);
    z-index: 1;
}

.wizard-step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-surface-opaque);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.wizard-step.active {
    background: var(--primary);
    border-color: var(--primary);
}

.wizard-step.completed {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
}

.step-panel {
    display: none;
}

.step-panel.active {
    display: block;
}

.document-upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.upload-box {
    border: 2px dashed var(--border-color);
    padding: 24px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.upload-box:hover {
    border-color: var(--primary);
}

.upload-box i {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* Footer */
footer.main-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px 0 20px 0;
    background: #0c1c11; /* Rich premium dark forest green */
    color: #a8bdae;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1.1fr 1.1fr 0.9fr;
    gap: 35px;
    margin-bottom: 45px;
}

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

.footer-brand-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.footer-brand-subtitle {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
}

.footer-brand-desc {
    font-size: 0.82rem;
    line-height: 1.6;
    color: #a8bdae;
}

.footer-column h4 {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 8px;
    letter-spacing: 0.3px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: var(--accent);
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.82rem;
}

.footer-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #a8bdae;
    line-height: 1.5;
}

.footer-list li i {
    margin-top: 3px;
    font-size: 0.85rem;
    color: var(--accent);
}

.footer-list a {
    color: #cbdcd1;
    text-decoration: none;
    transition: var(--transition);
}

.footer-list a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    color: #8c9d92;
    font-size: 0.85rem;
}

/* Floating widgets */
.floating-widgets {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.widget-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.widget-btn:hover {
    transform: translateY(-5px);
}

.widget-zalo {
    background: #0068ff;
}

.widget-phone {
    background: #26bf64;
    animation: pulse 2s infinite;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(38, 191, 100, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(38, 191, 100, 0); }
    100% { box-shadow: 0 0 0 0 rgba(38, 191, 100, 0); }
}

/* Responsive */
@media (max-width: 992px) {
    h1 { font-size: 2.25rem; }
    .hero-grid, .calc-grid, .dat-grid, .booking-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* -------------------------------------------------------------
 * NEW STYLES: NEWS GRID, NEWS MODAL, AND ADMIN DASHBOARD
 * ------------------------------------------------------------- */

/* News & Announcements */
.news-section {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.news-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--transition);
}

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

.news-card-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.news-date-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: var(--bg-surface-opaque);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent);
    border: 1px solid var(--border-color);
}

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

.news-card-title {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Detail News Modal */
.news-modal-body {
    max-height: 70vh;
    overflow-y: auto;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    padding-right: 10px;
}

.news-modal-body h3, .news-modal-body h4 {
    color: #fff;
    margin: 20px 0 10px 0;
}

.news-modal-body p {
    margin-bottom: 15px;
}

.news-modal-body ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

/* Admin Lead Dashboard Overlay */
.admin-dashboard-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dashboard-container {
    width: 90%;
    max-width: 1100px;
    max-height: 90vh;
    overflow-y: auto;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.stat-card-num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 5px;
}

.stat-card-title {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.dashboard-table-wrapper {
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 25px;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}

.dashboard-table th {
    background: rgba(255, 255, 255, 0.03);
    padding: 14px 16px;
    color: #fff;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

.dashboard-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.dashboard-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.badge-lead {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-lead.full {
    background: rgba(38, 191, 100, 0.15);
    color: #26bf64;
}

.badge-lead.installment {
    background: rgba(255, 184, 0, 0.15);
    color: var(--accent);
}

.badge-lead.pending {
    background: rgba(160, 174, 192, 0.15);
    color: #a0aec0;
}

/* Online Learning Hub Grid & Lists */
.learning-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
}

.learning-chapters {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chapter-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chapter-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

.chapter-info h4 {
    color: #fff;
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.chapter-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.chapter-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.chapter-badge {
    background: rgba(191, 38, 66, 0.1);
    color: var(--primary);
    border: 1px solid var(--border-color-glow);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.chapter-badge.critical {
    background: rgba(255, 184, 0, 0.1);
    color: var(--accent);
    border-color: var(--accent-glow);
}

/* 11 Sa Hình Continuous Checklist */
.sahinh-panel {
    border-left: 1px solid var(--border-color);
    padding-left: 25px;
}

.sahinh-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 15px;
}

.sahinh-item {
    position: relative;
    padding-left: 30px;
}

.sahinh-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    border: 2px solid var(--bg-body);
    z-index: 2;
    transition: var(--transition);
}

.sahinh-item:hover::before {
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary);
}

.sahinh-item-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 4px;
}

.sahinh-item-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.sahinh-item-warning {
    font-size: 0.75rem;
    color: var(--accent);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Smart Warning / Info Box */
.smart-info-box {
    background: rgba(255, 184, 0, 0.03);
    border: 1px solid var(--accent-glow);
    padding: 18px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    gap: 15px;
}

.smart-info-icon {
    font-size: 1.5rem;
    color: var(--accent);
}

.smart-info-content h4 {
    color: #fff;
    margin-bottom: 6px;
    font-size: 1rem;
}

.smart-info-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Flow Step Process (Horizontal/Vertical) */
.flow-process {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.flow-step {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 8px;
    position: relative;
}

.flow-step-num {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
}

.flow-step h5 {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.flow-step p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .learning-grid {
        grid-template-columns: 1fr;
    }
    .sahinh-panel {
        border-left: none;
        padding-left: 0;
        margin-top: 30px;
    }
}

/* -------------------------------------------------------------
 * MOBILE NAVIGATION MENU & DISPLAY UTILITY CLASSES
 * ------------------------------------------------------------- */
.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1050;
    transition: var(--transition);
}

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

.d-none {
    display: none !important;
}

.d-sm-inline-block {
    display: none !important;
}

@media (min-width: 576px) {
    .d-sm-inline-block {
        display: inline-block !important;
    }
}

@media (max-width: 1199px) {
    .mobile-nav-toggle {
        display: block;
    }
    
    .main-nav.open ~ div .mobile-nav-toggle {
        color: #fff !important;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        transform: translateX(100%);
        width: 280px;
        height: 100vh;
        background: rgba(10, 11, 20, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border-left: 1px solid var(--border-color);
        z-index: 1040;
        padding: 100px 30px 40px 30px;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }
    
    .main-nav.open {
        transform: translateX(0);
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 25px;
    }
    
    .main-nav a {
        font-size: 1.1rem;
        width: 100%;
        display: block;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    }
    
    .main-nav li.active a {
        border-bottom-color: var(--primary);
    }
}

/* Adjustments for smaller mobile screens */
@media (max-width: 576px) {
    .modal-container {
        padding: 20px !important;
    }
    
    .document-upload-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Social Proof Toast Popup */
.registration-toast {
    position: fixed;
    bottom: 20px;
    left: -400px; /* Hidden initially offscreen */
    width: 350px;
    max-width: calc(100vw - 40px);
    background: rgba(10, 11, 20, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--border-color-glow);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    gap: 15px;
    align-items: center;
    transition: left 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.registration-toast.show {
    left: 20px;
}

.registration-toast-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(191, 38, 66, 0.4);
}

.registration-toast-body {
    flex-grow: 1;
}

.registration-toast-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.registration-toast-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.35;
}

.registration-toast-time {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
}

/* ==========================================================================
   HIGH CONTRAST & ACCESSIBILITY OVERRIDES (LIGHT MODE & ELDERLY READABILITY)
   ========================================================================== */

/* Force high contrast text colors on all white/light glass-panel surfaces */
.glass-panel,
.tab-content,
.news-card,
.course-card,
.policy-card,
.testimonial-card,
.timeline-card,
.flow-process,
.comparison-table,
.modal-content,
.dat-grid,
.booking-grid,
.checkout-modal {
    color: var(--text-primary) !important;
}

/* Force headings and strong text to be almost black */
.glass-panel h1, .glass-panel h2, .glass-panel h3, .glass-panel h4, .glass-panel h5, .glass-panel h6,
.tab-content h1, .tab-content h2, .tab-content h3, .tab-content h4, .tab-content h5, .tab-content h6,
.news-card-title,
.course-card-title,
.policy-card h3,
.testimonial-name,
.step-title,
.comparison-table th,
.comparison-table td strong,
.checkout-modal h3,
.checkout-modal h4,
.checkout-modal strong,
.dat-status-panel strong,
.booking-form h4,
.booking-form strong,
.contact-section h3,
.news-modal h3,
.news-modal strong,
.referral-section h3,
.referral-section h4,
.referral-section strong,
.feedback-section h3,
.quiz-panel h3,
.hazard-panel h3,
.sahinh-panel h3,
.learning-chapters h3,
.learning-chapters h4 {
    color: var(--text-primary) !important;
}

/* Force body text and descriptions to be dark slate/gray */
.glass-panel p, .glass-panel li,
.tab-content p, .tab-content li,
.news-card-desc,
.course-card p,
.policy-card p,
.testimonial-text,
.step-desc,
.comparison-table td,
.checkout-modal p,
.checkout-modal li,
.checkout-modal span:not(.badge):not(.chapter-badge),
.dat-status-panel p,
.booking-form p,
.news-modal p,
.news-modal li,
.referral-section p,
.referral-section li,
.quiz-panel p,
.hazard-panel p,
.sahinh-panel p,
.learning-chapters p {
    color: var(--text-secondary) !important;
}

/* Fix active state buttons to retain white text for legibility */
.btn-primary,
.btn-accent,
.btn-primary *,
.btn-accent * {
    color: #ffffff !important;
}

/* Maintain bright green/gold/red badges text colors */
.badge,
.chapter-badge,
.news-date-badge,
.badge *,
.chapter-badge *,
.news-date-badge * {
    color: #ffffff !important;
}

.chapter-badge {
    color: var(--primary) !important;
    background: rgba(27, 138, 71, 0.1) !important;
    font-weight: 700 !important;
}

/* Clean styling for sub-tabs in learning portal */
.sub-tab-btn {
    background: rgba(0, 0, 0, 0.03) !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border-color) !important;
}

.sub-tab-btn.active {
    background: var(--primary) !important;
    color: #ffffff !important;
    border: 1px solid var(--primary) !important;
}

.sub-tab-btn.active i {
    color: #ffffff !important;
}

/* Forms visibility */
label {
    color: var(--text-primary) !important;
    font-weight: 700 !important;
}

/* ============================================================
   GLOBAL COLOR FIX: Override ALL inline color:#fff 
   that should be dark on light background
   ============================================================ */

/* All headings inside main content sections */
.glass-panel h3, .glass-panel h4,
.trust-commitment h3,
.referral-panel h3, .referral-panel h4,
.feedback-section h3,
.contact-item h3,
.checkout-modal h3, .checkout-modal h4,
.news-modal h3,
.quiz-panel h3, .quiz-panel h4,
.hazard-panel h3,
.sahinh-panel h3,
.admin-dashboard h3, .admin-dashboard h4,
.dat-status-panel h3, .dat-status-panel h4,
.tab-content h3, .tab-content h4,
.calc-section h4 {
    color: var(--text-primary) !important;
}

/* All strong text inside sections */
.glass-panel strong,
.trust-commitment strong,
.calc-section strong,
.dat-status-panel strong,
.checkout-modal strong,
.tab-content strong,
.referral-panel strong,
.quiz-panel strong,
.hazard-panel strong,
.admin-dashboard strong {
    color: var(--text-primary) !important;
}

/* Comparison table first column (left side labels) */
.comparison-table td:first-child {
    color: var(--text-primary) !important;
    font-weight: 700 !important;
}

/* Comparison table header row */
.comparison-table thead th:first-child {
    color: #ffffff !important;
}

/* Timer and quiz elements that SHOULD stay white in dark containers */
#hazard-timer {
    color: var(--primary) !important;
}

/* GPLX standards section fix */
#tab-standards h3,
#tab-standards strong {
    color: var(--text-primary) !important;
}

/* DAT section */
.dat-map-overlay div {
    color: var(--text-secondary) !important;
}

/* Sub-tab buttons fix */
.sub-tab-btn {
    color: var(--text-secondary) !important;
}
.sub-tab-btn.active {
    color: #ffffff !important;
    background: var(--primary) !important;
}

/* Ensure icons in commitment-highlights remain visible */
.commitment-highlights > div > div:last-child {
    color: var(--text-primary) !important;
}

/* Social proof notification */
.social-proof-popup {
    color: #ffffff !important;
}

/* Keep white text ONLY where it belongs: topbar, buttons, badges */
#topbar, #topbar * {
    color: #ffffff !important;
}
.btn-primary, .btn-primary * {
    color: #ffffff !important;
}
.btn-accent, .btn-accent * {
    color: #ffffff !important;
}
.badge {
    color: #ffffff !important;
}
.widget-btn, .widget-btn * {
    color: #ffffff !important;
}

/* Section title centering & spacing tighten */
.section-header {
    margin-bottom: 30px;
}

.section-header h2 {
    margin-bottom: 10px;
}

.section-header p {
    margin-bottom: 0;
}

/* Reduce margin-bottom on glass-panel */
.glass-panel {
    margin-bottom: 0;
}

/* Tighter tab margin */
.tab-nav {
    margin-bottom: 25px !important;
}

/* Hide world map image and replace with icon placeholder */
.dat-map-panel img {
    filter: grayscale(100%) opacity(0.15);
}

/* Search Intent / SEO Answer Surface */
.intent-section {
    padding: 46px 0 20px;
}

.intent-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 34px;
    align-items: start;
}

.intent-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.intent-intro,
.faq-intro {
    max-width: 680px;
    margin: 0 auto 26px;
    text-align: center;
    color: var(--text-secondary);
}

.intent-section .intent-intro {
    margin: 0 0 22px;
    text-align: left;
}

.intent-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.trend-source-card {
    background: rgba(27, 138, 71, 0.08);
    border: 1px solid rgba(27, 138, 71, 0.18);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
}

.trend-source-card strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.86rem;
    margin-bottom: 4px;
}

.trend-source-card span {
    display: block;
    color: var(--text-secondary);
    font-size: 0.78rem;
    line-height: 1.45;
}

.intent-chip,
.intent-link {
    border: 1px solid var(--border-color);
    background: #ffffff;
    color: var(--text-primary);
    border-radius: 999px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 700;
    transition: var(--transition);
}

.intent-chip {
    padding: 10px 14px;
    font-size: 0.82rem;
}

.intent-chip:hover,
.intent-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--glow-shadow);
}

.intent-answer-grid,
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.intent-card,
.faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.intent-card {
    padding: 20px;
}

.intent-card i {
    color: var(--primary);
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.intent-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.intent-card p {
    font-size: 0.86rem;
    margin-bottom: 14px;
}

.intent-link {
    padding: 9px 12px;
    font-size: 0.78rem;
}

.trend-writing-panel {
    margin-top: 28px;
    background: #ffffff;
    border: 2px solid transparent;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(18, 93, 48, 0.12), 0 2px 10px rgba(0,0,0,0.06);
    overflow: hidden;
    background-image: linear-gradient(#fff, #fff), linear-gradient(135deg, var(--primary), var(--accent));
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.trend-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #123524, #1b5a30);
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

.trend-panel-head::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(224, 169, 109, 0.25), transparent 70%);
    pointer-events: none;
}

.trend-panel-head span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.92rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.trend-panel-head span i {
    color: var(--accent);
    font-size: 1.1rem;
}

.trend-panel-head strong {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-weight: 500;
}

.trend-topic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    background: transparent;
}

.trend-topic-card {
    background: #ffffff;
    padding: 24px;
    border-right: 1px solid rgba(0,0,0,0.06);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    position: relative;
}

.trend-topic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--primary);
    transition: height 0.3s ease;
    border-radius: 0 4px 4px 0;
}

.trend-topic-card:hover {
    background: linear-gradient(135deg, rgba(18, 93, 48, 0.03), rgba(224, 169, 109, 0.04));
    box-shadow: inset 0 0 0 1px rgba(18, 93, 48, 0.1);
}

.trend-topic-card:hover::before {
    height: 100%;
}

.trend-topic-card-wide {
    grid-column: 1 / -1;
}

.trend-topic-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), #28a745);
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(18, 93, 48, 0.25);
}

.trend-topic-card:nth-child(2) .trend-topic-label {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    box-shadow: 0 2px 6px rgba(192, 57, 43, 0.25);
}

.trend-topic-card:nth-child(3) .trend-topic-label {
    background: linear-gradient(135deg, #2980b9, #3498db);
    box-shadow: 0 2px 6px rgba(41, 128, 185, 0.25);
}

.trend-topic-card:nth-child(4) .trend-topic-label {
    background: linear-gradient(135deg, #d35400, #e67e22);
    box-shadow: 0 2px 6px rgba(211, 84, 0, 0.25);
}

.trend-topic-card:nth-child(5) .trend-topic-label {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    box-shadow: 0 2px 6px rgba(142, 68, 173, 0.25);
}

.trend-topic-card h3 {
    color: var(--text-primary);
    font-size: 1.08rem;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.4;
}

.trend-topic-card p {
    color: var(--text-secondary);
    font-size: 0.87rem;
    margin-bottom: 14px;
    line-height: 1.6;
}

.trend-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.trend-keywords span {
    background: linear-gradient(135deg, #f0f7f2, #e8f4eb);
    border: 1px solid rgba(18, 93, 48, 0.15);
    border-radius: 8px;
    color: var(--primary);
    font-size: 0.74rem;
    font-weight: 700;
    padding: 6px 12px;
    transition: all 0.25s ease;
    cursor: default;
}

.trend-keywords span:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(18, 93, 48, 0.25);
}

.faq-section {
    padding: 56px 0;
    border-top: 1px solid var(--border-color);
}

.faq-item {
    padding: 0;
    overflow: hidden;
}

.faq-item summary {
    cursor: pointer;
    padding: 18px 20px;
    color: var(--text-primary);
    font-weight: 800;
    list-style: none;
}

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

.faq-item summary::after {
    content: '+';
    float: right;
    color: var(--primary);
    font-weight: 900;
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-item p {
    padding: 0 20px 20px;
    font-size: 0.9rem;
}

/* ==========================================================================
   FINAL POLISH PASS: RESPONSIVE LAYOUT, CONTRAST, AND ANCHOR ERGONOMICS
   ========================================================================== */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 112px;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

header .nav-container {
    gap: 18px;
}

header .logo-box {
    min-width: 220px;
}

.hero-content > div[style*="display: flex"],
.hazard-controls,
.course-price-box,
.footer-bottom > div,
.visitor-counter-box {
    flex-wrap: wrap;
}

.btn {
    min-height: 44px;
    text-align: center;
}

.btn-accent,
.btn-accent * {
    color: var(--text-primary) !important;
}

.news-date-badge {
    color: var(--accent) !important;
    background: #ffffff !important;
}

.course-badge,
.hero-badge,
.wizard-step.active,
.registration-toast,
.registration-toast *,
.admin-dashboard-overlay,
.admin-dashboard-overlay h3,
.admin-dashboard-overlay h4,
.admin-dashboard-overlay strong,
.admin-dashboard-overlay th,
.admin-dashboard-overlay td:first-child {
    color: #ffffff !important;
}

.admin-dashboard-overlay p,
.admin-dashboard-overlay td,
.admin-dashboard-overlay .stat-card-title {
    color: #d5dde0 !important;
}

.modal-close {
    min-width: 44px;
    min-height: 44px;
}

.form-control,
.upload-box {
    min-height: 44px;
}

#tab-standards [style*="grid-template-columns: 1.4fr 1fr"],
.calc-grid {
    min-width: 0;
}

@media (max-width: 1199px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    header.main-header {
        top: 0;
    }

    header .logo-title {
        font-size: 0.8rem;
    }

    header .logo-subtitle {
        font-size: 0.6rem;
    }

    .main-nav a {
        color: #ffffff !important;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        min-width: 100%;
        margin-top: 12px;
        background: rgba(255, 255, 255, 0.06);
    }

    .dropdown:hover .dropdown-menu,
    .dropdown:focus-within .dropdown-menu {
        display: block;
    }
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 86px;
    }

    .bg-gradient-shapes {
        display: none;
    }

    #topbar {
        display: none;
    }

    header .logo-box {
        min-width: 0;
    }

    header .logo-box img {
        height: 46px;
    }

    h1 {
        font-size: 2rem;
        letter-spacing: 0;
    }

    h2 {
        font-size: 1.65rem;
        letter-spacing: 0;
    }

    .hero-section {
        padding-top: 28px;
    }

    .hero-features,
    .referral-grid,
    .intent-layout,
    .intent-answer-grid,
    .faq-grid,
    .trend-topic-grid,
    #tab-standards [style*="grid-template-columns: 1.4fr 1fr"],
    #student-review-form [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    .trend-topic-card-wide {
        grid-column: auto;
    }

    .trend-panel-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .intent-section .intent-intro {
        text-align: center;
    }

    .courses-grid,
    .news-grid,
    .policies-grid,
    .flow-process {
        grid-template-columns: minmax(0, 1fr);
    }

    .course-price-box {
        align-items: stretch;
        gap: 16px;
    }

    .course-price-box .btn,
    .hero-content .btn,
    .hazard-controls .btn {
        width: 100%;
    }

    .modern-search-bar {
        align-items: stretch;
        border-radius: 18px;
        flex-direction: column;
        padding: 12px;
    }

    .modern-search-bar button {
        width: 100%;
    }

    .hazard-controls {
        flex-direction: column;
    }

    .referral-grid > div[style*="border-left"] {
        border-left: 0 !important;
        padding-left: 0 !important;
        border-top: 1px solid var(--border-color);
        padding-top: 24px;
    }

    .floating-widgets {
        right: 16px;
        bottom: 16px;
    }

    .visitor-counter-box {
        flex-direction: column;
        gap: 8px !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .lead-form-container,
    .calc-panel,
    .quiz-panel,
    .hazard-panel,
    .referral-panel {
        padding: 22px !important;
    }

    .tab-btn {
        width: 100%;
        padding: 12px 16px;
    }

    .course-card-img,
    .news-card-img {
        height: 180px;
    }

    .modal-container {
        width: calc(100vw - 24px);
        max-height: 92vh;
    }

    .footer-bottom > div {
        align-items: flex-start !important;
    }
}

/* Latest Training Schedule Collapsible Section */
.course-schedule-collapse {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    margin-top: 15px;
    border: 1px solid transparent;
}

.course-schedule-collapse.open {
    max-height: 600px;
    border-color: var(--border-color);
    padding: 15px;
}

.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.schedule-header strong {
    color: var(--accent);
    font-size: 0.9rem;
}

.schedule-header span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.schedule-table-wrap {
    overflow-x: auto;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.schedule-table th, .schedule-table td {
    padding: 6px 8px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.schedule-table th {
    font-weight: 700;
    color: var(--text-secondary);
}

.schedule-table td {
    color: var(--text-primary);
}

.schedule-table tr:last-child td {
    border-bottom: none;
}

.schedule-table td.highlight-td {
    color: var(--accent);
    font-weight: 600;
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(18, 53, 36, 0.95); /* Army green transparent */
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2000;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 500;
    gap: 4px;
    flex: 1;
    height: 100%;
    transition: var(--transition);
}

.bottom-nav-item i {
    font-size: 1.2rem;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
    color: var(--accent); /* Highlight gold */
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }
    body {
        padding-bottom: 60px;
    }
}

/* PWA Install Prompt Banner */
.pwa-install-banner {
    display: none;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 480px;
    background: rgba(18, 53, 36, 0.98);
    border: 1px solid rgba(224, 169, 109, 0.3);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.pwa-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pwa-app-icon {
    flex-shrink: 0;
}

.pwa-banner-text h4 {
    color: #fff;
    font-size: 0.95rem;
    margin: 0 0 4px 0;
    font-weight: 700;
}

.pwa-banner-text p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin: 0;
}

.pwa-banner-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-close-banner {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
}

@media (max-width: 768px) {
    .pwa-install-banner {
        top: auto;
        bottom: 75px; /* Above bottom nav */
    }
}

