:root {
    --primary: #0f172a; /* Deep Navy */
    --secondary: #2563eb; /* Royal Blue */
    --accent: #fbbf24; /* Golden Amber */
    --success: #10b981; /* Emerald */
    --dark: #020617;
    --light: #f8fafc;
    --white: #ffffff;
    --shadow-premium: 0 10px 40px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; }

.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.bg-soft-danger { background: rgba(255, 94, 58, 0.1); color: #ff5e3a; }
.bg-soft-warning { background: rgba(255, 193, 7, 0.1); color: #ffc107; }
.bg-soft-primary { background: rgba(92, 52, 204, 0.1); color: #5c34cc; }

body { 
    min-height: 100vh; 
    background: #ffffff;
    color: var(--primary);
    animation: pageFadeIn 0.8s ease-out;
}

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

/* Auth Page specific styling to prevent breaking other pages */
.auth-page {
    height: 100vh;
    overflow: hidden;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Animated Aurora Background Effect - Only for Auth Page */
.auth-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    animation: rotateBg 20s linear infinite;
    z-index: 1;
}

@keyframes rotateBg {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- LGS Custom Homepage Styles --- */
/* --- LGS Custom Homepage Styles --- */
.lgs-hero {
    background: var(--gradient-hero);
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    padding: 60px 20px;
}

/* Background Ripples */
.lgs-hero::before {
    content: '';
    position: absolute;
    width: 1500px; height: 1500px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.hero-logo { width: 180px; margin-bottom: 2rem; position: relative; z-index: 10; filter: drop-shadow(0 0 30px rgba(0,0,0,0.3)); }
.hero-title { font-size: 5rem; font-weight: 800; margin-bottom: 0.5rem; position: relative; z-index: 10; letter-spacing: -2px; }
.hero-tagline { font-size: 1.5rem; opacity: 0.8; margin-bottom: 3rem; font-weight: 500; position: relative; z-index: 10; }

.lgs-features { margin-top: -100px; position: relative; z-index: 20; padding-bottom: 80px; }
.lgs-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 30px;
    box-shadow: var(--shadow-premium);
    transition: 0.4s;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.02);
}
.lgs-card:hover { transform: translateY(-15px); }

.lgs-about {
    background: #00bfa5; /* Specific teal from image */
    padding: 80px 0;
    color: white;
    text-align: center;
    border-radius: 40px;
}

.school-video-wrap {
    margin: 40px 0;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-premium);
}
.play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80px; height: 80px;
    background: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: #ff5e3a;
    cursor: pointer;
    transition: 0.3s;
}
.play-btn:hover { transform: translate(-50%, -50%) scale(1.1); }

.lgs-visit-bar {
    background: var(--gradient-orange);
    border-radius: 40px;
    padding: 60px;
    color: white;
    text-align: center;
    margin: 80px 0;
}

.study-space-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}
.space-circle-img {
    width: 140px; height: 140px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 10px 10px 30px rgba(0,0,0,0.1);
}

.testimonial-box {
    background: #00d2ff;
    padding: 60px;
    border-radius: 40px;
    color: white;
    text-align: center;
    position: relative;
}
.tester-img {
    width: 120px; height: 120px;
    border-radius: 50%;
    border: 5px solid white;
    margin-bottom: 1.5rem;
}

.lgs-btn {
    padding: 1rem 3rem;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    transition: 0.3s;
    border: none;
    text-decoration: none;
    display: inline-block;
}
.lgs-btn-white { background: white; color: var(--primary); }
.lgs-btn-white:hover { transform: scale(1.05); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }

/* --- Public Website Premium Styles --- */
.hero-premium {
    min-height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?q=80&w=2070');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    padding: 100px 5%;
    color: white;
}

.hero-content { max-width: 800px; }
.hero-content h1 { font-family: 'Playfair Display', serif; font-size: 4.5rem; line-height: 1.1; margin-bottom: 2rem; }
.hero-content p { font-size: 1.2rem; opacity: 0.9; margin-bottom: 2.5rem; line-height: 1.8; }

.btn-premium {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    border: none;
}

.btn-gold { background: var(--accent); color: var(--primary) !important; }
.btn-white { background: white; color: var(--primary) !important; }
.btn-premium:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.2); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: -60px;
    position: relative;
    z-index: 10;
    padding-bottom: 80px;
}

.info-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    transition: all 0.4s;
    text-align: center;
}

.info-card:hover { transform: translateY(-10px); box-shadow: 0 30px 60px rgba(0,0,0,0.1); }
.icon-box {
    width: 70px; height: 70px;
    background: rgba(163, 33, 32, 0.05);
    color: var(--secondary);
    border-radius: 20px;
    display: flex;
    align-items: center; justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1.5rem;
}

.curriculum-section { padding: 100px 0; background: #fcfcfc; }
.split-view { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 80px; 
    align-items: center; 
}

.img-collage { position: relative; height: 500px; }
.collage-1 { width: 80%; height: 400px; border-radius: 30px; object-fit: cover; box-shadow: 20px 20px 60px rgba(0,0,0,0.1); }
.collage-2 { 
    position: absolute; bottom: 0; right: 0; 
    width: 60%; height: 300px; border-radius: 30px; 
    object-fit: cover; border: 10px solid white;
    box-shadow: 20px 20px 60px rgba(0,0,0,0.1);
}

.cta-bar {
    background: var(--primary);
    padding: 5rem;
    border-radius: 40px;
    color: white;
    text-align: center;
    margin: 80px 0;
}

.section-head { text-align: center; margin-bottom: 60px; }
.section-head h2 { font-family: 'Playfair Display', serif; font-size: 3rem; }
.divider { width: 80px; height: 4px; background: var(--accent); margin: 20px auto; border-radius: 2px; }

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

.gallery-card {
    height: 300px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.gallery-overlay {
    position: absolute; inset: 0;
    background: rgba(26, 54, 93, 0.8);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: 0.4s;
}

.gallery-card:hover img { transform: scale(1.1); }
.gallery-card:hover .gallery-overlay { opacity: 1; }

.serif { font-family: 'Playfair Display', serif; }

@media (max-width: 992px) {
    .hero-content h1 { font-size: 3rem; }
    .split-view { grid-template-columns: 1fr; gap: 40px; }
    .img-collage { height: 400px; }
    .cta-bar { padding: 3rem 1.5rem; }
}

/* --- Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Premium Slider Animations */
.carousel-item { transition: transform 1.2s cubic-bezier(0.7, 0, 0.3, 1); }
.carousel-fade .carousel-item { opacity: 0; transition-property: opacity; transform: none; }
.carousel-fade .carousel-item.active { opacity: 1; }

.carousel-item img {
    transition: transform 6s linear;
}
.carousel-item.active img {
    transform: scale(1.15);
}

.slide-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}
.active .slide-up {
    opacity: 1;
    transform: translateY(0);
}
.active .slide-up:nth-child(1) { transition-delay: 0.3s; }
.active .slide-up:nth-child(2) { transition-delay: 0.5s; }
.active .slide-up:nth-child(3) { transition-delay: 0.7s; }

/* Custom Badge & Indicators */
.bg-soft-primary { background: rgba(37, 99, 235, 0.1); color: #2563eb; }
.bg-soft-danger { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

.notice-ticker { border-bottom: 2px solid rgba(255,255,255,0.05); box-shadow: 0 4px 15px rgba(0,0,0,0.2); }

/* Card Improvements */
.lgs-card { border: 1px solid rgba(0,0,0,0.05); }
.lgs-card:hover { border-color: #2563eb; box-shadow: 0 20px 50px rgba(37, 99, 235, 0.15); }

/* Button Premium Pulse */
.lgs-btn-white:hover {
    background: #2563eb;
    color: white;
}

/* --- Who We Are Section --- */
.who-we-are { padding: 80px 0; background: #fff; overflow: hidden; }
.who-sub { font-family: 'Playfair Display', serif; color: #ff5e3a; font-style: italic; font-size: 1.4rem; margin-bottom: 15px; display: block; }
.who-title { font-size: 3rem; font-weight: 800; color: #1e293b; line-height: 1.2; margin-bottom: 25px; }

.circle-img-wrap {
    position: relative;
    width: 450px;
    height: 450px;
    margin: 0 auto;
}
.circle-img-wrap::before {
    content: '';
    position: absolute;
    inset: -15px;
    border: 15px solid #2563eb;
    border-radius: 50%;
    z-index: 1;
}
.circle-img-wrap::after {
    content: '';
    position: absolute;
    inset: -30px;
    border: 3px solid #fbbf24;
    border-radius: 50%;
    z-index: 0;
}
.circle-main-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    border: 10px solid #fff;
}

.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 30px 0; }
.feature-item { display: flex; align-items: center; gap: 12px; font-weight: 700; color: #334155; }
.feature-icon {
    width: 32px; height: 32px;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
}

@media (max-width: 992px) {
    .circle-img-wrap { width: 300px; height: 300px; margin-bottom: 50px; }
    .who-title { font-size: 2rem; }
}

/* --- Core Values Section --- */
.core-values { padding: 100px 0; background: #fffaf5; position: relative; overflow: hidden; }
.value-item { display: flex; gap: 25px; margin-bottom: 35px; }
.value-number {
    flex-shrink: 0;
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; font-weight: 800;
}
.val-1 { background: #e0f2fe; color: #0369a1; }
.val-2 { background: #fef3c7; color: #b45309; }
.val-3 { background: #fce7f3; color: #be185d; }

.value-content h4 { font-weight: 800; color: #1e293b; margin-bottom: 10px; font-size: 1.3rem; }
.value-content p { color: #64748b; font-size: 0.95rem; line-height: 1.6; margin: 0; }

.floating-deco { position: absolute; opacity: 0.2; z-index: 0; pointer-events: none; }
.deco-1 { top: 10%; right: 5%; width: 60px; transform: rotate(15deg); }
.deco-2 { bottom: 10%; right: 10%; width: 50px; transform: rotate(-10deg); }

@media (max-width: 992px) {
    .core-values { text-align: center; }
    .value-item { flex-direction: column; align-items: center; text-align: center; }
    .core-title { font-size: 2.2rem; }
}
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* --- Top Bar Styles --- */
.header-top {
    background: #0f172a; /* Same as --primary */
    padding: 10px 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    animation: slideDownHeader 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDownHeader {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

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

.top-bar-info {
    display: flex;
    gap: 25px;
    align-items: center;
}

.top-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.top-info-item:hover {
    color: #fff;
    transform: translateY(-1px);
}

.top-info-item i {
    color: #2563eb; /* --secondary */
    font-size: 0.9rem;
}

.top-bar-social {
    display: flex;
    gap: 15px;
    align-items: center;
}

.top-social-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.top-social-link:hover {
    color: #fff;
    transform: scale(1.2) rotate(8deg);
    background: #2563eb;
}

.top-social-link.yt-link:hover { background: #ff0000; }
.top-social-link.fb-link:hover { background: #1877f2; }
.top-social-link.ig-link:hover { background: #e4405f; }
.top-social-link.wa-link:hover { background: #25d366; }

@media (max-width: 992px) {
    .top-bar-info { gap: 15px; }
    .top-info-item span { display: none; } /* Hide text on tablets, keep icons */
    .top-info-item i { font-size: 1.1rem; }
}

@media (max-width: 768px) {
    .header-top { display: none; } /* Hide top bar on mobile as per standard practice, or we can stack it. User said TOP BAR ADD KMIJIYEE, usually means desktop focus first but I'll make it clean. */
}

/* --- Floating Social Sidebar --- */
.social-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.social-side-item {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 50px;
    height: 50px;
    background: #2563eb;
    color: white;
    text-decoration: none;
    border-radius: 30px 0 0 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.social-side-item i {
    width: 50px;
    text-align: center;
    font-size: 1.2rem;
}

.social-side-item span {
    width: 0;
    white-space: nowrap;
    transition: 0.4s ease;
    font-weight: 700;
    font-size: 0.9rem;
    opacity: 0;
}

.social-side-item:hover {
    width: 150px;
    padding-right: 15px;
}

.social-side-item:hover span {
    width: auto;
    opacity: 1;
    margin-right: 10px;
}

.fb-side { background: #1877f2 !important; }
.ig-side { background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%) !important; }
.wa-side { background: #25d366 !important; }

/* --- Modern News & Notice Section --- */
.news-section { padding: 100px 0; background: #fdfdfd; }
.section-tag { font-size: 0.8rem; font-weight: 800; color: #2563eb; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 15px; display: block; }

/* Notice Board Slate Theme */
.notice-panel {
    background: #0f172a;
    border-radius: 30px;
    padding: 40px;
    color: white;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.2);
    position: sticky;
    top: 100px;
}
.notice-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 20px; }
.live-dot { width: 12px; height: 12px; background: #ef4444; border-radius: 50%; box-shadow: 0 0 10px #ef4444; animation: pulse-red 2s infinite; }

@keyframes pulse-red {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.notice-scroller { max-height: 500px; overflow-y: auto; padding-right: 15px; }
.notice-scroller::-webkit-scrollbar { width: 4px; }
.notice-scroller::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 10px; }

.modern-notice-item {
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s;
}
.modern-notice-item:hover { background: rgba(255,255,255,0.1); transform: translateX(5px); border-color: #fbbf24; }
.notice-date-box { font-size: 0.75rem; font-weight: 700; color: #fbbf24; margin-bottom: 10px; text-transform: uppercase; display: block; }

/* News Premium Card */
.news-card-premium {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: 0.4s;
    border: 1px solid rgba(0,0,0,0.04);
}
.news-card-premium:hover { transform: translateY(-10px); box-shadow: 0 20px 50px rgba(0,0,0,0.1); border-color: #2563eb; }
.news-img-wrap { position: relative; height: 250px; overflow: hidden; }
.news-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: 0.8s; }
.news-card-premium:hover .news-img-wrap img { transform: scale(1.1); }

.news-label {
    position: absolute;
    top: 20px; left: 20px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    color: #2563eb;
    text-transform: uppercase;
}


/* --- Mobile Responsive Enhancements --- */
@media (max-width: 992px) {
    .hero-title { font-size: 3rem; }
    .hero-tagline { font-size: 1.1rem; }
    .lgs-hero { min-height: 70vh; padding: 40px 15px; }
    .features-grid { margin-top: -40px; }
    .cta-bar { padding: 3rem 1rem; border-radius: 20px; }
    .who-title { font-size: 2.2rem; }
    .circle-img-wrap { width: 280px; height: 280px; }
}

@media (max-width: 768px) {
    .navbar-brand img { height: 45px; }
    .hero-title { font-size: 2.5rem; letter-spacing: -1px; }
    .hero-logo { width: 120px; }
    .lgs-card { padding: 2rem 1.5rem; }
    .feature-list { grid-template-columns: 1fr; }
    .notice-panel { position: static; margin-bottom: 40px; padding: 25px; }
    .social-sidebar { display: none !important; } /* Hide floating sidebars on mobile */
    
    /* 3D Gallery Mobile Optimization */
    .gallery-container { min-height: 500px; }
    .ring { width: 280px; height: 180px; }
    .gallery-title-box h1 { font-size: 2rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .btn-premium { width: 100%; margin-bottom: 10px; }
    .section-head h2 { font-size: 2rem; }
    .footer-brand h4 { font-size: 1.2rem; }
}

/* Global Table Responsiveness */
.table-responsive {
    border: none;
    -webkit-overflow-scrolling: touch;
}

/* Form controls padding for mobile */
@media (max-width: 576px) {
    .container { padding-left: 20px; padding-right: 20px; }
    .btn { width: 100%; margin-bottom: 10px; }
}

/* --- Modern Navbar Enhancements --- */
.navbar {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.navbar-brand img {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.brand-logo-img {
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.1));
}

.brand-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(15px);
    padding: 12px 0 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
}

.nav-link {
    position: relative;
    padding: 10px 10px !important;
    color: #0f172a !important; /* Deep navy from reference */
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 1px;
}

.nav-link i {
    font-size: 0.9rem;
    color: #475569; /* Muted slate for icons as in reference */
    margin-right: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #2563eb !important;
}

.nav-link:hover i {
    color: #2563eb;
    transform: scale(1.1);
}

.nav-cta-group {
    border-left: 1px solid rgba(0,0,0,0.06);
    padding-left: 15px;
}

/* Navbar Entry Animation */
.navbar-nav .nav-item {
    opacity: 0;
    transform: translateX(20px);
    animation: navItemFadeIn 0.5s ease forwards;
}

@keyframes navItemFadeIn {
    to { opacity: 1; transform: translateX(0); }
}

.navbar-nav .nav-item:nth-child(1) { animation-delay: 0.1s; }
.navbar-nav .nav-item:nth-child(2) { animation-delay: 0.15s; }
.navbar-nav .nav-item:nth-child(3) { animation-delay: 0.2s; }
.navbar-nav .nav-item:nth-child(4) { animation-delay: 0.25s; }
.navbar-nav .nav-item:nth-child(5) { animation-delay: 0.3s; }
.navbar-nav .nav-item:nth-child(6) { animation-delay: 0.35s; }
.navbar-nav .nav-item:nth-child(7) { animation-delay: 0.4s; }
.navbar-nav .nav-item:nth-child(8) { animation-delay: 0.45s; }

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* --- Unified Navbar Actions --- */
.navbar-actions {
    gap: 10px;
}

.btn-login {
    color: #475569 !important;
    background: #f8fafc !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    border-radius: 50px !important;
    padding: 10px 20px !important;
    border: 1px solid #e2e8f0 !important;
    transition: all 0.3s ease !important;
    white-space: nowrap;
}

.btn-login:hover {
    background: #fff !important;
    color: #2563eb !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.btn-enroll {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    border-radius: 50px !important;
    padding: 11px 25px !important;
    border: none !important;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25) !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    white-space: nowrap;
}

.btn-enroll:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.45) !important;
}

.navbar-actions .btn {
    margin-left: 5px;
}

@media (max-width: 991px) {
    .navbar-actions {
        margin-top: 20px;
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    .btn-login, .btn-enroll { width: 100%; text-align: center; }
}

/* --- Enhanced Global Mobile & Tablet Responsiveness --- */
@media (max-width: 1024px) {
    /* Tablet & iPad Polish */
    .hero-title { font-size: 3.5rem !important; }
    .who-title { font-size: 2.5rem !important; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .split-view { gap: 40px; }
    .circle-img-wrap { width: 350px; height: 350px; }
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: #fff;
        margin-top: 20px;
        padding: 25px;
        border-radius: 30px;
        box-shadow: 0 30px 60px rgba(0,0,0,0.15);
        border: 1px solid rgba(0,0,0,0.05);
        max-height: 70vh;
        overflow-y: auto;
    }
    .nav-link {
        padding: 15px 20px !important;
        border-bottom: 1px solid #f1f5f9;
        border-radius: 12px;
        font-size: 1.1rem;
    }
    
    /* Responsive Dropdown in Mobile Menu */
    .nav-has-dropdown .nav-dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        display: none;
        padding: 10px 0;
        background: rgba(0,0,0,0.02);
        border-radius: 15px;
        margin: 10px 0;
        animation: none;
        min-width: 100%;
    }
    .nav-has-dropdown:hover .nav-dropdown-menu { display: block; }

    /* Hero Slider Mobile Fixes */
    .carousel-caption { bottom: 15% !important; text-align: center !important; padding: 0 20px; }
    .carousel-caption h1 { font-size: 2rem !important; margin-bottom: 15px !important; line-height: 1.2; }
    
    /* Sidebar Stacking */
    .hero-split-section .row { flex-direction: column; }
    .news-sidebar { height: auto !important; max-height: 450px; border-radius: 0; }
}

@media (max-width: 768px) {
    body { padding-bottom: 90px !important; } /* Space for Bottom Nav */
    section { padding: 50px 0 !important; }
    
    .section-head h2, .section-title { font-size: 2rem !important; }
    .display-3 { font-size: 2.2rem !important; }
    .display-5 { font-size: 1.8rem !important; }
    
    /* Who We Are Mobile */
    .who-title { font-size: 1.8rem !important; line-height: 1.3; margin-bottom: 20px; }
    .circle-img-wrap { width: 260px !important; height: 260px !important; margin-bottom: 40px; }
    
    /* Feature Cards */
    .lgs-card, .info-card { padding: 2rem 1.5rem !important; border-radius: 20px; }
    .features-grid { grid-template-columns: 1fr; }
    
    /* Study Space Section */
    #studySpaceSlider .row { flex-direction: column-reverse; }
    #studySpaceSlider img { height: 280px !important; }
    
    /* Testimonials */
    .testimonial-box { padding: 40px 20px !important; border-radius: 30px; }
    .testimonial-box p { font-size: 0.95rem !important; line-height: 1.6; }
    
    /* Footer */
    footer { text-align: center; padding-bottom: 120px !important; }
    footer .col-lg-4, footer .col-lg-2 { 
        margin-bottom: 40px; 
        opacity: 0; 
        transform: translateY(20px);
        animation: footerSlideUp 0.8s ease forwards;
    }
    footer .col-lg-4:nth-child(1) { animation-delay: 0.1s; }
    footer .col-lg-2:nth-child(2) { animation-delay: 0.2s; }
    footer .col-lg-2:nth-child(3) { animation-delay: 0.3s; }
    footer .col-lg-4:nth-child(4) { animation-delay: 0.4s; }
    
    footer .d-flex { justify-content: center; }
    footer .footer-socials { justify-content: center !important; margin-top: 20px; }
    
    /* Footer Logo Mobile Adjustment */
    footer .footer-brand img {
        width: 80px !important;
        height: auto;
        margin-bottom: 15px;
        filter: brightness(0) invert(1);
    }
    footer .footer-brand h4 {
        font-size: 1.2rem !important;
        display: block;
        margin-top: 5px;
    }
}

@keyframes footerSlideUp {
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    .carousel-caption h1 { font-size: 1.6rem !important; }
    .who-title { font-size: 1.6rem !important; }
    .circle-img-wrap { width: 220px !important; height: 220px !important; }
    .mobile-bottom-nav span { font-size: 0.6rem; }
}

/* Fix for images */
img { max-width: 100%; height: auto; }
.reveal { transition: all 0.5s ease; }

/* Global Section Spacing for Mobile */
@media (max-width: 768px) {
    section { padding: 60px 0 !important; }
    .who-title, .section-head h2 { font-size: 1.75rem !important; margin-bottom: 20px; }
    .who-sub, .section-tag { font-size: 1.1rem; margin-bottom: 10px; }
    .container { padding-left: 20px; padding-right: 20px; }
    
    /* Card Padding Adjustments */
    .lgs-card, .news-card-premium, .modern-notice-item {
        padding: 20px !important;
        border-radius: 20px;
    }
}

/* Fix for horizontal overflow on mobile */
body, html {
    overflow-x: hidden;
    width: 100%;
}

.row {
    margin-right: 0;
    margin-left: 0;
}
