/* =============================================================
   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; }

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
   ============================================================= */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 34px; width: auto; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 100%;
}
.nav-menu > li { position: relative; height: 100%; display: flex; align-items: center; }
.nav-menu > li > a {
  padding: 10px 16px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 5px;
  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); }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.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); }

/* =============================================================
   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-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  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-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 h4 { font-size: 16.5px; margin-bottom: 6px; }
.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; }

/* =============================================================
   TESTIMONIALS
   ============================================================= */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testi-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px;
}
.testi-quote { font-size: 13.5px; line-height: 1.75; color: var(--body-text); margin-bottom: 18px; }
.testi-person { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--navy));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 15px;
}
.testi-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.testi-tag { font-size: 12px; color: var(--muted); }

/* =============================================================
   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 img { height: 30px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.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 { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--red); }
.footer-social svg { width: 15px; height: 15px; color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-size: 12.5px;
  flex-wrap: wrap;
  gap: 10px;
}
.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; }
  .nav-menu, .nav-actions .btn { display: none; }
  .nav-toggle { display: flex; }
  .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; }
}

/* 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-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
   Append this to public/css/app.css (or replace the matching
   .cert-* rules if they already exist from earlier work).
   ============================================================= */

/* ---- 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 around/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; }
}

.testi-stars { margin-bottom: 10px; font-size: 14px; letter-spacing: 2px; }
.testi-stars .star-on { color: #f5b301; }
.testi-stars .star-off { color: var(--line); }