/* Bhoomi Global Education Consultancy - Homepage Styles */
:root {
  --primary: #085CFF;
  --primary-dark: #064BCC;
  --bg: #0f172a; /* slate-900 */
  --text: #0b1220;
  --muted: #4b5563;
  --light: #f8fafc;
  --surface: #ffffff;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: #f4f7fb;
}

/* Utilities */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section.alt { background: #eef2ff; }
.section h2 { font-size: 32px; margin: 0 0 8px; }
.section-intro { color: var(--muted); margin-bottom: 24px; }
.grid { display: grid; gap: 20px; }
.cards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.btn { display: inline-block; padding: 12px 18px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.btn-small { padding: 8px 12px; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-light { background: #fff; color: var(--primary); }
.btn-outline-light { border: 2px solid #fff; color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--primary); }

/* Topbar */
.topbar { background: #0b1220; color: #cbd5e1; font-size: 14px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding: 8px 20px; }
.topbar a { color: #cbd5e1; text-decoration: none; }
.topbar .sep { margin: 0 8px; opacity: 0.6; }

/* Header */
.header { background: #ffffff; position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.logo { font-weight: 700; font-size: 20px; color: var(--primary); text-decoration: none; }
.nav-links a { margin: 0 12px; text-decoration: none; color: #334155; font-weight: 500; }
.nav-toggle { display: none; font-size: 24px; background: none; border: none; cursor: pointer; }

/* Dropdown */
.nav-links .dropdown { position: relative; display: inline-block; padding-bottom: 8px; }
.nav-links .dropdown-toggle { display: inline-flex; align-items: center; }
.nav-links .dropdown-toggle::after { content: ""; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid #334155; margin-left: 6px; }
.nav-links .dropdown-menu { position: absolute; left: 0; top: 100%; background: #fff; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 10px; min-width: 180px; display: none; z-index: 30; }
.nav-links .dropdown-menu a { display: block; padding: 8px 10px; margin: 0; color: #334155; border-radius: 6px; }
.nav-links .dropdown-menu a:hover { background: #f1f5f9; }
/* Keep submenu open for hover, keyboard focus, and mobile `.open` state */
.nav-links .dropdown:hover .dropdown-menu,
.nav-links .dropdown:focus-within .dropdown-menu,
.nav-links .dropdown.open .dropdown-menu { display: block; }

/* Responsive (existing) */
.nav-links .dropdown:hover .dropdown-menu { display: block; }

/* Hero */
.hero { position: relative; min-height: 62vh; display: flex; align-items: center; color: white; background: linear-gradient(135deg, #0b1220 0%, #0f172a 35%, #1f2937 100%); }
.hero .overlay { position: absolute; inset: 0; background-image: radial-gradient(rgba(8,92,255,0.25) 1px, transparent 1px); background-size: 20px 20px; opacity: 0.3; }
.hero-content { position: relative; z-index: 1; padding: 40px 0; }
.hero h1 { font-size: 44px; margin: 0 0 12px; }
.hero p { font-size: 18px; color: #e5e7eb; max-width: 640px; }
.cta-group { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.trust { display: flex; gap: 28px; margin-top: 30px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 28px; }
.stat span { color: #cbd5e1; font-size: 13px; }

/* Cards */
.card { background: var(--surface); padding: 18px; border-radius: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.card h3 { margin-top: 0; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.bullet { padding-left: 18px; margin: 0; }
.bullet li { margin: 6px 0; }
/* Inline SVG icon helper inside cards (used in india.html) */
.card .icon { margin-top: 10px; display: inline-block; opacity: 0.95; }

/* Steps */
.steps { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.step { background: var(--surface); padding: 18px; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.badge { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; margin-bottom: 8px; }

/* Testimonials */
.testimonials { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.quote { background: var(--surface); padding: 20px; border-left: 4px solid var(--primary); border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.quote p { margin-top: 0; }
.quote cite { color: var(--muted); font-style: normal; }
/* Avatar + meta for testimonials */
.quote-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 2px solid #e2e8f0; }
.quote-meta { display: flex; flex-direction: column; line-height: 1.2; }
.quote-meta strong { font-size: 14px; color: #1f2937; }
.quote-meta span { font-size: 12px; color: #6b7280; }

/* CTA */
.cta { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; padding: 64px 0; text-align: center; }
.cta-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }

/* Footer */
.footer { background: #0b1220; color: #cbd5e1; padding: 28px 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; align-items: start; }
.footer .logo { color: #fff; }
.footer-links a { color: #cbd5e1; text-decoration: none; display: inline-block; margin: 4px 8px 0 0; }
.footer-copy { grid-column: 1 / -1; font-size: 13px; opacity: 0.8; margin-top: 10px; }

cite{
  font-size: 14px;
  font-weight: 600;
}

/* Tables (used by country pages like India/USA) */
.table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 12px; overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,.06); }
.table th, .table td { padding: 12px 14px; border-bottom: 1px solid #e5e7eb; text-align: left; }
.table thead th { background: #f1f5f9; color: #1f2937; font-weight: 600; }
.table tbody tr:hover { background: #f8fafc; }

/* Responsive */
@media (max-width: 840px) {
  .nav-toggle { display: block; color: #334155; }
  .nav-links { position: absolute; right: 20px; top: 64px; background: #fff; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 12px; display: none; flex-direction: column; gap: 8px; }
  .nav-links a { margin: 6px 10px; }
  /* Ensure mobile toggle works via `.open` class, handled by script.js */
  .nav-links .dropdown .dropdown-menu { position: static; box-shadow: none; padding: 4px 0; }
  /* Table compact on mobile */
  .table th, .table td { padding: 10px; font-size: 14px; }
}

/* University thumbnails for country pages */
.university-thumb { width: 100%; border-radius: 8px; margin-bottom: 8px; display: block; }
.carousel {
  overflow: hidden;
  position: relative;
}
.carousel-track {
  display: flex;
  gap: 20px;
  will-change: transform;
  transition: transform 600ms ease;
}
.carousel-item {
  flex: 0 0 calc((100% - 40px) / 3); /* 3 items visible with 20px gaps */
}
/* Mobile fallback: show 1 item at a time */
@media (max-width: 840px) {
  .carousel-item {
    flex: 0 0 100%;
  }
}