/* ==========================================================================
   NICDAI Core Design System - Cyberpunk & Tech Anime Aesthetic
   ========================================================================== */

/* 1. Global Reset & Variables */
:root {
    --bg-primary: #080510;
    --bg-secondary: #0d091e;
    --bg-tertiary: #130e2b;
    --accent-purple: #a855f7;
    --accent-magenta: #d946ef;
    --accent-cyan: #06b6d4;
    --accent-green: #10b981;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: rgba(168, 85, 247, 0.2);
    --border-glow: rgba(168, 85, 247, 0.4);
    --font-heading: 'Orbitron', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-body: 'Inter', sans-serif;
    --transition-speed: 0.3s;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

/* Custom Webkit Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-purple);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-magenta);
}

/* Base Headings & Links */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

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

/* 2. Cyberpunk Scanlines & Overlays */
.overlay-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(18, 16, 35, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18, 16, 35, 0.3) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 1000;
    pointer-events: none;
    opacity: 0.8;
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(18, 16, 1px, 0),
        rgba(255, 255, 255, 0),
        rgba(168, 85, 247, 0.04) 50%,
        rgba(168, 85, 247, 0.04) 50%,
        rgba(0, 0, 0, 0.1)
    );
    background-size: 100% 4px;
    z-index: 1001;
    pointer-events: none;
}

/* 3. Glowing Custom Cursor */
#cyber-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
}

#cyber-cursor .cursor-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: var(--accent-magenta);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

#cyber-cursor .cursor-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid var(--accent-purple);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-purple);
    animation: cursorPulse 1.5s infinite alternate;
}

body.link-hover #cyber-cursor {
    width: 40px;
    height: 40px;
}
body.link-hover #cyber-cursor .cursor-circle {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 12px var(--accent-cyan);
}

@keyframes cursorPulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    100% { transform: scale(1.1); opacity: 1; }
}

/* 4. Common Layout Elements */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
    position: relative;
    z-index: 10;
}

.text-center { text-align: center; }
.text-purple { color: var(--accent-purple) !important; }
.text-magenta { color: var(--accent-magenta) !important; }
.text-cyan { color: var(--accent-cyan) !important; }
.text-green { color: var(--accent-green) !important; }
.text-red { color: #f87171 !important; }
.text-muted { color: var(--text-muted) !important; }

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--text-primary), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.title-bar {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-magenta));
    margin: 12px auto 20px;
    position: relative;
}
.title-bar::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--text-primary);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    box-shadow: 0 0 8px var(--accent-magenta);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto 48px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
    gap: 8px;
}

.btn-neon {
    background: var(--accent-purple);
    color: var(--text-primary);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}
.btn-neon:hover {
    background: var(--accent-magenta);
    box-shadow: 0 0 25px rgba(217, 70, 239, 0.7);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--accent-purple);
    box-shadow: inset 0 0 5px rgba(168, 85, 247, 0.2);
}
.btn-secondary:hover {
    background: rgba(168, 85, 247, 0.1);
    border-color: var(--accent-magenta);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
    transform: translateY(-2px);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* 5. Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(8, 5, 16, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    transition: all var(--transition-speed);
}
.navbar.scroll-active {
    height: 70px;
    background: rgba(8, 5, 16, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nav-logo {
    height: 45px;
    width: 45px;
    border-radius: 8px;
    border: 1px solid var(--accent-purple);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}
.logo-text {
    display: flex;
    flex-direction: column;
}
.brand-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.1;
}
.brand-sub {
    font-size: 0.65rem;
    font-family: var(--font-heading);
    color: var(--accent-purple);
    letter-spacing: 1.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2vw, 32px);
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--accent-magenta);
    transition: width var(--transition-speed);
}
.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-dropdown {
    position: relative;
}
.nav-dropdown summary {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.nav-dropdown summary::-webkit-details-marker {
    display: none;
}
.nav-dropdown[open] > summary {
    color: var(--text-primary);
}
.nav-dropdown[open] > summary::after {
    width: 100%;
}
.nav-dropdown-chevron {
    font-size: 0.62rem;
    transition: transform var(--transition-speed);
}
.nav-dropdown[open] .nav-dropdown-chevron {
    transform: rotate(180deg);
}
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: min(310px, calc(100vw - 32px));
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: rgba(12, 8, 24, 0.98);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5), 0 0 24px rgba(168, 85, 247, 0.12);
    animation: navDropdownReveal 160ms ease-out;
}
.nav-dropdown-option {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--text-secondary);
    transition: background var(--transition-speed), border-color var(--transition-speed), color var(--transition-speed);
}
.nav-dropdown-option:hover,
.nav-dropdown-option:focus-visible {
    color: var(--text-primary);
    border-color: rgba(168, 85, 247, 0.35);
    background: rgba(168, 85, 247, 0.1);
    outline: none;
}
.nav-dropdown-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--accent-cyan);
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: 8px;
    background: rgba(34, 211, 238, 0.08);
}
.nav-dropdown-option span:last-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.nav-dropdown-option strong {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    text-transform: uppercase;
}
.nav-dropdown-option small {
    color: var(--text-muted);
    font-size: 0.72rem;
    line-height: 1.35;
}
@keyframes navDropdownReveal {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-btn {
    padding: 10px 20px;
    border: 1px solid var(--accent-purple);
    border-radius: 4px;
    background: rgba(168, 85, 247, 0.1);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}
.nav-btn::after { display: none; }
.nav-btn:hover {
    border-color: var(--accent-magenta);
    background: var(--accent-purple);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
}
.mobile-toggle .bar {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-speed);
}

/* 6. Hero Section */
.hero-section {
    padding-top: calc(var(--header-height) + 40px);
    background: radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.15), transparent 60%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

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

.institute-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-purple);
    letter-spacing: 1px;
    margin-bottom: 24px;
}
.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-magenta);
    border-radius: 50%;
    animation: beaconPulse 1.2s infinite alternate;
}

@keyframes beaconPulse {
    0% { transform: scale(0.8); opacity: 0.5; box-shadow: 0 0 0 0 rgba(217, 70, 239, 0.4); }
    100% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 8px 3px rgba(217, 70, 239, 0.8); }
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 12px;
    text-transform: uppercase;
}
.hero-title .accent-glow {
    color: var(--accent-magenta);
    text-shadow: 0 0 20px rgba(217, 70, 239, 0.6);
}

.hero-subtext {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 36px;
}

/* Pillars grid inside Hero */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}
.pillar-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-secondary);
    border-left: 3px solid var(--accent-purple);
    border-radius: 0 8px 8px 0;
    transition: transform var(--transition-speed), background var(--transition-speed);
}
.pillar-card:hover {
    transform: translateX(5px);
    background: var(--bg-tertiary);
    border-left-color: var(--accent-magenta);
}
.pillar-icon {
    font-size: 1.6rem;
    color: var(--accent-purple);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pillar-text h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}
.pillar-text p {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-heading);
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* Hero Right Image Frame */
.hero-image-wrapper {
    position: relative;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.15);
}
.hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg, 
        transparent, 
        rgba(168, 85, 247, 0.1) 40%, 
        rgba(217, 70, 239, 0.15) 50%, 
        rgba(168, 85, 247, 0.1) 60%, 
        transparent
    );
    animation: borderRotate 12s linear infinite;
    pointer-events: none;
}

@keyframes borderRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
    mix-blend-mode: lighten;
    opacity: 0.95;
    transition: transform 0.5s;
}
.hero-image-wrapper:hover .hero-img {
    transform: scale(1.03);
}

.image-overlay-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--bg-primary) 5%, transparent 50%);
    pointer-events: none;
}

.image-hud-top {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--accent-purple);
    background: rgba(8, 5, 16, 0.6);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.image-hud-bottom {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    background: rgba(8, 5, 16, 0.7);
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 3px solid var(--accent-magenta);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--text-primary);
    text-shadow: 0 0 5px rgba(217, 70, 239, 0.5);
    text-align: center;
}

/* Landing-page batch delivery banner */
.batch-mode-banner {
    position: relative;
    padding: 28px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background:
        linear-gradient(90deg, rgba(168, 85, 247, 0.08), rgba(6, 182, 212, 0.06), rgba(217, 70, 239, 0.08)),
        var(--bg-secondary);
}

.batch-mode-banner-inner {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(520px, 1.2fr);
    align-items: center;
    gap: 28px;
}

.batch-mode-kicker {
    display: block;
    margin-bottom: 5px;
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.4px;
}

.batch-mode-intro h2 {
    margin-bottom: 4px;
    font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.batch-mode-intro p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.batch-mode-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.batch-mode-option {
    position: relative;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 13px;
    min-height: 84px;
    padding: 14px 16px;
    overflow: hidden;
    border: 1px solid rgba(168, 85, 247, 0.34);
    border-radius: 10px;
    background: rgba(8, 5, 16, 0.72);
    color: var(--text-primary);
    font: inherit;
    text-align: left;
    cursor: pointer;
    isolation: isolate;
    transition: transform var(--transition-speed), border-color var(--transition-speed), background var(--transition-speed), box-shadow var(--transition-speed);
}

.batch-mode-option::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.08), transparent 65%);
    transform: translateX(-110%);
    transition: transform 0.55s ease;
}

.batch-mode-option:hover,
.batch-mode-option:focus-visible,
.batch-mode-option.is-active {
    transform: translateY(-2px);
    border-color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.1);
    box-shadow: 0 12px 30px rgba(6, 182, 212, 0.12), inset 0 0 20px rgba(6, 182, 212, 0.05);
    outline: none;
}

.batch-mode-option:hover::before,
.batch-mode-option:focus-visible::before {
    transform: translateX(110%);
}

.batch-mode-offline:hover,
.batch-mode-offline:focus-visible,
.batch-mode-offline.is-active {
    border-color: var(--accent-magenta);
    background: rgba(217, 70, 239, 0.1);
    box-shadow: 0 12px 30px rgba(217, 70, 239, 0.12), inset 0 0 20px rgba(217, 70, 239, 0.05);
}

.batch-mode-icon {
    display: grid;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(6, 182, 212, 0.38);
    border-radius: 9px;
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-cyan);
    font-size: 1.15rem;
    place-items: center;
}

.batch-mode-offline .batch-mode-icon {
    border-color: rgba(217, 70, 239, 0.38);
    background: rgba(217, 70, 239, 0.1);
    color: var(--accent-magenta);
}

.batch-mode-copy {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.batch-mode-copy strong {
    font-family: var(--font-heading);
    font-size: 0.86rem;
    letter-spacing: 0.4px;
}

.batch-mode-copy small {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.batch-mode-arrow {
    color: var(--text-muted);
    transition: color var(--transition-speed), transform var(--transition-speed);
}

.batch-mode-option:hover .batch-mode-arrow,
.batch-mode-option:focus-visible .batch-mode-arrow,
.batch-mode-option.is-active .batch-mode-arrow {
    color: var(--text-primary);
    transform: translateX(3px);
}

/* Glitch Heading Text Effect */
.glitch {
    position: relative;
}
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
}
.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent-cyan);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}
.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--accent-magenta), 2px 2px var(--accent-purple);
    clip: rect(85px, 450px, 140px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(15px, 9999px, 66px, 0); }
    10% { clip: rect(85px, 9999px, 5px, 0); }
    20% { clip: rect(34px, 9999px, 115px, 0); }
    30% { clip: rect(122px, 9999px, 78px, 0); }
    40% { clip: rect(9px, 9999px, 43px, 0); }
    50% { clip: rect(62px, 9999px, 98px, 0); }
    60% { clip: rect(110px, 9999px, 15px, 0); }
    70% { clip: rect(4px, 9999px, 130px, 0); }
    80% { clip: rect(77px, 9999px, 52px, 0); }
    90% { clip: rect(129px, 9999px, 89px, 0); }
    100% { clip: rect(41px, 9999px, 120px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(76px, 9999px, 116px, 0); }
    11% { clip: rect(25px, 9999px, 50px, 0); }
    22% { clip: rect(98px, 9999px, 14px, 0); }
    33% { clip: rect(5px, 9999px, 90px, 0); }
    44% { clip: rect(112px, 9999px, 74px, 0); }
    55% { clip: rect(42px, 9999px, 121px, 0); }
    66% { clip: rect(89px, 9999px, 5px, 0); }
    77% { clip: rect(19px, 9999px, 133px, 0); }
    88% { clip: rect(67px, 9999px, 42px, 0); }
    100% { clip: rect(121px, 9999px, 85px, 0); }
}

/* 7. Courses Section Styling */
.courses-section {
    background-color: var(--bg-secondary);
    position: relative;
}

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

.course-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px 24px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-speed);
}
.course-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-purple);
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.15);
}

.course-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-magenta));
    transform: scaleX(0);
    transition: transform var(--transition-speed);
}
.course-card:hover .course-glow {
    transform: scaleX(1);
}

.course-icon {
    font-size: 2.2rem;
    color: var(--accent-purple);
    margin-bottom: 20px;
    transition: transform var(--transition-speed);
}
.course-card:hover .course-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--accent-magenta);
}

.course-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.course-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
    height: 70px;
    overflow: hidden;
}

.course-features {
    list-style: none;
    margin-bottom: 24px;
}
.course-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.course-features li i {
    color: var(--accent-purple);
}

.btn-card-more {
    background: transparent;
    border: none;
    color: var(--accent-cyan);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: gap var(--transition-speed);
}
.btn-card-more:hover {
    gap: 8px;
}

/* 8. Why Choose Us Section */
.why-section {
    background: linear-gradient(to bottom, var(--bg-secondary), var(--bg-primary));
}

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

.why-card {
    background: rgba(13, 9, 30, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 36px 28px;
    transition: all var(--transition-speed);
}
.why-card:hover {
    background: rgba(168, 85, 247, 0.05);
    border-color: var(--accent-magenta);
    box-shadow: inset 0 0 15px rgba(217, 70, 239, 0.1);
}

/* Span the last item across multiple columns on big screens if needed, 
   but since we have 5 items, let's span the 4th and 5th items or center them */
.why-grid > :nth-child(4) {
    grid-column: span 1;
}

.why-icon-box {
    width: 60px;
    height: 60px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid var(--accent-purple);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent-purple);
    margin-bottom: 24px;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.2);
}
.why-card:hover .why-icon-box {
    border-color: var(--accent-magenta);
    color: var(--accent-magenta);
    box-shadow: 0 0 18px rgba(217, 70, 239, 0.4);
}

.why-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}
.why-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* 9. Interactive Threat Operations Lab Section */
.terminal-section {
    background-color: var(--bg-primary);
}

/* Live Threat Ticker */
.activity-ticker {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(168, 85, 247, 0.06);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 6px;
    padding: 10px 18px;
    margin-bottom: 36px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    overflow: hidden;
}
.ticker-label {
    color: var(--accent-magenta);
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ticker-label i {
    animation: beaconPulse 1s infinite alternate;
}
.ticker-text {
    color: var(--text-secondary);
    transition: opacity 0.4s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.terminal-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 36px;
    align-items: stretch;
}

/* CLI Component */
.cli-container {
    background: #05030a;
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: 10px;
    box-shadow: 0 0 0 1px rgba(168,85,247,0.05), 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 40px rgba(168, 85, 247, 0.08);
    display: flex;
    flex-direction: column;
    height: 560px;
    overflow: hidden;
}

.cli-header {
    background: #0d0a18;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
    flex-shrink: 0;
}
.cli-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
.cli-clock {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent-cyan);
    letter-spacing: 1px;
    font-weight: 700;
}

/* Session Info Bar */
.cli-session-bar {
    background: #080514;
    border-bottom: 1px solid rgba(168, 85, 247, 0.1);
    padding: 6px 16px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    flex-shrink: 0;
}
.cli-session-bar span {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}
.cli-session-bar i {
    color: var(--accent-purple);
    font-size: 0.65rem;
}
    align-items: center;
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

.cli-dots {
    display: flex;
    gap: 8px;
}
.cli-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.cli-dots .dot.red { background: #ef4444; }
.cli-dots .dot.yellow { background: #eab308; }
.cli-dots .dot.green { background: #22c55e; }

.cli-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.cli-connection {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-green);
    display: flex;
    align-items: center;
    gap: 6px;
}
.conn-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: beaconPulse 1s infinite alternate;
}

.cli-body {
    padding: 16px 20px;
    flex-grow: 1;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    scroll-behavior: smooth;
}
/* Scrollbar inside CLI */
.cli-body::-webkit-scrollbar { width: 4px; }
.cli-body::-webkit-scrollbar-track { background: transparent; }
.cli-body::-webkit-scrollbar-thumb { background: rgba(168,85,247,0.4); border-radius: 2px; }

.cli-line {
    margin-bottom: 8px;
    line-height: 1.4;
}

.cli-output {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cli-input-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}
.cli-input-line .prompt {
    color: var(--accent-purple);
    font-weight: bold;
}
.cli-input-line input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    flex-grow: 1;
}

/* Graphics Monitor Column */
.graphic-panel {
    display: flex;
    align-items: center;
    justify-content: center;
}
.laptop-frame {
    width: 100%;
    max-width: 480px;
    position: relative;
    border-radius: 8px;
    border: 1px solid rgba(168, 85, 247, 0.2);
    overflow: hidden;
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.1);
}
.laptop-img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.85;
}

.laptop-screen-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(168, 85, 247, 0.05);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
}

.stats-panel {
    background: rgba(5, 3, 10, 0.8);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 4px;
    padding: 12px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}
.stat-item {
    display: flex;
    justify-content: space-between;
}
.stat-item span:first-child {
    color: var(--text-muted);
}
.stat-item span:last-child {
    font-weight: bold;
}

.radar-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-magenta), transparent);
    animation: radarScan 3s infinite linear;
}

@keyframes radarScan {
    0% { top: 0; opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* 10. Quote Banner */
.quote-banner {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 60px 24px;
}
.quote-container {
    max-width: 800px;
    margin: 0 auto;
}
.quote-icon {
    font-size: 2.5rem;
    color: rgba(217, 70, 239, 0.2);
    display: block;
    margin-bottom: 16px;
}
.glow-quote {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
    text-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
    margin-bottom: 16px;
    text-transform: uppercase;
}
.quote-footer {
    font-size: 0.9rem;
    color: var(--accent-purple);
    font-family: var(--font-heading);
    font-weight: bold;
    letter-spacing: 1px;
}

/* 11. Admission Portal / Form Section */
.enrollment-section {
    background-color: var(--bg-secondary);
}

.enrollment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.enroll-info h2 {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 16px;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--text-primary), var(--accent-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.enroll-tag {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}
.enroll-desc {
    color: var(--text-secondary);
    margin-bottom: 36px;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: var(--bg-primary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.c-icon {
    font-size: 1.4rem;
    color: var(--accent-purple);
    width: 40px;
    height: 40px;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.c-text h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}
.c-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.c-text a:hover {
    color: var(--accent-purple);
}

/* Form Container Styling */
.enroll-form-container {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    position: relative;
}
.enroll-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-purple), var(--accent-magenta));
}

.form-header {
    margin-bottom: 28px;
}
.form-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.form-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.enroll-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-group label {
    font-size: 0.8rem;
    font-family: var(--font-heading);
    font-weight: bold;
    color: var(--text-secondary);
}
.required-mark {
    color: #fb7185;
    font-weight: 900;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.input-wrapper i {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
}

.input-wrapper input, .input-wrapper select {
    width: 100%;
    padding: 12px 14px 12px 38px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all var(--transition-speed);
    outline: none;
}
.input-wrapper input::placeholder {
    color: #4b5563;
}
.input-wrapper input:focus, .input-wrapper select:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.input-wrapper select:disabled {
    cursor: not-allowed;
    opacity: 0.78;
}

.input-wrapper select option {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.error-msg {
    color: #f87171;
    font-size: 0.75rem;
    display: none;
}

/* 12. Footer Styling */
.footer {
    background-color: #040208;
    border-top: 1px solid var(--border-color);
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.1);
}

.footer-brand .logo-area {
    margin-bottom: 16px;
}
.footer-logo {
    height: 40px;
    width: 40px;
    border-radius: 6px;
    border: 1px solid var(--accent-purple);
}
.footer-brand p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 12px;
}
.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-secondary);
    transition: all var(--transition-speed);
}
.social-links a:hover {
    background: var(--accent-purple);
    color: var(--text-primary);
    transform: translateY(-3px);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.footer h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
    text-transform: uppercase;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links a {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.footer-links a:hover {
    color: var(--accent-purple);
    padding-left: 4px;
}

.footer-contact p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-contact p i {
    color: var(--accent-purple);
}
.footer-contact p a {
    color: var(--text-muted);
}
.footer-contact p a:hover {
    color: var(--accent-purple);
}

/* Footer Custom Styled QR Code */
.qr-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.qr-scanner {
    width: 120px;
    height: 120px;
    background: var(--bg-secondary);
    border: 1px solid var(--accent-purple);
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
    position: relative;
}

.qr-code-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
    background: #fff;
}

.qr-caption {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent-cyan);
    letter-spacing: 0.5px;
}

.footer-bottom {
    padding: 30px 24px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* 13. Dynamic Overlay Modals (Syllabus & Ticket) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 5, 16, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 24px;
}

.modal-overlay.active {
    display: flex;
    animation: fadeInModal var(--transition-speed) forwards;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    padding: 40px;
    position: relative;
    transform: scale(0.9);
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    transition: transform var(--transition-speed);
}
.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 2rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-speed);
}
.modal-close:hover {
    color: var(--accent-magenta);
}

/* Admission fee confirmation uses the existing modal design language */
.payment-confirmation-content {
    max-width: 480px;
    text-align: center;
}
.payment-confirmation-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    border: 1px solid var(--accent-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    font-size: 1.35rem;
    background: rgba(168, 85, 247, 0.1);
    box-shadow: 0 0 22px rgba(168, 85, 247, 0.25);
}
.payment-confirmation-content h2 {
    font-size: 1.45rem;
    margin-bottom: 10px;
}
.payment-confirmation-copy {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
}
.payment-amount-panel {
    margin: 24px 0 18px;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: rgba(8, 5, 16, 0.55);
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.payment-amount-label,
.payment-amount-note {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-muted);
}
.payment-amount-panel strong {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--accent-green);
    text-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
}
.payment-message {
    min-height: 18px;
    color: #f87171;
    font-size: 0.78rem;
}
.otp-input-wrapper {
    margin: 24px auto 12px;
}
.otp-input-wrapper input {
    width: min(100%, 280px);
    padding: 16px 18px;
    border: 1px solid var(--accent-cyan);
    border-radius: 6px;
    outline: none;
    background: rgba(8, 5, 16, 0.72);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.45rem;
    text-align: center;
    text-transform: uppercase;
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.12);
}
.otp-input-wrapper input:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 22px rgba(168, 85, 247, 0.25);
}
.otp-countdown {
    margin: 0 0 10px;
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    font-size: 0.75rem;
}
[hidden] {
    display: none !important;
}
.payment-confirmation-actions {
    justify-content: center;
}
.payment-confirmation-actions .btn {
    flex: 1;
}
.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}
.btn.is-loading {
    cursor: wait;
}
.btn.is-loading::before {
    content: "";
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: buttonLoaderSpin 0.7s linear infinite;
}
@keyframes buttonLoaderSpin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .btn,
    .batch-mode-option,
    .batch-mode-option::before,
    .batch-mode-arrow,
    .modal-overlay.active,
    .modal-content,
    .btn.is-loading::before {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Syllabus details inside modal */
.syllabus-modal-inner h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}
.syllabus-tag {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-purple);
    background: rgba(168, 85, 247, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 24px;
}
.syllabus-weeks {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.week-item {
    border-left: 2px solid var(--accent-cyan);
    padding-left: 16px;
}
.week-item h4 {
    font-size: 0.95rem;
    color: var(--accent-cyan);
    margin-bottom: 4px;
}
.week-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* 14. Admissions Cadet Entry Ticket Component */
.ticket-container {
    background: #0d091e;
    border: 2px dashed var(--accent-purple);
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 15px 45px rgba(168, 85, 247, 0.2);
    overflow: hidden;
    position: relative;
    padding: 30px;
    transform: scale(0.9);
}
.modal-overlay.active .ticket-container {
    transform: scale(1);
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed rgba(168, 85, 247, 0.4);
    padding-bottom: 16px;
    margin-bottom: 20px;
}
.ticket-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ticket-logo {
    height: 30px;
    width: 30px;
    border-radius: 4px;
}
.ticket-brand span {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
}
.ticket-tag {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--accent-magenta);
    border: 1px solid var(--accent-magenta);
    padding: 2px 6px;
    border-radius: 4px;
}

.ticket-badge-glow {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--accent-green);
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    margin-bottom: 24px;
}

.ticket-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}
.t-col {
    display: flex;
    flex-direction: column;
}
.t-label {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    color: var(--text-muted);
}
.t-val {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--text-primary);
}

.ticket-barcodes {
    border-top: 1px dashed rgba(168, 85, 247, 0.4);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.barcode-lines {
    display: flex;
    height: 40px;
    gap: 2px;
}
.barcode-lines span {
    width: 2px;
    height: 100%;
    background: var(--text-primary);
}
.barcode-lines span:nth-child(even) {
    width: 4px;
}
.barcode-lines span:nth-child(3n) {
    width: 1px;
}
.barcode-text {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--text-muted);
}

.whatsapp-invite-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    margin-top: 22px;
    padding: 16px;
    border: 1px solid rgba(37, 211, 102, 0.45);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.12), rgba(13, 9, 30, 0.72));
    box-shadow: inset 0 0 22px rgba(37, 211, 102, 0.05);
}

.whatsapp-invite-card[hidden] {
    display: none;
}

.whatsapp-invite-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.whatsapp-invite-kicker {
    color: #58df8b;
    font-family: var(--font-mono);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.whatsapp-invite-copy strong {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 0.94rem;
}

.whatsapp-invite-copy > span:last-child {
    color: var(--text-muted);
    font-size: 0.72rem;
    line-height: 1.45;
}

.whatsapp-invite-qr-frame {
    position: relative;
    width: 112px;
    height: 112px;
    padding: 7px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.2);
}

.whatsapp-invite-qr-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.whatsapp-invite-qr-frame i {
    position: absolute;
    right: 7px;
    left: 7px;
    top: 50%;
    height: 1px;
    background: rgba(37, 211, 102, 0.72);
    box-shadow: 0 0 7px rgba(37, 211, 102, 0.8);
    animation: whatsapp-qr-scan 2.2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes whatsapp-qr-scan {
    0%, 100% { transform: translateY(-42px); opacity: 0.35; }
    50% { transform: translateY(42px); opacity: 1; }
}

.ticket-actions {
    margin-top: 24px;
    display: flex;
    gap: 16px;
}

/* 15. Responsive Styling Settings */
@media (max-width: 1024px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    /* Navbar Mobile view */
    .mobile-toggle {
        display: flex;
    }
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 40px;
        gap: 32px;
        transition: left 0.4s ease;
        border-top: 1px solid var(--border-color);
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-dropdown {
        width: min(340px, calc(100% - 32px));
    }
    .nav-dropdown > summary {
        justify-content: center;
    }
    .nav-dropdown-menu {
        position: static;
        width: 100%;
        margin-top: 12px;
        text-align: left;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
    }
    
    /* Hero layout */
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .hero-visual {
        order: -1;
        max-width: 400px;
        margin: 0 auto;
    }
    .hero-info {
        text-align: center;
    }
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    .pillars-grid {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions {
        justify-content: center;
    }

    .batch-mode-banner-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Terminal layout */
    .terminal-grid {
        grid-template-columns: 1fr;
    }
    .graphic-panel {
        max-width: 400px;
        margin: 0 auto;
    }

    /* Enrollment layout */
    .enrollment-grid {
        grid-template-columns: 1fr;
    }

    /* Footer layout */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .courses-grid {
        grid-template-columns: 1fr;
    }
    .why-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .pillars-grid {
        grid-template-columns: 1fr;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .batch-mode-options {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .enroll-form-container {
        padding: 24px 16px;
    }
    .ticket-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .ticket-actions {
        flex-direction: column;
    }
    .whatsapp-invite-card {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }
    .payment-confirmation-content {
        padding: 30px 20px;
    }
}

/* Print CSS Stylesheet */
@media print {
    body * {
        visibility: hidden;
    }
    .modal-overlay.active, .modal-overlay.active * {
        visibility: visible;
    }
    .ticket-container, .ticket-container * {
        visibility: visible;
    }
    .ticket-container {
        position: absolute;
        left: 0;
        top: 0;
        border: 2px solid #000;
        box-shadow: none;
        background: #fff;
        color: #000;
    }
    .ticket-actions {
        display: none;
    }
    .whatsapp-invite-card {
        display: none !important;
    }
}
