:root {
  --primary-color: #4f46e5;
  --secondary-color: #7c3aed;
  --accent-color: #f59e0b;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
}

body {
  font-family: 'Inter', 'Outfit', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

/* Custom Elite Scrollbar (Thin & Professional) */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { 
    background: #cbd5e1;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { 
    background: var(--primary-color); 
}

/* Enhanced Glass Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 15px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: fixed;
    top: 0; left: 0; width: 100%; z-index: 1000;
}
.navbar.scrolled {
    padding: 8px 0;
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.navbar-brand {
    font-size: 1.5rem;
    font-family: 'Outfit', sans-serif;
}
.logo-icon {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: white;
}
.nav-link {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #4b5563 !important;
    padding: 8px 18px !important;
}
.nav-link:hover {
    color: #6366f1 !important;
}
.btn-login {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: white !important;
    border-radius: 50px;
    padding: 10px 30px !important;
    font-weight: 700;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { 
    background: linear-gradient(180deg, #6366f1 0%, #a855f7 100%); 
    border-radius: 10px;
}

/* Gradient Typography */
.text-gradient {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
    display: inline-block;
}
.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dark) !important;
    padding: 8px 20px !important;
    transition: all 0.3s ease;
    position: relative;
    font-family: 'Outfit', sans-serif;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.nav-link:hover::after {
    transform: scaleX(1);
}
.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Mobile Menu Refinements */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: white;
        margin-top: 15px;
        border-radius: 20px;
        padding: 20px;
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        border: 1px solid rgba(0,0,0,0.05);
    }
    .nav-link {
        padding: 12px 0 !important;
        border-bottom: 1px solid #f1f5f9;
    }
    .nav-link:last-child {
        border-bottom: none;
    }
    .nav-link::after {
        display: none;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { 
    background: linear-gradient(180deg, #6366f1 0%, #a855f7 100%); 
    border-radius: 10px;
}

/* Gradient Typography */
.text-gradient {
    background: linear-gradient(135deg, #0ea5e9 0%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-gradient-warning {
    background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Premium Card Effects */
.hover-glow:hover {
    box-shadow: 0 0 25px rgba(14, 165, 233, 0.15) !important;
    border-color: rgba(14, 165, 233, 0.3) !important;
}

.institution-logo {
    transition: transform 0.3s ease;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.05));
}
.card:hover .institution-logo {
    transform: scale(1.1);
}

/* Premium Card (Used in Books/Subjects) */
.premium-card {
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.premium-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: -1;
}
.premium-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.15);
}
.premium-card:hover::before {
    opacity: 1;
}
.premium-card h6 {
    transition: all 0.3s ease;
}
.premium-card:hover h6 {
    color: var(--primary-color) !important;
    transform: scale(1.05);
}

/* Institutional Card (Schools/Colleges) */
.inst-card {
    background: white;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}
.inst-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
}
.inst-header {
    height: 80px;
    background: #f8fafc;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}
.inst-logo-container {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -35px auto 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}
.inst-logo-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.inst-body {
    padding: 0 20px 25px;
    text-align: center;
}
.inst-tagline {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 15px;
    line-height: 1.4;
    min-height: 40px;
}

/* Hero Background Effects */
.bg-circle-1 {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.15) 0%, rgba(236, 72, 153, 0) 70%);
  top: -100px;
  right: -100px;
  border-radius: 50%;
  filter: blur(50px);
}
/* Layout & Overlap Fix */
body {
    padding-top: 80px; /* Offset for fixed navbar */
}

/* Redesigned Quick Access Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 30px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1);
    background: #ffffff;
    border-color: var(--primary-color);
}
.icon-box {
    width: 70px;
    height: 70px;
    background: #f8fafc;
    color: var(--primary-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}
.glass-card:hover .icon-box {
    background: var(--primary-color);
    color: #ffffff;
    transform: rotate(-10deg);
}
/* Impact Stats Redesign */
.stat-container-card {
    background: #ffffff;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08);
}
.stat-icon-circle {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}
.fw-800 { font-weight: 800; }
.ls-1 { letter-spacing: 1px; }
.hover-lift {
    transition: transform 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-5px);
}
/* Mesh Gradient & Particles */
.section-stats-main {
    z-index: 1;
}
.mesh-gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.05), transparent),
                radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.05), transparent);
    z-index: 0;
}
.floating-particles .particle {
    position: absolute;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 1;
    animation: float-particle 10s infinite linear;
}
.p1 { width: 100px; height: 100px; top: 10%; left: 5%; animation-duration: 15s !important; }
.p2 { width: 60px; height: 60px; bottom: 20%; right: 10%; animation-duration: 20s !important; }
.p3 { width: 40px; height: 40px; top: 50%; left: 40%; animation-duration: 25s !important; }

@keyframes float-particle {
    0% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-20px) rotate(180deg); }
    100% { transform: translateY(0) rotate(360deg); }
}

.stat-container-card {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
}

/* --- HERO SECTION MASTERPIECE (Midnight Aurora) --- */
.hero-main {
    background: #0f172a; /* Deep Space Base */
    padding: 100px 0 120px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Glowing Aurora Blobs */
.hero-main::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: 
        radial-gradient(circle at 10% 10%, rgba(99, 102, 241, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 90% 90%, rgba(192, 38, 211, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(67, 56, 202, 0.2) 0%, transparent 100%);
    z-index: -1;
    animation: aurora-pulse 15s infinite alternate;
}

@keyframes aurora-pulse {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(2%, 2%); }
}

/* Structured Trust Badges (No overlap) */
.hero-trust-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 6px 12px;
    margin-right: 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}
.hero-trust-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    border-color: var(--primary-color);
}
.hero-trust-badge i {
    font-size: 1rem;
    margin-right: 8px;
}
.hero-trust-badge .badge-text {
    font-size: 0.75rem;
    font-weight: 600;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    letter-spacing: -1.5px;
    font-weight: 800;
}

.text-gradient-hero {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism Search Bar (High Visibility) */
.hero-search-glass {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 100px;
    padding: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.hero-search-glass:focus-within {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: #fbbf24 !important;
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.3);
    transform: scale(1.02);
}

.hero-search-glass input {
    font-weight: 600;
    font-size: 1.1rem;
    color: #ffffff !important;
}

.hero-search-glass input::placeholder {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Quick Portal Refinement */
.portal-card {
    background: white;
    border-radius: 28px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    padding: 35px 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.portal-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.3);
}

.portal-icon {
    width: 65px;
    height: 65px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    transition: all 0.4s ease;
    background: #f8fafc;
    color: var(--primary-color);
}

.portal-card:hover .portal-icon {
    transform: scale(1.1) rotate(-8deg);
    background: var(--primary-color);
    color: white;
}

/* --- ACADEMIC INSIGHT CARDS --- */
.insight-card {
    background: white;
    border-radius: 24px;
    padding: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.insight-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(225, 29, 72, 0.1);
    border-color: rgba(225, 29, 72, 0.2);
}

.insight-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(225, 29, 72, 0.1);
    color: #e11d48;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.insight-icon-ring {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.insight-card:hover .insight-icon-ring {
    transform: scale(1.1) rotate(10deg);
}

.insight-date {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 10px;
    display: block;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
}

/* Icons */
.icon-box {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.icon-box-primary { background: #eef2ff; color: #4e73df; }
.icon-box-warning { background: #fff9db; color: #f6c23e; }
.icon-box-success { background: #e3f9e5; color: #1cc88a; }
.icon-box-info { background: #e0f7fa; color: #36b9cc; }

/* Premium Cards for NCERT */
.premium-card {
  background: white;
  border-radius: 20px;
  display: block;
  transition: all 0.3s ease;
  border: 1px solid #f1f4f8;
  color: var(--text-dark);
  height: 100%;
}

.premium-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.card-img-container {
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  background: #f8f9fa;
}

.card-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.premium-card:hover img {
  transform: scale(1.1);
}

/* Breadcrumbs */
.breadcrumb {
  background: white;
  padding: 15px 25px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.breadcrumb-item a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb-item.active {
  color: #6c757d;
}

/* List Groups */
.list-group-item {
  transition: all 0.2s ease;
  border-color: #f1f4f8;
}

.list-group-item:hover {
  background-color: #f8faff !important;
  padding-left: 2rem !important;
}

/* Attractive Utilities */
.bg-soft-primary { background-color: #eef2ff; }
.bg-soft-warning { background-color: #fff9db; }
.bg-gradient-primary { background: linear-gradient(45deg, #4e73df, #224abe); }

.hover-glow:hover {
  box-shadow: 0 15px 40px rgba(78, 115, 223, 0.15) !important;
}

.institute-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.institute-card:hover {
  background: #f8faff !important;
}

.institute-card:hover .bg-gradient-primary {
  transform: rotate(10deg) scale(1.1);
  transition: all 0.4s ease;
}

/* Premium Header & Footer */
.navbar-glass {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-link {
  color: var(--text-dark) !important;
  font-weight: 600;
  padding: 10px 15px !important;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-color) !important;
  transform: translateY(-2px);
}

.navbar-brand {
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  color: var(--primary-color) !important;
}

/* --- ELITE DIRECTORY STYLES --- */
.directory-hero {
    background: #0f172a;
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
    text-align: center;
    color: white;
}
.directory-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 120%, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    z-index: 1;
}

.search-box-premium {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 10px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    margin-top: -50px;
    position: relative;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.result-count-badge {
    background: white;
    padding: 8px 20px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    font-weight: 600;
    font-size: 0.85rem;
}

/* --- STELLAR MIDNIGHT FOOTER --- */
.footer-main {
    background: #0f172a;
    padding: 100px 0 40px;
    position: relative;
    overflow: hidden;
    color: #94a3b8;
}

.footer-main::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 100% 0%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.footer-brand-logo {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    color: white !important;
    margin-bottom: 25px;
    display: inline-block;
}

.footer-title {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 30px; height: 2px;
    background: var(--primary-color);
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: white;
    transform: translateX(8px);
}

.footer-newsletter {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.newsletter-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 12px 20px;
    color: white;
    font-size: 0.9rem;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    box-shadow: none;
    color: white;
}

.footer-bottom {
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.social-pill {
    width: 45px;
    height: 45px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.social-pill:hover {
    background: var(--primary-color);
    transform: translateY(-5px) rotate(8deg);
    color: white;
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

/* Pulse Animation for Live Updates */
.pulse-red {
    width: 10px;
    height: 10px;
    background: #e11d48;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 rgba(225, 29, 72, 0.4);
    animation: pulse-red-anim 2s infinite;
}

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

.text-cyan { color: #0891b2 !important; }
.text-cyan-600 { color: #0891b2; }
.bg-soft-cyan { background: #ecfeff; }

/* Subtle Section Mesh */
.section-mesh {
    position: relative;
}
.section-mesh::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 100% 0%, rgba(99, 102, 241, 0.03) 0%, transparent 40%);
    pointer-events: none;
}

/* Hero Image Effects */
.hero-glass-blob {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 120%; height: 120%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 1;
}

.floating-anim {
    animation: floating-hero 5s ease-in-out infinite;
}

@keyframes floating-hero {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.shadow-2xl {
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.4);
}

/* --- ROBUST MOBILE RESPONSIVENESS --- */
@media (max-width: 991px) {
    .hero-main {
        padding: 80px 0 40px;
        text-align: center;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-main img {
        max-height: 250px;
        width: auto;
        margin: 0 auto 30px;
    }
    .navbar-collapse {
        background: white;
        margin-top: 10px;
        padding: 15px;
        border-radius: 12px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }
    .nav-link {
        padding: 10px 0 !important;
        border-bottom: 1px dotted #ddd;
    }
}

@media (max-width: 768px) {
    .display-4 { font-size: 1.8rem; }
    .display-5 { font-size: 1.6rem; }
    .display-6 { font-size: 1.5rem; }
    
    .premium-card {
        padding: 15px;
        margin-bottom: 15px;
        border-radius: 15px;
    }
    
    .icon-box {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .section-mesh {
        padding: 40px 0 !important;
    }
}

@media (max-width: 576px) {
    .hero-main {
        padding: 80px 15px 40px !important;
    }
    .hero-title {
        font-size: 1.75rem !important;
        line-height: 1.2 !important;
        margin-bottom: 15px !important;
    }
    .hero-main p.lead {
        font-size: 0.95rem !important;
        margin-bottom: 25px !important;
    }
    .hero-search-glass {
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 auto 30px !important;
        width: 100% !important;
        max-width: 380px !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
    }
    .hero-search-glass form.d-flex {
        flex-direction: row !important;
        align-items: center !important;
        background: white !important;
        border-radius: 50px !important;
        padding: 5px !important;
        box-shadow: 0 10px 25px rgba(0,0,0,0.2) !important;
    }
    .hero-search-glass i {
        display: block !important;
        color: #64748b !important;
        margin-left: 15px;
        font-size: 0.9rem;
    }
    .hero-search-glass input {
        text-align: left !important;
        padding: 8px 12px !important;
        color: #0f172a !important;
        font-weight: 500 !important;
        font-size: 0.85rem !important;
        background: transparent !important;
        flex-grow: 1;
        border: none !important;
    }
    .hero-search-glass input::placeholder {
        color: #94a3b8 !important;
    }
    .hero-search-glass button {
        width: auto !important;
        border-radius: 50px !important;
        padding: 8px 22px !important;
        font-size: 0.85rem !important;
        margin: 0 !important;
        background: #ffc107 !important; /* Gold like Study Materials */
        color: #000 !important;
        font-weight: 800 !important;
        border: none !important;
        white-space: nowrap;
    }
    .hero-trust-badge {
        font-size: 0.65rem !important;
        padding: 4px 8px !important;
    }
    .hero-main .d-flex.flex-wrap {
        justify-content: center !important;
        gap: 10px !important;
    }
    .hero-main .btn {
        width: 100% !important;
        max-width: 250px !important;
        font-size: 0.9rem !important;
        margin: 0 !important;
    }
    
    /* Section Header Polish */
    .d-flex.justify-content-between.align-items-end {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 15px !important;
    }
    
    .display-5 {
        font-size: 1.8rem !important;
    }
    
    .btn-premium.rounded-pill {
        padding: 8px 25px !important;
        font-size: 0.85rem !important;
    }
    
    /* Premium Card Mobile Polish */
    .premium-card {
        padding: 30px 20px !important;
        margin-bottom: 20px !important;
        box-shadow: 0 8px 20px rgba(0,0,0,0.05) !important;
    }
    
    .display-4 { font-size: 1.7rem !important; }
    .display-5 { font-size: 1.6rem !important; }
    .display-6 { font-size: 1.4rem !important; }
    
    .lead {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
    }
    
    p.text-muted {
        font-size: 0.85rem !important;
    }

    h6.text-uppercase {
        font-size: 0.7rem !important;
        letter-spacing: 1px !important;
    }
    
    /* Navbar Mobile Polish (Logo Center) */
    .navbar {
        padding: 5px 0 !important;
    }
    
    .navbar > .container {
        justify-content: center !important;
        position: relative;
        min-height: 50px;
    }
    
    .navbar-brand {
        margin-right: 0 !important;
        z-index: 10;
        font-size: 1rem !important;
    }

    .logo-icon {
        width: 25px !important;
        height: 25px !important;
        margin-bottom: 2px !important;
    }
    
    .navbar-toggler {
        position: absolute;
        right: 10px;
        border: none !important;
        padding: 5px !important;
    }

    /* Global Header & Content Alignment Fix for Mobile */
    .row.align-items-center {
        flex-direction: column !important;
        text-align: center !important;
        gap: 25px !important;
    }
    
    .row.align-items-center .col-lg-6,
    .row.align-items-center .col-lg-7,
    .row.align-items-center .col-lg-5 {
        text-align: center !important;
    }
    
    /* Center Lists and Icons */
    ul.list-unstyled li {
        justify-content: center !important;
        display: flex !important;
        align-items: center !important;
        text-align: left; /* Keep text left-aligned within the centered container */
    }
    
    .d-flex.align-items-center {
        justify-content: center !important;
        text-align: center !important;
        flex-direction: column !important;
        gap: 10px;
    }

    .d-flex.align-items-center .ms-4 {
        margin-left: 0 !important;
    }

    .row.g-4.mb-5 .col-sm-6 .d-flex {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    .row.g-4.mb-5 .col-sm-6 .d-flex .me-3 {
        margin-right: 0 !important;
        margin-bottom: 10px !important;
    }
    
    .btn-premium {
        width: auto !important;
        display: inline-block !important;
        margin: 0 auto !important;
    }
}
