/* ── MyDigitalAdda v3 — Finance & Career Intelligence ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; background: #f8fafc; color: #1e293b; line-height: 1.6; }

/* ── CSS Variables ── */
:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --orange-light: #fff7ed;
  --navy: #0f172a;
  --navy-2: #1e293b;
  --slate: #64748b;
  --border: #e2e8f0;
  --surface: #ffffff;
  --bg: #f8fafc;
  --green: #10b981;
  --blue: #3b82f6;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
}

/* ── Nav ── */
.v3-nav {
  background: #0f172a;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.v3-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.v3-logo-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(249,115,22,0.4);
}
.v3-logo-text { display: flex; flex-direction: column; }
.v3-logo-name { font-size: 0.95rem; font-weight: 800; color: #fff; line-height: 1.1; letter-spacing: -0.3px; }
.v3-logo-name span { color: #f97316; }
.v3-logo-sub { font-size: 0.6rem; color: rgba(255,255,255,0.4); letter-spacing: 0.5px; text-transform: uppercase; }
.v3-nav-links { display: flex; align-items: center; gap: 4px; }
.v3-nav-links a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.84rem; font-weight: 500; padding: 6px 12px; border-radius: 6px; transition: all 0.15s; white-space: nowrap; }
.v3-nav-links a:hover, .v3-nav-links a.active { background: rgba(249,115,22,0.15); color: #f97316; }
.v3-burger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.v3-burger span { display: block; width: 22px; height: 2px; background: rgba(255,255,255,0.8); margin: 5px 0; border-radius: 2px; transition: 0.2s; }
@media(max-width:768px) {
  .v3-burger { display: block; }
  .v3-nav-links { display: none; position: absolute; top: 60px; left: 0; right: 0; background: #0f172a; flex-direction: column; padding: 16px; border-bottom: 1px solid rgba(255,255,255,0.08); gap: 4px; }
  .v3-nav-links.open { display: flex; }
  .v3-nav-links a { width: 100%; padding: 10px 16px; }
}

/* ── Hero ── */
.v3-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0f1f3d 100%);
  padding: 60px 24px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.v3-hero::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(249,115,22,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.v3-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(249,115,22,0.15);
  border: 1px solid rgba(249,115,22,0.3);
  color: #f97316;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.v3-hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.15;
  letter-spacing: -0.5px;
}
.v3-hero h1 span { color: #f97316; }
.v3-hero p {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: rgba(255,255,255,0.6);
  max-width: 520px;
  margin: 0 auto 32px;
}
.v3-search {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}
.v3-search input {
  width: 100%;
  padding: 16px 56px 16px 20px;
  border-radius: 14px;
  border: none;
  font-size: 1rem;
  background: rgba(255,255,255,0.97);
  color: #1e293b;
  outline: none;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.v3-search-btn {
  position: absolute;
  right: 6px; top: 50%; transform: translateY(-50%);
  background: var(--orange);
  border: none;
  border-radius: 10px;
  padding: 9px 14px;
  cursor: pointer;
  font-size: 1.1rem;
  color: white;
  transition: background 0.15s;
}
.v3-search-btn:hover { background: var(--orange-dark); }
.v3-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.v3-stat { text-align: center; }
.v3-stat-num { font-size: 1.5rem; font-weight: 900; color: #f97316; }
.v3-stat-label { font-size: 0.72rem; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.5px; }

/* ── Section cards ── */
.v3-wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.v3-section { padding: 56px 0; }
.v3-section-title {
  font-size: 1.5rem; font-weight: 800; color: var(--navy-2);
  margin-bottom: 6px;
}
.v3-section-sub { font-size: 0.9rem; color: var(--slate); margin-bottom: 28px; }
.v3-section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.v3-view-all { font-size: 0.84rem; font-weight: 700; color: var(--orange); text-decoration: none; }
.v3-view-all:hover { text-decoration: underline; }

/* ── Hub cards (5 main sections) ── */
.v3-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.v3-hub-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-decoration: none;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.v3-hub-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--card-color, var(--orange));
  transform: scaleX(0);
  transition: transform 0.2s;
}
.v3-hub-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.v3-hub-card:hover::after { transform: scaleX(1); }
.v3-hub-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  background: var(--card-bg, #fff7ed);
  flex-shrink: 0;
}
.v3-hub-card h3 { font-size: 1rem; font-weight: 800; color: var(--navy-2); }
.v3-hub-card p { font-size: 0.8rem; color: var(--slate); line-height: 1.5; }
.v3-hub-meta { font-size: 0.72rem; font-weight: 700; color: var(--card-color, var(--orange)); margin-top: auto; }

/* ── Calc cards grid ── */
.v3-calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}
.v3-calc-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  text-decoration: none;
  transition: all 0.18s;
  display: flex;
  align-items: center;
  gap: 12px;
}
.v3-calc-card:hover { border-color: var(--orange); box-shadow: 0 4px 16px rgba(249,115,22,0.12); transform: translateY(-2px); }
.v3-calc-card-icon { font-size: 1.4rem; flex-shrink: 0; }
.v3-calc-card-info {}
.v3-calc-card-name { font-size: 0.84rem; font-weight: 700; color: var(--navy-2); line-height: 1.2; }
.v3-calc-card-desc { font-size: 0.7rem; color: var(--slate); margin-top: 2px; }

/* ── Salary rows ── */
.v3-salary-list { display: flex; flex-direction: column; gap: 8px; }
.v3-salary-row {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  transition: all 0.18s;
  flex-wrap: wrap;
  gap: 8px;
}
.v3-salary-row:hover { border-color: var(--orange); box-shadow: 0 2px 12px rgba(249,115,22,0.1); }
.v3-salary-row-left { display: flex; align-items: center; gap: 12px; }
.v3-salary-row-icon { font-size: 1.2rem; }
.v3-salary-row-title { font-size: 0.9rem; font-weight: 700; color: var(--navy-2); }
.v3-salary-row-company { font-size: 0.75rem; color: var(--slate); }
.v3-salary-badge {
  background: rgba(16,185,129,0.1);
  color: #059669;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 100px;
  white-space: nowrap;
}

/* ── Insurance cards ── */
.v3-ins-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.v3-ins-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-decoration: none;
  transition: all 0.2s;
}
.v3-ins-card:hover { border-color: var(--orange); box-shadow: var(--shadow); transform: translateY(-2px); }
.v3-ins-type { font-size: 0.7rem; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 8px; }
.v3-ins-title { font-size: 1rem; font-weight: 800; color: var(--navy-2); margin-bottom: 6px; }
.v3-ins-desc { font-size: 0.8rem; color: var(--slate); line-height: 1.5; margin-bottom: 14px; }
.v3-ins-price { font-size: 1.2rem; font-weight: 900; color: var(--green); }
.v3-ins-price span { font-size: 0.75rem; color: var(--slate); font-weight: 400; }

/* ── Exam cards ── */
.v3-exam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.v3-exam-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  transition: all 0.18s;
}
.v3-exam-card:hover { border-color: var(--blue); box-shadow: 0 4px 16px rgba(59,130,246,0.1); transform: translateY(-2px); }
.v3-exam-badge { font-size: 0.7rem; font-weight: 700; background: rgba(59,130,246,0.1); color: var(--blue); padding: 3px 10px; border-radius: 100px; display: inline-block; margin-bottom: 8px; }
.v3-exam-title { font-size: 0.92rem; font-weight: 800; color: var(--navy-2); margin-bottom: 4px; }
.v3-exam-salary { font-size: 0.8rem; color: var(--slate); }
.v3-exam-salary strong { color: var(--green); }

/* ── Price rows ── */
.v3-price-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.v3-price-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  transition: all 0.18s;
  gap: 12px;
}
.v3-price-card:hover { border-color: var(--orange); box-shadow: 0 2px 12px rgba(249,115,22,0.1); }
.v3-price-name { font-size: 0.88rem; font-weight: 700; color: var(--navy-2); }
.v3-price-city { font-size: 0.73rem; color: var(--slate); margin-top: 2px; }
.v3-price-amount { font-size: 1rem; font-weight: 900; color: var(--orange); white-space: nowrap; }

/* ── Footer ── */
.v3-footer { background: #0f172a; color: rgba(255,255,255,0.7); padding: 48px 24px 24px; margin-top: 48px; }
.v3-footer-grid { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
@media(max-width:768px) { .v3-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media(max-width:480px) { .v3-footer-grid { grid-template-columns: 1fr; } }
.v3-footer-brand-name { font-size: 1.1rem; font-weight: 800; color: #fff; }
.v3-footer-brand-name span { color: #f97316; }
.v3-footer-tagline { font-size: 0.82rem; color: rgba(255,255,255,0.4); margin-top: 8px; line-height: 1.6; }
.v3-footer-heading { font-size: 0.75rem; font-weight: 700; color: rgba(255,255,255,0.9); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 14px; }
.v3-footer a { display: block; color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.84rem; margin-bottom: 8px; transition: color 0.15s; }
.v3-footer a:hover { color: #f97316; }
.v3-footer-bottom { max-width: 1140px; margin: 24px auto 0; display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; color: rgba(255,255,255,0.3); flex-wrap: wrap; gap: 8px; }

/* ── Utilities ── */
.v3-divider { border: none; border-top: 1px solid var(--border); margin: 0; }
.v3-tag { display: inline-block; padding: 4px 12px; border-radius: 100px; font-size: 0.72rem; font-weight: 700; }
.v3-tag-orange { background: var(--orange-light); color: var(--orange); }
.v3-tag-green { background: rgba(16,185,129,0.1); color: #059669; }
.v3-tag-blue { background: rgba(59,130,246,0.1); color: var(--blue); }
@media(max-width:600px) { .v3-section { padding: 36px 0; } .v3-hero { padding: 40px 20px 52px; } }
