/* ============ TIME Hospital - style.css ============ */
:root {
  --blue: #0d5cab;
  --blue-dark: #0a4586;
  --navy: #0e2a4d;
  --ink: #14263c;
  --muted: #5b6b7f;
  --bg: #f6f9fc;
  --card: #ffffff;
  --line: #e3ebf3;
  --orange: #f6a21e;
  --red: #e23744;
  --green: #1f9d55;
  --wa: #25d366;
  --shadow-sm: 0 2px 10px rgba(13, 60, 110, 0.07);
  --shadow-md: 0 10px 30px rgba(13, 60, 110, 0.12);
  --shadow-lg: 0 24px 60px rgba(13, 60, 110, 0.16);
  --radius: 18px;
  --radius-sm: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Manrope", "Noto Sans Bengali", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: none; }

.container { width: min(1180px, 92%); margin: 0 auto; }
.ic { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

section[id], [id] { scroll-margin-top: 96px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px;
  font-weight: 700; font-size: 16px; line-height: 1.2;
  border: 2px solid transparent; cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 16px 30px; font-size: 17px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-whatsapp { background: var(--wa); color: #fff; }
.btn-whatsapp:hover { background: #1eb857; }
.btn-white { background: #fff; color: var(--navy); }
.btn-facebook { background: #1877f2; color: #fff; }
.btn-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: #fff; }

/* ---------- Topbar ---------- */
.topbar { background: var(--navy); color: #cfe0f2; font-size: 14px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; gap: 16px; }
.topbar-left { display: flex; gap: 22px; }
.topbar-link { color: #fff; display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.topbar-link:hover { color: var(--orange); }
.topbar-right { display: inline-flex; align-items: center; gap: 7px; }
.topbar-right-group { display: inline-flex; align-items: center; gap: 18px; }

/* ---------- Language toggle ---------- */
.lang-toggle {
  display: inline-flex; align-items: center;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px; padding: 3px; flex: none;
}
.lang-btn {
  border: 0; background: transparent; color: #cfe0f2; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: 13px; line-height: 1.4;
  padding: 4px 13px; border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-btn.active { background: #fff; color: var(--navy); }
.lang-btn:not(.active):hover { color: #fff; }

.lang-toggle-nav { display: none; background: #eef4fa; border-color: var(--line); margin-top: 16px; }
.lang-toggle-nav .lang-btn { color: var(--muted); font-size: 15px; padding: 8px 18px; }
.lang-toggle-nav .lang-btn.active { background: var(--blue); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 52px; height: auto; border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 21px; font-weight: 800; color: var(--blue-dark); letter-spacing: 0.5px; }
.brand-name span { color: var(--red); }
.brand-name.light { color: #fff; }
.brand-name.light span { color: var(--orange); }
.brand-tag { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0.3px; }
.brand-tag.light { color: #9fb4cc; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.nav-link { color: var(--ink); font-weight: 600; font-size: 15.5px; position: relative; padding: 6px 0; }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2.5px; width: 0;
  background: var(--blue); border-radius: 2px; transition: width 0.25s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--blue); }
.nav-cta { margin-left: 6px; padding: 11px 20px; font-size: 15px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 88px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; }
.blob-1 { width: 480px; height: 480px; background: #d5e7fa; top: -140px; right: -100px; }
.blob-2 { width: 420px; height: 420px; background: #fdeed3; bottom: -180px; left: -140px; }
.ecg { position: absolute; bottom: 26px; left: 0; width: 100%; height: 90px; color: var(--blue); opacity: 0.08; }

.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }

.chip {
  display: inline-flex; align-items: center; gap: 9px;
  background: #e5f0fb; color: var(--blue-dark);
  padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 700;
}
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

.hero h1 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.14; font-weight: 800; color: var(--navy); margin: 20px 0 18px; }
.hero h1 em { font-style: normal; color: var(--blue); position: relative; }
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 10px;
  background: rgba(246, 162, 30, 0.28); z-index: -1; border-radius: 4px;
}
.lead { font-size: 18.5px; color: var(--muted); max-width: 54ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-note { margin-top: 22px; font-weight: 600; color: var(--navy); display: flex; align-items: center; gap: 10px; font-size: 15.5px; }
.hero-note a { color: var(--red); font-weight: 800; white-space: nowrap; }

.pulse-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); position: relative; flex: none; }
.pulse-dot::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid var(--red); opacity: 0.6; animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(0.6); opacity: 0.8; } 100% { transform: scale(1.6); opacity: 0; } }

.hero-media { position: relative; }
.hero-photo {
  border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg);
  border: 6px solid #fff; transform: rotate(1.2deg);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Rotating photo frames: base img keeps layout, overlay crossfades on top */
.hero-photo, .about-photo-main { position: relative; }
.rotator-overlay {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 0.9s ease;
  pointer-events: none;
}
.rotator-overlay.show { opacity: 1; }

.hero-photo-small {
  position: absolute; left: -16px; bottom: -30px; width: 45%;
  border-radius: 16px; overflow: hidden;
  border: 5px solid #fff; box-shadow: var(--shadow-lg);
  transform: rotate(-1.6deg);
}
.hero-photo-small img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }

.float-badge {
  position: absolute; display: flex; align-items: center; gap: 9px;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-md);
  padding: 12px 18px; font-weight: 800; font-size: 15px; color: var(--navy);
  animation: floaty 4.5s ease-in-out infinite;
}
.badge-emergency { top: -18px; left: -14px; color: var(--red); }
.badge-cath { bottom: -16px; right: 8px; color: var(--blue); animation-delay: 1.2s; }
.badge-cath .ic { color: var(--red); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- Quick actions ---------- */
.quick { margin-top: -34px; position: relative; z-index: 5; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.quick-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow-md); border: 1px solid var(--line);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.quick-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.quick-ic {
  width: 52px; height: 52px; border-radius: 14px; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.quick-ic .ic { width: 24px; height: 24px; }
.qc-blue { background: #e5f0fb; color: var(--blue); }
.qc-red { background: #fdeaec; color: var(--red); }
.qc-green { background: #e4f7ec; color: var(--green); }
.qc-orange { background: #fdf1dc; color: #d9880c; }
.quick-txt { display: flex; flex-direction: column; line-height: 1.35; }
.quick-txt strong { color: var(--navy); font-size: 16.5px; }
.quick-txt small { color: var(--muted); font-size: 13.5px; }

/* ---------- Stats ---------- */
.stats { padding: 54px 0 10px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center;
}
.stat { padding: 18px 10px; }
.stat-num, .stat-plus {
  font-size: clamp(34px, 4vw, 46px); font-weight: 800; color: var(--blue);
  display: inline; line-height: 1.1;
}
.stat-label { display: block; color: var(--muted); font-weight: 600; margin-top: 6px; }

/* ---------- Sections (shared) ---------- */
.section { padding: 84px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head.light h2, .section-head.light .section-sub { color: #fff; }
.section-head.light .section-sub { opacity: 0.85; }
.eyebrow {
  display: inline-block; font-size: 13.5px; font-weight: 800; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--orange); margin-bottom: 10px;
}
.section-head h2, .about-copy h2, .social-copy h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; color: var(--navy); line-height: 1.2; }
.section-sub { color: var(--muted); margin-top: 14px; font-size: 17px; }

/* ---------- About ---------- */
.about { background: #fff; }
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.about-media { position: relative; padding-bottom: 60px; }
.about-photo-main { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-md); }
.about-photo-main img { aspect-ratio: 4 / 3.4; object-fit: cover; width: 100%; }
.about-photo-small {
  position: absolute; right: -18px; bottom: 8px; width: 55%;
  border-radius: 18px; overflow: hidden; border: 6px solid #fff; box-shadow: var(--shadow-lg);
}
.about-photo-small img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.about-badge {
  position: absolute; left: -12px; bottom: 42px;
  background: var(--blue); color: #fff; padding: 14px 20px; border-radius: 16px;
  box-shadow: var(--shadow-md); line-height: 1.3;
}
.about-badge strong { display: block; font-size: 17px; }
.about-badge small { opacity: 0.85; font-size: 13px; }
.about-copy .eyebrow { margin-bottom: 6px; }
.about-copy h2 { margin-bottom: 18px; }
.about-copy p { color: var(--muted); margin-bottom: 16px; }
.about-copy strong { color: var(--navy); }

.tick-list { list-style: none; margin: 8px 0 26px; }
.tick-list li {
  padding-left: 34px; position: relative; margin-bottom: 12px;
  font-weight: 600; color: var(--ink);
}
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px;
  border-radius: 50%; background: #e4f7ec;
}
.tick-list li::after {
  content: ""; position: absolute; left: 7px; top: 8px; width: 7px; height: 11px;
  border: solid var(--green); border-width: 0 2.5px 2.5px 0; transform: rotate(42deg);
}
.about-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Specialities ---------- */
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.spec-card {
  background: var(--card); border-radius: var(--radius); padding: 26px 22px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.spec-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #c8dcf0; }
.spec-ic {
  width: 54px; height: 54px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.spec-ic .ic { width: 26px; height: 26px; }
.si-red { background: #fdeaec; color: var(--red); }
.si-pink { background: #fbe9f1; color: #c2477f; }
.si-orange { background: #fdf1dc; color: #d9880c; }
.si-blue { background: #e5f0fb; color: var(--blue); }
.si-teal { background: #e0f4f2; color: #0d8a7c; }
.si-purple { background: #f0e9fb; color: #7648c2; }
.si-indigo { background: #e8ebfb; color: #4655c4; }
.si-cyan { background: #e0f2fa; color: #0b7fad; }
.spec-card h3 { font-size: 18.5px; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.spec-card ul { list-style: none; }
.spec-card li { color: var(--muted); font-size: 14.8px; padding: 3.5px 0 3.5px 16px; position: relative; }
.spec-card li::before { content: ""; position: absolute; left: 0; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }

/* ---------- Facilities ---------- */
.facilities { position: relative; overflow: hidden; }
.facilities-bg {
  position: absolute; inset: 0;
  background: linear-gradient(rgba(11, 34, 61, 0.93), rgba(11, 34, 61, 0.93)), url("../assets/surgeons.jpg") center/cover no-repeat;
}
.facilities .container { position: relative; }
.fac-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.fac-card {
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm); padding: 22px 16px; text-align: center;
  color: #fff; transition: background 0.22s ease, transform 0.22s ease;
  backdrop-filter: blur(4px);
}
.fac-card:hover { background: rgba(255, 255, 255, 0.13); transform: translateY(-4px); }
.fac-ic { font-size: 30px; display: block; margin-bottom: 10px; }
.fac-card strong { display: block; font-size: 16px; margin-bottom: 4px; }
.fac-card small { color: #a8bdd4; font-size: 13px; line-height: 1.4; display: block; }

/* ---------- Doctors ---------- */
.doctors { background: #fff; }
.doc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.doc-card {
  background: var(--bg); border-radius: var(--radius); padding: 26px 20px;
  text-align: center; border: 1px solid var(--line);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.doc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.doc-avatar {
  width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; color: #fff;
}
.doc-card h3 { font-size: 17px; font-weight: 800; color: var(--navy); line-height: 1.3; }
.doc-role { color: var(--blue); font-weight: 700; font-size: 14px; margin: 6px 0 8px; }
.doc-qual { color: var(--muted); font-size: 13px; line-height: 1.5; }

/* ---------- Updates / News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.news-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); cursor: zoom-in;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.news-card img { aspect-ratio: 3 / 3.6; object-fit: cover; object-position: top; width: 100%; }
.news-card figcaption { padding: 16px 18px 20px; }
.news-card strong { display: block; color: var(--navy); font-size: 15.5px; line-height: 1.35; margin-bottom: 5px; }
.news-card small { color: var(--muted); font-size: 13.5px; line-height: 1.5; display: block; }

/* ---------- Social / Facebook ---------- */
.social { background: #fff; }
.social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.social-copy h2 { margin-bottom: 16px; }
.social-copy p { color: var(--muted); max-width: 50ch; }
.social-buttons { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; align-items: flex-start; }
.fb-embed { display: flex; flex-direction: column; align-items: center; }
.fb-frame-wrap {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md);
  border: 1px solid var(--line); background: #fff; max-width: 100%;
}
.fb-frame-wrap iframe { max-width: 100%; display: block; }
.fb-fallback { margin-top: 14px; color: var(--muted); font-size: 14.5px; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; padding: 92px 0; text-align: center; }
.cta-bg {
  position: absolute; inset: 0;
  background: linear-gradient(rgba(10, 62, 120, 0.92), rgba(10, 62, 120, 0.92)), url("../assets/doctor-phone.jpg") center/cover no-repeat;
}
.cta-inner { position: relative; color: #fff; }
.cta h2 { font-size: clamp(30px, 3.8vw, 42px); font-weight: 800; }
.cta-bn { font-size: 19px; margin-top: 12px; opacity: 0.92; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.cta-note { margin-top: 22px; opacity: 0.85; font-size: 15.5px; }
.cta-note a { color: var(--orange); font-weight: 800; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: stretch; }
.contact-cards { display: flex; flex-direction: column; gap: 18px; }
.contact-card {
  display: flex; gap: 16px; background: var(--card); border-radius: var(--radius);
  padding: 22px; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.contact-card strong { color: var(--navy); font-size: 16.5px; display: block; margin-bottom: 4px; }
.contact-card p { color: var(--muted); font-size: 15px; }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); min-height: 380px; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #b9cade; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding: 60px 0 44px;
}
.footer-brand p { font-size: 14.5px; margin: 16px 0 18px; max-width: 34ch; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.footer-social a:hover { background: var(--blue); transform: translateY(-3px); }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-col a { display: block; color: #b9cade; font-size: 14.5px; padding: 5px 0; }
.footer-col a:hover { color: var(--orange); }
.footer-col p { font-size: 14.5px; margin-bottom: 12px; }
.footer-col p a { display: inline; padding: 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 18px 0; font-size: 13.5px; text-align: center; }

/* ---------- Floating widgets ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  animation: floaty 3.5s ease-in-out infinite;
}
.wa-float .ic { width: 30px; height: 30px; }
.wa-float:hover { background: #1eb857; }

.to-top {
  position: fixed; right: 26px; bottom: 94px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  box-shadow: var(--shadow-md);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--blue); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8, 20, 36, 0.9);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s;
  padding: 30px;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(92vw, 640px); max-height: 88vh; border-radius: 12px;
  box-shadow: var(--shadow-lg); transform: scale(0.96); transition: transform 0.25s ease;
}
.lightbox.open img { transform: scale(1); }
.lightbox-close {
  position: absolute; top: 18px; right: 26px;
  background: none; border: 0; color: #fff; font-size: 44px; cursor: pointer; line-height: 1;
}

/* ---------- Bengali typography ----------
   Bengali script has taller conjunct stacks; give headings extra
   breathing room and drop tracking that only suits Latin uppercase. */
html[lang="bn"] .eyebrow { letter-spacing: 0.5px; }
html[lang="bn"] .hero h1 { line-height: 1.32; font-size: clamp(31px, 4.2vw, 46px); }
html[lang="bn"] h2, html[lang="bn"] h3, html[lang="bn"] h4 { line-height: 1.4; }
html[lang="bn"] .nav-link { font-size: 16px; }
html[lang="bn"] .cta-bn { font-family: "Manrope", sans-serif; }

/* ---------- Reveal animations ---------- */
.reveal, .reveal-load {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--d, 0s);
}
.reveal.visible, .reveal-load.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal-load { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .spec-grid, .news-grid, .doc-grid { grid-template-columns: repeat(3, 1fr); }
  .fac-grid { grid-template-columns: repeat(4, 1fr); }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { gap: 40px; }
}

@media (max-width: 860px) {
  .hide-sm { display: none !important; }
  .topbar-inner { justify-content: space-between; gap: 10px; }
  .lang-toggle-nav { display: inline-flex; }

  .site-nav {
    position: fixed; top: 0; right: -100%; z-index: 110;
    width: min(320px, 82vw); height: 100vh;
    background: #fff; box-shadow: var(--shadow-lg);
    flex-direction: column; align-items: flex-start; gap: 8px;
    padding: 90px 30px 30px; transition: right 0.3s ease;
  }
  .site-nav.open { right: 0; }
  .nav-link { font-size: 18px; padding: 10px 0; width: 100%; }
  .nav-cta { margin: 14px 0 0; }
  .nav-toggle { display: block; position: relative; z-index: 120; }

  .hero { padding: 48px 0 84px; }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-photo-small { left: 0; bottom: -20px; }
  .hero-media { max-width: 540px; }
  .lead { font-size: 17px; }

  .about-grid, .social-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-media { max-width: 520px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-grid, .news-grid, .doc-grid { grid-template-columns: repeat(2, 1fr); }
  .fac-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section { padding: 64px 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hide-xs { display: none !important; }
  .quick-grid { grid-template-columns: 1fr; }
  .spec-grid, .news-grid, .doc-grid { grid-template-columns: 1fr; }
  .fac-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-name { font-size: 18px; }
  .hero h1 { font-size: 30px; }
  .btn-lg { padding: 14px 22px; font-size: 16px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cta-actions .btn { width: 100%; justify-content: center; }
  .about-photo-small { right: 0; }
  .to-top { right: 20px; }
}
