/* --- GOOGLE FONTS (English, Sinhala & Tamil) --- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Sinhala:wght@400;500;600;700;800&family=Noto+Sans+Tamil:wght@400;500;600;700;800&family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* --- GLOBAL STYLES & MOBILE OVERFLOW SAFETY --- */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
    width: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Poppins', 'Noto Sans Sinhala', 'Noto Sans Tamil', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #334155;
    line-height: 1.6;
    background-color: #ffffff;
}

body.lang-si {
    font-family: 'Noto Sans Sinhala', 'Poppins', sans-serif;
}

body.lang-ta {
    font-family: 'Noto Sans Tamil', 'Poppins', sans-serif;
}

.sinhala-text, [lang="si"] {
    font-family: 'Noto Sans Sinhala', 'Poppins', sans-serif;
}

.tamil-text, [lang="ta"] {
    font-family: 'Noto Sans Tamil', 'Poppins', sans-serif;
}

.section {
    padding: 70px 0;
    position: relative; 
    z-index: 2;
}

.bg-light {
    background-color: rgba(248, 250, 252, 0.96) !important; 
    backdrop-filter: blur(8px);
}

.section-title {
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.8rem;
    letter-spacing: -0.5px;
    font-size: clamp(1.75rem, 3.5vw, 2.4rem);
}

.section-subtitle {
    margin-bottom: 2.5rem;
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: #64748b;
}

/*
====================================
"DRIVING MOVEMENT" BACKGROUND
====================================
*/
#page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -10;
    background-image: url(images/background2.jpg) ;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center 0;
    animation: driveRoad 40s linear infinite;
}

@keyframes driveRoad {
    from { background-position: center 0%; }
    to { background-position: center 100%; }
}


/* =========================================================
   GENUINE PROFESSIONAL NAVIGATION BAR (SOLID & CLEAN)
   ========================================================= */

.site-navbar,
.fresh-navbar-wrapper,
.fresh-nav {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1050 !important;
    background: #091e3a !important; /* Solid dark navy, matching top contact bar & footer */
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22) !important;
    padding: 10px 0 !important;
    pointer-events: auto !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.site-navbar.scrolled,
.fresh-navbar-wrapper.scrolled,
.fresh-nav.scrolled,
body.scrolled .site-navbar,
body.scrolled .fresh-navbar-wrapper,
body.scrolled .fresh-nav {
    top: 0 !important;
    padding: 8px 0 !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35) !important;
}

/* Brand Lockup: Clean, professional, genuine */
.site-brand,
.fresh-brand {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    text-decoration: none !important;
    padding: 0 !important;
    margin-right: 1.5rem !important;
    flex-shrink: 0 !important;
}

.site-navbar-logo,
.navbar-logo,
img.navbar-logo,
.brand-logo-frame img,
.brand-logo-frame .navbar-logo,
.fresh-brand img,
.fresh-nav .navbar-brand img,
header img.navbar-logo,
.navbar-brand img {
    height: 40px !important;
    max-height: 40px !important;
    width: auto !important;
    max-width: 60px !important;
    object-fit: contain !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

.brand-logo-frame {
    width: auto !important;
    height: auto !important;
    min-width: unset !important;
    max-width: unset !important;
    min-height: unset !important;
    max-height: unset !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
    flex-shrink: 0 !important;
}

.site-brand-text,
.brand-text-lockup {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    line-height: 1.2 !important;
}

.brand-title {
    font-size: 1.22rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    letter-spacing: -0.2px !important;
}

.brand-subtitle,
.brand-subtext {
    color: #94a3b8 !important;
    font-size: 0.76rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.2px !important;
    margin-top: 1px !important;
}

.badge-grade,
.badge-ds {
    display: none !important; /* Hide extra floating badges for clean genuine look */
}

/* Genuine Simple Nav Items & Links */
.navbar-nav {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.site-nav-link,
.fresh-link {
    color: #e2e8f0 !important;
    font-size: 0.94rem !important;
    font-weight: 500 !important;
    padding: 8px 14px !important;
    border-radius: 6px !important;
    transition: color 0.18s ease, background-color 0.18s ease !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
}

.site-nav-link:hover,
.fresh-link:hover {
    color: #f59e0b !important;
    background: rgba(255, 255, 255, 0.07) !important;
    transform: none !important;
}

.site-nav-link.active,
.fresh-link.active {
    color: #f59e0b !important;
    font-weight: 700 !important;
    background: rgba(245, 158, 11, 0.12) !important;
    border: none !important;
}

/* Remove fancy glow badges */
.nav-exam-glow {
    background: transparent !important;
    border: none !important;
    color: #e2e8f0 !important;
}

.badge-free {
    display: none !important;
}

/* Genuine Clean Dropdown Menus */
.site-dropdown-menu,
.dropdown-menu-fresh {
    background: #0b1f3b !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important;
    padding: 8px 0 !important;
    min-width: 250px !important;
    margin-top: 6px !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.site-dropdown-menu .dropdown-item,
.dropdown-item-fresh {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 18px !important;
    border-radius: 0 !important;
    transition: background-color 0.18s ease, color 0.18s ease !important;
    text-decoration: none !important;
    color: #cbd5e1 !important;
    font-size: 0.90rem !important;
    font-weight: 500 !important;
    background: transparent !important;
}

.site-dropdown-menu .dropdown-item:hover,
.dropdown-item-fresh:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #f59e0b !important;
    transform: none !important;
}

.site-dropdown-menu .dropdown-item.active,
.dropdown-item-fresh.active {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #f59e0b !important;
}

.drop-icon-box {
    display: none !important; /* Simple genuine list items */
}

.drop-title {
    font-size: 0.90rem !important;
    font-weight: 500 !important;
    color: inherit !important;
}

.drop-sub {
    display: none !important;
}

/* Action Buttons: Genuine, solid, high usability */
.site-btn-portal,
.nav-portal-pill {
    background: transparent !important;
    border: 1px solid rgba(56, 189, 248, 0.55) !important;
    color: #38bdf8 !important;
    padding: 7px 16px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    transform: none !important;
}

.site-btn-portal:hover,
.nav-portal-pill:hover {
    background: rgba(56, 189, 248, 0.15) !important;
    color: #ffffff !important;
    border-color: #38bdf8 !important;
    transform: none !important;
    box-shadow: none !important;
}

.site-btn-register,
.btn-enroll-fresh {
    background: #f59e0b !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    padding: 8px 18px !important;
    border-radius: 6px !important;
    border: none !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
    transition: background-color 0.2s ease !important;
    text-decoration: none !important;
    transform: none !important;
}

.site-btn-register:hover,
.btn-enroll-fresh:hover {
    background: #fbbf24 !important;
    color: #0f172a !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Mobile Toggler - Touch & Mobile Optimized */
.site-toggler,
.fresh-toggler {
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    padding: 7px 12px !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.12) !important;
    transition: background-color 0.2s ease, border-color 0.2s ease !important;
    box-shadow: none !important;
    cursor: pointer !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 44px !important;
    min-width: 46px !important;
    user-select: none !important;
}

.site-toggler *,
.fresh-toggler * {
    pointer-events: none !important;
}

.site-toggler:hover,
.site-toggler:active,
.fresh-toggler:hover,
.fresh-toggler:active {
    background: rgba(255, 255, 255, 0.22) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.site-toggler:focus,
.fresh-toggler:focus {
    box-shadow: 0 0 0 2px #f59e0b !important;
    outline: none !important;
}

/* --- HERO & PAGE HEADER SECTIONS --- */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    color: #fff;
    z-index: 2;
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    max-width: 600px;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.hero-buttons .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    font-size: 1.1rem;
    margin-right: 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.page-header {
    height: 50vh; 
    min-height: 300px;
    text-align: center;
    justify-content: center;
}

/* --- HOMEPAGE: FEATURES SECTION --- */
.feature-item .feature-icon {
    font-size: 3rem;
    color: #0d6efd;
}

/* --- HOMEPAGE: SERVICES CARD --- */
.service-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 2rem rgba(0,0,0,0.1);
}

.service-card .card-header {
    background-color: #0d6efd;
    color: #fff;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    border-bottom: none;
}
.service-card .card-header h4 {
    margin: 0;
    font-weight: 500;
}

/* --- HOMEPAGE: CTA SECTION --- */
.cta-section {
    background-color: rgba(255, 255, 255, 0.9);
}

/* --- PACKAGES PAGE --- */
.package-card {
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.07);
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease;
}
.package-card:hover {
    transform: translateY(-10px);
}
.package-card img {
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    height: 250px;
    object-fit: cover;
}
.package-card-body {
    padding: 2rem;
}
.price-list {
    font-size: 1.1rem;
}
.price-list strong {
    color: #0d6efd;
}

/* --- BRANCHES PAGE --- */
.branch-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}
.branch-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 2rem rgba(0,0,0,0.1);
}
.branch-icon {
    font-size: 3rem;
    color: #0d6efd;
}

/* --- EXAM PAPERS PAGE --- */
.exam-paper-list .list-group-item {
    padding: 1.25rem 1.5rem;
    font-size: 1.1rem;
    transition: background-color 0.2s ease;
}
.exam-paper-list .list-group-item i.bi-download {
    color: #0d6efd;
    font-size: 1.2rem;
}

/* --- STREET SIGNS PAGE --- */
.sign-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.07);
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease;
}
.sign-card:hover {
    transform: translateY(-10px);
}
.sign-icon {
    font-size: 4rem;
    padding: 1.5rem;
    display: inline-block;
}
.sign-regulatory { color: #dc3545; }
.sign-warning { color: #ffc107; }

/* --- NOTICE PAGE --- */
.notice-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.07);
    margin-bottom: 2rem;
}

/* --- ABOUT US PAGE --- */
.team-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.07);
    text-align: center;
}
.team-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin: -75px auto 0;
    border: 5px solid #fff;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}

/* --- CONTACT US PAGE --- */
.contact-info-item {
    display: flex;
    align-items: flex-start;
}
.contact-info-item i {
    font-size: 1.5rem;
    color: #0d6efd;
    margin-right: 1.5rem;
    margin-top: 5px;
}
.contact-info-item p {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

/* --- FOOTER --- */
.homepage-footer {
    background-color: #091e3a;
    z-index: 2; 
    position: relative;
}

.homepage-footer a.text-white:hover {
    text-decoration: underline !important;
}

.footer-logo-frame {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.footer-brand-logo,
.homepage-footer .navbar-logo,
footer .navbar-logo,
footer img.navbar-logo,
footer img[src*="logo.png"] {
    height: 36px !important;
    max-height: 36px !important;
    width: auto !important;
    max-width: 58px !important;
    object-fit: contain !important;
    display: block !important;
}

/*
====================================
FADE-IN TRANSITIONS
====================================
*/
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger the animations */
.fade-in:nth-child(1) { transition-delay: 0.1s; }
.fade-in:nth-child(2) { transition-delay: 0.2s; }
.fade-in:nth-child(3) { transition-delay: 0.3s; }
.fade-in:nth-child(4) { transition-delay: 0.4s; }
.fade-in:nth-child(5) { transition-delay: 0.5s; }
.fade-in:nth-child(6) { transition-delay: 0.6s; }
.fade-in:nth-child(7) { transition-delay: 0.7s; }
.fade-in:nth-child(8) { transition-delay: 0.8s; }



/* --- FLOATING QUICK ACTION BUTTONS (CALL & WHATSAPP) --- */
.floating-contact-bar {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.float-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    position: relative;
}

.float-btn:hover {
    transform: scale(1.12);
    color: #fff;
}

.float-btn.float-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.float-btn.float-call {
    background: linear-gradient(135deg, #0284c7, #0369a1);
}

.float-btn .float-tooltip {
    position: absolute;
    right: 64px;
    background: rgba(15, 23, 42, 0.9);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.float-btn:hover .float-tooltip {
    opacity: 1;
}

/* --- LANGUAGE SWITCHER PILL (TRILINGUAL: EN, SI, TA) --- */
.lang-switcher-pill {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 2px 3px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

.lang-switcher-pill .lang-btn {
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 14px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    line-height: 1.2;
    white-space: nowrap;
}

.lang-switcher-pill .lang-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.lang-switcher-pill .lang-btn.active {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #0f172a;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

/* Online Register CTA Button in Navbar */
.btn-nav-register {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #0f172a !important;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 7px 16px;
    border-radius: 25px;
    border: none;
    box-shadow: 0 3px 12px rgba(245, 158, 11, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-nav-register:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(245, 158, 11, 0.45);
    color: #0f172a !important;
}

/* ==========================================================================
   COMPREHENSIVE MOBILE RESPONSIVENESS SYSTEM (ALL SCREENS & MOBILE DEVICES)
   ========================================================================== */

/* --- A. TABLETS & EXPANDABLE DRAWER (< 1200px) --- */
@media (max-width: 1199.98px) {
    .site-navbar,
    .fresh-navbar-wrapper,
    .fresh-nav {
        padding: 8px 0 !important;
        position: sticky !important;
        top: 0 !important;
    }

    .site-navbar.scrolled,
    .fresh-navbar-wrapper.scrolled,
    body.scrolled .site-navbar,
    body.scrolled .fresh-navbar-wrapper {
        top: 0 !important;
        padding: 8px 0 !important;
    }

    .navbar-collapse,
    .fresh-collapse {
        background: #091e3a !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        padding: 16px 16px 22px !important;
        margin-top: 8px !important;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        max-height: calc(100vh - 75px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .navbar-nav,
    .fresh-nav .navbar-nav {
        width: 100% !important;
        align-items: stretch !important;
        gap: 2px !important;
    }
    
    .nav-item,
    .fresh-nav .nav-item {
        margin-bottom: 3px !important;
        width: 100% !important;
    }
    
    .site-nav-link,
    .fresh-link {
        padding: 11px 16px !important;
        font-size: 0.95rem !important;
        border-radius: 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        min-height: 44px !important;
        touch-action: manipulation;
    }
    
    .site-nav-link:hover,
    .site-nav-link:active,
    .site-nav-link.active,
    .fresh-link:hover,
    .fresh-link:active,
    .fresh-link.active {
        background: rgba(255, 255, 255, 0.1) !important;
        color: #f59e0b !important;
    }
    
    .site-dropdown-menu,
    .dropdown-menu-fresh {
        background: rgba(5, 14, 30, 0.95) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: none !important;
        margin: 4px 0 8px 6px !important;
        padding: 6px 0 !important;
        min-width: 100% !important;
        border-radius: 8px !important;
    }

    .site-dropdown-menu .dropdown-item {
        padding: 10px 16px !important;
        min-height: 42px !important;
    }

    .site-nav-actions,
    .fresh-nav-actions {
        flex-direction: column !important;
        width: 100% !important;
        gap: 10px !important;
        margin-top: 14px !important;
        padding-top: 14px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    }
    
    .site-btn-portal,
    .site-btn-register,
    .nav-portal-pill,
    .btn-enroll-fresh {
        width: 100% !important;
        justify-content: center !important;
        padding: 12px 18px !important;
        border-radius: 8px !important;
        text-align: center !important;
        min-height: 44px !important;
        font-size: 0.95rem !important;
    }
}

/* --- B. MEDIUM SCREENS & TABLETS (< 992px) --- */
@media (max-width: 991.98px) {
    .section {
        padding: 50px 0;
    }

    .hero-nilushan {
        padding: 30px 0 50px;
    }

    .hero-welcome-card {
        margin-bottom: 0;
        height: auto;
    }

    .hero-action-hub {
        height: auto;
    }
}

/* --- C. MOBILE PORTRAIT DEVICES (< 768px) --- */
@media (max-width: 767.98px) {
    .section {
        padding: 42px 0 !important;
    }

    .section-title {
        font-size: 1.65rem !important;
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
    }

    .section-subtitle {
        font-size: 0.92rem !important;
        line-height: 1.55 !important;
        margin-bottom: 24px !important;
    }

    /* Top Contact Bar Mobile Adaptations */
    .top-contact-bar {
        font-size: 0.78rem !important;
        padding: 6px 0 !important;
    }

    .top-info-badge {
        font-size: 0.76rem !important;
        gap: 5px !important;
    }

    .btn-top-hotline {
        padding: 4px 12px !important;
        font-size: 0.78rem !important;
        border-radius: 30px !important;
    }

    .top-lang-switch {
        gap: 2px !important;
        padding: 2px 3px !important;
    }

    .top-lang-switch .lang-btn {
        padding: 3px 8px !important;
        font-size: 0.72rem !important;
    }

    /* Hero Section Mobile Polish */
    .hero-nilushan {
        padding: 22px 0 38px !important;
    }

    .hero-welcome-card {
        padding: 24px 18px !important;
        border-radius: 20px !important;
    }

    .welcome-lead-tag {
        font-size: 0.78rem !important;
        letter-spacing: 2px !important;
        margin-bottom: 10px !important;
    }

    .hero-logo-box {
        max-width: 180px !important;
        margin-bottom: 12px !important;
    }

    .hero-logo-box img {
        max-height: 85px !important;
    }

    .hero-welcome-card h2 {
        font-size: 1.25rem !important;
    }

    .hero-academy-seal {
        font-size: 0.76rem !important;
        padding: 5px 12px !important;
        margin-bottom: 12px !important;
    }

    .hero-social-circle-row {
        gap: 10px !important;
        margin-bottom: 16px !important;
    }

    .hero-social-circle {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.1rem !important;
    }

    .hero-welcome-footer {
        font-size: 0.78rem !important;
        padding-top: 12px !important;
    }

    .hero-action-hub {
        padding: 24px 18px !important;
        border-radius: 20px !important;
    }

    .typing-box {
        min-height: 44px !important;
        margin-bottom: 12px !important;
    }

    .typing-text {
        font-size: clamp(1.35rem, 5.5vw, 1.75rem) !important;
    }

    .btn-new-student-reg {
        font-size: 1.05rem !important;
        padding: 13px 20px !important;
        width: 100% !important;
        margin-bottom: 10px !important;
    }

    .hero-action-subtext {
        font-size: 0.86rem !important;
        margin-bottom: 14px !important;
    }

    .special-appointment-badge {
        font-size: 0.80rem !important;
        padding: 6px 14px !important;
        margin-bottom: 18px !important;
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }

    /* 4 Circle Cards on Mobile (2x2 Grid) */
    .hero-circle-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin-bottom: 16px !important;
    }

    .hero-circle-card {
        padding: 14px 8px !important;
        border-radius: 14px !important;
    }

    .circle-icon-wrap {
        width: 48px !important;
        height: 48px !important;
        font-size: 1.3rem !important;
        margin-bottom: 6px !important;
    }

    .circle-card-title {
        font-size: 0.84rem !important;
        margin-bottom: 6px !important;
    }

    .btn-circle-action {
        font-size: 0.72rem !important;
        padding: 3px 10px !important;
    }

    .hero-ask-info {
        font-size: 0.86rem !important;
        padding-top: 12px !important;
    }

    /* Live Student Stats Showcase */
    .student-stats-showcase {
        padding: 24px 16px !important;
        border-radius: 20px !important;
        margin-bottom: 30px !important;
    }

    .stat-item-box {
        padding: 14px 10px !important;
        border-radius: 14px !important;
    }

    .stat-number-giant {
        font-size: 2.1rem !important;
    }

    .stat-label-text {
        font-size: 0.86rem !important;
    }

    .stat-sub-text {
        font-size: 0.74rem !important;
    }

    .branch-chips-row {
        gap: 5px !important;
        margin-top: 6px !important;
    }

    .branch-chip {
        font-size: 0.70rem !important;
        padding: 3px 8px !important;
    }

    /* Vehicle Category Cards */
    .vehicle-category-card {
        padding: 22px 18px !important;
        border-radius: 18px !important;
    }

    .vehicle-cat-icon {
        font-size: 2.3rem !important;
    }

    .vehicle-cat-title {
        font-size: 1.15rem !important;
    }

    .price-amount {
        font-size: 1.22rem !important;
    }

    /* Exam Banner Callout */
    .exam-banner-dhamsara {
        padding: 26px 18px !important;
        border-radius: 20px !important;
    }

    .exam-banner-dhamsara h2 {
        font-size: 1.45rem !important;
    }

    /* Step Roadmap Cards */
    .step-card {
        padding: 26px 18px 20px !important;
        border-radius: 18px !important;
    }

    .step-title {
        font-size: 1.08rem !important;
    }

    /* Floating Contact Buttons on Mobile */
    .floating-contact-bar {
        bottom: 16px !important;
        right: 16px !important;
        gap: 10px !important;
    }

    .float-btn {
        width: 48px !important;
        height: 48px !important;
        font-size: 1.4rem !important;
    }
}

/* --- D. SMALL SMARTPHONES (< 576px) --- */
@media (max-width: 575.98px) {
    /* Navbar Brand & Toggler Single-Row Guarantee */
    .site-navbar {
        padding: 6px 0 !important;
    }

    .site-brand,
    .fresh-brand {
        margin-right: 0.35rem !important;
        gap: 8px !important;
        max-width: calc(100% - 56px) !important;
        overflow: hidden !important;
    }

    .site-navbar-logo {
        height: 34px !important;
        max-height: 34px !important;
        width: auto !important;
        max-width: 44px !important;
    }

    .brand-title {
        font-size: 1.04rem !important;
        line-height: 1.15 !important;
    }

    .brand-subtitle,
    .brand-subtext {
        font-size: 0.68rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: block !important;
        max-width: 180px !important;
    }

    .site-toggler {
        padding: 5px 9px !important;
        min-height: 42px !important;
        min-width: 44px !important;
    }

    .site-toggler i {
        font-size: 1.45rem !important;
    }

    /* Modal Mobile Ergonomics */
    .modal-dialog {
        margin: 10px !important;
    }

    .modal-content {
        border-radius: 20px !important;
    }

    .modal-header,
    .modal-body {
        padding: 20px 16px !important;
    }
}

/* --- E. ULTRA-NARROW SCREENS (< 380px e.g. iPhone SE / Galaxy Z Fold folded) --- */
@media (max-width: 379.98px) {
    .brand-subtitle {
        max-width: 140px !important;
    }

    .brand-title {
        font-size: 0.96rem !important;
    }

    .btn-top-hotline {
        font-size: 0.72rem !important;
        padding: 3px 8px !important;
    }

    .top-lang-switch .lang-btn {
        padding: 2px 6px !important;
        font-size: 0.68rem !important;
    }

    .hero-circle-card {
        padding: 10px 4px !important;
    }

    .circle-icon-wrap {
        width: 42px !important;
        height: 42px !important;
        font-size: 1.15rem !important;
    }

    .circle-card-title {
        font-size: 0.78rem !important;
    }

    .btn-circle-action {
        font-size: 0.66rem !important;
        padding: 2px 7px !important;
    }
}

/* --- F. TOUCH SCREEN ERGONOMICS (PREVENT STUCK HOVER STATES) --- */
@media (hover: none) {
    .float-tooltip {
        display: none !important;
    }
}

/* --- ACCESSIBLE HIGH-CONTRAST BADGES & CARDS --- */
.badge-sinhala-pill {
    background: #fef3c7;
    color: #92400e;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid #fde68a;
    font-size: 0.8rem;
}

.step-card-visual {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.step-card-visual:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.step-number-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0284c7, #1e3a8a);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 16px;
}

/* ==========================================================================
   MODERN DHAMSARA-INSPIRED DESIGN SYSTEM (TOP BAR, HERO, CARDS & LOCATIONS)
   ========================================================================== */

/* --- TOP HEADER CONTACT BAR --- */
.top-header-bar {
    background: #091e3a;
    color: #e2e8f0;
    font-size: 0.82rem;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: relative;
    z-index: 1031;
}

.top-header-bar a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.top-header-bar a:hover {
    color: #38bdf8;
}

.top-bar-divider {
    display: inline-block;
    width: 1px;
    height: 12px;
    background: rgba(255,255,255,0.2);
    margin: 0 10px;
    vertical-align: middle;
}

.pulse-dot-online {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulseGlow 1.8s infinite;
    margin-right: 6px;
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* --- DHAMSARA STYLE HERO SECTION --- */
.hero-dhamsara {
    position: relative;
    min-height: 90vh;
    padding: 130px 0 80px 0;
    display: flex;
    align-items: center;
    color: #fff;
    z-index: 2;
}

.hero-dhamsara .hero-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.94) 0%, rgba(15, 23, 42, 0.85) 50%, rgba(2, 132, 199, 0.75) 100%);
    z-index: 1;
}

.hero-badge-pill {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #f8fafc;
    display: inline-flex;
    align-items: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero-title-main {
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 18px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.hero-title-main .text-highlight-gold {
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #eab308);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead-text {
    font-size: 1.18rem;
    color: #e2e8f0;
    max-width: 680px;
    margin-bottom: 25px;
    line-height: 1.6;
}

.hero-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
}

.hero-checklist li {
    font-size: 0.95rem;
    font-weight: 500;
    color: #f1f5f9;
    display: flex;
    align-items: center;
}

.hero-checklist li i {
    color: #38bdf8;
    margin-right: 8px;
    font-size: 1.1rem;
}

/* --- STAT COUNTER CARDS --- */
.stat-card-glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.stat-card-glass:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.6);
    background: rgba(255, 255, 255, 0.12);
}

.stat-card-glass .stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-card-glass .stat-label {
    font-size: 0.8rem;
    color: #cbd5e1;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- MODERN DHAMSARA-STYLE FEATURE CARDS --- */
.feature-card-modern {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    padding: 32px 24px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.feature-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0284c7, #38bdf8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px rgba(2, 132, 199, 0.12);
    border-color: #bae6fd;
}

.feature-card-modern:hover::before {
    opacity: 1;
}

.feature-icon-bubble {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 22px;
    transition: transform 0.3s ease;
}

.feature-card-modern:hover .feature-icon-bubble {
    transform: scale(1.1) rotate(4deg);
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff;
}

.feature-title-modern {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.feature-desc-modern {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 0;
}

/* --- DHAMSARA STYLE PACKAGE CARDS --- */
.pkg-card-dhamsara {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 6px 24px rgba(0,0,0,0.04);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pkg-card-dhamsara:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: #0284c7;
}

.pkg-card-dhamsara.popular-pkg {
    border: 2px solid #0284c7;
}

.pkg-popular-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.4);
    z-index: 5;
}

.pkg-header-dhamsara {
    padding: 28px 24px 20px 24px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid #f1f5f9;
}

.pkg-title-dhamsara {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}

.pkg-subtitle-dhamsara {
    font-size: 0.85rem;
    color: #64748b;
}

.pkg-price-dhamsara {
    font-size: 2rem;
    font-weight: 800;
    color: #0284c7;
    margin: 14px 0 0 0;
}

.pkg-price-dhamsara small {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 500;
}

.pkg-body-dhamsara {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.pkg-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    flex-grow: 1;
}

.pkg-features-list li {
    font-size: 0.9rem;
    color: #334155;
    padding: 7px 0;
    border-bottom: 1px dashed #f1f5f9;
    display: flex;
    align-items: center;
}

.pkg-features-list li:last-child {
    border-bottom: none;
}

.pkg-features-list li i {
    color: #10b981;
    margin-right: 10px;
    font-size: 1rem;
}

/* --- LOCATION & BRANCH CARDS (DHAMSARA STYLE) --- */
.location-card-dhamsara {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    padding: 26px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}

.location-card-dhamsara:hover {
    transform: translateY(-6px);
    border-color: #0284c7;
    box-shadow: 0 16px 30px rgba(2, 132, 199, 0.1);
}

.location-badge-head {
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 12px;
}

.location-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.location-info-item {
    font-size: 0.88rem;
    color: #475569;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.location-info-item i {
    color: #0284c7;
    margin-right: 10px;
    font-size: 1.05rem;
    margin-top: 2px;
}

/* --- TESTIMONIAL CARD (5-STAR RATINGS) --- */
.testimonial-card-dhamsara {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.stars-rating {
    color: #f59e0b;
    font-size: 1.1rem;
    margin-bottom: 14px;
}

.testi-quote {
    font-size: 0.92rem;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.testi-user {
    display: flex;
    align-items: center;
}

.testi-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-right: 12px;
}

.testi-name {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.testi-badge {
    font-size: 0.78rem;
    color: #10b981;
    font-weight: 600;
}

/* --- BANNER CALLOUT --- */
.exam-banner-dhamsara {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0369a1 100%);
    border-radius: 24px;
    padding: 48px 40px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.exam-banner-dhamsara::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* ==========================================================================
   NILUSHAN-INSPIRED HIGH-CLARITY DESIGN SYSTEM (SRIYANI DRIVING SCHOOL)
   ========================================================================== */

/* --- 1. TOP QUICK-INFO CONTACT BAR (NILUSHAN STYLE) --- */
.top-contact-bar {
    background: #091e3a;
    color: #cbd5e1;
    font-size: 0.82rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1070;
}

.top-contact-bar a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.top-contact-bar a:hover {
    color: #f59e0b;
}

.top-info-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
}

.top-info-badge i {
    color: #38bdf8;
    font-size: 0.95rem;
}

.btn-top-hotline {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 4px 16px;
    border-radius: 50px;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-top-hotline:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.5);
    color: #ffffff !important;
}

.top-lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.top-lang-switch .lang-btn {
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.top-lang-switch .lang-btn:hover {
    color: #ffffff;
}

.top-lang-switch .lang-btn.active {
    background: #f59e0b;
    color: #0f172a;
}

/* --- 3. NILUSHAN SIGNATURE SPLIT HERO SECTION --- */
.hero-nilushan {
    position: relative;
    padding: 40px 0 60px;
    background: linear-gradient(145deg, #f8fafc 0%, #edf5fd 50%, #e1effe 100%);
    overflow: hidden;
    z-index: 2;
}

.hero-nilushan::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.hero-nilushan::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

/* --- HERO LEFT CARD (WELCOME & LOGO FRAME) --- */
.hero-welcome-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 36px 30px;
    box-shadow: 0 20px 45px -12px rgba(15, 23, 42, 0.08);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-welcome-card:hover {
    box-shadow: 0 24px 50px -10px rgba(15, 23, 42, 0.12);
}

.welcome-lead-tag {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #0284c7;
    margin-bottom: 14px;
    display: inline-block;
}

.hero-logo-box {
    max-width: 240px;
    margin: 0 auto 16px;
    padding: 8px;
}

.hero-logo-box img {
    width: 100%;
    height: auto;
    max-height: 110px;
    object-fit: contain;
}

.hero-academy-seal {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.hero-social-circle-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.hero-social-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-social-circle:hover {
    transform: translateY(-4px) scale(1.1);
}

.hero-social-circle.fb:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
.hero-social-circle.wa:hover { background: #25d366; color: #fff; border-color: #25d366; }
.hero-social-circle.yt:hover { background: #ff0000; color: #fff; border-color: #ff0000; }
.hero-social-circle.tg:hover { background: #0088cc; color: #fff; border-color: #0088cc; }

.hero-welcome-footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.5;
}

/* --- HERO RIGHT CARD (ACTION HUB & 4 CIRCLES) --- */
.hero-action-hub {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 36px 32px;
    box-shadow: 0 20px 45px -12px rgba(15, 23, 42, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.typing-box {
    min-height: 52px;
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}

.typing-text {
    font-size: clamp(1.6rem, 3.2vw, 2.3rem);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1.3em;
    background-color: #0284c7;
    margin-left: 4px;
    vertical-align: middle;
    animation: blinkCursor 0.7s infinite;
}

@keyframes blinkCursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.btn-new-student-reg {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff !important;
    font-size: 1.15rem;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(2, 132, 199, 0.35);
    transition: all 0.3s ease;
    margin-bottom: 12px;
    animation: pulseGlow 2.5s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.45); }
    70% { box-shadow: 0 0 0 12px rgba(2, 132, 199, 0); }
    100% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0); }
}

.btn-new-student-reg:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 30px rgba(2, 132, 199, 0.45);
    color: #ffffff !important;
}

.hero-action-subtext {
    font-size: 0.92rem;
    color: #64748b;
    margin-bottom: 16px;
    line-height: 1.5;
}

.special-appointment-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #d97706;
    background: #fffbeb;
    border: 1px solid #fde68a;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none !important;
    margin-bottom: 22px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.special-appointment-badge:hover {
    background: #fef3c7;
    color: #b45309;
    transform: translateX(3px);
}

/* 4 Circular Action Feature Hub (Nilushan Signature Hub) */
.hero-circle-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

@media (max-width: 576px) {
    .hero-circle-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.hero-circle-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 18px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none !important;
    color: #0f172a !important;
}

.hero-circle-card:hover {
    transform: translateY(-5px);
    border-color: #38bdf8;
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(2, 132, 199, 0.12);
}

.circle-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 10px;
    transition: transform 0.25s ease;
}

.hero-circle-card:hover .circle-icon-wrap {
    transform: scale(1.12);
}

.circle-icon-wrap.amber { background: #fef3c7; color: #d97706; }
.circle-icon-wrap.blue { background: #e0f2fe; color: #0284c7; }
.circle-icon-wrap.green { background: #dcfce7; color: #16a34a; }
.circle-icon-wrap.purple { background: #ede9fe; color: #7c3aed; }

.circle-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.btn-circle-action {
    font-size: 0.74rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    display: inline-block;
    transition: all 0.2s ease;
}

.hero-circle-card:hover .btn-circle-action {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

.hero-ask-info {
    font-size: 0.9rem;
    color: #475569;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
}

.hero-ask-info strong a {
    color: #0f172a;
    text-decoration: none;
    font-weight: 800;
}

.hero-ask-info strong a:hover {
    color: #0284c7;
}

/* --- 4. STEP-BY-STEP LICENSE ROADMAP (HIGH CLARITY) --- */
.step-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    padding: 32px 24px;
    position: relative;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
    border-color: #0284c7;
}

.step-number-badge {
    position: absolute;
    top: -14px;
    left: 24px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
}

.step-icon {
    font-size: 2.3rem;
    color: #0284c7;
    margin-bottom: 14px;
    margin-top: 6px;
}

.step-title {
    font-size: 1.18rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.step-desc {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.55;
    margin-bottom: 0;
}

/* --- 5. VEHICLE CATEGORY & COURSE CARDS --- */
.vehicle-category-card {
    background: #ffffff;
    border-radius: 22px;
    border: 1px solid #e2e8f0;
    padding: 28px 24px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.vehicle-category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(2, 132, 199, 0.12);
    border-color: #38bdf8;
}

.vehicle-badge-code {
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.76rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}

.vehicle-cat-icon {
    font-size: 2.8rem;
    color: #0284c7;
    margin-bottom: 12px;
}

.vehicle-cat-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.vehicle-cat-desc {
    font-size: 0.88rem;
    color: #64748b;
    margin-bottom: 14px;
    line-height: 1.5;
}

.vehicle-pricing-tag {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.price-amount {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
}

.price-note {
    font-size: 0.76rem;
    color: #10b981;
    font-weight: 700;
}

.vehicle-inclusions-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    font-size: 0.86rem;
    color: #334155;
}

.vehicle-inclusions-list li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vehicle-inclusions-list li i {
    color: #10b981;
    font-size: 0.95rem;
}

/* --- 6. FLOATING DIRECT CONTACT ACTION BAR --- */
.floating-contact-bar {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1090;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.float-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.float-btn:hover {
    transform: translateY(-4px) scale(1.08);
}

.float-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.float-call {
    background: linear-gradient(135deg, #0284c7, #0369a1);
}

.float-tooltip {
    position: absolute;
    right: 64px;
    top: 50%;
    transform: translateY(-50%);
    background: #0f172a;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.float-btn:hover .float-tooltip {
    opacity: 1;
}

/* --- LIVE STUDENT STATISTICS SHOWCASE --- */
.student-stats-showcase {
    background: linear-gradient(135deg, #091e3a 0%, #0f2d59 100%);
    color: #ffffff;
    border-radius: 24px;
    padding: 36px 30px;
    box-shadow: 0 16px 40px rgba(9, 30, 58, 0.15);
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.student-stats-showcase::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
}

.stat-item-box {
    text-align: center;
    padding: 20px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-item-box:hover {
    background: rgba(255, 255, 255, 0.09);
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.4);
}

.stat-number-giant {
    font-size: clamp(2rem, 3.2vw, 2.6rem);
    font-weight: 800;
    color: #38bdf8;
    line-height: 1.1;
    margin-bottom: 6px;
}

.stat-number-giant.gold {
    color: #f59e0b;
}

.stat-number-giant.emerald {
    color: #10b981;
}

.stat-label-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.stat-sub-text {
    font-size: 0.78rem;
    color: #94a3b8;
}

.branch-chips-row {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.branch-chip {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pricing-tag-pill {
    font-size: 0.78rem;
    font-weight: 700;
    color: #0369a1;
    background: #e0f2fe;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.pricing-tag-pill.success {
    color: #15803d;
    background: #dcfce7;
}

.pricing-tag-pill.amber {
    color: #b45309;
    background: #fef3c7;
}