/* =============================================================
   XPYDER NETWORKS — DESIGN SYSTEM
   Palette derived from brand logo (crossing X mark: red + navy)
   ============================================================= */

:root {
  /* --- Brand colors (from logo) --- */
  --navy: #1B2A6B;
  --navy-dark: #101a45;
  --navy-light: #2c3e8f;
  --red: #D42C3B;
  --red-dark: #a81f2c;
  --red-light: #ef4453;

  /* --- Neutrals --- */
  --ink: #10132b;
  --body-text: #454864;
  --muted: #767a9a;
  --bg: #f7f8fc;
  --bg-alt: #eef0fa;
  --line: #e3e6f2;
  --white: #ffffff;

  /* --- Type --- */
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* --- Layout --- */
  --container: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(16, 19, 43, 0.06);
  --shadow-md: 0 12px 32px rgba(16, 19, 43, 0.10);
  --shadow-red: 0 10px 24px rgba(212, 44, 59, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body-text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  line-height: 1.15;
  font-weight: 700;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--red);
  display: inline-block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  font-family: var(--font-body);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: var(--shadow-red);
}
.btn-primary:hover { background: var(--red-dark); }
.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--navy);
}
.btn-outline:hover { border-color: var(--navy); background: var(--bg-alt); }
.btn-ghost-light {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.18); }

/* =============================================================
   TOP UTILITY BAR
   ============================================================= */
.topbar {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.78);
  font-size: 13px;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
}
.topbar-left { display: flex; gap: 22px; align-items: center; }
.topbar-left a { color: rgba(255,255,255,0.78); display: flex; align-items: center; gap: 6px; }
.topbar-left a:hover { color: var(--white); }
.topbar-right { display: flex; gap: 14px; align-items: center; }
.topbar-right a {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  color: var(--white);
  transition: background .18s ease;
}
.topbar-right a:hover { background: var(--red); }
.topbar-right svg { width: 13px; height: 13px; }

/* =============================================================
   NAVBAR  (full width + zoom-safe)
   ============================================================= */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Full width: 1200px limit nai, zoom korleo baire jabe na */
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 100%;
  height: 70px;
  padding: 0 clamp(14px, 2vw, 32px);
  gap: clamp(10px, 1.4vw, 24px);
}

/* Logo: bam pashe, kokhono chepte jabe na */
.brand { display: flex; align-items: center; gap: 10px; }
.navbar .brand {
  flex: 0 0 auto;
  margin-right: 4px;
}
.navbar .brand img {
  height: clamp(28px, 2.6vw, 36px);
  width: auto;
  max-width: none;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

/* Menu: bachano jaiga nibe, zoom-e choto hobe */
.navbar nav {
  flex: 1 1 auto;
  min-width: 0;
}
.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0;
  height: 70px;
}
.nav-menu > li { position: relative; height: 100%; display: flex; align-items: center; }
.nav-menu > li > a {
  padding: 10px clamp(7px, 0.9vw, 15px);
  font-size: clamp(12.5px, 1.05vw, 14.5px);
  font-weight: 600;
  color: var(--ink);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: color .16s ease, background .16s ease;
}
.nav-menu > li > a:hover,
.nav-menu > li.active > a { color: var(--red); background: var(--bg-alt); }
.nav-menu .caret { width: 9px; height: 9px; opacity: .55; transition: transform .16s ease; }
.nav-menu > li:hover .caret { transform: rotate(180deg); }

/* Right side: Get Started + icons + hamburger */
.nav-actions {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1vw, 14px);
  flex: 0 0 auto;
}
.nav-cta {
  white-space: nowrap;
  padding: 10px clamp(14px, 1.4vw, 24px);
  font-size: clamp(13px, 1vw, 14.5px);
}

/* 3 contact icons */
.nav-contact {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-contact-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-contact-link svg { width: 18px; height: 18px; }
.nav-contact-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.nc-whatsapp { background: #25D366; }
.nc-teams    { background: #5059C9; }
.nc-telegram { background: #229ED9; }

/* Drawer-er niche icon (shudhu mobile-e) */
.mobile-contact {
  display: none;
  justify-content: center;
  gap: 14px;
  padding: 18px 20px;
}

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--white);
  align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; color: var(--navy); }

/* dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 50;
}
.nav-menu > li:hover > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li { position: relative; }
.dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--body-text);
}
.dropdown a:hover { background: var(--bg-alt); color: var(--red); }
.dropdown .sub-caret { width: 8px; height: 8px; opacity: .5; transform: rotate(-90deg); }

.dropdown-submenu { position: relative; }
.dropdown-submenu .dropdown {
  top: -8px;
  left: 100%;
  margin-left: 6px;
}
.dropdown-submenu:hover > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

/* Shesh 2 ta item-er dropdown screen-er baire jabe na */
.nav-menu > li:nth-last-child(-n+2) > .dropdown {
  left: auto;
  right: 0;
}
.nav-menu > li:nth-last-child(-n+2) .dropdown-submenu .dropdown {
  left: auto;
  right: 100%;
  margin-left: 0;
  margin-right: 6px;
}

/* =============================================================
   HERO
   ============================================================= */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
  overflow: hidden;
  padding: 96px 0 70px;
}
.hero-x-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 50px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffb3ba;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  color: var(--white);
  font-size: 48px;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--red-light); }
.hero p.lead {
  color: rgba(255,255,255,0.72);
  font-size: 17px;
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 46px; }

.hero-stats {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
}
.hero-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--white);
}
.hero-stat span {
  font-size: 12.5px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* hero visual: exam-code terminal card */
.hero-visual { position: relative; }
.terminal-card {
  background: rgba(16, 19, 43, 0.55);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 26px;
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-md);
}
.terminal-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-head span:last-child {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: rgba(255,255,255,0.45);
}
.exam-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.exam-row:last-child { border-bottom: none; }
.exam-code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #8fe3a8;
}
.exam-name { color: rgba(255,255,255,0.85); font-size: 13.5px; font-weight: 500; }
.exam-pass {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--red-light);
  background: rgba(212,44,59,0.16);
  padding: 3px 9px;
  border-radius: 999px;
}

/* =============================================================
   SECTION HEADINGS
   ============================================================= */
.section { padding: 84px 0; }
.section-alt { background: var(--white); }
.section-head {
  max-width: 620px;
  margin-bottom: 48px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: 34px; margin-bottom: 14px; }
.section-head p { font-size: 15.5px; line-height: 1.7; color: var(--muted); }

/* =============================================================
   CERTIFICATION CARDS
   ============================================================= */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.cert-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  font-size: 16px;
}
.cert-card p { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin: 0 0 14px; }
.cert-code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--red);
  background: rgba(212,44,59,0.08);
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

/* =============================================================
   ABOUT / X-PATTERN SIGNATURE SECTION
   ============================================================= */
.about-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.about-graphic {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background: var(--navy-dark);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-graphic svg { width: 62%; height: 62%; }
.about-copy p { font-size: 15.5px; line-height: 1.8; color: var(--body-text); margin-bottom: 26px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 6px;
}
.stat-box {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}
.stat-box b {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--navy);
}
.stat-box span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }

.about-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 32px 24px;
  text-align: center;
}
.brand-logo {
  width: 60%;
  max-width: 260px;
  height: auto;
}
.brand-tagline {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
.brand-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.brand-chips span {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
}

/* =============================================================
   TESTIMONIALS (Trustpilot style)
   ============================================================= */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testi-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid #dcdce6;
  border-radius: 14px;
  padding: 24px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.testi-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* Avatar + name + date */
.testi-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.testi-avatar {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 500;
  color: #fff;
  background: #00493b;
}
.testi-avatar.av-1 { background: #00493b; }
.testi-avatar.av-2 { background: #0b8f78; }
.testi-avatar.av-3 { background: #1b5e8c; }
.testi-avatar.av-4 { background: #6a3d9a; }

.testi-who { flex: 1; min-width: 0; }
.testi-name {
  font-size: 16px;
  font-weight: 500;
  color: #1c1c1c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.testi-tag {
  font-size: 14px;
  color: #6b6b76;
  margin-top: 2px;
}
.testi-date {
  font-size: 13.5px;
  color: #6b6b76;
  white-space: nowrap;
  align-self: flex-start;
  margin-top: 4px;
}

/* Trustpilot star + text, then green stars */
.testi-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.testi-tp {
  display: flex;
  align-items: center;
  gap: 6px;
}
.testi-tp-star {
  width: 24px;
  height: 24px;
  fill: #00b67a;
  display: block;
  flex-shrink: 0;
}
.testi-tp-text {
  font-size: 19px;
  font-weight: 600;
  color: #1c1c1c;
  letter-spacing: -0.2px;
}

.testi-stars {
  display: flex;
  gap: 2px;
  margin: 0;
}
.testi-stars span {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #dcdce6;
}
.testi-stars .star-on  { background: #00b67a; }
.testi-stars .star-off { background: #dcdce6; }
.testi-stars svg {
  width: 16px;
  height: 16px;
  fill: #ffffff;
  display: block;
}

/* Title + review text */
.testi-title {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  color: #1c1c1c;
  margin-bottom: 8px;
}
.testi-quote {
  font-size: 15.5px;
  line-height: 1.55;
  color: #1c1c1c;
  margin: 0;
}

/* See all reviews button */
.testi-more {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}
.testi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 36px;
  background: #3c57bc;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 999px;
  transition: background .18s ease, transform .18s ease;
}
.testi-btn:hover {
  background: #2f4699;
  transform: translateY(-2px);
}

@media (max-width: 560px) {
  .testi-card { padding: 20px 18px; }
  .testi-date { display: none; }
  .testi-tp-star { width: 20px; height: 20px; }
  .testi-tp-text { font-size: 16px; }
  .testi-stars span { width: 22px; height: 22px; }
}

/* =============================================================
   CTA BANNER
   ============================================================= */
.cta-banner {
  background: linear-gradient(120deg, var(--red-dark), var(--red) 55%, var(--navy) 130%);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-banner h3 { color: var(--white); font-size: 28px; margin-bottom: 8px; }
.cta-banner p { color: rgba(255,255,255,0.85); font-size: 14.5px; margin: 0; }
.cta-banner .btn-primary { background: var(--white); color: var(--red); box-shadow: none; }
.cta-banner .btn-primary:hover { background: var(--bg-alt); }

/* =============================================================
   FOOTER
   ============================================================= */
.footer { background: var(--navy-dark); color: rgba(255,255,255,0.65); padding-top: 70px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.footer-brand p { font-size: 13.5px; line-height: 1.75; max-width: 320px; }
.footer h5 {
  color: var(--white);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  font-family: var(--font-body);
}
.footer-links li { margin-bottom: 11px; }
.footer-links a { font-size: 13.5px; transition: color .16s ease; }
.footer-links a:hover { color: var(--white); }
.footer-contact li { font-size: 13.5px; margin-bottom: 12px; display: flex; gap: 9px; }

/* Footer social icons (WhatsApp / Skype / Teams / Telegram) */
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  flex-shrink: 0;
  transition: transform .2s ease, box-shadow .2s ease;
}
.footer-social a i { line-height: 1; }
.footer-social a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}
.footer-social a.fs-whatsapp { background: #25D366; }
.footer-social a.fs-skype    { background: #00AFF0; }
.footer-social a.fs-teams    { background: #5059C9; }
.footer-social a.fs-telegram { background: #229ED9; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-size: 12.5px;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-brand img {
  filter: none !important;
  height: 44px;
  width: auto;
  display: block;
  margin-bottom: 16px;
  background: #fff;
  padding: 6px 10px;
  border-radius: 8px;
}
.footer-bottom a:hover { color: var(--white); }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1080px) {
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .about-wrap { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .topbar-left span.hide-sm { display: none; }
  .hero .container { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .hero p.lead { max-width: 100%; }
  .cert-grid { grid-template-columns: 1fr 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; text-align: center; padding: 40px 26px; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .section { padding: 60px 0; }
  .cert-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 70px 0 50px; }
  .hero h1 { font-size: 29px; }
  .hero-stats { gap: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-graphic { aspect-ratio: 16/10; }
}

/* ---------- Navbar responsive (zoom / choto screen) ---------- */

/* Tablet / choto laptop / zoom: icon ektu choto */
@media (max-width: 1280px) {
  .nav-contact { gap: 6px; }
  .nav-contact-link { width: 32px; height: 32px; }
  .nav-contact-link svg { width: 16px; height: 16px; }
}

/* 1180px-er niche: hamburger menu, logo bam pashe, baki dan pashe */
@media (max-width: 1180px) {
  .navbar nav { display: none; }
  .nav-menu { display: none; }
  .nav-actions { margin-left: auto; }
  .nav-toggle { display: flex; }
}

/* 768px-er niche: Get Started + icon lukano, drawer-e dekhano */
@media (max-width: 768px) {
  .navbar .container { height: 62px; }
  .nav-actions .btn { display: none; }
  .nav-contact { display: none; }
  .mobile-contact { display: flex; }
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--navy-dark);
  z-index: 200;
  padding: 24px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .25s ease;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.mobile-nav-head img { height: 28px; filter: brightness(0) invert(1); }
.mobile-close {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  border: none;
  cursor: pointer;
}
.mobile-nav-list > li { border-bottom: 1px solid rgba(255,255,255,0.1); }
.mobile-nav-list > li > a, .mobile-nav-list .m-toggle {
  padding: 15px 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  padding-left: 14px;
}
.mobile-submenu.open { max-height: 1200px; padding-bottom: 10px; }
.mobile-submenu a {
  display: block;
  padding: 10px 4px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}
.mobile-nav-list .m-toggle svg { width: 16px; height: 16px; transition: transform .2s ease; }
.mobile-nav-list .m-toggle.open svg { transform: rotate(180deg); }

/* =============================================================
   CERT CARDS (course grid with thumbnail)
   ============================================================= */
.cert-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
  overflow: hidden;
}
.cert-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--red), var(--navy));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.cert-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.cert-card:hover::before { transform: scaleX(1); }

.cert-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  overflow: hidden;
  margin-bottom: 16px;
}
.cert-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.cert-card:hover .cert-thumb img { transform: scale(1.05); }

.cert-card h4 { font-size: 16px; margin: 0; }

/* =============================================================
   COURSE DETAILS PAGE — polish pass
   ============================================================= */

/* ---- Hero: bold title, highlighted badge pills ---- */
.cert-hero h1 {
  color: var(--white);
  font-size: 34px;
  font-weight: 700;
  max-width: 780px;
  margin: 0 auto 22px;
  line-height: 1.3;
  text-align: center;
  letter-spacing: -0.01em;
}
.cert-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
}
.cert-badges li {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 7px 16px;
  border-radius: 999px;
  backdrop-filter: blur(2px);
}
.cert-badges li::before {
  content: "✓";
  color: #8fe3a8;
  font-weight: 800;
  font-size: 13px;
}

/* ---- Section title helper (used by every section below) ---- */
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.section-title .bar {
  width: 4px;
  height: 24px;
  background: var(--red);
  border-radius: 2px;
  flex-shrink: 0;
}
.section-title h2 {
  font-size: 24px;
  margin: 0;
  color: var(--ink);
}

/* ---- Exam pricing table: polished ---- */
.cert-pricing { padding: 60px 0; background: var(--white); }
.cert-pricing-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.cert-pricing-table thead th {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: left;
  padding: 14px 18px;
  font-weight: 600;
}
.cert-pricing-table tbody td {
  padding: 15px 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--body-text);
}
.cert-pricing-table tbody tr:nth-child(even) { background: var(--bg); }
.cert-pricing-table tbody tr:hover { background: var(--bg-alt); }
.cert-pricing-table tbody td:nth-child(2) {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--navy);
}
.cert-pricing-table tbody td:last-child { text-align: right; }
.cert-pricing-table .btn-outline {
  white-space: nowrap;
  font-weight: 700;
}

/* ---- Description: image anchored top-right, text flows beside it ---- */
.cert-description { padding: 60px 0; }
.cert-description-grid {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 34px;
  align-items: start;
}
.cert-description-body {
  font-size: 15px;
  line-height: 1.85;
  color: var(--body-text);
}
.cert-description-body p { margin: 0 0 16px; }
.cert-description-body h1,
.cert-description-body h2,
.cert-description-body h3 { margin: 22px 0 12px; color: var(--ink); }
.cert-description-body strong { color: var(--ink); }
.cert-description-body ul,
.cert-description-body ol { padding-left: 20px; margin: 0 0 16px; }

.cert-description-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 500px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.cert-description-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 780px) {
  .cert-description-grid { grid-template-columns: 1fr; }
  .cert-description-img-wrap { max-width: 320px; margin: 0 auto; order: -1; }
}

/* ---- Override old centered h2 rules now that section-title has its own bar+heading layout ---- */
.cert-pricing h2,
.cert-faq h2,
.cert-related h2 {
  text-align: left;
  margin-bottom: 0;
}
.cert-faq { padding: 60px 0; }
.cert-related { padding: 50px 0; background: var(--bg-alt); }

/* =============================================================
   FLOATING CONTACT BUTTON (WhatsApp / Teams / Telegram)
   ============================================================= */
.fab-contact {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.fab-toggle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(212,44,59,0.38);
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  animation: fabPulse 2.4s ease-in-out infinite;
}
.fab-toggle:hover { background: var(--red-dark); transform: scale(1.06); }
.fab-toggle svg { width: 24px; height: 24px; position: absolute; transition: opacity .18s ease, transform .18s ease; }
.fab-icon-open { opacity: 1; transform: scale(1) rotate(0deg); }
.fab-icon-close { opacity: 0; transform: scale(.5) rotate(-45deg); }

.fab-contact.open .fab-toggle { animation: none; background: var(--navy-dark); box-shadow: 0 10px 28px rgba(16,19,43,0.35); }
.fab-contact.open .fab-icon-open { opacity: 0; transform: scale(.5) rotate(45deg); }
.fab-contact.open .fab-icon-close { opacity: 1; transform: scale(1) rotate(0deg); }

@keyframes fabPulse {
  0%, 100% { box-shadow: 0 10px 28px rgba(212,44,59,0.38), 0 0 0 0 rgba(212,44,59,0.35); }
  50% { box-shadow: 0 10px 28px rgba(212,44,59,0.38), 0 0 0 10px rgba(212,44,59,0); }
}

.fab-options {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.fab-option {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: var(--shadow-md);
  position: relative;
  opacity: 0;
  transform: translateY(14px) scale(.7);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, filter .18s ease;
}
.fab-option svg { width: 22px; height: 22px; }

.fab-contact.open .fab-option {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.fab-contact.open .fab-option:nth-child(1) { transition-delay: .12s; }
.fab-contact.open .fab-option:nth-child(2) { transition-delay: .06s; }
.fab-contact.open .fab-option:nth-child(3) { transition-delay: 0s; }

.fab-whatsapp { background: #25D366; }
.fab-teams { background: #5059C9; }
.fab-telegram { background: #26A5E4; }
.fab-option:hover { filter: brightness(1.08); }

.fab-tooltip {
  position: absolute;
  right: 62px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: var(--navy-dark);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 7px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}
.fab-tooltip::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--navy-dark);
}
.fab-option:hover .fab-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 560px) {
  .fab-contact { right: 16px; bottom: 16px; }
  .fab-toggle { width: 52px; height: 52px; }
  .fab-option { width: 44px; height: 44px; }
  .fab-tooltip { display: none; }
}

/* ---- Exam pricing table: mobile card layout (fixes "Get Now" being cut off) ---- */
@media (max-width: 640px) {
  .cert-pricing-table thead { display: none; }
  .cert-pricing-table, .cert-pricing-table tbody, .cert-pricing-table tr, .cert-pricing-table td {
    display: block;
    width: 100%;
  }
  .cert-pricing-table { border: none; box-shadow: none; }
  .cert-pricing-table tr {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
  }
  .cert-pricing-table tbody tr:nth-child(even) { background: var(--white); }
  .cert-pricing-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
    border-top: 1px solid var(--line);
    text-align: right;
    font-size: 13.5px;
  }
  .cert-pricing-table td:first-child { border-top: none; }
  .cert-pricing-table td::before {
    content: attr(data-label);
    font-family: var(--font-mono);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--navy);
    font-weight: 700;
    text-align: left;
  }
  .cert-pricing-table td:last-child {
    justify-content: center;
    background: var(--bg-alt);
    padding: 12px 14px;
  }
  .cert-pricing-table td:last-child::before { content: none; }
  .cert-pricing-table td:last-child .btn-outline {
    width: 100%;
    text-align: center;
  }
}

/* =============================================================
   STATIC PAGES (About / Privacy / Refund)
   ============================================================= */
.page-hero {
  background: linear-gradient(135deg, #0f1a4a 0%, #1a2466 100%);
  color: #fff;
  padding: 70px 0 60px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(28px, 5vw, 42px);
  margin: 0 0 10px;
  color: #ffffff !important;
}
.page-hero p {
  margin: 0;
  opacity: 0.8;
}

.page-content {
  padding: 50px 0 70px;
  background: #f6f7fb;
}
.page-card {
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  border-radius: 14px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(15, 26, 74, 0.08);
  line-height: 1.75;
  color: #333;
}
.page-card h2 {
  font-size: 22px;
  margin: 30px 0 10px;
}
.page-card h2:first-child { margin-top: 0; }

/* Card-er bhitor-er heading: shada background-e shada text dekha jay na, tai navy */
.page-card h2,
.page-card h3 {
  color: #0f1a4a !important;
}
.page-card ul {
  padding-left: 22px;
  margin: 10px 0;
}
.page-card ol {
  padding-left: 22px;
  margin: 10px 0 16px;
}
.page-card ol li { margin-bottom: 10px; }
.page-card p { margin: 0 0 14px; }
.page-card a { color: #d92d3f; }

@media (max-width: 600px) {
  .page-hero { padding: 50px 0 40px; }
  .page-card { padding: 24px 18px; }
}