/* ===========================================================
   KERWIN SPRINGER — GLOBAL NAV (TIER 1) + PAGE BAR (TIER 2)
   Self-contained. Hardcoded colour palette so it works on any
   page regardless of what CSS variables that page defines.
   All classes namespaced `ks-topbar-*` / `ks-pagebar-*` / `ks-mobile-*`.
   =========================================================== */

/* Lock the site to light rendering. Prevents iOS Safari and Chrome
   Android from auto-darkening the page when the user's OS is in dark
   mode — the site doesn't have a dark variant, and the auto-darkened
   result washes out brand colours and breaks readability. This loads
   on every page (because every page links global-nav.css), so it
   covers the whole site from one place. */
:root { color-scheme: light; }

/* Keep a stable scrollbar gutter on every page so centred content and the
   sticky header do not jump horizontally when navigating between a short
   (no-scrollbar) page and a tall (scrollbar) one. */
html { scrollbar-gutter: stable; overflow-y: scroll; }

/* Cross-document View Transitions: on browsers that support it (Chrome/Edge,
   Safari TP), navigating between pages keeps the top bar painted in place
   instead of tearing down and re-drawing it, so the header no longer flashes
   or jumps. Unsupported browsers simply ignore this and behave as before. */
@view-transition { navigation: auto; }
.ks-topbar { view-transition-name: ks-topbar; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
}

.ks-topbar, .ks-topbar *,
.ks-pagebar, .ks-pagebar *,
.ks-mobile-menu, .ks-mobile-menu *,
.ks-mobile-overlay {
  box-sizing: border-box;
}

/* ─── Tier 1: global navy bar ─────────────────────────────── */
.ks-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, #1a3a6e 0%, #0e1f3d 35%, #0a1628 50%, #0e1f3d 65%, #1a3a6e 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: box-shadow .2s ease;
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  isolation: isolate;
}

.ks-topbar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.ks-topbar.is-scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
}

.ks-topbar-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

/* ─── Brand: medallion + wordmark ─────────────────────────── */
.ks-topbar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
}

.ks-topbar-medallion {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #3d6499 0%, #2B4C7E 45%, #15294a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow:
    inset 0 0 0 1px rgba(245, 166, 35, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 1px 2px rgba(0, 0, 0, 0.2);
  position: relative;
}

.ks-topbar-medallion .ks-mark {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1;
}
.ks-topbar-medallion .ks-mark .k { color: #ffffff; }
.ks-topbar-medallion .ks-mark .s { color: #F5A623; }

.ks-topbar-wordmark {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.55px;
  white-space: nowrap;
  text-transform: uppercase;
  line-height: 1;
}
.ks-topbar-wordmark .accent { color: #F5A623; }

/* ─── Nav links (centre cluster) ──────────────────────────── */
.ks-topbar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1px;
}

.ks-topbar-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;
  text-decoration: none;
  border-radius: 8px;
  transition: color .18s ease;
}

.ks-topbar-nav a::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 5px;
  height: 2px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .22s ease, background-color .18s ease;
}

.ks-topbar-nav a:hover { color: #ffffff; }
.ks-topbar-nav a:hover::after { transform: scaleX(0.55); }

.ks-topbar[data-active="tools"] a[data-nav="tools"],
.ks-topbar[data-active="papers"] a[data-nav="papers"],
.ks-topbar[data-active="world"] a[data-nav="world"],
.ks-topbar[data-active="resources"] a[data-nav="resources"],
.ks-topbar[data-active="faq"] a[data-nav="faq"] {
  color: #F5A623;
}

.ks-topbar[data-active="tools"] a[data-nav="tools"]::after,
.ks-topbar[data-active="papers"] a[data-nav="papers"]::after,
.ks-topbar[data-active="world"] a[data-nav="world"]::after,
.ks-topbar[data-active="resources"] a[data-nav="resources"]::after,
.ks-topbar[data-active="faq"] a[data-nav="faq"]::after {
  transform: scaleX(1);
  background: #F5A623;
  box-shadow: 0 0 8px rgba(245, 166, 35, 0.55);
}

/* ─── Right cluster: Student Hub CTA + divider + auth ─────── */
.ks-topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.ks-topbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #F5A623 0%, #d98c14 100%);
  color: #1a3358;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-decoration: none;
  border-radius: 8px;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 1px 3px rgba(0, 0, 0, 0.18);
  white-space: nowrap;
}
.ks-topbar-cta:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 5px 14px rgba(0, 0, 0, 0.24);
  filter: brightness(1.04);
}
.ks-topbar-cta:active { transform: translateY(0); }
.ks-topbar-cta-icon { flex-shrink: 0; }

.ks-topbar-divider {
  width: 1px;
  height: 24px;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.24) 50%, transparent 100%);
  flex-shrink: 0;
}

.ks-topbar-auth {
  display: flex;
  align-items: center;
  min-width: 78px;
  justify-content: flex-end;
  position: relative;
}

/* Signed-out: "Sign in" pill */
.ks-topbar-signin {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.ks-topbar-signin:hover {
  border-color: rgba(245, 166, 35, 0.5);
  background: rgba(245, 166, 35, 0.08);
  color: #ffffff;
}
.ks-topbar-signin svg { flex-shrink: 0; opacity: 0.85; }

/* Signed-in: avatar */
.ks-topbar-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F5A623 0%, #c97f10 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1a3358;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  border: 2px solid rgba(26, 51, 88, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 1px 2px rgba(0, 0, 0, 0.18);
  transition: transform .15s ease, box-shadow .15s ease;
  padding: 0;
  font-family: inherit;
}
.ks-topbar-avatar:hover {
  transform: scale(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 4px 10px rgba(0, 0, 0, 0.22);
}
.ks-topbar-avatar:focus-visible {
  outline: 2px solid #F5A623;
  outline-offset: 2px;
}

/* ─── Dropdown menu ───────────────────────────────────────── */
.ks-topbar-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 232px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow:
    0 12px 32px rgba(10, 22, 40, 0.22),
    0 1px 0 rgba(0, 0, 0, 0.04);
  padding: 6px;
  z-index: 200;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
  font-family: 'Poppins', system-ui, sans-serif;
}
.ks-topbar-dropdown.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.ks-topbar-dropdown::before {
  content: '';
  position: absolute;
  top: -5px;
  right: 14px;
  width: 10px;
  height: 10px;
  background: #ffffff;
  transform: rotate(45deg);
  border-radius: 2px;
  box-shadow: -1px -1px 0 rgba(0, 0, 0, 0.03);
}
.ks-topbar-dropdown-header {
  padding: 12px 14px 10px;
  border-bottom: 1px solid rgba(15, 23, 41, 0.06);
  margin-bottom: 4px;
}
.ks-topbar-dropdown-name {
  font-size: 13px;
  font-weight: 600;
  color: #0f2035;
  line-height: 1.3;
}
.ks-topbar-dropdown-username {
  font-size: 12px;
  color: #64748B;
  margin-top: 2px;
}
.ks-topbar-dropdown a,
.ks-topbar-dropdown button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #1E293B;
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: background-color .15s ease, color .15s ease;
}
.ks-topbar-dropdown a:hover,
.ks-topbar-dropdown button:hover {
  background: rgba(43, 76, 126, 0.07);
  color: #2B4C7E;
}
.ks-topbar-dropdown svg {
  flex-shrink: 0;
  opacity: 0.55;
}
.ks-topbar-dropdown .signout {
  color: #b91c1c;
  border-top: 1px solid rgba(15, 23, 41, 0.06);
  margin-top: 4px;
  padding-top: 12px;
}
.ks-topbar-dropdown .signout:hover {
  background: rgba(185, 28, 28, 0.06);
  color: #b91c1c;
}

/* ─── Hamburger (mobile only) ─────────────────────────────── */
.ks-topbar-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 102;
}
.ks-topbar-hamburger span {
  width: 20px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.ks-topbar-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ks-topbar-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ks-topbar-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Mobile off-canvas menu ──────────────────────────────── */
.ks-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 40, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 101;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
/* CRITICAL: restore [hidden] semantics — the CSS display rules below
   would otherwise leave these overlays covering the page invisibly. */
.ks-mobile-overlay[hidden],
.ks-mobile-menu[hidden] { display: none !important; }
.ks-mobile-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.ks-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 282px;
  max-width: 86vw;
  height: 100%;
  background: linear-gradient(180deg, #0e1f3d 0%, #1a3a6e 100%);
  z-index: 102;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
  padding: 76px 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  font-family: 'Poppins', system-ui, sans-serif;
}
.ks-mobile-menu.is-open { transform: translateX(0); }

.ks-mobile-menu a {
  display: block;
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 10px;
  transition: background-color .15s ease, color .15s ease;
}
.ks-mobile-menu a:hover { background: rgba(255, 255, 255, 0.06); color: #ffffff; }
.ks-mobile-menu a.is-active { color: #F5A623; background: rgba(245, 166, 35, 0.08); }

.ks-mobile-cta {
  background: linear-gradient(135deg, #F5A623, #d98c14) !important;
  color: #1a3358 !important;
  font-weight: 600 !important;
  text-align: center;
  margin-top: 14px;
  border-radius: 10px;
}

.ks-mobile-auth-slot { margin-bottom: 14px; }
.ks-mobile-auth-slot .ks-topbar-signin {
  width: 100%;
  justify-content: center;
  padding: 12px 14px;
  font-size: 15px;
}
.ks-mobile-auth-slot .ks-mobile-userblock {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}
.ks-mobile-auth-slot .ks-mobile-userblock .av {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F5A623, #c97f10);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #1a3358; flex-shrink: 0;
}
.ks-mobile-auth-slot .ks-mobile-userblock .nm {
  font-size: 14px; font-weight: 600; color: #fff; line-height: 1.2;
}
.ks-mobile-auth-slot .ks-mobile-userblock .un {
  font-size: 12px; color: rgba(255,255,255,.6); margin-top: 2px;
}

/* ─── Collapsed bar variant (viewer.html only) ────────────── */
.ks-topbar.is-collapsed .ks-topbar-inner {
  height: 44px;
  padding: 0 16px;
}
.ks-topbar.is-collapsed .ks-topbar-nav,
.ks-topbar.is-collapsed .ks-topbar-cta,
.ks-topbar.is-collapsed .ks-topbar-divider { display: none; }
.ks-topbar.is-collapsed .ks-topbar-medallion { width: 30px; height: 30px; }
.ks-topbar.is-collapsed .ks-topbar-medallion .ks-mark { font-size: 11px; }
.ks-topbar.is-collapsed .ks-topbar-wordmark { font-size: 12px; letter-spacing: 0.4px; }
.ks-topbar.is-collapsed .ks-topbar-hamburger { display: none !important; }

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 920px) {
  .ks-topbar-nav,
  .ks-topbar-cta,
  .ks-topbar-divider { display: none; }
  .ks-topbar-hamburger { display: flex; }
  .ks-topbar-inner { height: 56px; padding: 0 16px; gap: 12px; }
  .ks-topbar-medallion { width: 32px; height: 32px; }
  .ks-topbar-wordmark { font-size: 12.5px; }
  .ks-topbar-auth { min-width: 0; }
}
@media (max-width: 380px) {
  .ks-topbar-wordmark { display: none; }
}

/* ─── Tier 2: page bar (contextual breadcrumb strip) ──────── */
.ks-pagebar {
  position: relative;
  z-index: 90;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(15, 23, 41, 0.06);
  font-family: 'Poppins', system-ui, sans-serif;
}
.ks-pagebar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: #475569;
  font-size: 13px;
  font-weight: 500;
}
.ks-pagebar-inner a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #475569;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 6px;
  transition: color .15s ease, background-color .15s ease;
}
.ks-pagebar-inner a:hover { color: #2B4C7E; background: rgba(43, 76, 126, 0.06); }
.ks-pagebar-inner .ks-pagebar-title { color: #1E293B; font-weight: 600; }
.ks-pagebar-inner .ks-pagebar-sep { color: rgba(15, 23, 41, 0.25); }
.ks-pagebar-inner .ks-pagebar-meta { margin-left: auto; color: #64748B; font-size: 12.5px; font-weight: 500; }

@media (max-width: 920px) {
  .ks-pagebar { /* static, no top needed */ }
  .ks-pagebar-inner { padding: 0 14px; height: 44px; gap: 10px; font-size: 12.5px; }
  .ks-pagebar-inner .ks-pagebar-fwd-text,
  .ks-pagebar-inner .ks-pagebar-meta { display: none; }
}

/* Tier 2 is non-sticky — scrolls with the page */

/* ═════════════════════════════════════════════════════════
   STUDENT HUB UPSELL — drop-in WhatsApp CTA component
   Reusable across pages. Visually distinct from any nav
   element so users can't confuse it with site auth/nav.
   Two variants:
     .ks-hub-banner  — slim horizontal banner (good above grids)
     .ks-hub-card    — full card (good on FAQ, sidebars)
   ═════════════════════════════════════════════════════════ */

.ks-hub-banner {
  /* Force light rendering — keeps banner readable on dark-mode pages */
  color-scheme: light;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 1200px;
  margin: 0 auto 24px;
  padding: 14px 18px;
  /* Solid cream-tinted background so it never washes out against a dark page */
  background: linear-gradient(135deg, #FFFDF7 0%, #FFF6E4 100%);
  border: 1px solid #F5C77A;
  border-radius: 12px;
  font-family: 'Poppins', system-ui, sans-serif;
  text-decoration: none;
  color: #1a3358;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(15, 32, 53, 0.06);
}
.ks-hub-banner::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #F5A623 0%, #25D366 100%);
}
.ks-hub-banner:hover {
  transform: translateY(-1px);
  border-color: #E69500;
  box-shadow: 0 6px 18px rgba(26, 51, 88, 0.14);
}

.ks-hub-banner-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.ks-hub-banner-body {
  flex: 1;
  min-width: 0;
}
.ks-hub-banner-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c97f10;
  margin-bottom: 4px;
}
.ks-hub-banner-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #0f2035;
  letter-spacing: -0.1px;
  line-height: 1.3;
}
.ks-hub-banner-title em {
  color: #c97f10;
  font-style: normal;
  font-weight: 700;
}
.ks-hub-banner-sub {
  font-size: 12.5px;
  color: #475569;
  margin-top: 3px;
  line-height: 1.45;
}

.ks-hub-banner-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: #25D366;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  flex-shrink: 0;
  transition: background-color .15s ease;
}
.ks-hub-banner:hover .ks-hub-banner-action {
  background: #1eb955;
}

@media (max-width: 640px) {
  .ks-hub-banner { flex-wrap: wrap; gap: 10px; padding: 12px 14px; }
  .ks-hub-banner-body { flex: 1 1 calc(100% - 50px); }
  .ks-hub-banner-action { width: 100%; justify-content: center; }
}

/* ───── Card variant: bigger, page-stopping ───── */
.ks-hub-card {
  /* Locked light-on-navy regardless of page color-scheme */
  color-scheme: light;
  display: block;
  max-width: 720px;
  margin: 24px auto;
  padding: 24px 26px;
  background: linear-gradient(135deg, #122544 0%, #1a3358 50%, #2B4C7E 100%);
  border: 1px solid rgba(245, 166, 35, 0.3);
  border-radius: 16px;
  color: #fff;
  text-decoration: none;
  font-family: 'Poppins', system-ui, sans-serif;
  position: relative;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 6px 22px rgba(15,32,53,0.22);
}
.ks-hub-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(245,166,35,0.18) 0%, transparent 60%);
  pointer-events: none;
}
.ks-hub-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(15,32,53,0.26);
}

.ks-hub-card-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #F8C268;
  position: relative;
}

.ks-hub-card-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.4px;
  line-height: 1.28;
  margin: 8px 0 10px;
  position: relative;
}
.ks-hub-card-title .accent { color: #F5A623; }

.ks-hub-card-body {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 58ch;
  position: relative;
}
.ks-hub-card-body strong { color: #F8C268; font-weight: 600; }

.ks-hub-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: #25D366;
  color: #0a1628;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
  position: relative;
  transition: background-color .15s ease, transform .12s ease;
}
.ks-hub-card-cta:hover { background: #1eb955; transform: translateY(-1px); }
.ks-hub-card-cta svg { flex-shrink: 0; }

.ks-hub-card-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 14px;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  position: relative;
}

@media (max-width: 540px) {
  .ks-hub-card { padding: 20px 18px; margin: 18px 0; border-radius: 14px; }
  .ks-hub-card-title { font-size: 19px; }
  .ks-hub-card-body { font-size: 13.5px; }
  .ks-hub-card-cta { width: 100%; justify-content: center; }
  .ks-hub-card-meta { display: block; margin: 10px 0 0; }
}
