@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800;900&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

:root {
  --p:   #17A1D7;
  --p2:  #E9568D;
  --dk:  #0A0D1C;
  --tx:  #0f172a;
  --mu:  #64748b;
  --br:  #e5e7eb;
  --sf:  #f8fafc;
  --sh:  0 2px 16px rgba(2,6,23,.07);
  --sh2: 0 8px 36px rgba(2,6,23,.11);
  --r:   18px;
}

body, html { overflow-x: hidden !important; max-width: 100% !important; }
/* Removed background overrides to prevent white flash */
.hm { font-family: 'Sora', sans-serif; color: var(--tx); background: #fff; overflow-x: hidden; max-width: 100vw; }
.hm *, .hm *::before, .hm *::after { box-sizing: border-box; }
.hm p, .hm li, .hm span:not(.pill-dot):not(.stroke-text) { font-family: 'DM Sans', sans-serif; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; width: 100%; }

/* ── shared ── */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(23,161,215,.10); color: var(--p);
  border: 1px solid rgba(23,161,215,.25);
  border-radius: 999px; padding: 6px 14px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.pill .pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--p); display: inline-block; }

.sec-h2 { font-size: clamp(26px, 3.5vw, 38px); font-weight: 900; letter-spacing: -.02em; margin: 0 0 12px; line-height: 1.1; }
.sec-sub { font-size: 16px; color: var(--mu); line-height: 1.8; max-width: 58ch; margin: 0 auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px;
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: 14px;
  text-decoration: none; border: 1.5px solid transparent; transition: .2s ease; cursor: pointer;
}
.btn-fill  { background: var(--p);  color: #fff; border-color: var(--p); }
.btn-fill:hover  { background: var(--dk); border-color: var(--dk); transform: translateY(-2px); }
.btn-fill2 { background: var(--p2); color: #fff; border-color: var(--p2); }
.btn-fill2:hover { background: #c93d74; border-color: #c93d74; transform: translateY(-2px); }
.btn-line  { background: #fff; color: var(--tx); border-color: var(--br); }
.btn-line:hover  { border-color: var(--p); color: var(--p); transform: translateY(-2px); }
.btn-line-w { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-line-w:hover { border-color: #fff; transform: translateY(-2px); }

/* ─────────────────────────────────────
   HERO
───────────────────────────────────── */
.hm-hero {
  padding: 68px 0 0;
  background:
    radial-gradient(800px 340px at 90% 0%, rgba(233,86,141,.14), transparent 55%),
    radial-gradient(800px 340px at 5%  0%, rgba(23,161,215,.14), transparent 55%),
    #fff;
  overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 460px;
  gap: 56px; align-items: center;
}
.hero-left { padding-bottom: 56px; }

.hero-h1 {
  font-size: clamp(36px, 4.8vw, 58px); font-weight: 900;
  line-height: 1.04; letter-spacing: -.03em;
  margin: 18px 0 18px; color: var(--dk);
}
.hero-h1 em  { font-style: normal; -webkit-text-stroke: 2px var(--p); color: transparent; }
.stroke-text {
  color: #E9568D;
  font-family: 'Sora', sans-serif;
}

.hero-lead {
  font-size: 17px; line-height: 1.8; color: var(--mu);
  max-width: 50ch; margin: 0 0 28px;
}
.hero-lead strong { color: var(--tx); font-weight: 600; }

/* Search */
.hero-search {
  display: flex; gap: 0; margin-bottom: 36px;
  max-width: 480px;
  border: 1.5px solid var(--br); border-radius: 14px;
  overflow: hidden; background: #fff;
  box-shadow: var(--sh2);
  transition: border-color .2s, box-shadow .2s;
}
.hero-search:focus-within {
  border-color: var(--p);
  box-shadow: 0 0 0 4px rgba(23,161,215,.10);
}
.hero-search input {
  flex: 1; border: none; outline: none; padding: 14px 16px;
  font-family: 'DM Sans', sans-serif; font-size: 15px; color: var(--tx);
  background: transparent;
}
.hero-search input::placeholder { color: #b0bec5; }
.hero-search button {
  background: var(--p); color: #fff; border: none;
  padding: 14px 22px; cursor: pointer;
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: 14px;
  transition: background .2s; white-space: nowrap;
}
.hero-search button:hover { background: var(--dk); }

.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Trust strip */
.hero-trust {
  display: flex; align-items: center; gap: 14px;
  margin-top: 28px; flex-wrap: wrap;
}
.trust-avatars { display: flex; }
.trust-avatars .av {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid #fff; margin-left: -8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800;
  background: linear-gradient(135deg, rgba(23,161,215,.25), rgba(233,86,141,.20));
  color: var(--dk);
}
.trust-avatars .av:first-child { margin-left: 0; }
.trust-text { font-size: 13px; color: var(--mu); font-weight: 600; font-family: 'DM Sans', sans-serif; }
.trust-text strong { color: var(--tx); }

/* Hero visual */
.hero-right { position: relative; padding-bottom: 56px; }
.hero-visual {
  border-radius: 24px; overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, rgba(23,161,215,.10), rgba(233,86,141,.08));
  position: relative; box-shadow: var(--sh2);
  border: 1px solid var(--br);
  display: flex; align-items: center; justify-content: center;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hv-placeholder {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 12px; color: var(--mu); padding: 24px;
}
.hv-placeholder .hv-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(23,161,215,.12);
  display: flex; align-items: center; justify-content: center; font-size: 32px;
}
.hv-placeholder p { font-size: 13px; font-weight: 600; text-align: center; margin: 0; }

/* Badge 1 — CPA-K · bottom left — inside .hero-visual */
.hf-badge1 {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(18px) saturate(1.8);
  -webkit-backdrop-filter: blur(18px) saturate(1.8);
  border: 1px solid rgba(255,255,255,.50);
  border-radius: 18px; padding: 14px 18px;
  box-shadow: 0 8px 32px rgba(2,6,23,.18), inset 0 1px 0 rgba(255,255,255,.60);
  min-width: 172px;
  transition: transform .25s ease, box-shadow .25s ease;
  z-index: 10;
}
.hf-badge1:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(2,6,23,.22), inset 0 1px 0 rgba(255,255,255,.60); }
.hf-badge1 .hfb-icon { font-size: 22px; margin-bottom: 6px; }
.hf-badge1 .hfb-val  { font-size: 18px; font-weight: 900; color: var(--dk); }
.hf-badge1 .hfb-lbl  { font-size: 12px; color: var(--mu); font-weight: 600; font-family: 'DM Sans', sans-serif; }

/* Badge 2 — KRA Tax Agent · bottom right — inside .hero-visual */
.hf-badge2 {
  position: absolute; right: 14px; bottom: 90px;
  background: rgba(10,13,28,.88);
  backdrop-filter: blur(20px) saturate(2);
  -webkit-backdrop-filter: blur(20px) saturate(2);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff; border-radius: 18px; padding: 14px 18px;
  box-shadow: 0 8px 36px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.12);
  min-width: 176px;
  transition: transform .25s ease, box-shadow .25s ease;
  z-index: 10;
}
.hf-badge2:hover { transform: translateY(-3px); box-shadow: 0 14px 44px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.12); }
.hf-badge2 .hfb2-title { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.hf-badge2 .hfb2-row { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,.78); font-family: 'DM Sans', sans-serif; }
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e; display: inline-block;
  animation: blink 2s infinite; flex-shrink: 0;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

/* ─────────────────────────────────────
   MARQUEE
───────────────────────────────────── */
.hm-marquee {
  background: var(--dk); padding: 14px 0; overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.06);
}
.mq-track {
  display: flex; gap: 40px; white-space: nowrap;
  animation: marquee 24s linear infinite;
}
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.mq-track span {
  font-size: 13px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: rgba(255,255,255,.65); flex-shrink: 0;
}
.mq-track .mq-sep { color: var(--p); }

/* ─────────────────────────────────────
   STATS BAR
───────────────────────────────────── */
.hm-stats { padding: 48px 0; border-bottom: 1px solid var(--br); }
.stats-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; border: 1px solid var(--br); border-radius: var(--r);
  overflow: hidden; background: var(--sf);
}
.stat-item {
  padding: 24px 20px; border-right: 1px solid var(--br);
  display: flex; align-items: center; gap: 14px;
}
.stat-item:last-child { border-right: none; }
.stat-icon { width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.stat-icon.blue   { background: rgba(23,161,215,.12); }
.stat-icon.pink   { background: rgba(233,86,141,.12); }
.stat-icon.green  { background: rgba(34,197,94,.12); }
.stat-icon.amber  { background: rgba(251,191,36,.12); }
.stat-val { font-size: 24px; font-weight: 900; color: var(--dk); letter-spacing: -.02em; line-height: 1; }
.stat-val span { color: var(--p); }
.stat-lbl { font-size: 13px; color: var(--mu); font-weight: 600; margin-top: 4px; font-family: 'DM Sans', sans-serif; }

/* ─────────────────────────────────────
   WHY HISIBATI
───────────────────────────────────── */
.hm-why { padding: 80px 0; background: #fff; }
.sec-head { margin-bottom: 48px; text-align: center; }
.hm-events .sec-head {
  text-align: left;
  margin-bottom: 48px;
}
.sec-head .pill { margin-bottom: 14px; margin-left: auto; margin-right: auto; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why-card {
  border: 1px solid var(--br); border-radius: var(--r);
  padding: 28px 24px; background: #fff; transition: .2s ease;
}
.why-card:hover { border-color: var(--p); box-shadow: var(--sh2); transform: translateY(-3px); }
.wc-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 16px; }
.wc-icon.blue   { background: rgba(23,161,215,.12); }
.wc-icon.pink   { background: rgba(233,86,141,.12); }
.wc-icon.green  { background: rgba(34,197,94,.12); }
.wc-icon.amber  { background: rgba(251,191,36,.12); }
.wc-icon.purple { background: rgba(139,92,246,.12); }
.wc-icon.teal   { background: rgba(20,184,166,.12); }
.why-card h3 { font-size: 15px; font-weight: 800; margin: 0 0 8px; }
.why-card p  { font-size: 14px; color: var(--mu); line-height: 1.75; margin: 0; }

/* ─────────────────────────────────────
   POPULAR COURSES
───────────────────────────────────── */
.hm-courses { padding: 80px 0; background: var(--sf); }
.courses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.course-card {
  background: #fff; border: 1px solid var(--br); border-radius: 12px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .22s, transform .22s, border-color .22s;
}
.course-card:hover { box-shadow: 0 12px 40px rgba(2,6,23,.13); transform: translateY(-4px); border-color: rgba(23,161,215,.25); }
.cc-thumb {
  height: 200px; position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0; text-decoration: none;
}
.cc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.cc-thumb:hover img { transform: scale(1.04); }
.cc-thumb.c1 { background: linear-gradient(135deg,rgba(23,161,215,.18),rgba(23,161,215,.05)); }
.cc-thumb.c2 { background: linear-gradient(135deg,rgba(233,86,141,.18),rgba(233,86,141,.05)); }
.cc-thumb.c3 { background: linear-gradient(135deg,rgba(34,197,94,.18),rgba(34,197,94,.05)); }
.cc-thumb.c4 { background: linear-gradient(135deg,rgba(251,191,36,.18),rgba(251,191,36,.05)); }
.cc-thumb.c5 { background: linear-gradient(135deg,rgba(139,92,246,.18),rgba(139,92,246,.05)); }
.cc-thumb.c6 { background: linear-gradient(135deg,rgba(20,184,166,.18),rgba(20,184,166,.05)); }
.cc-thumb-icon { font-size: 52px; opacity: .8; }
.cc-top-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 0; }
/* SkillUp Inspired Categories — Unified Hisibati Blue */
.cc-cat-pill { 
  display: inline-block; padding: 6px 14px; border-radius: 999px; 
  font-size: 12px; font-weight: 800; font-family: 'DM Sans', sans-serif; 
  background: rgba(23,161,215,0.08); color: #17A1D7; 
  letter-spacing: .02em;
}
.cc-enrolled { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--mu); font-family: 'DM Sans', sans-serif; }
.cc-enrolled svg { width: 14px; height: 14px; flex-shrink: 0; }
.cc-title { padding: 10px 16px 0; font-size: 15px; font-weight: 800; line-height: 1.35; color: var(--dk); text-decoration: none; display: block; }
.cc-title:hover { color: var(--p); }
.cc-meta-strip { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--br); margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--mu); font-family: 'DM Sans', sans-serif; }
.cc-meta-item.lessons { flex: 1; justify-content: center; }
.cc-meta-item.level { justify-content: flex-end; }

.cc-footer { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--br); margin-top: auto; }
.cc-inst-av { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; object-fit: cover; border: 2px solid var(--br); display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg,rgba(23,161,215,.25),rgba(233,86,141,.20)); font-size: 12px; font-weight: 800; color: var(--dk); font-family: 'Sora', sans-serif; }
.cc-inst-name { font-size: 12.5px; font-weight: 600; color: var(--tx); font-family: 'DM Sans', sans-serif; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-price-tag { font-size: 15px; font-weight: 900; color: #49aa4c; font-family: 'Sora', sans-serif; flex-shrink: 0; }
.cc-price-tag.free { color: #15803d; }
.no-courses { grid-column: 1/-1; text-align: center; padding: 48px 24px; color: var(--mu); font-size: 15px; }
.courses-cta { text-align: center; margin-top: 36px; }

/* ─────────────────────────────────────
   UPCOMING EVENTS  (Google Meet edition)
───────────────────────────────────── */
.hm-events {
  padding: 80px 0;
  position: relative;
  background: #fff;
  overflow: hidden;
}
.hm-events::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://hisibationline.com/wp-content/uploads/2026/05/HOME.jpg') center center / cover no-repeat;
  z-index: 0;
}
.hm-events::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(5,10,40,.55) 30%, rgba(5,10,40,.05) 70%, transparent 100%);
  z-index: 1;
}

/* Grid — responsive, never causes page overflow */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  width: 100%;
  box-sizing: border-box;
}

/* Also find your .ev-card block and add "min-width: 0;" to it */
.ev-card {
  border: 1px solid var(--br);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .22s, transform .22s, border-color .22s;
  width: 100%;
  min-width: 0; /* Crucial for keeping cards inside their columns */
}
.ev-card:hover {
  box-shadow: 0 12px 40px rgba(2,6,23,.12);
  transform: translateY(-4px);
  border-color: rgba(23,161,215,.3);
}

/* Date banner — 2 rows:
   top    = date | time + duration | price
   bottom = gmeet badge | spacer | per-session price */
.ev-date-banner {
  background: linear-gradient(135deg, var(--dk) 0%, #0f1a3a 100%);
  padding: 14px 18px 12px;
  display: flex; flex-direction: column; gap: 10px;
  position: relative; overflow: hidden; flex-shrink: 0;
}
.ev-date-banner::before {
  content:''; position:absolute; inset:0; pointer-events:none;
  background: radial-gradient(400px 200px at 110% 50%, rgba(23,161,215,.25), transparent 60%);
}
/* Top row: date | time+duration | price */
.ev-banner-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; position: relative; z-index: 1;
}
.ev-date-left { flex-shrink: 0; }
.ev-day   { font-size: 28px; font-weight: 900; color:#fff; line-height:1; letter-spacing:-.02em; }
.ev-month { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.65); text-transform:uppercase; letter-spacing:.06em; margin-top:3px; }
/* Middle: time + duration */
.ev-time-wrap { display: flex; flex-direction: column; align-items: center; gap: 3px; flex: 1; }
.ev-time     { font-size: 13px; font-weight: 800; color:#fff; white-space:nowrap; }
.ev-duration { font-size: 10px; color:rgba(255,255,255,.6); white-space:nowrap; font-family:'DM Sans',sans-serif; }
/* Right: price */
.ev-price-wrap { text-align: right; flex-shrink: 0; }
/* Bottom row: gmeet badge | spacer | per-session price */
.ev-banner-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; position: relative; z-index: 1;
}
/* Google Meet badge inside banner */
.ev-gmeet-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px; padding: 4px 10px;
  font-size: 10px; font-weight: 700; color: #fff;
  letter-spacing: .03em; font-family: 'Sora', sans-serif;
  white-space: nowrap; flex-shrink: 0;
}
.gmeet-dots { display: flex; gap: 2px; align-items: center; flex-shrink: 0; }
.gmeet-dots span { display: inline-block; width: 5px; height: 5px; border-radius: 50%; }
.gmeet-dots .gd-b { background: #4285F4; }
.gmeet-dots .gd-g { background: #34A853; }
.gmeet-dots .gd-y { background: #FBBC05; }
.gmeet-dots .gd-r { background: #EA4335; }

/* Body */
.ev-body { padding:16px 18px; flex:1; display:flex; flex-direction:column; gap:9px; min-width:0; overflow:hidden; }

.ev-type-row { display:flex; align-items:center; gap:6px; flex-wrap:wrap; min-width:0; }
.ev-tag {
  display:inline-flex; align-items:center; gap:4px;
  padding:3px 9px; border-radius:999px;
  font-size:11px; font-weight:800; letter-spacing:.03em; font-family:'Sora',sans-serif;
  white-space:nowrap;
}
.ev-tag.gmeet  { background:rgba(66,133,244,.10); color:#2a5dc9; }
.ev-tag.live   { background:rgba(233,86,141,.10);  color:#b53069; }
.ev-tag.free   { background:rgba(34,197,94,.10);   color:#15803d; }
.ev-tag.paid   { background:rgba(23,161,215,.10);  color:#0e7aa8; }
.ev-tag-dot { width:5px; height:5px; border-radius:50%; flex-shrink:0; }
.ev-tag.gmeet .ev-tag-dot { background:#4285F4; }
.ev-tag.live  .ev-tag-dot { background:var(--p2); }
.ev-tag.free  .ev-tag-dot { background:#22c55e; }
.ev-tag.paid  .ev-tag-dot { background:var(--p); }

.ev-title { font-size:15px; font-weight:800; color:var(--dk); line-height:1.3; margin:0; word-break:break-word; }
.ev-desc  { font-size:13px; color:var(--mu); line-height:1.7; margin:0;
            display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }

/* Countdown */
.ev-countdown {
  display:flex; gap:8px; align-items:center;
  padding:9px 12px; border-radius:10px;
  background:var(--sf); border:1px solid var(--br);
}
.ev-countdown-label { font-size:10px; font-weight:700; color:var(--mu); text-transform:uppercase; letter-spacing:.05em; white-space:nowrap; font-family:'Sora',sans-serif; }
.ev-cd-units { display:flex; gap:5px; flex:1; justify-content:flex-end; }
.ev-cd-unit  { display:flex; flex-direction:column; align-items:center; min-width:30px; }
.ev-cd-num   { font-size:15px; font-weight:900; color:var(--dk); line-height:1; font-family:'Sora',sans-serif; }
.ev-cd-lbl   { font-size:8px; color:var(--mu); font-weight:700; text-transform:uppercase; letter-spacing:.05em; font-family:'DM Sans',sans-serif; margin-top:2px; }

/* Footer */
.ev-footer {
  display:flex; align-items:center; justify-content:space-between;
  gap:8px; padding-top:10px; border-top:1px solid var(--br);
}
.ev-price      { font-size:17px; font-weight:900; color:var(--p); font-family:'Sora',sans-serif; }
.ev-price.free { color:#15803d; }
.ev-seats      { font-size:12px; font-weight:600; color:var(--mu); font-family:'DM Sans',sans-serif; display:flex; align-items:center; gap:4px; }
.ev-seats svg  { width:13px; height:13px; }

/* ── CTA Button Row — horizontal, responsive ── */
.ev-btn-row {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 12px;
}
.ev-btn {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 9px 6px; border-radius: 10px;
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: 11.5px;
  text-decoration: none; transition: .2s ease;
  border: 1.5px solid var(--p); color: var(--p); background: #fff;
  text-align: center; line-height: 1.3; white-space: nowrap;
}
.ev-btn:hover { background: var(--p); color: #fff; transform: translateY(-2px); }
.ev-btn.details-btn { border-color: var(--br); color: var(--tx); background: var(--sf); }
.ev-btn.details-btn:hover { border-color: var(--p); color: var(--p); background: #fff; }
.ev-btn.wa-btn { background: #25D366; border-color: #25D366; color: #fff; }
.ev-btn.wa-btn:hover { background: #1da851; border-color: #1da851; }
.ev-btn.pay-btn { background: #17A1D7; border-color: #17A1D7; color: #fff; font-weight: 800; }
.ev-btn.pay-btn:hover { background: #0e7aa8; border-color: #0e7aa8; transform: translateY(-2px); }


.ev-btn.gmeet-btn { background: #fff; border-color: #4285F4; color: #2a5dc9; }
.ev-btn.gmeet-btn:hover { background: #4285F4; color: #fff; border-color: #4285F4; }
.ev-card.ev-cancelled .ev-btn { pointer-events:none; opacity:.45; }
.gmeet-icon { width: 15px; height: 15px; flex-shrink: 0; }

/* Who it's for */
.ev-who-row  { display:flex; flex-wrap:wrap; gap:5px; align-items:center; min-width:0; overflow:hidden; }
.ev-who-label{ font-size:11px; font-weight:700; color:var(--mu); text-transform:uppercase; letter-spacing:.06em; font-family:'Sora',sans-serif; white-space:nowrap; flex-shrink:0; }
.ev-who-tag  { display:inline-flex; align-items:center; gap:4px; background:rgba(23,161,215,.08); color:#0e7aa8; border:1px solid rgba(23,161,215,.2); border-radius:999px; padding:3px 8px; font-size:11px; font-weight:700; font-family:'Sora',sans-serif; white-space:nowrap; }

/* What you'll cover */
.ev-covers-wrap  { background:var(--sf); border:1px solid var(--br); border-radius:10px; padding:10px 12px; min-width:0; overflow:hidden; }
.ev-covers-title { font-size:11px; font-weight:800; color:var(--mu); text-transform:uppercase; letter-spacing:.07em; margin-bottom:7px; font-family:'Sora',sans-serif; }
.ev-covers-list  { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:4px; }
.ev-covers-list li { display:flex; align-items:flex-start; gap:7px; font-size:12px; color:var(--tx); line-height:1.5; font-family:'DM Sans',sans-serif; word-break:break-word; }
.ev-covers-list li::before { content:'✓'; flex-shrink:0; width:16px; height:16px; border-radius:50%; background:rgba(23,161,215,.12); color:var(--p); font-size:9px; font-weight:900; display:flex; align-items:center; justify-content:center; margin-top:1px; }

/* Event status banners */
.ev-status-banner{display:flex;align-items:center;gap:8px;padding:8px 14px;font-size:12px;font-weight:800;font-family:'Sora',sans-serif;letter-spacing:.04em;}
.ev-status-banner.postponed{background:#fffbeb;color:#92400e;border-bottom:1px solid #fde68a;}
.ev-status-banner.cancelled{background:#fef2f2;color:#991b1b;border-bottom:1px solid #fecaca;}
.ev-card.ev-postponed{border-color:#f59e0b;}
.ev-card.ev-cancelled{border-color:#ef4444;opacity:.85;}
.ev-card.ev-cancelled .ev-btn,.ev-card.ev-cancelled .gmeet-btn{pointer-events:none;opacity:.45;}

.no-events { grid-column:1/-1; text-align:center; padding:48px 24px; color:var(--mu); font-size:15px; }
.hm-events .wrap { position: relative; z-index: 2; }

/* ─────────────────────────────────────
   INSTRUCTOR SPOTLIGHT
───────────────────────────────────── */
.hm-instructor { padding: 80px 0; background: #fff; }
.inst-grid { display: grid; grid-template-columns: 1fr 480px; gap: 56px; align-items: center; margin-top: 48px; }
.inst-visual { position: relative; }
.inst-photo {
  border-radius: 24px; overflow: hidden; aspect-ratio: 4/5;
  background: linear-gradient(135deg, rgba(23,161,215,.12), rgba(233,86,141,.10));
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh2); border: 1px solid var(--br);
}
.inst-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.inst-photo .ip-placeholder { display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--mu); }
.inst-photo .ip-placeholder .ip-icon { width: 80px; height: 80px; border-radius: 50%; background: rgba(23,161,215,.15); display: flex; align-items: center; justify-content: center; font-size: 36px; }
.inst-photo .ip-placeholder p { font-size: 13px; font-weight: 600; text-align: center; margin: 0; padding: 0 20px; }
.inst-lic { position: absolute; left: -22px; bottom: 60px; display: flex; flex-direction: column; gap: 8px; }
.lic-chip { background: #fff; border: 1px solid var(--br); border-radius: 12px; padding: 10px 14px; box-shadow: var(--sh2); display: flex; align-items: center; gap: 10px; min-width: 200px; }
.lic-chip .lc-icon { font-size: 18px; flex-shrink: 0; }
.lic-chip .lc-title { font-size: 13px; font-weight: 800; color: var(--tx); margin: 0; }
.lic-chip .lc-sub   { font-size: 11px; color: var(--p); font-weight: 700; font-family: 'DM Sans', sans-serif; margin: 0; }
.inst-right .sec-h2 { margin-bottom: 6px; }
.inst-name { font-size: 28px; font-weight: 900; color: var(--p); margin: 0 0 14px; letter-spacing: -.02em; }
.inst-right p { font-size: 15px; color: var(--mu); line-height: 1.85; margin: 0 0 16px; }
.inst-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; }
.is-item { border: 1px solid var(--br); border-radius: 14px; padding: 14px 12px; background: var(--sf); text-align: center; }
.is-val { font-size: 20px; font-weight: 900; color: var(--dk); }
.is-val span { color: var(--p); }
.is-lbl { font-size: 11px; color: var(--mu); font-weight: 700; margin-top: 4px; font-family: 'DM Sans', sans-serif; }

/* ─────────────────────────────────────
   TESTIMONIALS
───────────────────────────────────── */
.hm-reviews { padding: 80px 0; background: var(--sf); overflow: hidden; }
.rev-slider-wrap {
  position: relative; margin-top: 48px;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.rev-track { display: flex; gap: 20px; animation: revSlide 40s linear infinite; width: max-content; }
.rev-track:hover { animation-play-state: paused; }
@keyframes revSlide { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.rev-card { width: 320px; flex-shrink: 0; border: 1px solid var(--br); border-radius: var(--r); padding: 24px; background: #fff; display: flex; flex-direction: column; gap: 0; box-shadow: var(--sh); transition: box-shadow .2s, transform .2s; }
.rev-card:hover { box-shadow: var(--sh2); transform: translateY(-3px); }
.rev-topic { display: inline-flex; align-items: center; gap: 6px; background: rgba(23,161,215,.08); color: var(--p); border: 1px solid rgba(23,161,215,.20); border-radius: 999px; padding: 5px 12px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; font-family: 'Sora', sans-serif; width: fit-content; }
.rev-topic.pink   { background: rgba(233,86,141,.08); color: var(--p2); border-color: rgba(233,86,141,.20); }
.rev-topic.green  { background: rgba(34,197,94,.08);  color: #16a34a;   border-color: rgba(34,197,94,.20); }
.rev-topic.amber  { background: rgba(251,191,36,.08); color: #b45309;   border-color: rgba(251,191,36,.25); }
.rev-topic.purple { background: rgba(139,92,246,.08); color: #7c3aed;   border-color: rgba(139,92,246,.20); }
.rev-topic.teal   { background: rgba(20,184,166,.08); color: #0f766e;   border-color: rgba(20,184,166,.20); }
.rev-stars { color: #f59e0b; font-size: 15px; letter-spacing: 2px; margin-bottom: 12px; }
.rev-text  { font-size: 14px; color: var(--mu); line-height: 1.8; margin: 0 0 18px; font-style: italic; flex: 1; }
.rev-author { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--br); }
.rev-av { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 900; color: #fff; background: linear-gradient(135deg, var(--p), var(--p2)); overflow: hidden; border: 2.5px solid #fff; box-shadow: 0 2px 8px rgba(2,6,23,.12); }
.rev-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.rev-av .rev-av-initial { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.rev-name { font-size: 14px; font-weight: 800; margin: 0; font-family: 'Sora', sans-serif; color: var(--dk); }
.rev-role { font-size: 11.5px; color: var(--mu); font-weight: 600; margin: 3px 0 0; font-family: 'DM Sans', sans-serif; }

/* ─────────────────────────────────────
   CTA BANNER
───────────────────────────────────── */
.hm-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--dk) 0%, #0f1a3a 100%);
  position: relative; overflow: hidden;
}
.hm-cta::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(800px 400px at 8% 50%, rgba(23,161,215,.22), transparent 60%), radial-gradient(600px 300px at 92% 50%, rgba(233,86,141,.18), transparent 60%); }
.hm-cta .wrap { position: relative; z-index: 1; text-align: center; }
.hm-cta h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 900; color: #fff; letter-spacing: -.02em; margin: 0 0 14px; }
.hm-cta p  { font-size: 17px; color: rgba(255,255,255,.70); margin: 0 auto 32px; max-width: 54ch; line-height: 1.75; }
.cta-btns  { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-white { background: #fff; color: var(--dk); border-color: #fff; }
.btn-white:hover { background: var(--p); color: #fff; border-color: var(--p); transform: translateY(-2px); }
.cta-contacts { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.cta-contacts a { font-size: 14px; color: rgba(255,255,255,.65); font-family: 'DM Sans', sans-serif; text-decoration: none; font-weight: 600; transition: color .2s; }
.cta-contacts a:hover { color: var(--p); }

/* WhatsApp float */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 9999; display: flex; align-items: center; gap: 10px; background: #25D366; color: #fff; text-decoration: none; border-radius: 999px; padding: 12px 20px 12px 14px; box-shadow: 0 8px 28px rgba(37,211,102,.35); font-family: 'Sora', sans-serif; font-weight: 700; font-size: 14px; transition: .2s ease; }
.wa-float:hover { transform: translateY(-2px); }
.wa-float .wa-icon { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.20); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }

/* ─────────────────────────────────────
   COURSE CATEGORIES
───────────────────────────────────── */
.hm-categories { padding: 80px 0; background: var(--sf); }
.hm-categories .sec-head { text-align: center; margin-bottom: 44px; }
.hm-categories .sec-h2 em { font-style: normal; color: var(--p); }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat-grid .cat-card:last-child:nth-child(3n+1) { grid-column: 1 / -1; max-width: 420px; margin: 0 auto; }
.cat-card { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--br); border-radius: 16px; padding: 20px 22px; text-decoration: none; color: inherit; transition: box-shadow .22s, transform .22s, border-color .22s; position: relative; overflow: hidden; }
.cat-card::before { content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .22s; }
.cat-card:hover { box-shadow: var(--sh2); transform: translateY(-3px); }
.cat-card.c1 { border-left: 4px solid rgba(23,161,215,.5); } .cat-card.c1::before { background: linear-gradient(135deg, rgba(23,161,215,.06), transparent); } .cat-card.c1:hover::before { opacity: 1; } .cat-card.c1 .cat-icon-wrap { background: rgba(23,161,215,.12); } .cat-card.c1 .cat-name { color: #0e7aa8; }
.cat-card.c2 { border-left: 4px solid rgba(233,86,141,.5); } .cat-card.c2::before { background: linear-gradient(135deg, rgba(233,86,141,.06), transparent); } .cat-card.c2:hover::before { opacity: 1; } .cat-card.c2 .cat-icon-wrap { background: rgba(233,86,141,.12); } .cat-card.c2 .cat-name { color: #b53069; }
.cat-card.c3 { border-left: 4px solid rgba(34,197,94,.5); }  .cat-card.c3::before { background: linear-gradient(135deg, rgba(34,197,94,.06), transparent); }  .cat-card.c3:hover::before { opacity: 1; } .cat-card.c3 .cat-icon-wrap { background: rgba(34,197,94,.12); }  .cat-card.c3 .cat-name { color: #15803d; }
.cat-card.c4 { border-left: 4px solid rgba(251,191,36,.5); } .cat-card.c4::before { background: linear-gradient(135deg, rgba(251,191,36,.08), transparent); } .cat-card.c4:hover::before { opacity: 1; } .cat-card.c4 .cat-icon-wrap { background: rgba(251,191,36,.15); } .cat-card.c4 .cat-name { color: #92400e; }
.cat-card.c5 { border-left: 4px solid rgba(139,92,246,.5); } .cat-card.c5::before { background: linear-gradient(135deg, rgba(139,92,246,.06), transparent); } .cat-card.c5:hover::before { opacity: 1; } .cat-card.c5 .cat-icon-wrap { background: rgba(139,92,246,.12); } .cat-card.c5 .cat-name { color: #6d28d9; }
.cat-card.c6 { border-left: 4px solid rgba(20,184,166,.5); } .cat-card.c6::before { background: linear-gradient(135deg, rgba(20,184,166,.06), transparent); } .cat-card.c6:hover::before { opacity: 1; } .cat-card.c6 .cat-icon-wrap { background: rgba(20,184,166,.12); } .cat-card.c6 .cat-name { color: #0f766e; }
.cat-card.c7 { border-left: 4px solid rgba(244,63,94,.5); }  .cat-card.c7::before { background: linear-gradient(135deg, rgba(244,63,94,.06), transparent); }  .cat-card.c7:hover::before { opacity: 1; } .cat-card.c7 .cat-icon-wrap { background: rgba(244,63,94,.12); }  .cat-card.c7 .cat-name { color: #be123c; }
.cat-card.c8 { border-left: 4px solid rgba(249,115,22,.5); } .cat-card.c8::before { background: linear-gradient(135deg, rgba(249,115,22,.06), transparent); } .cat-card.c8:hover::before { opacity: 1; } .cat-card.c8 .cat-icon-wrap { background: rgba(249,115,22,.12); } .cat-card.c8 .cat-name { color: #c2410c; }
.cat-card.c9 { border-left: 4px solid rgba(99,102,241,.5); } .cat-card.c9::before { background: linear-gradient(135deg, rgba(99,102,241,.06), transparent); } .cat-card.c9:hover::before { opacity: 1; } .cat-card.c9 .cat-icon-wrap { background: rgba(99,102,241,.12); } .cat-card.c9 .cat-name { color: #4338ca; }
.cat-icon-wrap { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0; }
.cat-info { flex: 1; min-width: 0; }
.cat-name  { font-size: 15px; font-weight: 800; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: 'Sora', sans-serif; }
.cat-count { font-size: 12px; color: var(--mu); font-weight: 600; font-family: 'DM Sans', sans-serif; margin-top: 3px; }
.cat-arrow { font-size: 18px; color: var(--br); flex-shrink: 0; transition: color .2s, transform .2s; }
.cat-card:hover .cat-arrow { color: inherit; transform: translateX(3px); }

/* ─────────────────────────────────────
   HOW IT WORKS
───────────────────────────────────── */
.hm-how { padding: 80px 0; background: #fff; }
.hm-how .sec-head { text-align: center; margin-bottom: 52px; }
.hm-how .sec-h2 em { font-style: normal; color: var(--p); }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.how-card { border: 1px solid var(--br); border-radius: 20px; padding: 36px 28px 32px; background: #fff; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; transition: box-shadow .22s, transform .22s; }
.how-card:hover { box-shadow: var(--sh2); transform: translateY(-4px); }
.how-card.featured { background: linear-gradient(145deg, var(--p) 0%, #0e8fc2 100%); border-color: transparent; box-shadow: 0 12px 48px rgba(23,161,215,.32); color: #fff; }
.how-card.featured:hover { transform: translateY(-5px); box-shadow: 0 18px 56px rgba(23,161,215,.38); }
.how-card.featured .how-title { color: #fff; }
.how-card.featured .how-desc  { color: rgba(255,255,255,.82); }
.how-icon-wrap { width: 72px; height: 72px; border-radius: 50%; background: rgba(23,161,215,.10); display: flex; align-items: center; justify-content: center; font-size: 34px; margin-bottom: 22px; flex-shrink: 0; transition: transform .25s ease; }
.how-card:hover .how-icon-wrap { transform: scale(1.08); }
.how-card.featured .how-icon-wrap { background: rgba(255,255,255,.2); }
.how-title { font-size: 18px; font-weight: 800; color: var(--dk); margin: 0 0 12px; font-family: 'Sora', sans-serif; }
.how-desc  { font-size: 14px; color: var(--mu); line-height: 1.78; margin: 0; font-family: 'DM Sans', sans-serif; }

/* ─────────────────────────────────────
   AFFILIATIONS
───────────────────────────────────── */
.hm-affiliations { padding: 70px 0; background: var(--sf); border-top: 1px solid var(--br); border-bottom: 1px solid var(--br); }
.aff-static-grid { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; }
.aff-card { width: 260px; height: 140px; background: #fff; border: 1px solid var(--br); border-radius: 20px; box-shadow: var(--sh); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px 24px; gap: 8px; transition: box-shadow .22s, transform .22s, border-color .22s; cursor: default; }
.aff-card:hover { box-shadow: var(--sh2); transform: translateY(-4px); border-color: rgba(23,161,215,.3); }
.aff-card img {
  max-width: 100%;
  max-height: 80px; /* INCREASED for better visibility */
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(10%); /* Subtle grayscale for a cleaner look */
  transition: all .25s ease;
  display: block;
}
.aff-card:hover img {
  filter: grayscale(0%);
  transform: scale(1.05); /* Added a subtle "pop" on hover */
}

.aff-card:hover img { filter: grayscale(0%); }
.aff-initials { font-size: 17px; font-weight: 900; color: var(--p); font-family: 'Sora', sans-serif; letter-spacing: .04em; text-align: center; }
.aff-fallback-name { font-size: 11px; color: var(--mu); line-height: 1.5; font-family: 'DM Sans', sans-serif; margin: 0; text-align: center; }

/* ─────────────────────────────────────
   BLOG SNIPPETS
───────────────────────────────────── */
.hm-blog { padding: 80px 0; background: #fff; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card { background: #fff; border: 1px solid var(--br); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .22s, transform .22s, border-color .22s; }
.blog-card:hover { box-shadow: var(--sh2); transform: translateY(-4px); border-color: rgba(23,161,215,.25); }
.blog-thumb { display: block; height: 210px; overflow: hidden; position: relative; background: linear-gradient(135deg, rgba(23,161,215,.1), rgba(233,86,141,.08)); text-decoration: none; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.blog-card:hover .blog-thumb img { transform: scale(1.04); }
.blog-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 52px; }
.blog-cat-badge { position: absolute; top: 12px; left: 12px; background: var(--p); color: #fff; padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 800; font-family: 'Sora', sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.blog-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.blog-meta { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--mu); font-weight: 600; font-family: 'DM Sans', sans-serif; }
.blog-date, .blog-read { display: flex; align-items: center; gap: 5px; }
.blog-date svg, .blog-read svg { width: 13px; height: 13px; flex-shrink: 0; }
.blog-title { font-size: 16px; font-weight: 800; line-height: 1.35; margin: 0; color: var(--dk); }
.blog-title a { color: inherit; text-decoration: none; transition: color .15s; }
.blog-title a:hover { color: var(--p); }
.blog-excerpt { font-size: 13.5px; color: var(--mu); line-height: 1.78; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-family: 'DM Sans', sans-serif; }
.blog-read-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 4px; font-size: 13px; font-weight: 700; color: var(--p); text-decoration: none; font-family: 'Sora', sans-serif; transition: gap .2s; }
.blog-read-more:hover { gap: 10px; }
.blog-read-more svg { width: 14px; height: 14px; }

/* ─────────────────────────────────────
   RESPONSIVE
───────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-inner  { grid-template-columns: 1fr; gap: 40px; }
  .hero-left   { padding-bottom: 0; text-align: center; }
  .hero-lead   { text-align: center; }
.hero-trust  { justify-content: center; }
.hero-search { margin-left: auto; margin-right: auto; }
.hero-h1     { font-size: 48px; }
  .hero-right  { display: block; width: 100%; max-width: 580px; margin: 0 auto; padding-bottom: 0; }
  .inst-grid   { grid-template-columns: 1fr; }
  .inst-visual { display: none; }
}
@media (max-width: 900px) {
  .why-grid     { grid-template-columns: repeat(2, 1fr); }
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .events-grid  { grid-template-columns: repeat(2, 1fr); }
  .ev-card      { width: 100%; min-width: 0; max-width: 100%; }
  .stats-inner  { grid-template-columns: repeat(2, 1fr); }
  .cat-grid     { grid-template-columns: repeat(2, 1fr); }
  .how-grid     { grid-template-columns: repeat(3, 1fr); }
  .blog-grid    { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--br); }
  .stat-item:nth-child(4) { border-top: 1px solid var(--br); border-right: none; }
  .aff-card  { width: 220px; height: 130px; }
}
@media (max-width: 640px) {
  .wrap         { padding: 0 16px; }
  .events-grid  { grid-template-columns: 1fr !important; width: 100% !important; }
  .ev-card      { width: 100% !important; min-width: 0 !important; max-width: 100% !important; box-sizing: border-box !important; }
  .hm-hero      { padding: 44px 0 0; }
  .hero-h1      { font-size: 42px; text-align: center; }
.hero-lead    { font-size: 15px; text-align: center; }
.hero-left    { text-align: center; }
.hero-trust   { justify-content: center; }
.hero-search  { margin-left: auto; margin-right: auto; }
  .hero-lead    { font-size: 15px; }
  .hero-search  { max-width: 100%; }
  .hero-cta-row { flex-direction: column; }
  .hero-cta-row .btn { width: 100%; justify-content: center; }
  .hero-right   { max-width: 100%; }
  .hero-visual  { border-radius: 18px; }
  .hf-badge1 { left: 10px; bottom: 10px; min-width: 130px; padding: 10px 12px; border-radius: 12px; }
  .hf-badge1 .hfb-icon { font-size: 16px; margin-bottom: 3px; }
  .hf-badge1 .hfb-val  { font-size: 14px; }
  .hf-badge1 .hfb-lbl  { font-size: 9px; }
  .hf-badge2 { right: 10px; bottom: 72px; min-width: 138px; padding: 10px 12px; border-radius: 12px; }
  .hf-badge2 .hfb2-title { font-size: 11px; margin-bottom: 3px; }
  .hf-badge2 .hfb2-row   { font-size: 10px; }
  .stats-inner  { grid-template-columns: 1fr 1fr; }
  .stat-item    { padding: 16px 14px; }
  .stat-val     { font-size: 20px; }
  .why-grid     { grid-template-columns: 1fr; }
  .courses-grid { grid-template-columns: 1fr; }
  .cat-grid     { grid-template-columns: 1fr; }
  .how-grid     { grid-template-columns: 1fr; }
  .blog-grid    { grid-column: 1fr; }
  .inst-stats   { grid-template-columns: repeat(3, 1fr); }
  .hm-why, .hm-courses, .hm-events, .hm-instructor, .hm-reviews, .hm-cta, .hm-categories, .hm-how, .hm-blog, .hm-affiliations { padding: 52px 0; }
  .hm-stats     { padding: 32px 0; }
  .cta-btns     { flex-direction: column; }
  .cta-btns .btn { width: 100%; }
  .wa-float span { display: none; }
  .wa-float      { padding: 12px; border-radius: 50%; right: 16px; bottom: 16px; }
  .wa-float .wa-icon { width: 44px; height: 44px; font-size: 24px; }
  .aff-static-grid { gap: 16px; }
  .aff-card  { width: 100%; max-width: 340px; height: auto; min-height: 110px; }
}
@media (max-width: 414px) {
  .hero-h1    { font-size: 34px; }
  .stat-icon  { width: 40px; height: 40px; font-size: 18px; }
  .why-card   { padding: 20px 16px; }
  .rev-card   { width: 270px; padding: 18px 16px; }
  .sec-h2     { font-size: 24px; }
  .inst-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hf-badge1  { left: 8px; bottom: 8px; min-width: 112px; padding: 8px 10px; }
  .hf-badge1 .hfb-val { font-size: 13px; }
  .hf-badge2  { right: 8px; bottom: 60px; min-width: 120px; padding: 8px 10px; }
  .hf-badge2 .hfb2-title { font-size: 10px; }
}
@media (max-width: 360px) {
  .hero-h1     { font-size: 28px; }
  .stats-inner { grid-template-columns: 1fr; }
  .stat-item   { border-right: none !important; border-top: 1px solid var(--br); }
  .stat-item:first-child { border-top: none; }
}

.hm-authority-links {
  padding: 48px 0;
  background: #fff;
}

.authority-box {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 40px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
}

.authority-box::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at center, rgba(23,161,215,0.12) 0%, transparent 50%);
  pointer-events: none;
}

.authority-box h2 {
  margin: 14px 0 8px;
  font-size: 28px;
  font-weight: 900;
  color: #fff;
}

.authority-box p {
  margin: 0;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  font-size: 15px;
}

.authority-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  position: relative;
  z-index: 2;
}

.authority-links a {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 800;
  transition: all .2s ease;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 8px;
}

.authority-links a:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

@media(max-width: 700px) {
  .authority-box {
    grid-template-columns: 1fr;
  }

  .authority-links {
    justify-content: flex-start;
  }
}