/* ==========================================================================
   RAVINDRANATH TAGORE COLLEGE (RNT COLLEGE), ARTHUNA, BANSWARA
   Master Design System & Stylesheet (Modern HTML5 / CSS3 / PHP)
   ========================================================================== */

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

:root {
    /* Brand Color Palette */
    --primary: #0a2540;
    --primary-dark: #07192c;
    --primary-light: #1e3a8a;
    --accent: #d97706;
    --accent-light: #f59e0b;
    --accent-glow: rgba(245, 158, 11, 0.25);
    --secondary: #0d9488;
    --secondary-dark: #0f766e;
    
    /* Neutrals & Surfaces */
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --bg-subtle: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --border-light: rgba(226, 232, 240, 0.8);
    
    /* Gradients */
    --grad-primary: linear-gradient(135deg, #0a2540 0%, #1e3a8a 100%);
    --grad-accent: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    --grad-card: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    --grad-hero-overlay: linear-gradient(180deg, rgba(10, 37, 64, 0.85) 0%, rgba(10, 37, 64, 0.4) 60%, rgba(10, 37, 64, 0.95) 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px var(--accent-glow);

    /* Radius & Spacing */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Resets */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    font-weight: 700;
    line-height: 1.25;
}

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

a:hover {
    color: var(--accent);
}

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   TOP BAR & UTILITY HEADER
   ========================================================================== */
.top-bar {
    background: var(--primary-dark);
    color: #e2e8f0;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #cbd5e1;
    font-weight: 500;
}

.top-bar-item a {
    color: #cbd5e1;
}

.top-bar-item a:hover {
    color: var(--accent-light);
}

.admin-login-badge {
    background: linear-gradient(135deg, var(--accent), #b45309);
    color: #ffffff !important;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.35);
}

.admin-login-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.5);
    color: #fff !important;
}

/* ==========================================================================
   BRANDING & MAIN NAVIGATION
   ========================================================================== */
.header-main {
    background: var(--bg-surface);
    position: relative !important;
    top: auto !important;
    z-index: 100;
    width: 100%;
    transition: var(--transition);
}

.branding-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
}

.brand-logo-img {
    height: 72px;
    width: auto;
    object-fit: contain;
}

.brand-info h1 {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 2px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.brand-info .tagline {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.brand-info .hindi-name {
    font-size: 14px;
    color: var(--secondary);
    font-weight: 600;
    display: block;
    margin-top: 2px;
}

.header-badges {
    display: flex;
    align-items: center;
    gap: 15px;
}

.crest-badge {
    height: 65px;
    width: auto;
}

/* Navigation Menu */
.nav-wrap {
    background: var(--primary);
    border-bottom: 3px solid var(--accent);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.nav-wrap.scrolled {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

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

.mobile-nav-bar {
    display: none;
    width: 100%;
}

.main-menu {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-menu > li {
    position: relative;
}

.main-menu > li > a,
.main-menu > li > .menu-item-row > a {
    display: block;
    padding: 14px 16px;
    color: #f8fafc;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
    text-decoration: none;
}

.menu-item-row {
    display: flex;
    align-items: center;
}

.submenu-toggle-btn {
    display: none;
}

.main-menu > li:hover > a,
.main-menu > li.active > a,
.main-menu > li:hover > .menu-item-row > a,
.main-menu > li.active > .menu-item-row > a {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-bottom-color: var(--accent);
}

/* Dropdown Menu */
.main-menu li ul {
    position: absolute;
    top: 100%;
    left: 0;
    width: 250px;
    background: #ffffff;
    box-shadow: var(--shadow-xl);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 999;
    border-top: 3px solid var(--accent);
}

.main-menu li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-menu li ul li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-primary);
    font-size: 13.5px;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
    text-decoration: none;
}

.main-menu li ul li a:hover {
    color: var(--primary-light);
    background: var(--bg-subtle);
    border-left-color: var(--accent);
    padding-left: 24px;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 16px;
    padding: 10px 14px;
    cursor: pointer;
}

/* ==========================================================================
   LIVE NEWS TICKER / MARQUEE
   ========================================================================== */
.ticker-bar {
    background: #041424;
    color: white;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 42px;
    overflow: hidden;
}

.ticker-badge {
    background: var(--accent);
    color: #ffffff;
    font-weight: 700;
    font-size: 12px;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 2px 0 8px rgba(0,0,0,0.25);
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-content marquee {
    padding-top: 4px;
    font-size: 13.5px;
    font-weight: 500;
}

.ticker-content a {
    color: #fef08a;
    text-decoration: underline;
    margin-right: 40px;
}

.ticker-content a:hover {
    color: #ffffff;
}

/* ==========================================================================
   HERO BANNER & SLIDER
   ========================================================================== */
.hero-slider-wrap {
    position: relative;
    background: var(--primary);
    overflow: hidden;
    height: 480px;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center center;
}

.slide-item.active {
    opacity: 1;
    z-index: 1;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: var(--grad-hero-overlay);
    display: flex;
    align-items: center;
}

.slide-caption {
    max-width: 680px;
    color: #ffffff;
    animation: slideUp 0.8s ease-out;
}

.slide-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(245, 158, 11, 0.9);
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.slide-title {
    font-size: 38px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.slide-desc {
    font-size: 16px;
    color: #e2e8f0;
    margin-bottom: 24px;
    line-height: 1.6;
}

.slide-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14.5px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--grad-accent);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.5);
    color: #ffffff;
}

.btn-outline-white {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
}

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

.btn-outline {
    background: transparent;
    color: var(--primary-light);
    border: 1.5px solid var(--primary-light);
}

.btn-outline:hover {
    background: var(--primary-light);
    color: #ffffff;
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13.5px;
    border-radius: var(--radius-sm);
}

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

/* Badges & Pills */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    line-height: 1.3;
}

.badge-primary {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.badge-secondary {
    background: #ccfbf1;
    color: #0f766e;
    border: 1px solid #99f6e4;
}

.badge-accent {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.badge-light {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

/* Common Layout Utilities */
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 1rem; padding-bottom: 1rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-5 { padding-top: 2.75rem; padding-bottom: 2.75rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2.5rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

.gap-1 { gap: 0.5rem !important; }
.gap-2 { gap: 0.75rem !important; }
.gap-3 { gap: 1.25rem !important; }
.gap-4 { gap: 1.75rem !important; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.w-100 { width: 100%; }
.d-flex { display: flex; }
.d-block { display: block; }

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(15, 23, 42, 0.6);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
}

.slider-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--accent);
    width: 28px;
    border-radius: 6px;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   PAGE BANNER (INTERNAL PAGES)
   ========================================================================== */
.page-banner {
    background: linear-gradient(135deg, rgba(10, 37, 64, 0.95), rgba(30, 58, 138, 0.9)), url('../../images/slide/01.jpg') center/cover no-repeat;
    color: white;
    padding: 60px 0;
    border-bottom: 4px solid var(--accent);
    position: relative;
}

.page-banner h1 {
    color: #ffffff;
    font-size: 32px;
    margin-bottom: 8px;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #cbd5e1;
}

.breadcrumbs a {
    color: #fef08a;
}

.breadcrumbs a:hover {
    color: #ffffff;
}

/* ==========================================================================
   SECTION & CARD STYLING
   ========================================================================== */
.section-padding {
    padding: 60px 0;
}

.section-padding-sm {
    padding: 40px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 45px;
}

.section-subtitle {
    display: inline-block;
    color: var(--accent);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.section-title {
    font-size: 30px;
    color: var(--primary);
    position: relative;
    padding-bottom: 14px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.section-desc {
    max-width: 650px;
    margin: 12px auto 0;
    color: var(--text-secondary);
    font-size: 15px;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

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

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

.layout-with-sidebar {
    display: grid;
    grid-template-columns: 2.8fr 1.2fr;
    gap: 35px;
    align-items: start;
}

/* Card Component */
.card {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    padding: 24px;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
    transform: translateY(-3px);
}

/* Feature Box */
.feature-box {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 25px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-light);
    transition: var(--transition);
}

.feature-box:hover::before {
    background: var(--accent);
    width: 6px;
}

.feature-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #eff6ff;
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.feature-box h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.feature-box p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Welcome Box */
.welcome-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    padding: 35px;
    position: relative;
}

.welcome-title {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #ffffff;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hindi-text {
    font-size: 16px;
    line-height: 1.8;
    color: #1e293b;
    margin-bottom: 16px;
    font-family: 'Poppins', 'Plus Jakarta Sans', sans-serif;
}

/* Leader Message Card */
.leader-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.leader-image-wrap {
    background: var(--primary);
    text-align: center;
    padding: 25px;
    position: relative;
}

.leader-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent);
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.leader-body {
    padding: 30px;
    flex: 1;
}

.leader-name {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 4px;
}

.leader-role {
    font-size: 13px;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.quote-box {
    position: relative;
    padding: 16px 20px 16px 36px;
    background: #f8fafc;
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 16px 0;
    font-style: italic;
    color: #334155;
}

.quote-box::before {
    content: '“';
    position: absolute;
    left: 10px;
    top: 5px;
    font-size: 34px;
    color: var(--accent);
    font-family: serif;
    line-height: 1;
}

/* Course Card */
.course-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.course-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
}

.course-title {
    font-size: 19px;
    margin-bottom: 8px;
    color: var(--primary);
}

.course-meta {
    margin: 14px 0;
    padding: 12px 0;
    border-top: 1px dashed var(--border-color);
    border-bottom: 1px dashed var(--border-color);
    font-size: 13.5px;
    color: var(--text-secondary);
}

.course-meta-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.course-meta-item:last-child {
    margin-bottom: 0;
}

/* Stats Counter Strip */
.stats-strip {
    background: linear-gradient(135deg, var(--primary) 0%, #172554 100%);
    color: #ffffff;
    padding: 50px 0;
    border-top: 3px solid var(--accent);
    border-bottom: 3px solid var(--accent);
}

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

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 42px;
    font-weight: 800;
    color: var(--accent-light);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* ==========================================================================
   DOCUMENT & PDF DOWNLOAD CARDS (ITEP & NCTE)
   ========================================================================== */
.doc-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    transition: var(--transition);
    margin-bottom: 14px;
}

.doc-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.doc-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pdf-icon-badge {
    width: 44px;
    height: 44px;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.doc-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 3px;
}

.doc-meta {
    font-size: 12.5px;
    color: var(--text-muted);
}

.doc-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.btn-sm {
    padding: 8px 14px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

.btn-secondary {
    background: #eff6ff;
    color: var(--primary-light);
}

.btn-secondary:hover {
    background: var(--primary-light);
    color: white;
}

/* ==========================================================================
   GALLERY GRID & LIGHTBOX
   ========================================================================== */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 18px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 220px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    background: #1e293b;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(10, 37, 64, 0.9) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    color: white;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-caption {
    font-size: 14px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 30px;
    color: white;
    font-size: 36px;
    cursor: pointer;
    background: none;
    border: none;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 32px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox-nav:hover {
    background: var(--accent);
}

.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

/* ==========================================================================
   TABLES & PROFILES
   ========================================================================== */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    text-align: left;
}

.custom-table th {
    background: var(--primary);
    color: #ffffff;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.custom-table td {
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14.5px;
    color: var(--text-primary);
}

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

.custom-table tr:nth-child(even) td {
    background-color: #f8fafc;
}

.custom-table tr:hover td {
    background-color: #f1f5f9;
}

/* ==========================================================================
   SIDEBAR WIDGETS
   ========================================================================== */
.sidebar-widget {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
    overflow: hidden;
}

.widget-header {
    background: var(--primary);
    color: #ffffff;
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 700;
    border-left: 4px solid var(--accent);
}

.widget-body {
    padding: 18px;
}

.news-ticker-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.news-item {
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--border-color);
}

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

.news-date {
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.news-link {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    display: block;
}

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

.helpline-box {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
    border: 1px solid #bfdbfe;
}

.helpline-phone {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-light);
    margin: 8px 0;
    display: block;
}

/* ==========================================================================
   CONTACT FORM & INPUTS
   ========================================================================== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14.5px;
    transition: var(--transition);
    background: #ffffff;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 20px;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-main {
    background: var(--primary-dark);
    color: #cbd5e1;
    padding-top: 60px;
    border-top: 4px solid var(--accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
    gap: 35px;
    margin-bottom: 45px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

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

.footer-about p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
    color: #94a3b8;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #cbd5e1;
    font-size: 13.5px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-links a:hover {
    color: var(--accent-light);
    transform: translateX(4px);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 13.5px;
}

.footer-contact-icon {
    color: var(--accent);
    font-size: 16px;
    margin-top: 3px;
    flex-shrink: 0;
}

.visitor-box {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-top: 15px;
    text-align: center;
}

.visitor-count {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-light);
    letter-spacing: 2px;
}

.footer-bottom {
    background: #040d16;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13px;
    color: #64748b;
}

.footer-bottom-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom a {
    color: #94a3b8;
}

.footer-bottom a:hover {
    color: var(--accent-light);
}

/* ==========================================================================
   RESPONSIVE DESIGN & MOBILE OPTIMIZATIONS (TABLET, MOBILE & PHONES)
   ========================================================================== */

/* Menu Backdrop */
.menu-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(4, 13, 22, 0.65);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 990;
}

.menu-backdrop.active {
    display: block;
}

body.menu-locked,
body.lightbox-locked {
    overflow: hidden !important;
}

/* 1. Large Tablets & Small Laptops (<= 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 16px;
    }
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    .layout-with-sidebar {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .sidebar-wrapper {
        margin-top: 15px;
    }
}

/* 2. Tablets & Mobile Breakpoint (<= 860px) */
@media (max-width: 860px) {
    /* Top Utility Bar */
    .top-bar {
        padding: 6px 0;
        font-size: 12px;
    }
    .top-bar-content {
        justify-content: space-between;
        gap: 8px;
    }
    .top-bar-left {
        gap: 12px;
        flex-wrap: wrap;
    }
    .top-bar-item {
        font-size: 12px;
    }
    .top-bar-location {
        display: none; /* Hide long address in top bar on mobile; accessible in footer & contact page */
    }

    /* Main Branding Header - Flexible on Mobile & Moves with Scrolling */
    .header-main {
        position: relative !important;
        top: auto !important;
        box-shadow: none !important;
        width: 100%;
    }
    .branding-wrap {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 14px 12px 10px 12px;
        gap: 6px;
        text-align: center;
        width: 100%;
    }
    .brand-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 6px;
        width: 100%;
    }
    .brand-logo-img {
        height: 52px;
        max-width: 90%;
        object-fit: contain;
    }
    .brand-info {
        width: 100%;
        text-align: center;
    }
    .brand-info h1 {
        font-size: clamp(17px, 4.8vw, 21px);
        line-height: 1.25;
        margin-bottom: 2px;
        color: var(--primary);
    }
    .brand-info .hindi-name {
        font-size: clamp(12.5px, 3.4vw, 14px);
        margin-bottom: 3px;
        color: var(--secondary);
        display: block;
    }
    .brand-info .tagline {
        font-size: clamp(11px, 2.9vw, 12px);
        line-height: 1.35;
        max-width: 92%;
        margin: 0 auto;
        color: var(--text-secondary);
        display: block;
    }
    .header-badges {
        margin-top: 4px;
        display: flex;
        justify-content: center;
    }
    .crest-badge {
        height: 46px;
        width: auto;
        display: inline-block;
    }

    /* Mobile Navigation Container */
    .nav-wrap {
        border-bottom: 2px solid var(--accent);
        z-index: 1000;
    }
    .nav-container {
        flex-direction: column;
        align-items: stretch;
        padding: 0 16px;
        z-index: 1001;
    }
    .mobile-nav-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 0;
        width: 100%;
        position: relative;
        z-index: 1002;
    }
    .mobile-toggle {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: rgba(255, 255, 255, 0.12);
        color: #ffffff;
        border: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: var(--radius-sm);
        padding: 7px 12px;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
        min-height: 40px;
        -webkit-tap-highlight-color: transparent;
    }
    .mobile-toggle:active {
        background: rgba(255, 255, 255, 0.22);
    }
    .mobile-quick-actions {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .mobile-nav-call {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        background: rgba(255, 255, 255, 0.12);
        color: #ffffff;
        border: 1px solid rgba(255, 255, 255, 0.28);
        border-radius: var(--radius-full);
        padding: 6px 12px;
        font-size: 12.5px;
        font-weight: 700;
        text-decoration: none !important;
        min-height: 36px;
    }
    .mobile-nav-apply {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        background: var(--grad-accent);
        color: #ffffff !important;
        border-radius: var(--radius-full);
        padding: 6px 14px;
        font-size: 12.5px;
        font-weight: 700;
        text-decoration: none !important;
        box-shadow: 0 2px 6px rgba(217, 119, 6, 0.35);
        min-height: 36px;
    }

    /* Main Menu Dropdown Drawer */
    .main-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--primary-dark);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 6px 0 16px 0;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
        position: relative;
        z-index: 1002;
    }
    .main-menu.show {
        display: flex;
        animation: menuSlideDown 0.25s ease-out;
    }
    .main-menu > li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    .main-menu > li:last-child {
        border-bottom: none;
    }
    .menu-item-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    .main-menu > li > a,
    .main-menu > li > .menu-item-row > a {
        flex: 1;
        padding: 12px 16px;
        color: #f8fafc;
        font-size: 14.5px;
        font-weight: 600;
        border-bottom: none;
        margin-bottom: 0;
    }
    .submenu-toggle-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: transparent;
        border: none;
        color: #fef08a;
        font-size: 15px;
        cursor: pointer;
        transition: transform 0.25s ease;
        -webkit-tap-highlight-color: transparent;
    }
    .main-menu li.open > .menu-item-row .submenu-toggle-btn {
        transform: rotate(180deg);
        color: var(--accent);
    }
    .main-menu li ul {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.25);
        border-radius: 0;
        border-top: none;
        display: none;
        padding: 4px 0 6px 0;
    }
    .main-menu li.open > ul {
        display: block;
    }
    .main-menu li ul li a {
        padding: 10px 16px 10px 28px;
        color: #cbd5e1;
        font-size: 13.5px;
        border-left: 3px solid rgba(217, 119, 6, 0.4);
        background: transparent;
    }
    .main-menu li ul li a:hover,
    .main-menu li ul li a:active {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.08);
        border-left-color: var(--accent);
        padding-left: 32px;
    }

    /* Grids */
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Hero Slider */
    .hero-slider-wrap {
        height: 420px;
    }
    .slide-caption {
        max-width: 100%;
        padding: 0 10px;
    }
    .slide-title {
        font-size: 26px;
        line-height: 1.25;
        margin-bottom: 8px;
    }
    .slide-desc {
        font-size: 14.5px;
        margin-bottom: 18px;
        line-height: 1.5;
    }
    .slider-btn {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
    .slider-btn.prev { left: 10px; }
    .slider-btn.next { right: 10px; }

    /* Section Padding */
    .section-padding {
        padding: 40px 0;
    }
    .section-header {
        margin-bottom: 30px;
    }
    .section-title {
        font-size: 24px;
    }
    .page-banner {
        padding: 40px 0;
    }
    .page-banner h1 {
        font-size: 24px;
    }

    /* Welcome & Principal Cards */
    .welcome-card {
        padding: 22px;
    }
    .welcome-title {
        font-size: 17px;
        padding: 11px 14px;
    }
    .hindi-text {
        font-size: 15px;
    }

    /* Tables */
    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 18px;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-sm);
    }
    table {
        min-width: 500px;
    }
    .custom-table th, .custom-table td, table th, table td {
        padding: 10px 12px;
        font-size: 13.5px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .footer-main {
        padding-top: 40px;
    }
}

/* 3. Standard Smartphone Screens (<= 640px) */
@media (max-width: 640px) {
    /* Top Bar Mobile Compact */
    .top-bar-email {
        display: none; /* Hide email in top bar on small screens; accessible in footer & contact page */
    }
    .top-bar-left, .top-bar-right {
        gap: 10px;
    }
    .top-bar-phone a {
        font-weight: 700;
        color: #fef08a;
    }

    /* Header Compact */
    .brand-logo-img {
        height: 46px;
    }
    .brand-info h1 {
        font-size: 16.5px;
    }
    .brand-info .hindi-name {
        font-size: 12px;
    }
    .brand-info .tagline {
        font-size: 10.5px;
        line-height: 1.35;
        display: block;
    }
    .crest-badge {
        height: 42px;
        display: inline-block;
    }

    /* Marquee Ticker */
    .ticker-bar {
        height: 38px;
    }
    .ticker-badge {
        padding: 0 10px;
        font-size: 11px;
        gap: 5px;
    }
    .ticker-badge .ticker-label {
        display: inline-block;
    }
    .ticker-content marquee {
        font-size: 12.5px;
    }

    /* Slider Mobile Sizing */
    .hero-slider-wrap {
        height: 360px;
    }
    .slide-badge {
        font-size: 11px;
        padding: 4px 10px;
        margin-bottom: 10px;
    }
    .slide-title {
        font-size: 20px;
        margin-bottom: 6px;
    }
    .slide-desc {
        font-size: 13px;
        margin-bottom: 14px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .slide-btns {
        gap: 8px;
    }
    .slide-btns .btn {
        padding: 9px 16px;
        font-size: 13px;
    }
    .slider-btn {
        display: none; /* On mobile touch screens, swipe gesture replaces arrows */
    }
    .slider-dots {
        bottom: 12px;
    }

    /* Stats Strip Compact 2-Col */
    .stats-strip {
        padding: 30px 0;
    }
    .stats-strip .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .stat-number {
        font-size: 28px;
    }
    .stat-label {
        font-size: 11px;
        letter-spacing: 0.2px;
    }

    /* Forms on Mobile */
    .form-control, input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select, textarea {
        font-size: 16px !important; /* Prevents auto-zoom in mobile Safari */
        padding: 12px 14px;
    }

    /* CTA Strip Mobile */
    .cta-banner-strip {
        padding: 32px 0;
    }
    .cta-banner-strip h3 {
        font-size: 19px !important;
    }
    .cta-banner-strip p {
        font-size: 13.5px !important;
    }

    /* Document and PDF cards */
    .doc-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px;
    }
    .doc-actions {
        width: 100%;
        margin-top: 10px;
    }
    .doc-actions .btn {
        flex: 1;
    }

    /* Principal card */
    .principal-card > div {
        flex-direction: column;
        text-align: center;
    }
    .principal-card img {
        margin: 0 auto;
    }
}

/* 4. Small Phones & Narrow Screens (<= 420px) */
@media (max-width: 420px) {
    .container {
        padding: 0 12px;
    }
    .brand-info h1 {
        font-size: 14px;
    }
    .hero-slider-wrap {
        height: 340px;
    }
    .slide-title {
        font-size: 18px;
    }
    .slide-btns {
        flex-direction: column;
        width: 100%;
    }
    .slide-btns .btn {
        width: 100%;
        text-align: center;
    }
    .btn {
        padding: 10px 16px;
        font-size: 13.5px;
    }
    .ticker-badge .ticker-label {
        display: inline-block;
        font-size: 10px;
    }
}

/* Keyframe for mobile menu drawer animation */
@keyframes menuSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   MOBILE FLOATING ACTION BAR (BOTTOM SCREEN ACTIONS)
   ========================================================================== */
.mobile-floating-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 58px;
    background: #07192c;
    border-top: 1.5px solid rgba(217, 119, 6, 0.4);
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.35);
    z-index: 9999;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (max-width: 768px) {
    .mobile-floating-bar {
        display: flex;
        align-items: center;
        justify-content: space-around;
    }
    body {
        padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px));
    }
}

.mfb-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 100%;
    color: #cbd5e1;
    text-decoration: none !important;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.mfb-icon {
    font-size: 18px;
    line-height: 1;
}

.mfb-text {
    letter-spacing: 0.2px;
}

.mfb-item:active, .mfb-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.mfb-whatsapp:hover, .mfb-whatsapp:active {
    color: #25d366;
}

.mfb-highlight {
    color: #fef08a !important;
    font-weight: 700;
}

/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */
.back-to-top {
    position: fixed;
    right: 18px;
    bottom: 80px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.25s ease;
    z-index: 998;
    -webkit-tap-highlight-color: transparent;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover, .back-to-top:active {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
    color: #ffffff;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 70px;
        right: 14px;
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
}

/* ==========================================================================
   LIGHTBOX MODAL (TOUCH-FRIENDLY & RESPONSIVE)
   ========================================================================== */
.lightbox-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.94);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 15px;
    touch-action: pan-y;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 92vw;
    max-height: 88vh;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 75vh;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    object-fit: contain;
}

.lightbox-caption-wrap {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    margin-top: 12px;
    text-align: center;
    max-width: 85vw;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 18px;
    color: white;
    font-size: 38px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 10002;
    -webkit-tap-highlight-color: transparent;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 26px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10001;
}

.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

@media (max-width: 600px) {
    .lightbox-nav {
        width: 36px;
        height: 36px;
        font-size: 18px;
        background: rgba(0, 0, 0, 0.65);
    }
}

/* ==========================================================================
   ENHANCED COLORING, MOTION & DYNAMIC MICRO-INTERACTIONS
   Polished touches for Home Page and harmonious global elements
   ========================================================================== */

/* Keyframe Animations */
@keyframes floatBadge {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 4px 14px rgba(217, 119, 6, 0.4), 0 0 0 0 rgba(245, 158, 11, 0.35);
    }
    50% {
        box-shadow: 0 6px 20px rgba(217, 119, 6, 0.6), 0 0 0 9px rgba(245, 158, 11, 0);
    }
}

@keyframes livePulseDot {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        transform: scale(1.15);
        box-shadow: 0 0 0 7px rgba(239, 68, 68, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

@keyframes gradientMesh {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 1. Ticker Bar with Live Pulsing Dot */
.ticker-badge {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    position: relative;
    overflow: hidden;
}

.live-pulse-dot {
    width: 9px;
    height: 9px;
    background-color: #ef4444;
    border-radius: 50%;
    display: inline-block;
    margin-right: 3px;
    animation: livePulseDot 1.8s infinite;
    flex-shrink: 0;
}

/* 2. Hero Slide & Dynamic Badges */
.slide-badge {
    animation: floatBadge 3.5s ease-in-out infinite;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.95), rgba(217, 119, 6, 0.95));
}

.hero-slider-wrap .btn-primary {
    animation: pulseGlow 3s infinite;
    position: relative;
    overflow: hidden;
}

.hero-slider-wrap .btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: rotate(30deg) translateY(-100%);
    transition: transform 0.6s ease;
}

.hero-slider-wrap .btn-primary:hover::after {
    transform: rotate(30deg) translateY(100%);
}

/* 3. Welcome Card Dynamic Touches */
.welcome-card {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: #ffffff;
}

.welcome-card:hover {
    box-shadow: 0 16px 36px -6px rgba(10, 37, 64, 0.12), 0 0 0 1px rgba(30, 58, 138, 0.1);
    transform: translateY(-3px);
}

.welcome-title {
    background: linear-gradient(135deg, #0a2540 0%, #1e3a8a 60%, #0d9488 100%);
    box-shadow: 0 4px 14px rgba(10, 37, 64, 0.18);
    position: relative;
    overflow: hidden;
}

.welcome-title span:first-child {
    display: inline-block;
    animation: floatBadge 3s ease-in-out infinite;
}

/* 4. Principal's Quote Card Lift & Photo Zoom */
.principal-card {
    transition: all 0.32s ease;
    background: linear-gradient(to right, #ffffff, #fafafa);
    position: relative;
    overflow: hidden;
}

.principal-card:hover {
    box-shadow: 0 16px 32px -6px rgba(217, 119, 6, 0.18), 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-4px);
    border-left-color: #f59e0b !important;
}

.principal-card img {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.principal-card:hover img {
    transform: scale(1.06);
    box-shadow: 0 0 20px rgba(217, 119, 6, 0.45);
}

/* 5. Course Cards Interactive Lift & Color Strip */
.course-card {
    position: relative;
    border-top: 4px solid var(--primary-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    background: #ffffff;
}

.course-card:nth-child(1) {
    border-top-color: #2563eb; /* Arts: Royal Blue */
}

.course-card:nth-child(2) {
    border-top-color: #d97706; /* ITEP: Warm Gold */
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 32px -8px rgba(10, 37, 64, 0.15);
}

.course-card:nth-child(1):hover {
    border-top-color: #1d4ed8;
}

.course-card:nth-child(2):hover {
    border-top-color: #b45309;
}

/* 6. Feature Highlights (4 Distinct Curated Themes) */
.feature-box {
    transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Feature 1: Library & Labs (Indigo/Violet) */
.grid-2 > .feature-box:nth-child(1) .feature-icon {
    background: #e0e7ff;
    color: #4338ca;
}
.grid-2 > .feature-box:nth-child(1)::before {
    background: #4f46e5;
}
.grid-2 > .feature-box:nth-child(1):hover {
    box-shadow: 0 14px 28px -6px rgba(79, 70, 229, 0.2);
}

/* Feature 2: Bus & Clean Campus (Teal/Emerald) */
.grid-2 > .feature-box:nth-child(2) .feature-icon {
    background: #ccfbf1;
    color: #0f766e;
}
.grid-2 > .feature-box:nth-child(2)::before {
    background: #0d9488;
}
.grid-2 > .feature-box:nth-child(2):hover {
    box-shadow: 0 14px 28px -6px rgba(13, 148, 136, 0.2);
}

/* Feature 3: State Scholarships (Amber/Gold) */
.grid-2 > .feature-box:nth-child(3) .feature-icon {
    background: #fef3c7;
    color: #b45309;
}
.grid-2 > .feature-box:nth-child(3)::before {
    background: #d97706;
}
.grid-2 > .feature-box:nth-child(3):hover {
    box-shadow: 0 14px 28px -6px rgba(217, 119, 6, 0.2);
}

/* Feature 4: Regulatory Transparency (Rose/Ruby) */
.grid-2 > .feature-box:nth-child(4) .feature-icon {
    background: #ffe4e6;
    color: #be123c;
}
.grid-2 > .feature-box:nth-child(4)::before {
    background: #e11d48;
}
.grid-2 > .feature-box:nth-child(4):hover {
    box-shadow: 0 14px 28px -6px rgba(225, 29, 72, 0.2);
}

.feature-box .feature-icon {
    transition: transform 0.3s ease;
}

.feature-box:hover .feature-icon {
    transform: translateY(-4px) scale(1.1) rotate(3deg);
}

/* 7. Stats Counter Strip Glow & Glass Cards */
.stats-strip {
    background: radial-gradient(circle at 15% 50%, rgba(217, 119, 6, 0.24) 0%, transparent 60%),
                radial-gradient(circle at 85% 50%, rgba(13, 148, 136, 0.26) 0%, transparent 60%),
                linear-gradient(135deg, #07192c 0%, #0a2540 50%, #1e3a8a 100%);
    border-top: 3px solid var(--accent);
    border-bottom: 3px solid var(--accent);
    position: relative;
    overflow: hidden;
}

.stat-item {
    padding: 16px;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    transform: translateY(-4px);
}

.stat-number {
    background: linear-gradient(135deg, #fef08a 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.35));
}

/* 8. Leadership Cards Hover Zoom */
.leader-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.leader-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px -10px rgba(10, 37, 64, 0.2);
}

.leader-avatar {
    transition: transform 0.35s ease, border-color 0.35s ease;
}

.leader-card:hover .leader-avatar {
    transform: scale(1.05);
    border-color: #f59e0b;
}

/* 9. Animated CTA Strip */
.cta-banner-strip {
    background: linear-gradient(135deg, #0a2540, #1e3a8a, #0f766e, #0a2540);
    background-size: 300% 300%;
    animation: gradientMesh 12s ease infinite alternate;
    color: white;
    padding: 48px 0;
    position: relative;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.15);
}

.cta-banner-strip .btn-primary {
    animation: pulseGlow 2.5s infinite;
}

/* 10. GLOBAL POLISH FOR OTHER PAGES (Academic & Harmonious) */
.page-banner {
    background: linear-gradient(135deg, rgba(7, 25, 44, 0.94) 0%, rgba(30, 58, 138, 0.88) 100%), 
                url('../../images/slide/01.jpg') center/cover no-repeat;
    position: relative;
    border-bottom: 4px solid var(--accent);
}

.page-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(254, 240, 138, 0.6), transparent);
}

.breadcrumbs {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    margin-top: 10px;
}

.breadcrumbs span:last-child {
    color: #fef08a;
    font-weight: 600;
}

/* Tables Header Styling for Disclosure, Results & Schedule Pages */
table thead th {
    background: linear-gradient(135deg, #0a2540 0%, #1e3a8a 100%);
    color: #ffffff !important;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-top: none;
}

/* Modern Input Focus Rings for Admission, Contact, Career Forms */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.15) !important;
    outline: none;
}

/* ==========================================================================
   ADMISSION HELPLINE CALL CARD (DIALER TRIGGER)
   ========================================================================== */
.helpline-box {
    text-align: center;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 14px;
}

.helpline-subtitle {
    display: block;
    font-size: 13px;
    color: #475569;
    font-weight: 600;
    margin-bottom: 6px;
}

.helpline-phone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1.5px solid #93c5fd;
    border-radius: var(--radius-md);
    padding: 11px 14px;
    margin: 8px 0 10px 0;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.1);
    -webkit-tap-highlight-color: rgba(37, 99, 235, 0.25);
    user-select: none;
}

.helpline-phone:hover,
.helpline-phone:active {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    border-color: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
}

.helpline-phone-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.helpline-icon {
    font-size: 20px;
    display: inline-block;
    transition: transform 0.25s ease;
}

.helpline-number {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #1e3a8a;
    letter-spacing: 0.5px;
    transition: color 0.25s ease;
}

.helpline-phone:hover .helpline-number,
.helpline-phone:active .helpline-number {
    color: #ffffff;
}

.helpline-phone:hover .helpline-icon,
.helpline-phone:active .helpline-icon {
    transform: scale(1.15) rotate(-8deg);
}

.helpline-tap-hint {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    background: rgba(255, 255, 255, 0.85);
    padding: 2px 10px;
    border-radius: 9999px;
    margin-top: 2px;
    transition: all 0.25s ease;
}

.helpline-phone:hover .helpline-tap-hint,
.helpline-phone:active .helpline-tap-hint {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.helpline-timing {
    font-size: 12.5px;
    color: #64748b;
    margin-bottom: 12px;
}

