/* ============================================================
   SUNAV Maritime Academy — Complete Stylesheet
   ============================================================ */

/* ── CSS Variables ── */
:root {
    --navy:        #0d2137;
    --navy-mid:    #1a3a5c;
    --navy-light:  #1e4976;
    --brand-blue:  #295a9a;
    --brand-blue-dark: #1f4478;
    --brand-ink:   #252a33;
    --brand-mist:  #f2f6fd;
    --blue:        #1565c0;
    --sky:         #1e88e5;
    --gold:        #c9a84c;
    --gold-light:  #e8c96a;
    --gold-dark:   #a8872e;
    --teal:        #00838f;
    --white:       #ffffff;
    --off-white:   #f4f8fc;
    --light-blue:  #eef4fb;
    --text:        #2d3748;
    --text-muted:  #718096;
    --border:      #e2e8f0;
    --shadow-sm:   0 2px 8px rgba(0,0,0,0.08);
    --shadow-md:   0 8px 24px rgba(0,0,0,0.12);
    --shadow-lg:   0 20px 50px rgba(0,0,0,0.16);
    --radius-sm:   8px;
    --radius-md:   16px;
    --radius-lg:   24px;
    --transition:  all 0.3s ease;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; transition: var(--transition); }
ul { list-style: none; padding: 0; margin: 0; }

.section-padding { padding: 90px 0; }

/* ── Typography helpers ── */
.text-gold  { color: var(--gold) !important; }
.text-navy  { color: var(--navy) !important; }
.text-white-60 { color: rgba(255,255,255,0.65); }
.section-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.6rem;
    position: relative;
    padding-left: 36px;
}
.section-label::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    width: 28px; height: 2px;
    background: var(--gold);
    transform: translateY(-50%);
}
.section-heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.25;
    margin-bottom: 1rem;
}
.section-sub {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 580px;
    margin: 0 auto;
}

/* ── Buttons ── */
.btn { border-radius: 50px; font-weight: 600; letter-spacing: 0.5px; transition: var(--transition); border: none; padding: 12px 28px; }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--navy); }
.btn-gold:hover { background: linear-gradient(135deg, var(--gold-dark), var(--gold)); color: var(--navy); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(201,168,76,0.4); }
.btn-navy { background: linear-gradient(135deg, var(--navy), var(--navy-mid)); color: #fff; }
.btn-navy:hover { background: linear-gradient(135deg, var(--navy-mid), var(--navy-light)); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(13,33,55,0.35); }
.btn-outline-navy { border: 2px solid var(--navy); color: var(--navy); background: transparent; }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }
.btn-outline-gold { border: 2px solid var(--gold); color: var(--gold); background: transparent; }
.btn-outline-gold:hover { background: var(--gold); color: var(--navy); }
.btn-outline-white { border: 2px solid rgba(255,255,255,0.8); color: #fff; background: transparent; }
.btn-outline-white:hover { background: #fff; color: var(--navy); }
.btn-glass { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.3); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255,255,255,0.25); color: #fff; }
.nav-cta { background: linear-gradient(135deg, var(--gold), var(--gold-light)) !important; color: var(--navy) !important; padding: 9px 22px !important; font-size: 0.9rem; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(201,168,76,0.4); }

/* ============================================================
   PRELOADER
   ============================================================ */
#preloader {
    position: fixed; inset: 0;
    background: var(--navy);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.hide { opacity: 0; visibility: hidden; }
.preloader-inner { text-align: center; }
.anchor-spinner {
    font-size: 3rem; color: var(--gold);
    animation: anchorSpin 2s ease-in-out infinite;
    display: inline-block; margin-bottom: 1rem;
}
@keyframes anchorSpin {
    0%,100% { transform: rotate(-15deg); }
    50%      { transform: rotate(15deg); }
}
.preloader-text {
    color: #fff; font-size: 1rem; font-weight: 600;
    letter-spacing: 2px; margin-bottom: 1.2rem;
}
.preloader-wave { display: flex; gap: 6px; justify-content: center; }
.preloader-wave span {
    width: 8px; height: 30px;
    background: var(--gold);
    border-radius: 4px;
    animation: wave 1.2s ease-in-out infinite;
}
.preloader-wave span:nth-child(1) { animation-delay: 0s; }
.preloader-wave span:nth-child(2) { animation-delay: 0.15s; }
.preloader-wave span:nth-child(3) { animation-delay: 0.3s; }
.preloader-wave span:nth-child(4) { animation-delay: 0.45s; }
.preloader-wave span:nth-child(5) { animation-delay: 0.6s; }
@keyframes wave {
    0%,100% { transform: scaleY(0.4); opacity: 0.5; }
    50%      { transform: scaleY(1); opacity: 1; }
}

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
    background: linear-gradient(135deg, var(--brand-ink) 0%, var(--brand-blue-dark) 55%, var(--brand-blue) 100%);
    padding: 8px 0;
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.top-bar-left a {
    color: rgba(255,255,255,0.92);
    margin-right: 6px;
}
.top-bar-left a:hover { color: #dce8fb; }
.top-bar-left i { margin-right: 5px; color: #dce8fb; }
.top-bar-left .divider { color: rgba(255,255,255,0.38); margin: 0 8px; }
.top-bar-right { display: flex; align-items: center; justify-content: flex-end; }
.dg-badge {
    background: rgba(255,255,255,0.95);
    color: var(--brand-blue-dark);
    padding: 3px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
    white-space: nowrap;
}
.dg-badge i { margin-right: 4px; }
.social-links { display: flex; gap: 8px; }
.social-links a {
    width: 26px; height: 26px;
    background: rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.92);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.72rem;
}
.social-links a:hover { background: #ffffff; color: var(--brand-blue); }

/* ============================================================
   NAVBAR
   ============================================================ */
#mainNavbar {
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(242,246,253,0.97) 100%) !important;
    backdrop-filter: blur(12px);
    padding: 14px 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(41,90,154,0.12);
    box-shadow: 0 10px 28px rgba(31,68,120,0.08);
}
#mainNavbar.scrolled {
    padding: 8px 0;
    box-shadow: var(--shadow-md);
}
.brand-logo { display: flex; align-items: center; gap: 12px; }
.brand-logo img {
    width: clamp(170px, 18vw, 240px);
    height: auto;
    display: block;
}
.logo-circle {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    color: var(--navy);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(201,168,76,0.4);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
    font-size: 1.3rem; font-weight: 800;
    color: #fff; letter-spacing: 2px;
}
.brand-sub {
    font-size: 0.65rem; color: var(--gold);
    letter-spacing: 1.5px; text-transform: uppercase;
}
.navbar-nav .nav-link {
    color: var(--brand-blue-dark) !important;
    font-weight: 500; font-size: 0.9rem;
    padding: 8px 14px !important;
    position: relative;
}
.navbar-nav .nav-link::after {
    content: ''; position: absolute;
    bottom: 4px; left: 14px;
    width: 0; height: 2px;
    background: var(--brand-blue);
    transition: width 0.3s ease;
}
.navbar-nav .nav-link:hover { color: var(--brand-blue) !important; }
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { width: calc(100% - 28px); }
.navbar-nav .nav-link.active { color: var(--brand-blue) !important; }
.navbar-toggler {
    border-color: rgba(41,90,154,0.22);
    padding: 0.45rem 0.65rem;
}
.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(41,90,154,0.15);
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2831,68,120,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.dropdown-menu {
    background: #ffffff;
    border: 1px solid rgba(41,90,154,0.12);
    border-radius: var(--radius-sm);
    padding: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 230px;
}
.dropdown-item {
    color: var(--brand-blue-dark);
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 0.88rem;
    transition: var(--transition);
}
.dropdown-item:hover,
.dropdown-item:focus { background: rgba(41,90,154,0.08); color: var(--brand-blue); }
.dropdown-item i { width: 20px; color: var(--brand-blue); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex; align-items: center;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(13,33,55,0.96) 0%, rgba(21,101,192,0.82) 60%, rgba(0,131,143,0.76) 100%);
    isolation: isolate;
}
.hero-video-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.hero-slides {
    position: absolute;
    inset: 0;
}
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.04);
    animation: heroSlideshow 18s ease-in-out infinite;
    will-change: opacity, transform;
}
.hero-slide-1 {
    background-image: url('../images/facilities/sunav-building1.webp');
    background-position: center center;
    opacity: 1;
    animation-delay: 0s;
}
.hero-slide-2 {
    background-image: url('../images/facilities/sunav-building2.webp');
    background-position: center 42%;
    animation-delay: 6s;
}
.hero-slide-3 {
    background-image: url('../images/facilities/sunav-building3.webp');
    background-position: center 38%;
    animation-delay: 12s;
}
@keyframes heroSlideshow {
    0% {
        opacity: 1;
        transform: scale(1.05);
    }
    6%,
    28% {
        opacity: 1;
        transform: scale(1.02);
    }
    33%,
    100% {
        opacity: 0;
        transform: scale(1.1);
    }
}
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(110deg, rgba(13,33,55,0.82) 8%, rgba(13,33,55,0.44) 44%, rgba(13,33,55,0.78) 100%),
        radial-gradient(circle at 18% 22%, rgba(232,201,106,0.16) 0%, rgba(232,201,106,0.04) 24%, transparent 52%),
        linear-gradient(180deg, rgba(9,22,37,0.18) 0%, rgba(9,22,37,0.58) 100%);
}
@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        animation: none;
        transform: none;
    }
    .hero-slide:not(.hero-slide-1) {
        display: none;
    }
}
.hero-particles {
    position: absolute; inset: 0;
    z-index: 2;
    overflow: hidden;
}
.hero-waves {
    position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
}
.hero-waves svg { width: 100%; display: block; }

.hero .container { position: relative; z-index: 3; }

.hero-badge {
    display: inline-block;
    background: rgba(201,168,76,0.18);
    border: 1px solid rgba(201,168,76,0.4);
    color: var(--gold-light);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
}
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1.2rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.82);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 3.5rem; }
.hero-scroll {
    display: flex; flex-direction: column; align-items: center;
    gap: 8px; color: rgba(255,255,255,0.5); font-size: 0.78rem;
    letter-spacing: 2px; text-transform: uppercase;
}
.scroll-mouse {
    width: 26px; height: 42px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 13px;
    display: flex; justify-content: center; padding-top: 6px;
}
.scroll-wheel {
    width: 4px; height: 8px;
    background: rgba(255,255,255,0.6);
    border-radius: 2px;
    animation: scrollWheel 1.8s ease-in-out infinite;
}
@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(14px); opacity: 0; }
}

/* ============================================================
   ANNOUNCEMENT TICKER
   ============================================================ */
.announcement-bar {
    background: linear-gradient(90deg, var(--navy-mid), var(--blue));
    padding: 10px 0;
    overflow: hidden;
}
.ticker-wrapper { display: flex; align-items: center; overflow: hidden; }
.ticker-label {
    background: var(--gold);
    color: var(--navy);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 4px 16px;
    border-radius: 4px;
    white-space: nowrap;
    margin-right: 20px;
    flex-shrink: 0;
    letter-spacing: 1px;
}
.ticker-content { overflow: hidden; flex: 1; }
.ticker-items {
    display: flex; gap: 60px;
    animation: ticker 28s linear infinite;
    white-space: nowrap;
}
.ticker-items span { color: rgba(255,255,255,0.9); font-size: 0.88rem; }
.ticker-items .text-gold { color: var(--gold-light); }
@keyframes ticker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================================
   STATS SECTION
   ============================================================ */
.stats-section {
    background: linear-gradient(135deg, var(--navy), var(--navy-mid));
    padding: 0;
}
.stat-item {
    text-align: center;
    padding: 44px 20px;
    position: relative;
    border-right: 1px solid rgba(255,255,255,0.08);
}
.stat-item:last-child { border-right: none; }
.stat-icon { font-size: 1.8rem; color: var(--gold); margin-bottom: 10px; opacity: 0.8; }
.stat-number {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    line-height: 1;
    display: inline-block;
}
.stat-plus { font-size: 1.6rem; font-weight: 700; color: var(--gold); display: inline-block; }
.stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.6); margin-top: 6px; letter-spacing: 1px; text-transform: uppercase; }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-image-wrapper {
    position: relative;
    padding: 0 20px 60px 0;
}
.about-img-main {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    height: 460px;
    display: block;
}
.about-img-badge {
    position: absolute; bottom: 30px; left: 20px;
}
.badge-circle {
    width: 110px; height: 110px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    border-radius: 50%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: var(--navy); font-weight: 700;
    font-size: 0.72rem; line-height: 1.3;
    box-shadow: 0 10px 30px rgba(201,168,76,0.45);
    border: 4px solid #fff;
    text-align: center;
}
.badge-circle i { font-size: 1.3rem; margin-bottom: 2px; }
.badge-circle span { font-size: 0.65rem; opacity: 0.8; }
.badge-circle strong { font-size: 1.5rem; line-height: 1; }
.about-img-card {
    position: absolute; top: 24px; right: -4px;
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    box-shadow: var(--shadow-lg);
    display: flex; align-items: center; gap: 12px;
    font-size: 0.82rem; font-weight: 600; color: var(--navy);
    border-left: 4px solid var(--gold);
    min-width: 170px;
}
.about-img-card i { font-size: 1.5rem; color: var(--gold); }

.section-para { color: var(--text-muted); margin-bottom: 1rem; }

.about-tabs { border-bottom: 2px solid var(--border); margin-top: 1.8rem; }
.about-tabs .nav-link {
    color: var(--text-muted); font-weight: 500; font-size: 0.9rem;
    padding: 10px 18px; border: none; background: none;
    border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.about-tabs .nav-link.active { color: var(--navy); border-bottom-color: var(--gold); }
.about-tab-content {
    padding: 18px 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}
.values-list { padding: 0; }
.values-list li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 0.9rem; }
.values-list li i { font-size: 1rem; flex-shrink: 0; }

.about-features { display: flex; gap: 20px; margin-top: 1.8rem; flex-wrap: wrap; }
.about-feature {
    display: flex; align-items: center; gap: 12px;
    background: var(--light-blue);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    flex: 1; min-width: 140px;
}
.af-icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--navy), var(--blue));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold); font-size: 1rem;
    flex-shrink: 0;
}
.about-feature strong { font-size: 0.85rem; color: var(--navy); }
.about-feature small { color: var(--text-muted); font-size: 0.75rem; }

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.bg-navy-light { background: linear-gradient(135deg, var(--navy), var(--navy-mid)); }
.why-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    transition: var(--transition);
    height: 100%;
}
.why-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(201,168,76,0.4);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.why-icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: var(--navy);
    margin-bottom: 1.2rem;
    transition: var(--transition);
}
.why-card:hover .why-icon { transform: rotate(8deg) scale(1.05); }
.why-card h5 { color: #fff; font-weight: 600; margin-bottom: 0.8rem; font-size: 1.05rem; }
.why-card p { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin: 0; }

/* ============================================================
   COURSES SECTION
   ============================================================ */
.course-card-new {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    height: 100%;
    display: flex; flex-direction: column;
    position: relative;
}
.course-card-new:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.course-card-new.featured {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(201,168,76,0.2), var(--shadow-md);
}
.cc-featured-badge {
    position: absolute; top: 16px; right: 16px;
    background: var(--gold);
    color: var(--navy);
    font-size: 0.72rem; font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 1px;
    z-index: 2;
}
.cc-header {
    padding: 32px 28px 20px;
    display: flex; flex-direction: column;
    align-items: flex-start; gap: 12px;
    position: relative;
}
.cc-blue  { background: linear-gradient(135deg, #0d2137 0%, #1565c0 100%); }
.cc-gold  { background: linear-gradient(135deg, #8c6520 0%, #c9a84c 100%); }
.cc-teal  { background: linear-gradient(135deg, #00515a 0%, #00838f 100%); }
.cc-icon {
    width: 60px; height: 60px;
    background: rgba(255,255,255,0.15);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; color: #fff;
}
.cc-badge {
    font-size: 0.72rem; color: rgba(255,255,255,0.75);
    font-weight: 500; letter-spacing: 1px; text-transform: uppercase;
}
.cc-body { padding: 24px 28px; flex: 1; }
.cc-title { font-size: 1.25rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.cc-meta { display: flex; gap: 16px; margin-bottom: 14px; }
.cc-meta span { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }
.cc-meta i { margin-right: 5px; color: var(--gold); }
.cc-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; line-height: 1.6; }
.cc-highlights { margin-bottom: 18px; }
.cc-highlights li { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 0.87rem; color: var(--text); border-bottom: 1px dashed var(--border); }
.cc-highlights li:last-child { border-bottom: none; }
.cc-highlights li i { color: #22c55e; font-size: 0.8rem; flex-shrink: 0; }
.cc-career strong { font-size: 0.82rem; color: var(--navy); display: block; margin-bottom: 8px; }
.career-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.career-tags span {
    background: var(--light-blue);
    color: var(--navy-mid);
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 0.75rem; font-weight: 500;
}
.cc-footer { padding: 18px 28px; border-top: 1px solid var(--border); }

/* ============================================================
   ADMISSION PROCESS
   ============================================================ */
.admission-section {
    background: linear-gradient(160deg, var(--navy) 0%, var(--blue) 60%, var(--teal) 100%);
    position: relative;
    overflow: hidden;
}
.admission-section::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.admission-step {
    text-align: center;
    padding: 36px 24px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-md);
    transition: var(--transition);
    position: relative;
}
.admission-step:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-6px);
}
.step-number {
    font-size: 3.5rem; font-weight: 800;
    color: rgba(255,255,255,0.06);
    position: absolute; top: 14px; right: 18px;
    line-height: 1;
    font-family: 'Playfair Display', serif;
}
.step-icon {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; color: var(--navy);
    margin: 0 auto 1.2rem;
    box-shadow: 0 8px 20px rgba(201,168,76,0.3);
}
.admission-step h5 { color: #fff; font-weight: 600; margin-bottom: 0.8rem; }
.admission-step p { color: rgba(255,255,255,0.65); font-size: 0.9rem; margin: 0; }

/* Admission Announcement Banner */
.adm-announcement {
    display: flex;
    align-items: center;
    gap: 18px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(212,175,55,0.35);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius-md);
    padding: 18px 26px;
    margin-bottom: 2.8rem;
    backdrop-filter: blur(6px);
    animation: annPulse 3s ease-in-out infinite;
}
@keyframes annPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212,175,55,0); }
    50%       { box-shadow: 0 0 0 6px rgba(212,175,55,0.08); }
}
.adm-ann-icon {
    font-size: 1.7rem;
    color: var(--gold);
    flex-shrink: 0;
    animation: annBounce 1.8s ease-in-out infinite;
}
@keyframes annBounce {
    0%, 100% { transform: rotate(-8deg); }
    50%       { transform: rotate(8deg); }
}
.adm-ann-text {
    color: rgba(255,255,255,0.88);
    font-size: 0.95rem;
    line-height: 1.65;
}
.adm-ann-text strong { color: #fff; }
.adm-ann-partner {
    display: inline-block;
    background: linear-gradient(90deg, var(--gold), #f5d57a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.5em;
    margin-left: 3px;
    white-space: nowrap;
}

/* Admission Form Card */
.admission-form-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.adm-info {
    background: linear-gradient(160deg, var(--navy), var(--navy-mid));
    padding: 36px 32px;
    height: 100%;
    color: #fff;
}
.adm-info h4 { color: #fff; margin-bottom: 0.8rem; }
.adm-info p { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-bottom: 1.8rem; }
.adm-contact-items { margin-bottom: 1.8rem; }
.adm-contact-item {
    display: flex; align-items: flex-start; gap: 14px;
    margin-bottom: 16px;
}
.adm-contact-item i {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: var(--gold);
    flex-shrink: 0;
}
.adm-contact-item strong { font-size: 0.8rem; color: rgba(255,255,255,0.6); display: block; }
.adm-contact-item a { color: #fff; font-size: 0.9rem; font-weight: 500; }
.adm-contact-item a:hover { color: var(--gold); }
.adm-docs strong { font-size: 0.82rem; color: rgba(255,255,255,0.6); display: block; margin-bottom: 8px; }
.adm-docs ul { padding-left: 0; }
.adm-docs ul li { color: rgba(255,255,255,0.8); font-size: 0.85rem; padding: 4px 0; padding-left: 16px; position: relative; }
.adm-docs ul li::before { content: '•'; position: absolute; left: 0; color: var(--gold); }
.adm-form { padding: 36px 32px; }
.adm-form .form-label { font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.adm-form .form-control,
.adm-form .form-select {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.9rem;
    transition: var(--transition);
}
.adm-form .form-control:focus,
.adm-form .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}

/* ============================================================
   FACILITIES SECTION
   ============================================================ */
.facility-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}
.facility-card::before {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.facility-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.facility-card:hover::before { transform: scaleX(1); }
.fc-icon {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, var(--light-blue), #dce8f7);
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; color: var(--navy);
    margin: 0 auto 1.2rem;
    transition: var(--transition);
}
.facility-card:hover .fc-icon {
    background: linear-gradient(135deg, var(--navy), var(--blue));
    color: var(--gold);
    transform: rotate(-5deg) scale(1.05);
}
.facility-card h5 { font-weight: 700; color: var(--navy); margin-bottom: 0.7rem; font-size: 0.95rem; }
.facility-card p { color: var(--text-muted); font-size: 0.88rem; margin: 0; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-section {
    background: linear-gradient(135deg, var(--navy), var(--navy-mid));
    padding: 90px 0;
}
.testimonial-swiper { padding: 20px 10px 60px; }
.testimonial-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-md);
    padding: 36px 32px;
}
.tc-quote { font-size: 2rem; color: var(--gold); opacity: 0.6; margin-bottom: 14px; }
.testimonial-card > p { color: rgba(255,255,255,0.8); font-size: 0.95rem; line-height: 1.8; margin-bottom: 24px; font-style: italic; }
.tc-author { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.tc-avatar {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: var(--navy);
    flex-shrink: 0;
}
.tc-author strong { color: #fff; font-size: 0.95rem; display: block; }
.tc-author small { color: rgba(255,255,255,0.5); font-size: 0.8rem; }
.tc-stars { color: var(--gold); font-size: 0.9rem; }
.swiper-pagination-bullet { background: rgba(255,255,255,0.4); }
.swiper-pagination-bullet-active { background: var(--gold); }
.swiper-button-prev, .swiper-button-next { color: var(--gold) !important; }
.swiper-button-prev::after, .swiper-button-next::after { font-size: 1.2rem !important; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-filters { margin-bottom: 30px; }
.gf-btn {
    background: none;
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    padding: 8px 22px;
    border-radius: 30px;
    margin: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.gf-btn:hover, .gf-btn.active {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-flow: dense;
    grid-auto-rows: 210px;
    gap: 14px;
}
.gallery-item {
    position: relative; overflow: hidden;
    border-radius: var(--radius-sm);
    display: block;
    background: var(--off-white);
}
/* Large hero image — top-left */
.gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(13,33,55,0.85) 0%, rgba(13,33,55,0.1) 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex; flex-direction: column;
    align-items: center; justify-content: flex-end;
    padding: 22px;
    color: #fff;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { font-size: 1.6rem; margin-bottom: 8px; color: var(--gold); }
.gallery-overlay span { font-size: 0.88rem; font-weight: 600; letter-spacing: 0.5px; }
.gallery-item.hidden { display: none; }

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.bg-light-blue { background: var(--light-blue); }
.contact-info-box {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 36px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    height: fit-content;
}
.contact-info-box h5 { color: var(--navy); font-weight: 700; }
.ci-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.ci-icon {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--navy), var(--blue));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold); font-size: 1rem;
    flex-shrink: 0;
}
.ci-item strong { font-size: 0.82rem; color: var(--text-muted); display: block; margin-bottom: 2px; }
.ci-item a { color: var(--navy); font-weight: 500; }
.ci-item a:hover { color: var(--gold); }
.social-contact-links { display: flex; gap: 10px; flex-wrap: wrap; }
.sc-btn {
    width: 40px; height: 40px;
    background: var(--light-blue);
    color: var(--navy);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
}
.sc-btn:hover { background: var(--navy); color: var(--gold); }
.sc-btn.whatsapp:hover { background: #25d366; color: #fff; }
.map-wrapper { position: relative; }
.map-directions-btn {
    display: inline-flex; align-items: center;
    margin-top: 12px;
    background: var(--navy);
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 500;
}
.map-directions-btn:hover { background: var(--blue); color: #fff; }

.contact-form-box {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.contact-form-box h5 { color: var(--navy); font-weight: 700; }
.contact-form-box .form-label { font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.contact-form-box .form-control,
.contact-form-box .form-select {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-size: 0.9rem;
    transition: var(--transition);
}
.contact-form-box .form-control:focus,
.contact-form-box .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}
#formFeedback .alert { border-radius: var(--radius-sm); font-size: 0.9rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer-main { background: #050f1c; }
.footer-top { padding: 70px 0 50px; }
.footer-brand { }
.fb-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.logo-circle-sm {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: var(--navy);
    flex-shrink: 0;
}
.fb-name { font-size: 1.2rem; font-weight: 800; color: #fff; letter-spacing: 2px; line-height: 1; }
.fb-sub { font-size: 0.65rem; color: var(--gold); letter-spacing: 1px; text-transform: uppercase; }
.footer-desc { color: rgba(255,255,255,0.5); font-size: 0.88rem; line-height: 1.7; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 10px; margin-bottom: 20px; }
.footer-socials a {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.6);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
    transition: var(--transition);
}
.footer-socials a:hover { background: var(--gold); color: var(--navy); }
.footer-cert-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(201,168,76,0.1);
    border: 1px solid rgba(201,168,76,0.2);
    color: var(--gold-light);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
}
.footer-heading {
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: rgba(255,255,255,0.55);
    font-size: 0.88rem;
    display: flex; align-items: center; gap: 8px;
}
.footer-links a i { font-size: 0.7rem; color: var(--gold); }
.footer-links a:hover { color: var(--gold); padding-left: 4px; }
.footer-links li:not(:has(a)) { color: rgba(255,255,255,0.4); font-size: 0.88rem; display: flex; align-items: center; gap: 8px; }
.footer-links i { color: var(--gold); }
.footer-contact { }
.footer-contact li {
    display: flex; align-items: flex-start; gap: 12px;
    color: rgba(255,255,255,0.55);
    font-size: 0.88rem;
    margin-bottom: 12px;
}
.footer-contact li i { color: var(--gold); margin-top: 3px; flex-shrink: 0; }
.footer-contact a { color: rgba(255,255,255,0.7); }
.footer-contact a:hover { color: var(--gold); }
.footer-newsletter .form-control {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    border-radius: 30px 0 0 30px;
    padding: 10px 18px;
    font-size: 0.88rem;
}
.footer-newsletter .form-control::placeholder { color: rgba(255,255,255,0.35); }
.footer-newsletter .form-control:focus { background: rgba(255,255,255,0.12); border-color: var(--gold); box-shadow: none; }
.footer-newsletter .btn { border-radius: 0 30px 30px 0; padding: 10px 18px; }
.footer-bottom {
    background: rgba(0,0,0,0.3);
    padding: 18px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-bottom p { color: rgba(255,255,255,0.4); font-size: 0.82rem; margin: 0; }
.footer-bottom strong { color: var(--gold-light); }

/* ============================================================
   FLOATING BUTTONS
   ============================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 28px; left: 28px;
    width: 56px; height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; color: #fff;
    box-shadow: 0 6px 20px rgba(37,211,102,0.45);
    z-index: 999;
    transition: var(--transition);
}
.whatsapp-float:hover { background: #1da851; color: #fff; transform: scale(1.1); }
.wa-tooltip {
    position: absolute;
    left: 68px;
    background: #fff;
    color: var(--text);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}
.whatsapp-float:hover .wa-tooltip { opacity: 1; }
.scroll-top-btn {
    position: fixed; bottom: 28px; right: 28px;
    width: 46px; height: 46px;
    background: var(--navy);
    color: var(--gold);
    border: none; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0; transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}
.scroll-top-btn.visible { opacity: 1; transform: translateY(0); }
.scroll-top-btn:hover { background: var(--gold); color: var(--navy); transform: translateY(-3px); }

/* ============================================================
   SUCCESS MODAL
   ============================================================ */
.success-icon { font-size: 4rem; color: #22c55e; }
.modal-content { border-radius: var(--radius-md); border: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
    .top-bar { display: none; }
    #mainNavbar { background: linear-gradient(135deg, rgba(255,255,255,0.99) 0%, rgba(242,246,253,0.99) 100%) !important; }
    /* Gallery: 2-col layout on tablet */
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 190px;
    }
    .gallery-item:nth-child(1) {
        grid-column: 1 / 3;
        grid-row: span 2;
    }
    .about-img-main { height: 340px; }
    .about-img-card { right: 10px; }
    .stats-section .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .stats-section .col-6:nth-child(odd) .stat-item { border-right: 1px solid rgba(255,255,255,0.08); }
}
@media (max-width: 767.98px) {
    .section-padding { padding: 60px 0; }
    .brand-logo img { width: clamp(140px, 42vw, 190px); }
    .hero-slide-1 { background-position: 56% center; }
    .hero-slide-2 { background-position: 58% 42%; }
    .hero-slide-3 { background-position: 62% 40%; }
    .hero-actions { gap: 10px; }
    .hero-actions .btn { font-size: 0.88rem; padding: 11px 20px; }
    /* Gallery: stacked on mobile */
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 150px;
    }
    .gallery-item:nth-child(1) {
        grid-column: 1 / 3;
        grid-row: span 2;
    }
    .about-image-wrapper { padding: 0 0 50px 0; }
    .about-img-card { right: 8px; top: 12px; }
    .about-features { flex-direction: column; }
    .adm-info { padding: 28px 24px; }
    .adm-form { padding: 28px 24px; }
    .contact-form-box { padding: 28px 24px; }
    .footer-top { padding: 50px 0 30px; }
    .ticker-items { animation-duration: 18s; }
}
@media (max-width: 575.98px) {
    .hero-title { font-size: 2rem; }
    .stat-item { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .about-img-main { height: 260px; }
    .badge-circle { width: 90px; height: 90px; }
}


/* ── jQuery Validate — error & success field styles ── */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12) !important;
    background-image: none !important;
}
.form-control.is-valid,
.form-select.is-valid {
    border-color: #198754 !important;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.10) !important;
    background-image: none !important;
}
div.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.78rem;
    margin-top: 5px;
    font-weight: 500;
}
div.invalid-feedback::before {
    content: '\f071';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 5px;
    font-size: 0.72rem;
}
/* Category grid highlight on error */
#categoryGrid.grid-error {
    outline: 2px solid #dc3545;
    border-radius: 10px;
    outline-offset: 3px;
}
/* Checkbox error */
.form-check .invalid-feedback { margin-top: 4px; }

/* ── Inner Page Hero ── */
.page-hero {
    padding: 40px 0 80px;
    position: relative;
    overflow: hidden;
    /* default fallback */
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, var(--teal) 100%);
}
.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}

/* Grievance page hero — Justice/Integrity (navy + deep green) */
.page-hero.hero-grievance {
    background: linear-gradient(140deg, #0a1628 0%, #0d2137 50%, #0a3520 100%);
}

/* Terms page hero — Legal/Authority (navy + deep indigo) */
.page-hero.hero-terms {
    background: linear-gradient(140deg, #16063a 0%, #0d2137 50%, #001966 100%);
}

/* Privacy page hero — Security/Trust (deep teal-ocean) */
.page-hero.hero-privacy {
    background: linear-gradient(140deg, #003040 0%, #004d5c 50%, #006654 100%);
}

/* Shared page-hero elements */
.ph-watermark {
    position: absolute;
    right: 6%; top: 50%;
    transform: translateY(-50%);
    font-size: 260px;
    opacity: 0.04;
    color: #fff;
    pointer-events: none;
    z-index: 0;
    line-height: 1;
}
.ph-wave {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    line-height: 0; z-index: 1;
}
.ph-wave svg { width: 100%; height: 55px; display: block; }
.page-hero-badge {
    display: inline-flex;
    align-items: center; gap: 8px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(201,168,76,0.45);
    color: var(--gold-light);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    margin-bottom: 18px;
}
.page-hero .breadcrumb-item a  { color: var(--gold-light); }
.page-hero .breadcrumb-item.active { color: rgba(255,255,255,0.65); }

/* Legal page shared styles */
.legal-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.07);
    border: 1px solid var(--border);
    overflow: hidden;
}
.legal-sidebar {
    background: var(--navy);
    padding: 32px 24px;
    position: sticky;
    top: 90px;
    border-radius: 16px;
}
.legal-sidebar h6 { color: var(--gold); font-size:0.75rem; letter-spacing:2px; text-transform:uppercase; margin-bottom:16px; }
.legal-sidebar a {
    display: block; color: rgba(255,255,255,0.65);
    font-size: 0.85rem; padding: 8px 12px;
    border-radius: 8px; margin-bottom: 4px;
    transition: all 0.2s; text-decoration: none;
}
.legal-sidebar a:hover, .legal-sidebar a.active {
    background: rgba(255,255,255,0.1);
    color: var(--gold-light);
    padding-left: 16px;
}
.legal-content { padding: 48px; }
.legal-content h2 {
    font-size: 1rem; font-weight: 700;
    color: var(--navy); margin-top: 36px; margin-bottom: 12px;
    padding-bottom: 8px; border-bottom: 2px solid var(--light-blue);
    display: flex; align-items: center; gap: 10px;
}
.legal-content h2 i { color: var(--gold); font-size: 0.9rem; }
.legal-content p, .legal-content li { color: var(--text-muted); font-size: 0.9rem; line-height: 1.85; }
.legal-content ul { padding-left: 20px; }
.legal-content ul li { margin-bottom: 6px; }
.legal-content .highlight-box {
    background: var(--light-blue);
    border-left: 4px solid var(--navy);
    border-radius: 0 10px 10px 0;
    padding: 16px 20px; margin: 16px 0;
}
.legal-content .highlight-box p { margin: 0; color: var(--navy); }
.legal-content table { font-size: 0.88rem; }
.legal-content table th { background: var(--navy); color: #fff; font-weight: 600; }
.legal-content table td { color: var(--text-muted); }
.last-updated {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(201,168,76,0.12);
    border: 1px solid rgba(201,168,76,0.3);
    color: var(--gold-dark);
    padding: 6px 16px; border-radius: 30px;
    font-size: 0.8rem; font-weight: 500;
}
@media (max-width: 991px) {
    .legal-sidebar { position: static; margin-bottom: 24px; }
    .legal-content { padding: 28px 24px; }
    .ph-watermark { font-size: 130px; right: 2%; }
}
        .page-hero .breadcrumb-item a { color: var(--gold-light); }
        .page-hero .breadcrumb-item.active { color: rgba(255,255,255,0.7); }
        .page-hero .breadcrumb-separator { color: rgba(255,255,255,0.4); }

        /* Grievance Tabs */
        .grv-tabs { border: none; gap: 8px; }
        .grv-tabs .nav-link {
            border: 2px solid var(--border) !important;
            border-radius: 50px !important;
            color: var(--text-muted);
            font-weight: 500; font-size: 0.9rem;
            padding: 10px 24px;
            transition: all 0.3s ease;
        }
        .grv-tabs .nav-link.active,
        .grv-tabs .nav-link:hover {
            background: var(--navy) !important;
            border-color: var(--navy) !important;
            color: #fff !important;
        }

        /* Form card */
        .grv-form-card {
            background: #fff;
            border-radius: 20px;
            padding: 40px;
            box-shadow: 0 8px 30px rgba(0,0,0,0.08);
            border: 1px solid var(--border);
        }
        .grv-form-card .form-label { font-weight: 600; font-size: 0.85rem; color: var(--navy); }
        .grv-form-card .form-control,
        .grv-form-card .form-select {
            border: 1.5px solid var(--border);
            border-radius: 10px;
            padding: 11px 16px;
            font-size: 0.9rem;
            transition: all 0.3s;
        }
        .grv-form-card .form-control:focus,
        .grv-form-card .form-select:focus {
            border-color: var(--navy);
            box-shadow: 0 0 0 3px rgba(13,33,55,0.1);
        }
        .grv-form-card textarea { resize: vertical; min-height: 120px; }

        /* Track card */
        .track-card {
            background: #fff;
            border-radius: 20px;
            padding: 40px;
            box-shadow: 0 8px 30px rgba(0,0,0,0.08);
            border: 1px solid var(--border);
        }
        .track-result {
            display: none;
            background: var(--light-blue);
            border-radius: 14px;
            padding: 28px;
            margin-top: 24px;
            border-left: 5px solid var(--navy);
        }
        .track-result.show { display: block; }
        .status-badge {
            display: inline-flex; align-items: center; gap: 8px;
            padding: 6px 16px; border-radius: 30px;
            font-size: 0.82rem; font-weight: 600;
        }
        .status-received  { background: #fef3c7; color: #92400e; }
        .status-review    { background: #dbeafe; color: #1e40af; }
        .status-resolved  { background: #d1fae5; color: #065f46; }
        .status-escalated { background: #fee2e2; color: #991b1b; }

        /* Timeline */
        .grv-timeline { position: relative; padding-left: 28px; margin-top: 20px; }
        .grv-timeline::before {
            content: ''; position: absolute; left: 9px; top: 0; bottom: 0;
            width: 2px; background: var(--border);
        }
        .grv-tl-item { position: relative; margin-bottom: 20px; }
        .grv-tl-dot {
            position: absolute; left: -24px; top: 4px;
            width: 14px; height: 14px; border-radius: 50%;
            background: var(--navy); border: 3px solid #fff;
            box-shadow: 0 0 0 2px var(--navy);
        }
        .grv-tl-dot.active { background: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
        .grv-tl-item h6 { font-size: 0.88rem; font-weight: 600; color: var(--navy); margin-bottom: 2px; }
        .grv-tl-item small { color: var(--text-muted); font-size: 0.78rem; }

        /* Right sidebar sticky wrapper */
        .grv-sidebar-wrap {
            position: sticky;
            top: 90px;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        @media (max-width: 991.98px) {
            .grv-sidebar-wrap { position: static; }
        }

        /* Info cards */
        .info-card {
            background: #fff;
            border-radius: 16px;
            padding: 28px 24px;
            border: 1px solid var(--border);
            box-shadow: 0 4px 16px rgba(0,0,0,0.06);
        }
        .info-card .ic-icon {
            width: 52px; height: 52px;
            border-radius: 14px;
            display: flex; align-items: center; justify-content: center;
            font-size: 1.3rem; margin-bottom: 16px;
        }
        .ic-navy  { background: linear-gradient(135deg, var(--navy), var(--navy-mid)); color: var(--gold); }
        .ic-gold  { background: linear-gradient(135deg, var(--gold-dark), var(--gold)); color: var(--navy); }
        .ic-teal  { background: linear-gradient(135deg, #004d56, var(--teal)); color: #fff; }
        .info-card h6 { font-weight: 700; color: var(--navy); margin-bottom: 10px; }
        .info-card p, .info-card li { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }
        .info-card ul { padding-left: 0; }
        .info-card ul li { padding: 4px 0; padding-left: 16px; position: relative; }
        .info-card ul li::before { content: '•'; position: absolute; left: 0; color: var(--gold); }
        .info-card a { color: var(--navy); font-weight: 500; }
        .info-card a:hover { color: var(--gold); }

        /* Grievance category icons */
        .category-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
        .cat-chip {
            background: var(--light-blue);
            border: 1.5px solid var(--border);
            border-radius: 8px;
            padding: 10px 12px;
            font-size: 0.78rem;
            font-weight: 500;
            color: var(--navy);
            display: flex; align-items: center; gap: 7px;
            cursor: pointer; transition: all 0.2s;
        }
        .cat-chip:hover, .cat-chip.selected {
            background: var(--navy); color: #fff; border-color: var(--navy);
        }
        .cat-chip i { font-size: 0.9rem; color: var(--gold); }
        .cat-chip.selected i { color: var(--gold-light); }

        /* File upload */
        .upload-zone {
            border: 2px dashed var(--border);
            border-radius: 12px;
            padding: 24px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
        }
        .upload-zone:hover { border-color: var(--navy); background: var(--light-blue); }
        .upload-zone i { font-size: 2rem; color: var(--text-muted); margin-bottom: 8px; }
        .upload-zone p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

        /* Success banner */
        #grv-success {
            display: none;
            background: linear-gradient(135deg, #d1fae5, #a7f3d0);
            border: 1.5px solid #6ee7b7;
            border-radius: 16px; padding: 28px; margin-top: 20px; text-align: center;
        }
        #grv-success.show { display: block; }
        #grv-success .ref-num {
            font-size: 1.6rem; font-weight: 800;
            color: var(--navy); letter-spacing: 3px;
            display: block; margin: 10px 0;
            font-family: monospace;
        }
