/* ===== DESIGN SYSTEM 2.0 - FUTURE EXPERT ===== */
:root {
  --bg: #020617;
  --card: rgba(15, 23, 42, 0.7);
  --border: rgba(255, 255, 255, .08);
  --primary: #3b82f6;
  --secondary: #8b5cf6;
  --accent: #60a5fa;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --radius: 24px;
  --radius-lg: 32px;
  --shadow: 0 20px 60px rgba(0,0,0,.45);
  --max-width: 1280px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg: #f8fafc;
  --card: rgba(255, 255, 255, 0.8);
  --border: rgba(0, 0, 0, 0.08);
  --primary: #2563eb;
  --secondary: #7c3aed;
  --accent: #3b82f6;
  --text: #0f172a;
  --muted: #64748b;
  --shadow: 0 10px 30px rgba(0,0,0,0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, sans-serif;
  background: var(--bg);
  background-image: radial-gradient(circle at top left, #172554 0%, var(--bg) 40%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.5s ease;
}

[data-theme="light"] body {
  background-image: radial-gradient(circle at top left, #e2e8f0 0%, #f8fafc 40%);
}

.container { width: min(92%, var(--max-width)); margin-inline: auto; }

/* ===== NAVIGATION ===== */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  background: rgba(2, 6, 23, .75);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
[data-theme="light"] .navbar { background: rgba(248, 250, 252, 0.8); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }

.logo {
  font-size: 1.5rem; font-weight: 800;
  background: linear-gradient(90deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  display: flex; flex-direction: column; line-height: 1.1;
}

.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { color: var(--text); font-weight: 500; transition: var(--transition); font-size: 0.95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 16px; font-weight: 700;
  transition: var(--transition); border: 1px solid transparent; cursor: pointer;
  font-family: inherit; font-size: 0.95rem;
}
.btn-primary { background: linear-gradient(90deg, var(--primary), var(--secondary)); color: white; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(59, 130, 246, 0.3); }
.btn-outline { border-color: var(--border); background: rgba(255,255,255,.04); color: var(--text); }
.btn-outline:hover { background: rgba(255,255,255,.08); }

/* ===== HERO ===== */
.hero { padding: 100px 0 60px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 60px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.25);
  color: #93c5fd; margin-bottom: 24px; font-size: 0.9rem; font-weight: 600;
}

.hero h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.1; margin-bottom: 24px; font-weight: 800; }
.hero h1 span { background: linear-gradient(90deg, #60a5fa, #c084fc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { color: var(--muted); font-size: 1.1rem; margin-bottom: 32px; max-width: 600px; }

.hero-card {
  background: var(--card); border: 1px solid var(--border); backdrop-filter: blur(18px);
  border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow);
}

.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
.stat { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); border-radius: 18px; padding: 20px; }
.stat h4 { font-size: 1.75rem; font-weight: 800; margin-bottom: 4px; color: var(--primary); }
.stat p { margin: 0; font-size: 0.85rem; color: var(--muted); }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 16px; }
.section-header p { color: var(--muted); max-width: 700px; margin-inline: auto; }

/* ===== CAROUSELS (Horizontal Scroll) ===== */
.carousel-section { margin-bottom: 60px; }
.carousel-track {
  display: flex; gap: 20px; overflow-x: auto; padding: 10px 4px 30px 4px;
  scroll-behavior: smooth; -webkit-overflow-scrolling: touch; flex-wrap: nowrap;
  scroll-snap-type: x mandatory;
}
.carousel-track > * {
  flex: 0 0 320px;
  scroll-snap-align: start;
}
@media (max-width: 640px) {
  .carousel-track { gap: 16px; }
  .carousel-track > * { flex: 0 0 280px; }
}
.carousel-track::-webkit-scrollbar { height: 6px; }
.carousel-track::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }

/* ===== COLLEGE CARDS ===== */
.college-card {
  flex: 0 0 320px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: var(--transition);
}
.college-card:hover { transform: translateY(-8px); border-color: rgba(96,165,250,0.3); }
.college-card__img { height: 200px; background: linear-gradient(135deg, var(--primary), var(--secondary)); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.college-card__body { padding: 24px; }
.college-card__tag { display: inline-block; padding: 6px 12px; border-radius: 999px; background: rgba(34,197,94,.12); color: #86efac; font-size: 0.75rem; font-weight: 700; margin-bottom: 12px; }
.college-card__name { font-size: 1.25rem; font-weight: 800; margin-bottom: 8px; }
.college-card__desc { color: var(--muted); font-size: 0.9rem; margin-bottom: 20px; }

/* ===== TRENDING CARD ===== */
.trending-card {
  display: flex; align-items: center; gap: 32px; margin-top: -40px; 
  position: relative; z-index: 10; text-decoration: none; color: inherit; 
  overflow: hidden; padding: 0 !important;
}
.trending-img { width: 320px; height: 240px; flex-shrink: 0; }
.trending-content { flex: 1; padding: 32px; }

@media (max-width: 992px) {
  .trending-card { flex-direction: column; margin-top: 0; }
  .trending-img { width: 100%; height: 200px; }
  .trending-content { padding: 24px; }
}

/* ===== FOOTER ===== */
.footer { padding: 80px 0 40px; background: var(--bg); border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.footer-col h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text); transition: var(--transition); }
.footer-links a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 50px; padding-top: 30px; text-align: center; color: var(--muted); font-size: 0.9rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { text-align: center; }
  .hero p { text-align: center; margin-inline: auto; }
  .hero-actions { justify-content: center; }
  #mobile-menu-btn { display: none !important; }
  .nav-links { display: none !important; }
}

@media (max-width: 640px) {
  .hero { padding-top: 40px; }
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 0.95rem; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .stats-grid { grid-template-columns: 1fr; }
  
  /* Floating elements adjustments for small screens (Avoiding Bottom Nav) */
  .mobile-bottom-nav { 
    display: flex !important;
    position: fixed; bottom: 0; left: 0; width: 100%; height: 65px;
    background: rgba(15, 23, 42, 0.9); backdrop-filter: blur(24px);
    border-top: 1px solid var(--border); z-index: 2000;
    justify-content: space-around; align-items: center;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -10px 30px rgba(0,0,0,0.3);
  }
  .mobile-nav-item {
    display: flex; flex-direction: column; align-items: center;
    text-decoration: none; color: var(--muted); gap: 4px;
    transition: var(--transition); flex: 1;
  }
  .mobile-nav-item .nav-icon { font-size: 1.2rem; }
  .mobile-nav-item .nav-label { font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
  .mobile-nav-item:hover, .mobile-nav-item.active { color: var(--primary); }

  body { padding-bottom: 65px !important; }

  .floating-book-btn { 
    top: auto !important; bottom: 170px !important; right: 20px !important; 
    padding: 10px 16px !important; font-size: 0.8rem !important; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.3) !important;
  }
  .lead-gen-btn { 
    bottom: 90px !important; left: 20px !important; 
    padding: 12px 18px !important; font-size: 0.85rem !important; 
  }
  .chatbot-trigger { 
    bottom: 90px !important; right: 20px !important; 
    width: 55px !important; height: 55px !important; font-size: 24px !important; 
  }
  .cb-popup {
    bottom: 155px !important; right: 10px !important; width: calc(100vw - 20px) !important;
  }
  .trending-content h2 { font-size: 1.2rem !important; margin-bottom: 4px !important; }
  .trending-content p { font-size: 0.85rem !important; line-height: 1.4 !important; }
  .trending-img { height: 160px !important; }
}

/* Base style for bottom nav (hidden by default) */
.mobile-bottom-nav { display: none; }
/* ===== FAQ SECTION REDESIGN ===== */
.faq-section { padding: 80px 0; background: var(--bg); }
.faq-container { max-width: 900px; margin: auto; display: flex; flex-direction: column; gap: 16px; }

.faq-item { 
  background: var(--card); 
  border: 1px solid var(--border); 
  border-radius: 12px; 
  overflow: hidden; 
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.faq-question {
  width: 100%; background: none; border: none; padding: 24px;
  display: flex; align-items: center;
  cursor: pointer; color: var(--text); text-align: left;
}

.faq-text { flex: 1; font-weight: 700; font-size: 1.05rem; }

.faq-answer-wrapper {
  max-height: 0; overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-inner {
  padding: 0 24px 24px 24px; 
  color: var(--muted); line-height: 1.7; font-size: 1rem;
  border-top: 1px solid transparent;
}

/* Expanded State */
.faq-item.active { border-color: var(--primary); box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1); }
.faq-item.active .faq-answer-wrapper { max-height: 500px; }
.faq-item.active .faq-answer-inner { border-top: 1px solid var(--border); padding-top: 24px; }

@media (max-width: 768px) {
  .faq-question { padding: 20px; }
  .faq-answer-inner { padding: 0 20px 20px 20px; }
}
