/* VS Institute - Main Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=DM+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --navy: #0f2557;
  --navy-light: #1e3a8a;
  --navy-dark: #0a1a3d;
  --gold: #c8972a;
  --gold-light: #f0c040;
  --gold-pale: #fef3c7;
  --teal: #0d9488;
  --red: #dc2626;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.14);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.18);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: all .25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; color: var(--gray-800); background: var(--gray-50); line-height: 1.6; }
h1,h2,h3,h4 { font-family: 'Playfair Display', serif; line-height: 1.25; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ==============================
   NAVBAR
   ============================== */
.navbar-vs {
  background: var(--navy-dark);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.navbar-vs .container { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.navbar-brand-vs { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 46px; height: 46px; background: linear-gradient(135deg, var(--gold), var(--gold-light)); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 900; color: var(--navy-dark); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; color: var(--white); }
.brand-tagline { font-size: .68rem; font-weight: 400; color: var(--gold-light); letter-spacing: .06em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: #cbd5e1; font-size: .9rem; font-weight: 500; padding: 8px 14px; border-radius: 8px; transition: var(--transition); }
.nav-links a:hover, .nav-links a.active { background: rgba(200,151,42,.15); color: var(--gold-light); }

/* Premium Exam Dropdown Styles */
.nav-dropdown-vs:hover .dropdown-menu-vs {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-vs:hover .dropdown-trigger-vs i {
  transform: rotate(180deg);
  color: var(--gold-light);
}
.dropdown-menu-vs {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 240px;
  background: rgba(10, 26, 61, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 0;
  list-style: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1001;
}
.dropdown-menu-vs li a {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 10px 18px !important;
  font-size: 0.85rem !important;
  color: #cbd5e1 !important;
  border-radius: 0 !important;
  transition: all 0.2s ease !important;
}
.dropdown-menu-vs li a i {
  color: var(--gold);
  font-size: 0.9rem;
  width: 16px;
  text-align: center;
}
.dropdown-menu-vs li a:hover {
  background: rgba(200, 151, 42, 0.15) !important;
  color: var(--gold-light) !important;
  padding-left: 22px !important;
}
.nav-cta { display: flex; gap: 10px; align-items: center; }
.btn-nav-login { background: transparent; border: 1.5px solid var(--gold); color: var(--gold); padding: 7px 18px; border-radius: 8px; font-size: .88rem; font-weight: 600; transition: var(--transition); cursor: pointer; }
.btn-nav-login:hover { background: var(--gold); color: var(--navy-dark); }
.btn-nav-apply { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--navy-dark); padding: 7px 18px; border-radius: 8px; font-size: .88rem; font-weight: 700; transition: var(--transition); }
.btn-nav-apply:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(200,151,42,.35); color: var(--navy-dark); }
.btn-nav-admin { background: var(--gold); color: var(--navy-dark); padding: 7px 18px; border-radius: 8px; font-size: .88rem; font-weight: 700; transition: var(--transition); cursor: pointer; }
.btn-nav-admin:hover { background: var(--gold-light); }
.hero-btn-outline { color: white !important; border-color: rgba(255,255,255,.35) !important; }
.hero-btn-outline:hover { background: rgba(255,255,255,.12); color: white !important; }
.page-hero-sm { background: linear-gradient(135deg, var(--navy-dark), var(--navy)); padding: 48px 0 40px; text-align: center; }
.page-hero-sm h1 { color: white; font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 10px; }
.page-hero-sm p { color: #94a3b8; max-width: 560px; margin: 0 auto; }
.ticker-label { background: var(--navy-dark); color: white; padding: 4px 14px; border-radius: 100px; font-size: .78rem; font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.ticker-track-wrap { overflow: hidden; flex: 1; }
.contact-list li { color: #94a3b8; display: flex; gap: 10px; align-items: flex-start; }
.contact-list a { color: #94a3b8; }
.contact-list a:hover { color: var(--gold-light); }
.contact-list i { color: var(--gold); width: 16px; margin-top: 3px; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2.5px; background: #94a3b8; border-radius: 2px; transition: var(--transition); }

/* ==============================
   HERO SECTION
   ============================== */
.hero { background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, #1a3a6e 100%); position: relative; overflow: hidden; padding: 100px 0 80px; }
.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='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"); }
.hero-content { position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(200,151,42,.2); border: 1px solid rgba(200,151,42,.4); color: var(--gold-light); padding: 6px 16px; border-radius: 100px; font-size: .82rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 20px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); color: var(--white); margin-bottom: 16px; }
.hero h1 span { color: var(--gold-light); }
.hero p { color: #94a3b8; font-size: 1.1rem; max-width: 520px; margin-bottom: 32px; }
.hero-stats { display: flex; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat .num { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--gold-light); }
.hero-stat .lbl { font-size: .8rem; color: #94a3b8; text-transform: uppercase; letter-spacing: .05em; }
.hero-img-area { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-card-float { background: rgba(255,255,255,.07); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); padding: 28px; width: 100%; max-width: 340px; }
.hero-card-float h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 16px; }
.exam-chip { display: inline-block; background: rgba(200,151,42,.25); color: var(--gold-light); border: 1px solid rgba(200,151,42,.35); border-radius: 100px; padding: 5px 14px; font-size: .8rem; font-weight: 600; margin: 4px; }

/* ==============================
   NOTIFICATIONS TICKER
   ============================== */
.notif-ticker { background: var(--gold); padding: 10px 0; overflow: hidden; }
.ticker-wrap { display: flex; align-items: center; gap: 20px; white-space: nowrap; animation: ticker 30s linear infinite; }
.ticker-wrap:hover { animation-play-state: paused; }
.ticker-item { white-space: nowrap;
   display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; color: var(--navy-dark); padding: 0 24px; }
.ticker-dot { width: 6px; height: 6px; background: var(--navy-dark); border-radius: 50%; }
@keyframes ticker { 0% { transform: translateX(100vw); } 100% { transform: translateX(-100%); } }

/* ==============================
   NOTIFICATIONS PANEL
   ============================== */
.notif-panel { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-md); overflow: hidden; }
.notif-header { background: linear-gradient(135deg, var(--navy), var(--navy-light)); padding: 16px 20px; color: var(--white); display: flex; align-items: center; justify-content: space-between; }
.notif-header h3 { font-size: 1rem; font-weight: 600; }
.notif-body { max-height: 420px; overflow-y: auto; }
.notif-item { padding: 14px 18px; border-bottom: 1px solid var(--gray-100); display: flex; gap: 12px; align-items: flex-start; transition: var(--transition); cursor: pointer; }
.notif-item:hover { background: var(--gray-50); }
.notif-item.pinned { background: #fffbeb; border-left: 3px solid var(--gold); }
.notif-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.notif-type-opening { background: #dbeafe; color: #1d4ed8; }
.notif-type-result { background: #d1fae5; color: #059669; }
.notif-type-announcement { background: #fef3c7; color: #b45309; }
.notif-type-exam { background: #fce7f3; color: #be185d; }
.notif-type-general { background: #f1f5f9; color: #475569; }
.notif-title { font-size: .9rem; font-weight: 600; color: var(--gray-800); margin-bottom: 3px; }
.notif-preview { font-size: .8rem; color: var(--gray-600); line-height: 1.4; }
.notif-date { font-size: .72rem; color: #94a3b8; margin-top: 4px; }
.badge-urgent { background: #fee2e2; color: #dc2626; padding: 2px 8px; border-radius: 100px; font-size: .7rem; font-weight: 700; }
.badge-high { background: #fff7ed; color: #c2410c; padding: 2px 8px; border-radius: 100px; font-size: .7rem; font-weight: 700; }

/* ==============================
   SECTION STYLES
   ============================== */
.section { padding: 72px 0; }
.section-alt { background: var(--white); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--navy); margin-bottom: 8px; }
.section-sub { color: var(--gray-600); font-size: 1rem; max-width: 560px; }
.section-divider { width: 56px; height: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); border-radius: 4px; margin: 12px 0 20px; }

/* ==============================
   SUBJECT CARDS
   ============================== */
.subject-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1.5px solid var(--gray-200); padding: 24px; transition: var(--transition); cursor: pointer; }
.subject-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.subject-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 14px; }
.subject-card h4 { font-size: 1.05rem; color: var(--navy); margin-bottom: 6px; }
.subject-card p { font-size: .84rem; color: var(--gray-600); margin-bottom: 16px; line-height: 1.5; }
.subject-meta { display: flex; gap: 12px; }
.meta-chip { display: flex; align-items: center; gap: 5px; font-size: .77rem; color: var(--gray-600); background: var(--gray-100); padding: 4px 10px; border-radius: 100px; }

/* ==============================
   BUTTONS
   ============================== */
.btn-primary { background: linear-gradient(135deg, var(--navy), var(--navy-light)); color: var(--white); padding: 12px 28px; border-radius: var(--radius-sm); font-weight: 600; font-size: .95rem; border: none; cursor: pointer; transition: var(--transition); display: inline-flex; align-items: center; gap: 8px; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,37,87,.35); }
.btn-gold { background: linear-gradient(135deg, var(--gold), #e8a820); color: var(--navy-dark); padding: 12px 28px; border-radius: var(--radius-sm); font-weight: 700; font-size: .95rem; border: none; cursor: pointer; transition: var(--transition); display: inline-flex; align-items: center; gap: 8px; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200,151,42,.4); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); padding: 10px 24px; border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem; cursor: pointer; transition: var(--transition); display: inline-flex; align-items: center; gap: 8px; }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-sm { padding: 7px 16px; font-size: .82rem; }
.btn-danger { background: #dc2626; color: white; padding: 8px 18px; border-radius: 8px; border: none; cursor: pointer; font-weight: 600; font-size: .85rem; }
.btn-success { background: #059669; color: white; padding: 8px 18px; border-radius: 8px; border: none; cursor: pointer; font-weight: 600; font-size: .85rem; }
.btn-warning { background: #d97706; color: white; padding: 8px 18px; border-radius: 8px; border: none; cursor: pointer; font-weight: 600; font-size: .85rem; }

.category-card { background: var(--white); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); transition: var(--transition); }
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.category-card-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 18px; background: rgba(15,37,87,.08); color: var(--navy); font-size: 1.35rem; margin-bottom: 18px; }
.category-card h5 { margin-bottom: 10px; color: var(--navy); font-size: 1.05rem; }
.category-card p { color: var(--gray-600); font-size: .92rem; line-height: 1.6; }

.success-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 10px; }
.success-card { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); display: flex; align-items: center; gap: 16px; transition: var(--transition); }
.success-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.success-card-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--white); }
.success-card-content h3 { font-size: 1.5rem; margin-bottom: 6px; color: var(--navy); }
.success-card-content p { margin: 0; color: var(--gray-600); font-size: .88rem; }

.testimonial-carousel { max-width: 720px; margin: 0 auto; }
.testimonial-carousel .carousel-indicators [data-bs-target] { background-color: var(--navy); }
.testimonial-slide { max-width: 640px; text-align: center; padding: 32px 28px; }
.testimonial-initial { display: flex; align-items: center; justify-content: center; background: var(--gold-light); color: var(--navy); font-weight: 700; font-size: 1.2rem; }
.testimonial-card { background: var(--white); border-radius: var(--radius); padding: 24px; border: 1.5px solid var(--gray-200); box-shadow: var(--shadow-sm); transition: var(--transition); }
.testimonial-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.testimonial-card .quote { font-size: 1.05rem; color: var(--navy); margin-bottom: 18px; line-height: 1.7; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-photo { width: 54px; height: 54px; border-radius: 16px; object-fit: cover; border: 2px solid var(--gold-light); }
.testimonial-meta { color: var(--gray-600); font-size: .9rem; }

.current-affair-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1.5px solid var(--gray-200); overflow:hidden; transition: var(--transition); }
.current-affair-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.current-affair-card-body { padding: 20px; }
.current-affair-card .meta { color: #475569; font-size: .78rem; margin-bottom: 12px; display:flex;flex-wrap:wrap;gap:10px; }
.current-affair-card .title { font-weight:700;color:var(--navy);margin-bottom:10px;font-size:1rem; }
.current-affair-card .excerpt { color: var(--gray-600); font-size: .88rem; line-height:1.6; }
.current-affair-card .category-pill { display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;background:rgba(14,165,233,.12);color:#0369a1;font-size:.76rem;font-weight:700;margin-top:12px; }

.floating-actions { position: fixed; right: 20px; bottom: 24px; display: flex; flex-direction: column; gap: 14px; z-index: 2000; }
.whatsapp-float, .chat-launcher, .sticky-apply { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: white; text-align:center; text-decoration:none; box-shadow: var(--shadow-lg); transition: var(--transition); }
.whatsapp-float { background: #25D366; }
.chat-launcher { background: var(--navy); }
.sticky-apply { width: auto; padding: 0 18px; border-radius: 999px; background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--navy); font-weight: 700; min-height: 54px; }
.whatsapp-float:hover, .chat-launcher:hover, .sticky-apply:hover { transform: translateY(-3px); }

/* Premium ChatGPT-like Chatbot Style Suite */
.chat-widget-premium {
  position: fixed;
  right: 20px;
  bottom: 90px;
  width: min(720px, calc(100vw - 40px));
  height: 560px;
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: flex;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2100;
  border: 1px solid var(--gray-200);
}
.chat-widget-premium.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
}
.chat-widget-premium.expanded {
  width: 90vw;
  height: 85vh;
  right: 5vw;
  bottom: 8vh;
}
.chat-sidebar-vs {
  width: 240px;
  background: var(--navy-dark);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: width 0.3s ease, padding 0.3s ease;
  overflow: hidden;
}
.chat-sidebar-vs.collapsed {
  width: 0;
  padding: 0;
  border-right: none;
}
.chat-sidebar-header {
  padding: 18px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.chat-sidebar-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}
.chat-sidebar-footer {
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.15);
}
.chat-history-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.chat-history-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}
.chat-history-item.active {
  background: rgba(200, 151, 42, 0.15);
  color: var(--gold-light);
}
.chat-content-vs {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  min-width: 0;
}
.chat-header-vs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--navy-dark);
}
.chat-action-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: var(--gray-100);
  color: var(--gray-600);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s;
  font-size: 0.85rem;
}
.chat-action-btn:hover {
  background: var(--gray-200);
  color: var(--navy);
}
.sidebar-toggle-chat {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: none;
  color: var(--gray-600);
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
}
.sidebar-toggle-chat:hover {
  color: var(--navy);
}
.chat-body-vs {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #f8fafc;
  scroll-behavior: smooth;
}
.chat-message {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: 85%;
  animation: msgFadeIn 0.3s ease-out;
}
.chat-message.bot {
  align-self: flex-start;
}
.chat-message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.msg-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.chat-message.bot .msg-avatar {
  background: #e0f2fe;
  color: #0284c7;
  border: 1px solid #bae6fd;
}
.chat-message.user .msg-avatar {
  background: var(--navy);
  color: var(--white);
}
.msg-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.msg-text-wrap strong {
  font-size: 0.72rem;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.chat-message.user .msg-text-wrap strong {
  text-align: right;
}
.msg-content {
  background: var(--white);
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.92rem;
  color: var(--gray-800);
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  border: 1px solid var(--gray-200);
  word-break: break-word;
}
.chat-message.bot .msg-content {
  border-top-left-radius: 4px;
}
.chat-message.user .msg-content {
  background: var(--navy);
  color: var(--white);
  border-top-right-radius: 4px;
  border: none;
}
.chat-typing-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 18px;
  background: var(--white);
  border-radius: 100px;
  border: 1.5px solid var(--gray-200);
  width: fit-content;
  margin-left: 66px;
  margin-bottom: 10px;
  animation: msgFadeIn 0.3s ease-out;
}
.chat-typing-indicator .dot {
  width: 6px;
  height: 6px;
  background: #0284c7;
  border-radius: 50%;
  animation: typingDot 1.4s infinite alternate;
}
.chat-typing-indicator .dot:nth-child(2) {
  animation-delay: 0.2s;
}
.chat-typing-indicator .dot:nth-child(3) {
  animation-delay: 0.4s;
}
.chat-input-area-vs {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 16px 20px;
  border-top: 1px solid var(--gray-200);
  background: var(--white);
}
.chat-input-area-vs input {
  flex: 1;
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  padding: 11px 16px;
  font-size: 0.92rem;
  outline: none;
  background: #f8fafc;
  color: var(--gray-800);
  transition: all 0.25s;
}
.chat-input-area-vs input:focus {
  border-color: var(--navy-light);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(30,58,138,0.1);
}
.chat-input-area-vs button {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: none;
  background: var(--navy);
  color: white;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s;
}
.chat-input-area-vs button:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
}

/* Premium Chat Dark Mode Customization */
.chat-widget-premium.dark {
  background: #111827;
  border-color: #374151;
}
.chat-widget-premium.dark .chat-sidebar-vs {
  background: #030712;
  border-color: #1f2937;
}
.chat-widget-premium.dark .chat-content-vs {
  background: #1f2937;
}
.chat-widget-premium.dark .chat-header-vs {
  background: #111827;
  border-color: #374151;
  color: var(--white);
}
.chat-widget-premium.dark .chat-header-vs .chat-action-btn {
  background: #374151;
  color: #d1d5db;
}
.chat-widget-premium.dark .chat-header-vs .chat-action-btn:hover {
  background: #4b5563;
  color: var(--white);
}
.chat-widget-premium.dark .sidebar-toggle-chat {
  color: #cbd5e1;
}
.chat-widget-premium.dark .sidebar-toggle-chat:hover {
  color: var(--white);
}
.chat-widget-premium.dark .chat-body-vs {
  background: #1f2937;
}
.chat-widget-premium.dark .chat-message.bot .msg-content {
  background: #374151;
  color: #f9fafb;
  border-color: #4b5563;
}
.chat-widget-premium.dark .chat-message.bot .msg-avatar {
  background: rgba(2, 132, 199, 0.15);
  color: #38bdf8;
  border-color: rgba(2, 132, 199, 0.3);
}
.chat-widget-premium.dark .chat-message.user .msg-content {
  background: var(--navy-light);
}
.chat-widget-premium.dark .chat-typing-indicator {
  background: #374151;
  border-color: #4b5563;
}
.chat-widget-premium.dark .chat-typing-indicator .dot {
  background: #38bdf8;
}
.chat-widget-premium.dark .chat-input-area-vs {
  background: #111827;
  border-color: #374151;
}
.chat-widget-premium.dark .chat-input-area-vs input {
  background: #374151;
  border-color: #4b5563;
  color: var(--white);
}
.chat-widget-premium.dark .chat-input-area-vs input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56,189,248,0.15);
}

@keyframes typingDot {
  0% { transform: translateY(0); opacity: 0.4; }
  100% { transform: translateY(-4px); opacity: 1; }
}
@keyframes msgFadeIn {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .chat-widget-premium {
    width: 100vw;
    height: 100vh;
    right: 0;
    bottom: 0;
    border-radius: 0;
    border: none;
  }
  .chat-widget-premium.expanded {
    width: 100vw;
    height: 100vh;
    right: 0;
    bottom: 0;
  }
  .chat-sidebar-vs {
    position: absolute;
    left: 0;
    top: 60px;
    bottom: 0;
    z-index: 1010;
  }
}


@media (max-width: 992px) {
  .success-cards { grid-template-columns: repeat(2,1fr); }
  .floating-actions { right: 14px; bottom: 16px; gap: 12px; }
}
@media (max-width: 768px) {
  .success-cards { grid-template-columns: 1fr; }
  .current-affair-card { min-height: auto; }
}

/* ==============================
   MOCK TEST CARD
   ============================== */
.test-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1.5px solid var(--gray-200); padding: 22px; transition: var(--transition); }
.test-card:hover { box-shadow: var(--shadow-md); }
.test-badge { display: inline-block; padding: 4px 12px; border-radius: 100px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.test-badge-active { background: #d1fae5; color: #065f46; }
.test-badge-upcoming { background: #dbeafe; color: #1e40af; }
.test-badge-ended { background: #f1f5f9; color: #64748b; }
.test-info-row { display: flex; gap: 16px; margin: 12px 0; flex-wrap: wrap; }
.test-info-item { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--gray-600); }

/* ==============================
   ADMIN SIDEBAR
   ============================== */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 260px; background: var(--navy-dark); display: flex; flex-direction: column; position: fixed; top: 0; left: 0; height: 100vh; overflow-y: auto; z-index: 200; transition: var(--transition); }
.admin-sidebar-header { padding: 20px 20px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.admin-sidebar-nav { padding: 16px 0; flex: 1; }
.admin-nav-section { padding: 8px 20px 4px; font-size: .7rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .1em; }
.admin-nav-link { display: flex; align-items: center; gap: 12px; padding: 11px 20px; color: #94a3b8; font-size: .9rem; font-weight: 500; transition: var(--transition); border-left: 3px solid transparent; text-decoration: none; }
.admin-nav-link:hover { background: rgba(255,255,255,.05); color: var(--white); border-left-color: var(--gold); }
.admin-nav-link.active { background: rgba(200,151,42,.12); color: var(--gold-light); border-left-color: var(--gold); }
.admin-nav-link .icon { width: 20px; text-align: center; font-size: 1rem; }
.admin-main { margin-left: 260px; flex: 1; background: var(--gray-50); }
.admin-topbar { background: var(--white); height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 100; }
.admin-page { padding: 28px; }
.admin-page-title { font-size: 1.5rem; color: var(--navy); margin-bottom: 4px; }
.admin-page-sub { color: var(--gray-600); font-size: .88rem; }

/* ==============================
   STATS CARDS (ADMIN)
   ============================== */
.stat-card { background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 18px; border-left: 4px solid; }
.stat-card-blue { border-left-color: var(--navy-light); }
.stat-card-gold { border-left-color: var(--gold); }
.stat-card-green { border-left-color: #059669; }
.stat-card-red { border-left-color: #dc2626; }
.stat-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.stat-info h3 { font-size: 1.8rem; font-family: 'Playfair Display', serif; color: var(--navy); line-height: 1; }
.stat-info p { font-size: .83rem; color: var(--gray-600); margin-top: 3px; }

/* ==============================
   DATA TABLE
   ============================== */
.data-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.data-table th { background: var(--gray-50); color: var(--gray-600); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; padding: 12px 16px; text-align: left; border-bottom: 2px solid var(--gray-200); }
.data-table td { padding: 13px 16px; border-bottom: 1px solid var(--gray-100); color: var(--gray-800); vertical-align: middle; }
.data-table tr:hover td { background: var(--gray-50); }
.table-wrap { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; overflow-x: auto; }

/* ==============================
   FORMS
   ============================== */
.form-card { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: .85rem; font-weight: 600; color: var(--gray-800); margin-bottom: 7px; }
.form-control { width: 100%; padding: 11px 14px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); font-family: 'DM Sans', sans-serif; font-size: .9rem; color: var(--gray-800); background: var(--white); transition: var(--transition); }
.form-control:focus { outline: none; border-color: var(--navy-light); box-shadow: 0 0 0 3px rgba(30,58,138,.12); }
.form-control::placeholder { color: #94a3b8; }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }
.input-group { position: relative; }
.input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #94a3b8; }
.input-group .form-control { padding-left: 42px; }

/* ==============================
   ATTENDANCE
   ============================== */
.attendance-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 12px; }
.att-day { height: 34px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 600; }
.att-present { background: #d1fae5; color: #065f46; }
.att-absent { background: #fee2e2; color: #991b1b; }
.att-late { background: #fef3c7; color: #92400e; }
.att-none { background: var(--gray-100); color: #94a3b8; }
.att-header { background: var(--gray-200); color: var(--gray-600); }
.progress-bar { height: 8px; border-radius: 100px; background: var(--gray-200); overflow: hidden; }
.progress-fill { height: 100%; border-radius: 100px; transition: width .5s ease; }

/* ==============================
   MODAL
   ============================== */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; transition: var(--transition); }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-box { background: var(--white); border-radius: var(--radius-lg); width: 100%; max-width: 580px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-xl); transform: scale(.95); transition: var(--transition); }
.modal-overlay.active .modal-box { transform: scale(1); }
.modal-header { padding: 22px 26px 0; display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-size: 1.2rem; color: var(--navy); }
.modal-close { width: 32px; height: 32px; background: var(--gray-100); border: none; border-radius: 8px; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.modal-close:hover { background: var(--gray-200); }
.modal-body { padding: 20px 26px 26px; }

/* ==============================
   LOGIN PAGE
   ============================== */
.login-page { min-height: 100vh; background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%); display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-box { background: var(--white); border-radius: var(--radius-lg); padding: 40px; width: 100%; max-width: 440px; box-shadow: var(--shadow-xl); }
.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo .logo-circle { width: 68px; height: 68px; background: linear-gradient(135deg, var(--gold), var(--gold-light)); border-radius: 18px; display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 900; color: var(--navy-dark); margin: 0 auto 12px; }
.login-tabs { display: flex; background: var(--gray-100); border-radius: var(--radius-sm); padding: 4px; margin-bottom: 24px; }
.login-tab { flex: 1; text-align: center; padding: 9px; border-radius: 6px; font-size: .88rem; font-weight: 600; cursor: pointer; transition: var(--transition); color: var(--gray-600); }
.login-tab.active { background: var(--white); color: var(--navy); box-shadow: var(--shadow-sm); }

/* ==============================
   STUDENT SIDEBAR
   ============================== */
.student-sidebar { width: 240px; background: linear-gradient(180deg, var(--navy-dark) 0%, #0d1f4e 100%); }
.student-nav-link { display: flex; align-items: center; gap: 11px; padding: 10px 20px; color: #94a3b8; font-size: .88rem; font-weight: 500; transition: var(--transition); border-left: 3px solid transparent; text-decoration: none; }
.student-nav-link:hover, .student-nav-link.active { background: rgba(255,255,255,.06); color: var(--white); border-left-color: var(--gold); }

/* ==============================
   PDF & VIDEO CARDS
   ============================== */
.resource-card { background: var(--white); border-radius: var(--radius); border: 1.5px solid var(--gray-200); padding: 16px 18px; display: flex; align-items: center; gap: 14px; transition: var(--transition); }
.resource-card:hover { box-shadow: var(--shadow-md); border-color: var(--navy-light); }
.resource-icon-pdf { width: 44px; height: 44px; background: #fee2e2; color: #dc2626; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.resource-icon-video { width: 44px; height: 44px; background: #fce7f3; color: #be185d; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.resource-info { flex: 1; min-width: 0; }
.resource-info h5 { font-size: .9rem; font-weight: 600; color: var(--navy); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resource-info span { font-size: .78rem; color: var(--gray-600); }
.resource-actions { display: flex; gap: 8px; }

/* ==============================
   MOCK TEST INTERFACE
   ============================== */
.test-container { display: grid; grid-template-columns: 1fr 240px; gap: 20px; }
.question-panel { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.question-navigator { background: var(--white); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); height: fit-content; position: sticky; top: 20px; }
.q-num-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 12px; }
.q-num-btn { height: 34px; border-radius: 6px; border: none; cursor: pointer; font-size: .82rem; font-weight: 600; transition: var(--transition); }
.q-num-answered { background: #d1fae5; color: #065f46; }
.q-num-unanswered { background: var(--gray-100); color: var(--gray-600); }
.q-num-current { background: var(--navy); color: var(--white); }
.q-num-flagged { background: #fef3c7; color: #92400e; }
.options-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.option-item { padding: 14px 18px; border-radius: var(--radius-sm); border: 2px solid var(--gray-200); cursor: pointer; transition: var(--transition); display: flex; align-items: center; gap: 12px; }
.option-item:hover { border-color: var(--navy-light); background: #f0f4ff; }
.option-item.selected { border-color: var(--navy); background: #dbeafe; }
.option-item.correct { border-color: #059669; background: #d1fae5; }
.option-item.wrong { border-color: #dc2626; background: #fee2e2; }
.option-label { width: 28px; height: 28px; border-radius: 50%; background: var(--gray-100); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; flex-shrink: 0; }

/* ==============================
   FOOTER
   ============================== */
footer { background: var(--navy-dark); color: #94a3b8; }
.footer-top { padding: 56px 0 32px; }
.footer-brand h3 { color: var(--white); font-family: 'Playfair Display', serif; font-size: 1.4rem; }
.footer-brand p { font-size: .88rem; margin-top: 10px; line-height: 1.7; max-width: 280px; }
.footer-heading { color: var(--gold-light); font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-links a { color: #94a3b8; font-size: .88rem; transition: var(--transition); }
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0; text-align: center; font-size: .82rem; color: #64748b; }

/* ==============================
   ALERTS & BADGES
   ============================== */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: .9rem; }
.alert-info { background: #dbeafe; color: #1e40af; border-left: 4px solid #3b82f6; }
.alert-success { background: #d1fae5; color: #065f46; border-left: 4px solid #10b981; }
.alert-warning { background: #fef3c7; color: #92400e; border-left: 4px solid #f59e0b; }
.alert-danger { background: #fee2e2; color: #991b1b; border-left: 4px solid #ef4444; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: .72rem; font-weight: 700; }
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-green { background: #d1fae5; color: #065f46; }
.badge-red { background: #fee2e2; color: #dc2626; }
.badge-yellow { background: #fef3c7; color: #92400e; }
.badge-gray { background: #f1f5f9; color: #64748b; }

/* ==============================
   UTILITIES
   ============================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.text-muted { color: var(--gray-600); }
.text-sm { font-size: .85rem; }
.fw-bold { font-weight: 700; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.py-2 { padding-top: 16px; padding-bottom: 16px; }
.gap-2 { gap: 16px; }
.d-flex { display: flex; } .align-center { align-items: center; } .justify-between { justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.rounded { border-radius: var(--radius); }
.shadow { box-shadow: var(--shadow-md); }
.w-100 { width: 100%; }
.card-white { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.divider { height: 1px; background: var(--gray-200); margin: 20px 0; }

/* ==============================
   MEDIA QUERIES
   ============================== */
@media (max-width: 1200px) {
  .admin-sidebar { width: 220px; }
  .admin-main { margin-left: 220px; }
}

@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .test-container { grid-template-columns: 1fr; }
  .question-navigator { position: static; }
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .admin-topbar { padding: 0 16px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .navbar-vs .container { padding: 0 16px; }
  .hero { padding: 60px 0; }
  .hero-stats { gap: 20px; }
  .hero-img-area { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .admin-page { padding: 16px; }
  .student-sidebar { width: 100%; height: auto; position: relative; }
  .admin-layout { flex-direction: column; }
  .footer-top .row { flex-direction: column; gap: 32px; }
  .test-info-row { flex-direction: column; gap: 8px; }
}

@media (max-width: 480px) {
  .login-box { padding: 28px 20px; }
  .form-card { padding: 20px; }
  .modal-box { margin: 10px; }
  .btn-primary, .btn-gold { padding: 10px 20px; font-size: .88rem; }
  .stat-card { flex-direction: column; text-align: center; }
}

/* ==============================
   MOBILE MENU
   ============================== */
.mobile-menu { position: fixed; top: 0; right: 0; width: 280px; height: 100vh; background: var(--navy-dark); z-index: 2000; transform: translateX(100%); transition: var(--transition); padding: 20px; box-shadow: var(--shadow-xl); }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close { position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,.1); border: none; color: white; width: 36px; height: 36px; border-radius: 8px; cursor: pointer; font-size: 1.1rem; }
.mobile-nav-links { list-style: none; margin-top: 60px; display: flex; flex-direction: column; gap: 4px; }
.mobile-nav-links a { display: block; color: #94a3b8; padding: 12px 16px; border-radius: var(--radius-sm); font-size: .95rem; font-weight: 500; transition: var(--transition); }
.mobile-nav-links a:hover { background: rgba(255,255,255,.08); color: white; }
.overlay-bg { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1999; display: none; }
.overlay-bg.active { display: block; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Interactive PDF Titles */
.pdf-title-link {
  transition: color 0.2s ease;
}
.pdf-title-link:hover {
  color: var(--navy-light) !important;
  text-decoration: underline !important;
}
