/* ============================================================
   The Institute Hub — Main Stylesheet
   Theme: Professional Education SaaS — Navy + Gold + White
   Fonts: Playfair Display + Plus Jakarta Sans
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');


:root {
  --navy: #1a3a8f;
  --navy-dark: #0f2468;
  --navy-deep: #0a1a4e;
  --gold: #e8a020;
  --gold-light: #f5c842;
  --gold-pale: #fef3d0;
  --white: #ffffff;
  --off-white: #f8faff;
  --light: #eef2ff;
  --mid: #c8d4f0;
  --gray: #6b7a9d;
  --dark-gray: #3a4565;
  --dark: #1a2340;
  --green: #16a34a;
  --red: #dc2626;

  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 40px rgba(26,58,143,0.12);
  --shadow-gold: 0 8px 32px rgba(232,160,32,0.3);
  --shadow-card: 0 4px 24px rgba(26,58,143,0.08);
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--dark); background: var(--white); line-height: 1.65; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: var(--font-body); cursor: pointer; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(26,58,143,0.08);
  padding: 0 6%;
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: 0 4px 30px rgba(26,58,143,0.1); }

.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 44px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--dark-gray);
  padding: 8px 14px; border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); background: var(--light); }

.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: 0.65rem; color: var(--gray); }
.dropdown-menu {
  position: absolute; top: calc(100% + 10px); left: 0;
  background: var(--white); border: 1px solid var(--mid);
  border-radius: var(--radius); padding: 8px; min-width: 190px;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden;
  transform: translateY(-8px); transition: var(--transition);
}
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { display: block; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 0.87rem; color: var(--dark-gray); }
.dropdown-menu a:hover { background: var(--light); color: var(--navy); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.btn-ghost {
  background: transparent; border: 1.5px solid var(--navy);
  color: var(--navy); padding: 9px 20px; border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 600; transition: var(--transition);
}
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-nav-cta {
  background: var(--navy); color: var(--white);
  padding: 9px 22px; border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 600; transition: var(--transition); border: none;
}
.btn-nav-cta:hover { background: var(--navy-dark); transform: translateY(-1px); box-shadow: var(--shadow); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: var(--transition); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy); color: var(--white);
  padding: 14px 30px; border-radius: var(--radius);
  font-weight: 700; font-size: 0.95rem; border: none;
  transition: var(--transition); cursor: pointer;
}
.btn-primary:hover { background: var(--navy-dark); transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-gold {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: var(--white);
  padding: 14px 30px; border-radius: var(--radius);
  font-weight: 700; font-size: 0.95rem; border: none;
  transition: var(--transition); cursor: pointer;
}
.btn-gold:hover { background: #c8880a; transform: translateY(-2px); box-shadow: var(--shadow-gold); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--navy);
  padding: 13px 28px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem;
  border: 2px solid var(--navy); transition: var(--transition);
}
.btn-outline:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }

.btn-white {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); color: var(--navy);
  padding: 14px 30px; border-radius: var(--radius);
  font-weight: 700; font-size: 0.95rem; border: none;
  transition: var(--transition); cursor: pointer;
}
.btn-white:hover { background: var(--off-white); transform: translateY(-2px); box-shadow: var(--shadow); }

/* ============================================================
   SECTION COMMONS
   ============================================================ */
section { padding: 90px 6%; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 12px;
}
.section-label::before { content: ''; display: block; width: 24px; height: 2px; background: var(--gold); }
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 800; color: var(--dark);
  line-height: 1.15; letter-spacing: -0.5px; margin-bottom: 16px;
}
.section-title span { color: var(--navy); }
.section-sub { color: var(--gray); font-size: 1rem; max-width: 560px; line-height: 1.75; }
.text-center { text-align: center; }
.text-center .section-sub { margin: 0 auto; }
.text-white .section-title { color: var(--white); }
.text-white .section-sub { color: rgba(255,255,255,0.65); }
.text-white .section-label { color: var(--gold-light); }
.text-white .section-label::before { background: var(--gold-light); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, #2654c8 100%);
  display: flex; align-items: center;
  padding: 110px 6% 60px;
  position: relative; overflow: hidden;
}
.hero-pattern {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(232,160,32,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.04) 0%, transparent 50%);
}
.hero-dots {
  position: absolute; inset: 0; opacity: 0.05;
  background-image: radial-gradient(circle, rgba(255,255,255,0.8) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center; max-width: 1280px; margin: 0 auto; width: 100%;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(232,160,32,0.2); border: 1px solid rgba(232,160,32,0.4);
  color: var(--gold-light); font-size: 0.8rem; font-weight: 700;
  padding: 7px 16px; border-radius: 100px; margin-bottom: 22px;
  letter-spacing: 0.5px; text-transform: uppercase;
  animation: fadeUp 0.6s ease both;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 900; color: var(--white);
  line-height: 1.1; letter-spacing: -1px; margin-bottom: 20px;
  animation: fadeUp 0.6s 0.1s ease both;
}
.hero h1 em { color: var(--gold-light); font-style: normal; }
.hero p {
  color: rgba(255,255,255,0.72); font-size: 1.05rem; line-height: 1.75;
  margin-bottom: 36px; animation: fadeUp 0.6s 0.2s ease both;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; animation: fadeUp 0.6s 0.3s ease both; }
.hero-trust {
  display: flex; align-items: center; gap: 16px;
  margin-top: 36px; animation: fadeUp 0.6s 0.4s ease both;
}
.hero-trust-avatars { display: flex; }
.hero-trust-avatars span {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-dark), var(--gold));
  border: 2px solid var(--white); margin-left: -10px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 0.7rem; font-weight: 700;
}
.hero-trust-avatars span:first-child { margin-left: 0; }
.hero-trust p { font-size: 0.83rem; color: rgba(255,255,255,0.65); }
.hero-trust p strong { color: var(--white); }

/* Hero Visual — Dashboard Mockup */
.hero-visual {
  animation: floatUp 1s 0.5s ease both;
  position: relative;
}
.dashboard-mock {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.1);
  overflow: hidden;
}
.dash-topbar {
  background: var(--navy-deep); padding: 12px 20px;
  display: flex; align-items: center; gap: 10px;
}
.dash-topbar span { width: 10px; height: 10px; border-radius: 50%; }
.dash-topbar span:nth-child(1) { background: #ff5f57; }
.dash-topbar span:nth-child(2) { background: #febc2e; }
.dash-topbar span:nth-child(3) { background: #28c840; }
.dash-topbar-title { color: rgba(255,255,255,0.5); font-size: 0.75rem; margin-left: auto; font-family: monospace; }
.dash-body { padding: 20px; background: var(--off-white); }
.dash-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 16px; }
.dash-stat {
  background: var(--white); border-radius: 10px;
  padding: 14px 12px; border: 1px solid var(--mid);
}
.dash-stat-val { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; color: var(--navy); }
.dash-stat-label { font-size: 0.72rem; color: var(--gray); margin-top: 2px; }
.dash-stat-tag { font-size: 0.68rem; font-weight: 700; color: var(--green); background: #dcfce7; padding: 2px 6px; border-radius: 4px; margin-top: 4px; display: inline-block; }
.dash-table { background: var(--white); border-radius: 10px; border: 1px solid var(--mid); overflow: hidden; }
.dash-table-head { display: grid; grid-template-columns: 2fr 1fr 1fr; padding: 10px 14px; background: var(--light); border-bottom: 1px solid var(--mid); }
.dash-table-head span { font-size: 0.7rem; font-weight: 700; color: var(--gray); text-transform: uppercase; letter-spacing: 0.5px; }
.dash-table-row { display: grid; grid-template-columns: 2fr 1fr 1fr; padding: 9px 14px; border-bottom: 1px solid rgba(26,58,143,0.06); align-items: center; }
.dash-table-row:last-child { border-bottom: none; }
.dash-table-row span { font-size: 0.78rem; color: var(--dark-gray); }
.status-paid { color: var(--green) !important; font-weight: 600; font-size: 0.72rem !important; background: #dcfce7; padding: 3px 8px; border-radius: 100px; }
.status-due { color: var(--gold) !important; font-weight: 600; font-size: 0.72rem !important; background: var(--gold-pale); padding: 3px 8px; border-radius: 100px; }

/* ============================================================
   SEARCH BAR (Institute Listing)
   ============================================================ */
.search-section {
  background: var(--off-white);
  border-bottom: 1px solid var(--mid);
  padding: 30px 6%;
}
.search-bar {
  max-width: 900px; margin: 0 auto;
  background: var(--white);
  border: 2px solid var(--mid);
  border-radius: 16px;
  display: flex; align-items: center;
  gap: 0; overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}
.search-bar:focus-within { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(26,58,143,0.1), var(--shadow-card); }
.search-select {
  padding: 0 18px;
  border: none; border-right: 1.5px solid var(--mid);
  background: var(--light); color: var(--dark-gray);
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 500;
  height: 54px; outline: none; min-width: 160px; cursor: pointer;
}
.search-input {
  flex: 1; padding: 0 18px; border: none; outline: none;
  font-family: var(--font-body); font-size: 0.95rem; color: var(--dark);
  height: 54px;
}
.search-btn {
  background: var(--navy); color: var(--white); border: none;
  padding: 0 28px; height: 54px;
  font-family: var(--font-body); font-size: 0.92rem; font-weight: 700;
  cursor: pointer; transition: var(--transition); white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
}
.search-btn:hover { background: var(--navy-dark); }
.filter-chips { display: flex; gap: 10px; flex-wrap: wrap; max-width: 900px; margin: 14px auto 0; }
.chip {
  background: var(--white); border: 1.5px solid var(--mid);
  color: var(--dark-gray); padding: 6px 14px; border-radius: 100px;
  font-size: 0.82rem; font-weight: 500; cursor: pointer; transition: var(--transition);
}
.chip:hover, .chip.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ============================================================
   INSTITUTE LISTING
   ============================================================ */
.listing-section { background: var(--off-white); padding: 50px 6%; }
.listing-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 30px; flex-wrap: wrap; gap: 14px;
}
.listing-header h2 { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--dark); }
.listing-header p { font-size: 0.88rem; color: var(--gray); margin-top: 4px; }
.sort-select {
  padding: 9px 16px; border: 1.5px solid var(--mid); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.87rem; color: var(--dark-gray);
  background: var(--white); outline: none; cursor: pointer;
}

.institutes-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }

.institute-card {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--mid);
  transition: var(--transition);
  display: flex; flex-direction: column;
  position: relative;
}
.institute-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(26,58,143,0.25); }
.institute-card-banner {
  height: 140px; overflow: hidden; position: relative;
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
}
.institute-card-banner-img { width: 100%; height: 100%; object-fit: cover; }
.institute-card-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.5) 100%);
}
.institute-card-type {
  position: absolute; top: 12px; right: 12px;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(8px);
  color: var(--navy); font-size: 0.72rem; font-weight: 700;
  padding: 4px 10px; border-radius: 100px;
  letter-spacing: 0.5px; text-transform: uppercase;
}
.institute-card-verified {
  position: absolute; top: 12px; left: 12px;
  background: var(--gold); color: var(--white); font-size: 0.68rem; font-weight: 700;
  padding: 4px 10px; border-radius: 100px;
  display: flex; align-items: center; gap: 4px;
}
.institute-card-logo {
  position: absolute; bottom: -24px; left: 20px;
  width: 54px; height: 54px; border-radius: 12px;
  background: var(--white); border: 3px solid var(--white);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 1.2rem; font-weight: 900;
  color: var(--navy); overflow: hidden;
}
.institute-card-body { padding: 36px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.institute-card-name { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.institute-card-location { font-size: 0.82rem; color: var(--gray); margin-bottom: 10px; display: flex; align-items: center; gap: 4px; }
.institute-card-courses { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.course-tag { background: var(--light); color: var(--navy); font-size: 0.72rem; font-weight: 600; padding: 4px 10px; border-radius: 100px; }
.institute-card-stats { display: flex; gap: 16px; margin-bottom: 16px; padding-top: 12px; border-top: 1px solid var(--mid); }
.inst-stat { font-size: 0.78rem; color: var(--gray); }
.inst-stat strong { color: var(--dark); font-size: 0.9rem; display: block; }
.institute-card-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; }
.stars { color: var(--gold); font-size: 0.85rem; letter-spacing: 1px; }
.rating-val { font-size: 0.85rem; font-weight: 700; color: var(--dark); }
.rating-count { font-size: 0.8rem; color: var(--gray); }
.institute-card-footer { display: flex; gap: 10px; margin-top: auto; }
.btn-card-primary {
  flex: 1; background: var(--navy); color: var(--white);
  padding: 10px 16px; border-radius: 10px; font-size: 0.85rem;
  font-weight: 600; text-align: center; border: none;
  transition: var(--transition); cursor: pointer;
}
.btn-card-primary:hover { background: var(--navy-dark); }
.btn-card-ghost {
  background: var(--light); color: var(--navy);
  padding: 10px 14px; border-radius: 10px; font-size: 0.85rem;
  font-weight: 600; text-align: center; border: none;
  transition: var(--transition); cursor: pointer;
}
.btn-card-ghost:hover { background: var(--mid); }

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.features-section { background: var(--white); }
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 48px; }
.feature-card {
  background: var(--white);
  border: 1.5px solid var(--mid);
  border-radius: 18px; padding: 32px 26px;
  transition: var(--transition); position: relative; overflow: hidden;
}
.feature-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--gold));
  transform: scaleX(0); transform-origin: left; transition: var(--transition);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(26,58,143,0.2); }
.feature-card:hover::after { transform: scaleX(1); }
.feature-icon {
  width: 60px; height: 60px; border-radius: 16px;
  background: var(--light); display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 20px;
}
.feature-card h3 { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.feature-card p { font-size: 0.88rem; color: var(--gray); line-height: 1.7; }

/* ============================================================
   PRICING
   ============================================================ */
.pricing-section { background: var(--off-white); }
.pricing-toggle {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin: 28px auto 48px;
}
.pricing-toggle span { font-size: 0.9rem; font-weight: 600; color: var(--gray); }
.pricing-toggle span.active { color: var(--navy); }
.toggle-switch {
  width: 52px; height: 28px; background: var(--navy); border-radius: 100px;
  position: relative; cursor: pointer;
}
.toggle-switch::after {
  content: ''; position: absolute;
  width: 22px; height: 22px; background: var(--white);
  border-radius: 50%; top: 3px; left: 3px; transition: var(--transition);
}
.toggle-switch.yearly::after { left: calc(100% - 25px); }
.save-badge {
  background: var(--gold); color: var(--white);
  font-size: 0.72rem; font-weight: 700; padding: 3px 8px;
  border-radius: 100px; margin-left: 4px;
}

.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; max-width: 1000px; margin: 0 auto; }
.pricing-card {
  background: var(--white); border: 2px solid var(--mid);
  border-radius: 20px; padding: 36px 30px;
  transition: var(--transition); position: relative;
}
.pricing-card.featured {
  background: var(--navy); border-color: var(--navy);
  transform: scale(1.04);
}
.pricing-card:not(.featured):hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--white);
  font-size: 0.72rem; font-weight: 800; padding: 5px 16px; border-radius: 100px;
  letter-spacing: 0.5px; text-transform: uppercase; white-space: nowrap;
}
.plan-name { font-size: 0.82rem; font-weight: 700; color: var(--gray); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.pricing-card.featured .plan-name { color: rgba(255,255,255,0.6); }
.plan-price {
  font-family: var(--font-head); font-size: 3rem; font-weight: 900; color: var(--dark);
  line-height: 1; margin-bottom: 4px;
}
.pricing-card.featured .plan-price { color: var(--white); }
.plan-price sup { font-size: 1.2rem; vertical-align: top; margin-top: 0.6rem; color: var(--gray); }
.pricing-card.featured .plan-price sup { color: rgba(255,255,255,0.6); }
.plan-period { font-size: 0.85rem; color: var(--gray); margin-bottom: 6px; }
.pricing-card.featured .plan-period { color: rgba(255,255,255,0.55); }
.plan-savings { font-size: 0.82rem; color: var(--green); font-weight: 600; margin-bottom: 24px; }
.pricing-card.featured .plan-savings { color: var(--gold-light); }
.plan-divider { height: 1px; background: var(--mid); margin-bottom: 24px; }
.pricing-card.featured .plan-divider { background: rgba(255,255,255,0.15); }
.plan-features { margin-bottom: 28px; }
.plan-feature {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0; font-size: 0.88rem; color: var(--dark-gray);
  border-bottom: 1px solid rgba(26,58,143,0.05);
}
.plan-feature:last-child { border-bottom: none; }
.pricing-card.featured .plan-feature { color: rgba(255,255,255,0.8); border-bottom-color: rgba(255,255,255,0.08); }
.plan-feature-check { color: var(--green); font-weight: 700; font-size: 0.9rem; min-width: 18px; }
.pricing-card.featured .plan-feature-check { color: var(--gold-light); }
.btn-plan {
  width: 100%; padding: 14px; border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 700; border: none; cursor: pointer; transition: var(--transition);
  font-family: var(--font-body);
}
.btn-plan-outline { background: var(--light); color: var(--navy); }
.btn-plan-outline:hover { background: var(--navy); color: var(--white); }
.btn-plan-gold { background: var(--gold); color: var(--white); }
.btn-plan-gold:hover { background: #c8880a; transform: translateY(-1px); box-shadow: var(--shadow-gold); }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-section { background: var(--navy-deep); padding: 90px 6%; }
.steps-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 30px; margin-top: 56px; position: relative; }
.steps-grid::before {
  content: ''; position: absolute;
  top: 32px; left: 12.5%; right: 12.5%;
  height: 2px; background: rgba(255,255,255,0.1);
}
.step {
  text-align: center; position: relative;
}
.step-num {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(232,160,32,0.4);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 1.4rem; font-weight: 900;
  color: var(--gold); margin: 0 auto 20px; position: relative; z-index: 1;
}
.step h3 { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.step p { font-size: 0.84rem; color: rgba(255,255,255,0.55); line-height: 1.65; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section { background: var(--white); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 48px; }
.testimonial-card {
  background: var(--off-white); border: 1.5px solid var(--mid);
  border-radius: 18px; padding: 28px;
  transition: var(--transition);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.testimonial-quote { font-size: 2.5rem; color: var(--gold); line-height: 1; margin-bottom: 12px; font-family: Georgia, serif; }
.testimonial-text { font-size: 0.92rem; color: var(--dark-gray); line-height: 1.75; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--gold));
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 0.85rem;
}
.testimonial-name { font-weight: 700; font-size: 0.9rem; color: var(--dark); }
.testimonial-role { font-size: 0.78rem; color: var(--gray); }

/* ============================================================
   STATS SECTION
   ============================================================ */
.stats-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: 70px 6%;
}
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 40px; max-width: 900px; margin: 0 auto; text-align: center; }
.stat-val { font-family: var(--font-head); font-size: 2.8rem; font-weight: 900; color: var(--white); margin-bottom: 6px; }
.stat-val span { color: var(--gold-light); }
.stat-label { font-size: 0.88rem; color: rgba(255,255,255,0.6); }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: var(--navy-deep); padding: 90px 6%; text-align: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(232,160,32,0.08) 0%, transparent 70%);
}
.cta-section h2 {
  font-family: var(--font-head); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900; color: var(--white); margin-bottom: 16px;
  position: relative; z-index: 2;
}
.cta-section p { color: rgba(255,255,255,0.65); max-width: 520px; margin: 0 auto 36px; position: relative; z-index: 2; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 2; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--dark);
  padding: 60px 6% 30px;
}
.footer-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-brand img { height: 40px; width: auto; margin-bottom: 14px; }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.45); line-height: 1.75; max-width: 260px; }
.footer-col h4 { font-size: 0.82rem; font-weight: 800; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col ul li a { font-size: 0.88rem; color: rgba(255,255,255,0.45); transition: var(--transition); }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.3); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 0.82rem; color: rgba(255,255,255,0.35); transition: var(--transition); }
.footer-bottom-links a:hover { color: var(--gold); }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  padding: 130px 6% 70px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 60% 50%, rgba(232,160,32,0.08) 0%, transparent 60%);
}
.page-hero-inner { position: relative; z-index: 2; max-width: 700px; }
.page-hero h1 {
  font-family: var(--font-head); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900; color: var(--white); margin-bottom: 14px;
}
.page-hero p { color: rgba(255,255,255,0.65); font-size: 1.05rem; line-height: 1.7; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: rgba(255,255,255,0.45);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--gold-light); transition: var(--transition); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: rgba(255,255,255,0.25); }

/* ============================================================
   INSTITUTE DETAIL PAGE
   ============================================================ */
.detail-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; max-width: 1200px; margin: 0 auto; padding: 50px 6%; background: var(--off-white); }
.detail-main {}
.detail-sidebar {}

.detail-header {
  background: var(--white); border-radius: 18px; border: 1px solid var(--mid);
  padding: 28px; margin-bottom: 24px;
}
.detail-header-top { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 20px; }
.detail-logo {
  width: 80px; height: 80px; border-radius: 16px;
  background: var(--light); border: 2px solid var(--mid);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 1.6rem; font-weight: 900;
  color: var(--navy); min-width: 80px; overflow: hidden;
}
.detail-meta h1 { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: var(--dark); margin-bottom: 6px; }
.detail-meta-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.badge-verified { background: #dcfce7; color: var(--green); font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 100px; }
.badge-type { background: var(--light); color: var(--navy); font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 100px; }
.detail-location { font-size: 0.87rem; color: var(--gray); display: flex; align-items: center; gap: 6px; }
.detail-quick-stats { display: flex; gap: 24px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--mid); }
.dqs { text-align: center; }
.dqs-val { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; color: var(--navy); }
.dqs-label { font-size: 0.75rem; color: var(--gray); }

.detail-section { background: var(--white); border-radius: 18px; border: 1px solid var(--mid); padding: 28px; margin-bottom: 24px; }
.detail-section h2 { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; color: var(--dark); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.detail-section h2::after { content: ''; flex: 1; height: 1px; background: var(--mid); }
.detail-section p { font-size: 0.92rem; color: var(--dark-gray); line-height: 1.8; }

.courses-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.course-item {
  background: var(--off-white); border: 1px solid var(--mid);
  border-radius: 12px; padding: 16px;
}
.course-item h4 { font-size: 0.92rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.course-item p { font-size: 0.78rem; color: var(--gray); }
.course-item .course-fee { font-size: 0.9rem; font-weight: 700; color: var(--navy); margin-top: 8px; }
.course-item .course-duration { font-size: 0.75rem; color: var(--gray); }

.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.gallery-img { border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; background: var(--light); }
.gallery-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-img:hover img { transform: scale(1.05); }

/* Sidebar */
.sidebar-card { background: var(--white); border-radius: 18px; border: 1px solid var(--mid); padding: 24px; margin-bottom: 20px; }
.sidebar-card h3 { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 16px; }
.contact-btn { width: 100%; padding: 13px; border-radius: var(--radius); font-size: 0.9rem; font-weight: 700; margin-bottom: 10px; font-family: var(--font-body); cursor: pointer; border: none; transition: var(--transition); }
.contact-btn-primary { background: var(--navy); color: var(--white); }
.contact-btn-primary:hover { background: var(--navy-dark); }
.contact-btn-whatsapp { background: #25d366; color: var(--white); display: flex; align-items: center; justify-content: center; gap: 8px; }
.contact-btn-whatsapp:hover { background: #20b858; }
.contact-detail { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--mid); font-size: 0.85rem; }
.contact-detail:last-child { border-bottom: none; }
.contact-detail-icon { width: 34px; height: 34px; border-radius: 8px; background: var(--light); display: flex; align-items: center; justify-content: center; font-size: 0.95rem; min-width: 34px; }
.contact-detail h5 { font-size: 0.75rem; color: var(--gray); font-weight: 500; margin-bottom: 2px; }
.contact-detail p { font-size: 0.85rem; color: var(--dark); font-weight: 500; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-section { background: var(--white); }
.faq-list { max-width: 760px; margin: 48px auto 0; }
.faq-item {
  border: 1.5px solid var(--mid); border-radius: 14px;
  margin-bottom: 12px; overflow: hidden; transition: var(--transition);
}
.faq-item.open { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26,58,143,0.08); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; cursor: pointer;
  font-weight: 600; font-size: 0.95rem; color: var(--dark);
}
.faq-question:hover { background: var(--off-white); }
.faq-toggle {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--light); display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--navy); min-width: 28px;
  transition: var(--transition);
}
.faq-item.open .faq-toggle { background: var(--navy); color: var(--white); transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 22px;
}
.faq-item.open .faq-answer { max-height: 300px; padding: 0 22px 18px; }
.faq-answer p { font-size: 0.9rem; color: var(--gray); line-height: 1.75; }

/* ============================================================
   CONTACT / FORMS
   ============================================================ */
.contact-page { background: var(--off-white); padding: 70px 6%; }
.contact-page-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 50px; max-width: 1100px; margin: 0 auto; }
.form-card { background: var(--white); border-radius: 20px; padding: 40px; box-shadow: var(--shadow-card); border: 1px solid var(--mid); }
.form-card h3 { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; color: var(--dark); margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--dark); margin-bottom: 7px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--mid); border-radius: 10px;
  font-family: var(--font-body); font-size: 0.92rem; color: var(--dark);
  background: var(--white); outline: none; transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26,58,143,0.1); }
.form-group textarea { height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit { width: 100%; background: var(--navy); color: var(--white); border: none; padding: 15px 24px; border-radius: var(--radius); font-family: var(--font-head); font-size: 1rem; font-weight: 700; cursor: pointer; transition: var(--transition); }
.form-submit:hover { background: var(--navy-dark); transform: translateY(-2px); box-shadow: var(--shadow); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes floatUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
  .pricing-card.featured { transform: none; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid::before { display: none; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { order: -1; }
}
@media (max-width: 900px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed; inset: 0; top: 74px;
    background: rgba(255,255,255,0.98); backdrop-filter: blur(16px);
    flex-direction: column; align-items: flex-start; padding: 30px 6%;
    gap: 4px; transform: translateX(100%); transition: transform 0.35s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1rem; padding: 12px 0; width: 100%; }
  .nav-actions { gap: 8px; }
  .btn-ghost { display: none; }
  .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0 0 0 14px; }
  .features-grid, .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .institutes-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  section { padding: 70px 5%; }
  .features-grid, .testimonials-grid, .institutes-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .courses-list { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .detail-quick-stats { gap: 16px; }
  .hero-btns { flex-direction: column; }
  .cta-btns { flex-direction: column; align-items: center; }
}
/* ============================================================
   MOBILE NAV FIX v3 — paste at BOTTOM of style.css
   Fixes: blank bg, wrong height, scroll inside menu
   ============================================================ */

@media (max-width: 900px) {

  /* Hide Login/CTA buttons on mobile */
  .nav-actions {
    display: none !important;
  }

  /* Full-screen panel below navbar — NO inset shorthand */
  .nav-links {
    display: flex !important;        /* always flex, controlled by transform */
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0 !important;

    position: fixed !important;
    top: 74px !important;            /* exactly navbar height */
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;            /* stretches to bottom of screen */
    width: 100% !important;
    height: calc(100vh - 74px) !important; /* explicit height — key fix */

    background: #ffffff !important;
    z-index: 998 !important;
    padding: 10px 0 60px 0 !important;
    overflow-y: auto !important;     /* scroll INSIDE menu if needed */
    overflow-x: hidden !important;

    transform: translateX(100%) !important; /* hidden off-screen */
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1) !important;

    /* Remove any max-height that could clip the menu */
    max-height: none !important;
  }

  /* Slide in when open */
  .nav-links.open {
    transform: translateX(0) !important;
  }

  /* Each list item — full width, divider */
  .nav-links > li {
    width: 100% !important;
    border-bottom: 1px solid #eef2ff !important;
    padding: 0 6% !important;
  }

  .nav-links > li:last-child {
    border-bottom: none !important;
  }

  /* Nav link text */
  .nav-links > li > a {
    display: block !important;
    width: 100% !important;
    padding: 16px 0 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #1a2340 !important;
    background: transparent !important;
    border-radius: 0 !important;
  }

  .nav-links > li > a:hover {
    color: #1a3a8f !important;
    background: transparent !important;
  }

  /* Dropdown — static, no animations */
  .nav-dropdown > a::after {
    content: ' ▾' !important;
  }

  .dropdown-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    background: #f8faff !important;
    padding: 0 0 8px 16px !important;
    min-width: unset !important;
    width: 100% !important;
  }

  .dropdown-menu li {
    border-bottom: 1px solid #eef2ff !important;
  }

  .dropdown-menu li:last-child {
    border-bottom: none !important;
  }

  .dropdown-menu a {
    display: block !important;
    padding: 10px 0 !important;
    font-size: 0.88rem !important;
    color: #6b7a9d !important;
    background: transparent !important;
  }
}

/* ============================================================
   CONTACT PAGE MOBILE FIX — paste at BOTTOM of style.css
   Fixes: form fields overflowing on mobile screens
   ============================================================ */

@media (max-width: 768px) {

  /* Stack the two-column contact grid to single column */
  .contact-page-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  /* Stack first-name / last-name row to single column */
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  /* Ensure form card doesn't overflow */
  .form-card {
    padding: 24px 18px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Inputs full width, no overflow */
  .form-group input,
  .form-group textarea,
  .form-group select {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    font-size: 16px !important; /* prevents iOS auto-zoom on focus */
  }

  /* Submit button full width */
  .form-submit {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Contact page padding */
  .contact-page {
    padding: 40px 5% !important;
  }

  /* Demo WhatsApp button wraps nicely */
  .contact-page a[href*="wa.me"] {
    width: 100% !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }
}
/* ============================================================
   INSTITUTE DETAIL PAGE — MOBILE FIX
   Paste at the BOTTOM of style.css
   ============================================================ */

@media (max-width: 900px) {

  /* ── Main layout stacks to single column ── */
  .detail-layout {
    grid-template-columns: 1fr !important;
    padding: 0 4% !important;
    margin: 16px auto !important;
    gap: 16px !important;
  }

  /* Sidebar comes AFTER main content on mobile */
  .detail-sidebar { order: 2 !important; }

  /* ── Header card ── */
  .detail-header { padding: 16px !important; }
  .detail-header-top { flex-direction: column !important; gap: 12px !important; }
  .detail-logo { width: 64px !important; height: 64px !important; font-size: 1.3rem !important; }
  .detail-meta h1 { font-size: 1.25rem !important; }

  /* ── Quick stats — 3 columns on tablet, 2 on phone ── */
  .detail-quick-stats {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }

  /* ── Tabs — scrollable row, no wrapping ── */
  .tab-list {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }
  .tab-list::-webkit-scrollbar { display: none; }
  .tab-btn { padding: 10px 12px !important; font-size: 0.82rem !important; }

  /* ── Tabs card padding ── */
  .detail-main > div:nth-child(2) {
    padding: 16px !important;
  }

  /* ── Review form — stack name/email fields ── */
  #reviewForm > div:first-of-type {
    grid-template-columns: 1fr !important;
  }

  /* ── Rating breakdown ── */
  #tab-reviews > div:first-child {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* ── Gallery ── */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  /* ── Share row buttons ── */
  .share-row { gap: 6px !important; }
  .share-btn  { font-size: 0.75rem !important; padding: 8px 4px !important; }

  /* ── Contact rows ── */
  .contact-row { font-size: 0.82rem !important; }

  /* ── Sidebar cards ── */
  .sidebar-card { padding: 16px !important; }

  /* ── Map iframe ── */
  iframe { width: 100% !important; }
}

@media (max-width: 480px) {

  /* ── Even smaller phones ── */
  .detail-quick-stats {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .detail-layout { padding: 0 3% !important; }

  .detail-meta h1 { font-size: 1.1rem !important; }

  /* ── Page hero text ── */
  .page-hero h1 { font-size: 1.4rem !important; }
  .page-hero p  { font-size: 0.88rem !important; }

  /* ── Gallery single column on very small screens ── */
  .gallery-grid {
    grid-template-columns: 1fr !important;
  }

  /* ── Tab buttons smaller ── */
  .tab-btn { padding: 8px 10px !important; font-size: 0.78rem !important; }

  /* ── Course items ── */
  .course-item { padding: 12px !important; }

  /* ── Review cards ── */
  .review-card { padding: 14px !important; }

  /* ── Share buttons wrap to 2x2 grid ── */
  .share-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
  }
  .share-btn { min-width: unset !important; }
}