/* ============================================================
   Dr. R. Bathri Narayanan — Premium Medical Website
   Design: Minimal + Premium Medical | White + Medical Blue
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --blue-900: #08365F;
  --blue-800: #0A4678;
  --blue-700: #0E5FA4;
  --blue-600: #1476C9;
  --blue-500: #2C90E0;
  --blue-100: #E3EFFB;
  --blue-50:  #F2F7FC;
  --teal:     #0F9B8E;
  --teal-50:  #EAF7F5;
  --ink:      #10243B;
  --body:     #475569;
  --muted:    #64748B;
  --line:     #E3EAF2;
  --white:    #FFFFFF;
  --bg-soft:  #F5F9FD;
  --amber:    #F59E0B;
  --red:      #DC2626;
  --green:    #16A34A;
  --shadow-sm: 0 1px 2px rgba(8, 54, 95, .06), 0 1px 3px rgba(8, 54, 95, .08);
  --shadow-md: 0 6px 18px -4px rgba(8, 54, 95, .12), 0 3px 8px rgba(8, 54, 95, .06);
  --shadow-lg: 0 24px 50px -16px rgba(8, 54, 95, .22);
  --radius: 18px;
  --radius-sm: 12px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-700); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--blue-500); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.18;
  margin: 0 0 .55em;
  font-weight: 600;
  letter-spacing: -.01em;
}
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
::selection { background: var(--blue-100); color: var(--blue-900); }

.container { width: min(1180px, 92%); margin-inline: auto; }
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section-alt { background: var(--bg-soft); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue-700);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--blue-500); border-radius: 2px;
}
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: .35em; }
.section-lead { max-width: 640px; color: var(--muted); font-size: 1.05rem; }
.center { text-align: center; }
.center .section-lead { margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-size: .95rem; font-weight: 600;
  padding: 13px 26px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: all .22s ease; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--blue-700); color: #fff; box-shadow: 0 8px 20px -8px rgba(14, 95, 164, .55); }
.btn-primary:hover { background: var(--blue-800); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 26px -10px rgba(14, 95, 164, .5); }
.btn-outline { background: transparent; color: var(--blue-700); border-color: var(--blue-600); }
.btn-outline:hover { background: var(--blue-50); color: var(--blue-800); }
.btn-white { background: #fff; color: var(--blue-800); box-shadow: var(--shadow-md); }
.btn-white:hover { background: var(--blue-50); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-block { width: 100%; }
.btn .ico { width: 17px; height: 17px; flex: none; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--blue-900); color: rgba(255,255,255,.85);
  font-size: .82rem; padding: 8px 0;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.topbar a { color: rgba(255,255,255,.92); display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }
.topbar .tb-left, .topbar .tb-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.topbar .socials { display: flex; gap: 4px; }
.topbar .socials a { padding: 4px; border-radius: 8px; }
.topbar .socials a:hover { background: rgba(255,255,255,.12); }
.topbar svg { width: 14px; height: 14px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 14px; flex: none;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-sm);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-name { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.08rem; line-height: 1.15; }
.brand-sub { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-700); font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: flex; align-items: center; gap: 5px;
  padding: 9px 13px; border-radius: 10px; font-weight: 500;
  font-size: .925rem; color: var(--ink);
}
.nav-links > li > a:hover, .nav-links > li > a.active { color: var(--blue-700); background: var(--blue-50); }
.nav-links .caret { width: 11px; height: 11px; transition: transform .2s; }
.nav-links > li:hover .caret { transform: rotate(180deg); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .2s ease; z-index: 50;
}
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 9px; font-size: .9rem; color: var(--body); font-weight: 500;
}
.dropdown-menu a:hover { background: var(--blue-50); color: var(--blue-700); }
.dropdown-menu .d-ico { width: 18px; height: 18px; color: var(--blue-600); flex: none; }
.dropdown-menu .d-sub { display: block; font-size: .74rem; color: var(--muted); font-weight: 400; }

.nav-cta { margin-left: 8px; }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; padding: 10px;
}
.nav-toggle span { height: 2px; background: var(--ink); border-radius: 2px; transition: all .25s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(44, 144, 224, .16), transparent 60%),
    radial-gradient(700px 480px at -10% 110%, rgba(15, 155, 142, .12), transparent 60%),
    linear-gradient(180deg, #F6FAFE 0%, #EFF6FD 100%);
  padding: clamp(56px, 8vw, 96px) 0 0;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-size: .8rem; font-weight: 600; color: var(--blue-800);
  box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.hero-badge .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); position: relative; }
.hero-badge .pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--teal); opacity: .5; animation: pulse 2s infinite;
}
@keyframes pulse { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: .3em; }
.hero h1 .grad {
  background: linear-gradient(100deg, var(--blue-700), var(--teal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .hero-sub { font-size: 1.12rem; color: var(--muted); max-width: 540px; margin-bottom: 14px; }
.hero .hero-points { display: flex; flex-wrap: wrap; gap: 18px 26px; margin: 24px 0 32px; list-style: none; }
.hero .hero-points li { display: flex; align-items: center; gap: 9px; font-weight: 600; color: var(--ink); font-size: .95rem; }
.hero .hero-points svg { width: 18px; height: 18px; color: var(--teal); flex: none; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual { position: relative; padding-bottom: 0; }
.hero-photo {
  border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg);
  position: relative; z-index: 2;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/4.6; }
.hero-card {
  position: absolute; z-index: 3; background: #fff; border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 14px 18px; display: flex; gap: 12px; align-items: center;
  border: 1px solid rgba(227, 234, 242, .9);
}
.hero-card .hc-ico {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  display: grid; place-items: center; color: #fff;
}
.hero-card .hc-ico svg { width: 20px; height: 20px; }
.hero-card .hc-title { font-weight: 700; color: var(--ink); font-size: .9rem; line-height: 1.2; }
.hero-card .hc-sub { font-size: .76rem; color: var(--muted); }
.hc-1 { top: 250px; left: -80px; }
.hc-2 { bottom: 60px; right: -26px; }
.hc-1 .hc-ico { background: linear-gradient(135deg, var(--teal), #2BBBAD); }
.hc-2 .hc-ico { background: linear-gradient(135deg, var(--blue-600), var(--blue-500)); }

.hero-stats {
  margin-top: clamp(48px, 6vw, 72px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  border-top: 1px solid rgba(14, 95, 164, .15); padding-top: 30px;
}
.stat .stat-num { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; color: var(--blue-800); line-height: 1; }
.stat .stat-label { font-size: .84rem; color: var(--muted); margin-top: 6px; }

/* ---------- Quick access cards ---------- */
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.quick-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; transition: all .25s ease; display: block; position: relative; overflow: hidden;
}
.quick-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.quick-card .qc-ico {
  width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue-700); margin-bottom: 16px; transition: all .25s;
}
.quick-card:hover .qc-ico { background: var(--blue-700); color: #fff; }
.quick-card .qc-ico svg { width: 24px; height: 24px; }
.quick-card h3 { font-size: 1.06rem; margin-bottom: .4em; }
.quick-card p { font-size: .88rem; color: var(--muted); margin-bottom: 0; }
.quick-card .qc-link { position: absolute; top: 24px; right: 22px; color: var(--blue-500); }
.quick-card .qc-link svg { width: 18px; height: 18px; }

/* ---------- Section headers / intro split ---------- */
.intro-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.img-frame { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.img-frame img { width: 100%; height: 100%; object-fit: cover; }
.img-frame.ratio-4x3 img { aspect-ratio: 4/3; }
.exp-chip {
  position: absolute; bottom: 18px; left: 18px; background: #fff; border-radius: 14px;
  box-shadow: var(--shadow-md); padding: 14px 20px; display: flex; gap: 12px; align-items: center;
}
.exp-chip .ec-num { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--blue-700); line-height: 1; }
.exp-chip .ec-label { font-size: .76rem; color: var(--muted); font-weight: 600; line-height: 1.25; }
.check-list { list-style: none; display: grid; gap: 12px; margin: 22px 0 28px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .ck {
  width: 22px; height: 22px; border-radius: 50%; background: var(--teal-50); color: var(--teal);
  display: grid; place-items: center; flex: none; margin-top: 3px;
}
.check-list .ck svg { width: 12px; height: 12px; }
.check-list b { color: var(--ink); }

/* ---------- Video section ---------- */
.video-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.video-frame {
  border-radius: 22px; overflow: hidden; position: relative; box-shadow: var(--shadow-lg);
  aspect-ratio: 16/9; background: var(--blue-900);
}
.video-frame img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video-frame .play-btn {
  position: absolute; inset: 0; margin: auto; width: 78px; height: 78px; border-radius: 50%;
  background: rgba(255,255,255,.95); display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,.3); transition: transform .2s; border: none;
}
.video-frame .play-btn:hover { transform: scale(1.08); }
.video-frame .play-btn svg { width: 30px; height: 30px; color: var(--blue-700); margin-left: 4px; }
.video-meta { display: flex; gap: 18px; margin-top: 16px; flex-wrap: wrap; }
.video-meta span { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; color: var(--muted); font-weight: 600; }
.video-meta svg { width: 15px; height: 15px; color: var(--blue-600); }
.video-list { display: grid; gap: 14px; }
.video-row {
  display: flex; gap: 16px; align-items: center; background: #fff;
  border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px;
  transition: all .22s; text-decoration: none;
}
.video-row:hover { box-shadow: var(--shadow-md); transform: translateX(4px); border-color: transparent; }
.video-row .vr-thumb { width: 96px; height: 62px; border-radius: 10px; object-fit: cover; flex: none; }
.video-row .vr-title { font-weight: 600; color: var(--ink); font-size: .92rem; line-height: 1.3; margin-bottom: 3px; }
.video-row .vr-meta { font-size: .76rem; color: var(--muted); }
.video-row .vr-play { margin-left: auto; color: var(--blue-600); flex: none; }
.video-row .vr-play svg { width: 22px; height: 22px; }

/* ---------- Cards (generic) ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: all .25s ease;
}
.card.hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card-ico {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue-700); margin-bottom: 16px;
}
.card-ico svg { width: 25px; height: 25px; }
.card h3 { font-size: 1.1rem; }
.card p { font-size: .9rem; color: var(--muted); margin-bottom: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

/* ---------- Category pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue-50); color: var(--blue-700); border-radius: 999px;
  padding: 6px 14px; font-size: .76rem; font-weight: 700; letter-spacing: .03em;
  text-transform: uppercase;
}
.pill-teal { background: var(--teal-50); color: var(--teal); }
.pill-amber { background: #FEF3C7; color: #B45309; }
.pill-red { background: #FEE2E2; color: #B91C1C; }
.pill-gray { background: #F1F5F9; color: #475569; }

/* ---------- Articles ---------- */
.article-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: all .25s; display: flex; flex-direction: column; }
.article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: transparent; }
.article-card .ac-img { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.article-card .ac-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.article-card:hover .ac-img img { transform: scale(1.05); }
.article-card .ac-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.article-card .ac-meta { display: flex; align-items: center; gap: 10px; font-size: .78rem; color: var(--muted); flex-wrap: wrap; }
.article-card .ac-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: #CBD5E1; }
.article-card h3 { font-size: 1.12rem; line-height: 1.3; }
.article-card h3 a { color: var(--ink); }
.article-card h3 a:hover { color: var(--blue-700); }
.article-card p { font-size: .88rem; color: var(--muted); margin: 0; }
.article-card .ac-more { margin-top: auto; font-weight: 600; font-size: .88rem; display: inline-flex; align-items: center; gap: 6px; }
.article-card .ac-more svg { width: 14px; height: 14px; transition: transform .2s; }
.article-card .ac-more:hover svg { transform: translateX(3px); }
.featured-card { display: grid; grid-template-columns: 1.15fr .85fr; gap: 0; }
.featured-card .ac-img { aspect-ratio: auto; height: 100%; min-height: 320px; }
.featured-card .ac-body { padding: clamp(24px, 4vw, 44px); }
.featured-card .ac-body h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 26px 0 34px; }
.filter-btn {
  border: 1.5px solid var(--line); background: #fff; color: var(--body);
  font-weight: 600; font-size: .86rem; padding: 9px 18px; border-radius: 999px; cursor: pointer;
  transition: all .2s;
}
.filter-btn:hover { border-color: var(--blue-500); color: var(--blue-700); }
.filter-btn.active { background: var(--blue-700); border-color: var(--blue-700); color: #fff; box-shadow: 0 6px 16px -6px rgba(14,95,164,.5); }

/* ---------- Health library ---------- */
.search-bar {
  display: flex; align-items: center; gap: 10px; background: #fff;
  border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 8px 6px 20px;
  max-width: 620px; margin: 0 auto 12px; box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s;
}
.search-bar:focus-within { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(44,144,224,.14); }
.search-bar svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search-bar input { flex: 1; border: none; outline: none; font: inherit; font-size: .95rem; color: var(--ink); background: transparent; padding: 8px 0; min-width: 0; }
.search-bar .search-btn {
  border: none; background: var(--blue-700); color: #fff; font-weight: 600; font-size: .88rem;
  padding: 11px 22px; border-radius: 999px; cursor: pointer; transition: background .2s;
}
.search-bar .search-btn:hover { background: var(--blue-800); }
.search-hint { text-align: center; font-size: .82rem; color: var(--muted); margin-bottom: 36px; }

.resource-card { display: flex; gap: 16px; align-items: flex-start; }
.resource-card .card-ico { margin-bottom: 0; flex: none; width: 46px; height: 46px; }
.resource-card .card-ico svg { width: 22px; height: 22px; }
.resource-card h3 { font-size: 1.02rem; }
.resource-card p { font-size: .86rem; margin-bottom: 10px; }
.resource-card .rc-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.hidden-item { display: none !important; }

/* ---------- Media hub ---------- */
.media-card { text-align: center; padding: 34px 24px; }
.media-card .card-ico { margin-inline: auto; width: 64px; height: 64px; border-radius: 18px; }
.media-card .card-ico svg { width: 30px; height: 30px; }
.yt-thumb { aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; position: relative; margin-bottom: 16px; }
.yt-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.media-card:hover .yt-thumb img { transform: scale(1.05); }
.yt-thumb .dur {
  position: absolute; right: 10px; bottom: 10px; background: rgba(8,54,95,.85); color: #fff;
  font-size: .72rem; font-weight: 600; padding: 3px 8px; border-radius: 6px;
}
.yt-thumb .yt-badge {
  position: absolute; left: 10px; top: 10px; background: #FF0000; color: #fff;
  font-size: .7rem; font-weight: 700; padding: 4px 9px; border-radius: 6px; display: inline-flex; align-items: center; gap: 5px;
}
.yt-thumb .yt-badge svg { width: 12px; height: 12px; }
.ig-card { padding: 0; overflow: hidden; }
.ig-card .ig-img { aspect-ratio: 1/1; overflow: hidden; }
.ig-card .ig-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ig-card:hover .ig-img img { transform: scale(1.06); }
.ig-card .ig-body { padding: 14px 18px 18px; }
.ig-card .ig-body p { font-size: .86rem; margin-bottom: 8px; }
.ig-likes { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); font-weight: 600; }
.ig-likes svg { width: 15px; height: 15px; color: #E1306C; }

/* ---------- Calculators ---------- */
.calc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.calc-card { display: flex; flex-direction: column; }
.calc-card .cc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.calc-card .cc-head .card-ico { margin-bottom: 0; }
.calc-card .cc-head h3 { margin-bottom: 0; font-size: 1.15rem; }
.calc-card .cc-desc { font-size: .87rem; color: var(--muted); margin-bottom: 18px; }
.calc-body { display: grid; gap: 14px; flex: 1; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field .req { color: var(--red); }
.field input, .field select {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 11px;
  font: inherit; font-size: .92rem; color: var(--ink); background: #fff; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(44,144,224,.13); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-row label {
  display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line);
  padding: 9px 16px; border-radius: 999px; font-size: .86rem; font-weight: 600; color: var(--body);
  cursor: pointer; transition: all .2s; background: #fff;
}
.radio-row input { display: none; }
.radio-row label:has(input:checked) { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }

.calc-result {
  margin-top: 18px; border-radius: 14px; padding: 18px;
  background: var(--bg-soft); border: 1px solid var(--line);
  opacity: 0; max-height: 0; overflow: hidden; transition: all .4s ease;
}
.calc-result.show { opacity: 1; max-height: 420px; }
.calc-result .cr-big { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--blue-800); line-height: 1.1; }
.calc-result .cr-label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
.calc-result .cr-cat { display: inline-block; margin-top: 8px; font-weight: 700; font-size: .86rem; padding: 5px 14px; border-radius: 999px; }
.calc-result .cr-cat.good { background: #DCFCE7; color: #15803D; }
.calc-result .cr-cat.warn { background: #FEF3C7; color: #B45309; }
.calc-result .cr-cat.bad  { background: #FEE2E2; color: #B91C1C; }
.calc-result .cr-note { font-size: .78rem; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.disclaimer {
  font-size: .78rem; color: var(--muted); margin-top: 26px; padding: 14px 18px;
  border-left: 3px solid var(--amber); background: #FFFBEB; border-radius: 0 10px 10px 0; line-height: 1.6;
}

/* ---------- Accordion (FAQ) ---------- */
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; overflow: hidden; transition: box-shadow .2s; }
.faq-item.open { box-shadow: var(--shadow-sm); border-color: var(--blue-100); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 22px; font: inherit; font-weight: 600; color: var(--ink); font-size: .98rem;
}
.faq-q .faq-ico { width: 26px; height: 26px; border-radius: 50%; background: var(--blue-50); color: var(--blue-700); display: grid; place-items: center; flex: none; transition: all .25s; }
.faq-q .faq-ico svg { width: 14px; height: 14px; }
.faq-item.open .faq-q .faq-ico { background: var(--blue-700); color: #fff; transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 22px 20px; font-size: .9rem; color: var(--muted); }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-md); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-status {
  display: none; margin-top: 16px; padding: 14px 18px; border-radius: 12px; font-size: .9rem; font-weight: 600;
}
.form-status.ok { display: block; background: #DCFCE7; color: #15803D; }
.form-status.err { display: block; background: #FEE2E2; color: #B91C1C; }
textarea.field-input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 11px;
  font: inherit; font-size: .92rem; color: var(--ink); outline: none; resize: vertical; min-height: 130px;
  transition: border-color .2s, box-shadow .2s; background: #fff;
}
textarea.field-input:focus { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(44,144,224,.13); }
input.field-input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 11px;
  font: inherit; font-size: .92rem; color: var(--ink); outline: none; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
input.field-input:focus { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(44,144,224,.13); }

/* ---------- Testimonials ---------- */
.rating-summary { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; justify-content: center; margin-bottom: 10px; }
.rating-big { text-align: center; }
.rating-big .rb-num { font-family: var(--font-display); font-size: 3.2rem; font-weight: 700; color: var(--ink); line-height: 1; }
.rating-big .rb-sub { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.stars { display: inline-flex; gap: 2px; color: var(--amber); }
.stars svg { width: 18px; height: 18px; }
.stars.sm svg { width: 15px; height: 15px; }
.star-bar { display: grid; grid-template-columns: 60px 1fr 40px; align-items: center; gap: 12px; font-size: .82rem; color: var(--muted); }
.star-bar .sb-track { height: 8px; background: #EDF2F7; border-radius: 8px; overflow: hidden; }
.star-bar .sb-fill { height: 100%; background: linear-gradient(90deg, var(--amber), #FBBF24); border-radius: 8px; }
.t-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.t-card .stars { margin-bottom: 12px; }
.t-card blockquote { margin: 0 0 18px; font-size: .94rem; color: var(--body); font-style: italic; line-height: 1.7; }
.t-card blockquote::before { content: "\201C"; font-family: var(--font-display); font-size: 2.2rem; color: var(--blue-100); display: block; line-height: .6; margin-bottom: 8px; }
.t-author { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .95rem;
}
.t-author .ta-name { font-weight: 700; color: var(--ink); font-size: .92rem; line-height: 1.2; }
.t-author .ta-role { font-size: .78rem; color: var(--muted); }
.t-verified { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; color: #15803D; font-weight: 700; }
.t-verified svg { width: 13px; height: 13px; }

/* ---------- Events ---------- */
.event-card { display: flex; gap: 22px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: all .25s; }
.event-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.event-ico {
  width: 54px; height: 54px; border-radius: 16px; flex: none; display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue-700);
}
.event-ico svg { width: 26px; height: 26px; }
.event-card h3 { font-size: 1.08rem; margin-bottom: .3em; }
.event-card p { font-size: .89rem; color: var(--muted); margin-bottom: 12px; }
.event-tags { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-card { display: flex; gap: 16px; align-items: flex-start; }
.contact-card .card-ico { margin-bottom: 0; width: 48px; height: 48px; flex: none; }
.contact-card .card-ico svg { width: 23px; height: 23px; }
.contact-card h3 { font-size: 1rem; margin-bottom: .25em; }
.contact-card p { font-size: .88rem; margin-bottom: 2px; color: var(--body); }
.contact-card a { font-weight: 600; }
.map-frame { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); min-height: 300px; background: linear-gradient(135deg, var(--blue-50), #fff); display: grid; place-items: center; position: relative; }
.map-frame .map-pin { text-align: center; }
.map-frame .map-pin svg { width: 44px; height: 44px; color: var(--blue-700); margin: 0 auto 10px; }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: 26px; overflow: hidden; position: relative;
  background: linear-gradient(120deg, var(--blue-900), var(--blue-700) 70%, var(--blue-600));
  padding: clamp(36px, 6vw, 64px); color: #fff;
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 90% 0%, rgba(255,255,255,.14), transparent 60%);
}
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: .35em; }
.cta-band p { color: rgba(255,255,255,.85); margin-bottom: 0; }
.cta-band .cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; position: relative; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background:
    radial-gradient(700px 400px at 90% -20%, rgba(44,144,224,.15), transparent 60%),
    linear-gradient(180deg, #F2F7FC, #EAF3FB);
  padding: clamp(52px, 7vw, 84px) 0;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
.page-hero .breadcrumb { display: flex; justify-content: center; gap: 8px; font-size: .84rem; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.page-hero .breadcrumb a { font-weight: 600; }
.page-hero .breadcrumb svg { width: 12px; height: 12px; vertical-align: -1px; }
.page-hero p.lead { max-width: 620px; margin: 6px auto 0; color: var(--muted); font-size: 1.05rem; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; position: relative; margin-left: 8px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--blue-100); }
.timeline li { position: relative; padding: 0 0 26px 34px; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; border: 4px solid var(--blue-600); box-shadow: 0 0 0 4px var(--blue-50);
}
.timeline .tl-year { font-size: .76rem; font-weight: 800; letter-spacing: .1em; color: var(--blue-700); text-transform: uppercase; }
.timeline .tl-title { font-weight: 700; color: var(--ink); font-size: 1.02rem; margin: 4px 0 4px; }
.timeline .tl-desc { font-size: .88rem; color: var(--muted); margin: 0; }

/* ---------- Newsletters / misc ---------- */
.newsletter-form { display: flex; gap: 10px; max-width: 380px; }
.newsletter-form input {
  flex: 1; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 999px;
  font: inherit; font-size: .88rem; outline: none; min-width: 0;
}
.newsletter-form input:focus { border-color: var(--blue-500); }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-900); color: rgba(255,255,255,.75); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 18px; font-family: var(--font-body); font-weight: 700; letter-spacing: .02em; }
.site-footer a { color: rgba(255,255,255,.72); font-size: .88rem; display: inline-block; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 6px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: #8EC5F2; }
.footer-brand p { font-size: .88rem; line-height: 1.7; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 11px; background: rgba(255,255,255,.08);
  display: grid; place-items: center; padding: 0;
}
.footer-social a:hover { background: var(--blue-600); transform: translateY(-2px); }
.footer-social svg { width: 17px; height: 17px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: .88rem; }
.footer-contact svg { width: 16px; height: 16px; color: #8EC5F2; flex: none; margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; font-size: .8rem; }
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bottom a { font-size: .8rem; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--blue-700); color: #fff; box-shadow: var(--shadow-md);
  display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .3s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--blue-800); transform: translateY(-3px); }
.to-top svg { width: 18px; height: 18px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 560px; margin-inline: auto; }
  .hc-1 { left: -40px; }
  .hc-2 { right: -8px; }
  .video-wrap, .intro-split, .featured-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .cta-actions { justify-content: flex-start; }
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 0 0 auto; top: 0; padding: 96px 24px 32px;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; box-shadow: var(--shadow-lg);
    transform: translateY(-105%); transition: transform .35s ease;
    max-height: 100vh; overflow-y: auto; border-bottom: 1px solid var(--line);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links > li > a { padding: 14px 12px; font-size: 1.02rem; justify-content: space-between; }
  .nav-links > li > a.active { background: var(--blue-50); }
  .dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; background: var(--bg-soft); border-radius: 12px;
    display: none; padding: 6px; margin: 2px 6px 8px;
  }
  .dropdown-menu.open { display: block; }
  .dropdown-menu a { padding: 12px; }
  .nav-cta { margin: 14px 0 0; }
  .nav-cta .btn { width: 100%; }
}

@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .hero-card { padding: 10px 14px; }
  .hc-1 { top: -16px; left: 8px; }
  .hc-2 { bottom: 20px; right: 8px; }
  .hero-card .hc-sub { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .topbar .tb-right { display: none; }
  .search-bar { flex-wrap: wrap; border-radius: 18px; padding: 12px; }
  .search-bar .search-btn { width: 100%; }
  .field-row { grid-template-columns: 1fr; }
  .exp-chip { bottom: 10px; left: 10px; padding: 10px 14px; }
  .video-row { flex-wrap: wrap; }
}

@media (max-width: 380px) {
  .quick-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}
