/* Public front (one layout for every guest-facing page). Scope: body.front. Prefix: f-.
   Calm style: one accent colour, light borders, no heavy shadows, generous whitespace.
   Theme: [data-theme="light|dark"] on <html>, rendered by the server from the front-theme cookie (default light). */

@font-face {
  font-family: "Cairo";
  src: url("../front/fonts/cairo-arabic.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
  unicode-range:
    U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1,
    U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF,
    U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
  font-family: "Cairo";
  src: url("../front/fonts/cairo-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

:root {
  --f-brand: #0284c7;
  --f-brand-rgb: 2, 132, 199;
  --f-brand-strong: #0369a1;
  --f-brand-soft: rgba(2, 132, 199, 0.09);
  --f-brand-accent: #00acc1;
  --f-link: #0284c7;
  --f-gold: #f59e0b;
  --f-on-brand: #ffffff;
  --f-bg: #ffffff;
  --f-surface: #ffffff;
  --f-surface-2: #f8fafc;
  --f-border: #e2e8f0;
  --f-text: #0f172a;
  --f-text-muted: #64748b;
  --f-success: #10b981;
  --f-danger: #ef4444;
  --f-warning: #f59e0b;
  --f-info: #0284c7;
  --f-font: "Cairo", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --f-text-xs: 0.8125rem;
  --f-text-sm: 0.875rem;
  --f-text-base: 1rem;
  --f-text-lg: 1.125rem;
  --f-text-xl: 1.25rem;
  --f-text-2xl: 1.5rem;
  --f-text-3xl: clamp(1.5rem, 2.6vw, 2.1rem);
  --f-text-4xl: clamp(2rem, 4vw, 3rem);
  --f-s-1: 0.25rem;
  --f-s-2: 0.5rem;
  --f-s-3: 0.75rem;
  --f-s-4: 1rem;
  --f-s-5: 1.5rem;
  --f-s-6: 2rem;
  --f-s-7: 3rem;
  --f-s-8: 5rem;
  --f-r-sm: 6px;
  --f-r: 12px;
  --f-r-lg: 16px;
  --f-r-pill: 999px;
  --f-container: 1180px;
  --f-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --f-shadow-md: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
  --f-shadow-lg: 0 14px 34px -4px rgba(15, 23, 42, 0.12);
  color-scheme: light;
}

[data-theme="dark"] {
  --f-brand: #38bdf8;
  --f-brand-rgb: 56, 189, 248;
  --f-brand-strong: #0284c7;
  --f-brand-soft: rgba(56, 189, 248, 0.12);
  --f-brand-accent: #22d3ee;
  --f-link: #38bdf8;
  --f-gold: #fbbf24;
  --f-on-brand: #0f172a;
  --f-bg: #090d16;
  --f-surface: #0f172a;
  --f-surface-2: #1e293b;
  --f-border: #334155;
  --f-text: #f8fafc;
  --f-text-muted: #94a3b8;
  --f-success: #34d399;
  --f-danger: #f87171;
  --f-warning: #fbbf24;
  --f-info: #38bdf8;
  --f-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --f-shadow-md: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
  --f-shadow-lg: 0 14px 34px -4px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

/* Base */
.front {
  margin: 0;
  background: var(--f-bg);
  color: var(--f-text);
  font-family: var(--f-font);
  font-size: var(--f-text-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.front a {
  color: var(--f-link);
  text-decoration: none;
}

.front a:hover {
  text-decoration: underline;
}

.front img {
  max-width: 100%;
  height: auto;
}

.front h1,
.front h2,
.front h3,
.front h4 {
  color: var(--f-text);
  font-weight: 700;
  line-height: 1.35;
}

.front :focus-visible {
  outline: 2px solid var(--f-brand);
  outline-offset: 2px;
  border-radius: var(--f-r-sm);
}

.front [dir="ltr"],
.f-num {
  font-variant-numeric: tabular-nums;
}

.f-container {
  width: 100%;
  max-width: var(--f-container);
  margin-inline: auto;
  padding-inline: var(--f-s-4);
}

.f-section {
  padding-block: var(--f-s-8);
}

.f-section--alt {
  background: var(--f-surface-2);
}

.f-main {
  min-height: 60vh;
}

.f-skip {
  position: absolute;
  inset-inline-start: var(--f-s-3);
  top: -4rem;
  z-index: 2000;
  padding: var(--f-s-2) var(--f-s-4);
  background: var(--f-brand);
  color: var(--f-on-brand) !important;
  border-radius: var(--f-r-sm);
  font-weight: 700;
}

.f-skip:focus {
  top: var(--f-s-3);
}

.f-icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  vertical-align: -0.2em;
}

[dir="rtl"] .f-icon--flip {
  transform: scaleX(-1);
}

.f-text-muted {
  color: var(--f-text-muted);
}

.f-grid {
  display: grid;
  gap: var(--f-s-5);
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.f-scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 80%);
  gap: var(--f-s-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--f-s-3);
}

.f-scroll-row > * {
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .f-scroll-row {
    grid-auto-flow: row;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    overflow: visible;
  }
}

/* Buttons */
.f-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--f-s-2);
  min-height: 44px;
  padding: var(--f-s-2) var(--f-s-5);
  border: 1px solid transparent;
  border-radius: var(--f-r);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none !important;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.f-btn--primary {
  background: linear-gradient(135deg, var(--f-brand) 0%, #00acc1 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.28);
  border-radius: 12px;
}

.f-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(2, 132, 199, 0.4);
  color: #ffffff !important;
}

.f-btn--outline {
  border-color: var(--f-border);
  background: var(--f-surface);
  color: var(--f-text) !important;
  border-radius: 12px;
}

.f-btn--outline:hover {
  border-color: var(--f-brand);
  color: var(--f-brand) !important;
  background: var(--f-brand-soft);
}

.f-btn--ghost {
  background: transparent;
  color: var(--f-text) !important;
  border-radius: 12px;
}

.f-btn--ghost:hover {
  background: var(--f-brand-soft);
  color: var(--f-brand) !important;
}

.f-btn--danger {
  background: var(--f-danger);
  color: #fff !important;
}

.f-btn--sm {
  min-height: 36px;
  padding: var(--f-s-1) var(--f-s-4);
  font-size: var(--f-text-sm);
}

.f-btn--lg {
  min-height: 50px;
  padding: var(--f-s-3) var(--f-s-6);
  font-size: var(--f-text-lg);
}

.f-btn--block {
  display: flex;
  width: 100%;
}

.f-btn:disabled,
.f-btn[aria-disabled="true"] {
  opacity: 0.6;
  pointer-events: none;
}

.f-btn.is-loading::after {
  content: "";
  width: 1em;
  height: 1em;
  border: 2px solid currentcolor;
  border-top-color: transparent;
  border-radius: 50%;
}

@media (prefers-reduced-motion: no-preference) {
  .f-btn.is-loading::after {
    animation: f-spin 0.7s linear infinite;
  }
}

@keyframes f-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Header */
.f-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--f-border);
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

[data-theme="dark"] .f-header {
  background: rgba(15, 23, 42, 0.92);
  border-bottom-color: #1e293b;
}

.f-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 70px;
}

.f-brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--f-text) !important;
  font-weight: 700;
}

.f-brand-link img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.f-nav-wrap {
  display: flex;
  align-items: center;
}

.f-nav {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
}

.f-nav-item {
  position: relative;
}

.f-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--f-text-muted);
  text-decoration: none !important;
  transition:
    color 0.15s ease,
    background-color 0.15s ease;
}

.f-nav-link:hover {
  color: var(--f-brand);
  background: var(--f-brand-soft);
}

.f-nav-link.active {
  color: var(--f-brand);
  font-weight: 700;
  background: var(--f-brand-soft);
}

.f-nav-indicator {
  position: absolute;
  bottom: 2px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--f-brand);
}

.f-header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.f-desktop-search {
  display: flex;
  align-items: center;
  position: relative;
  background: var(--f-surface-2);
  border: 1px solid var(--f-border);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  width: 170px;
  transition:
    width 0.25s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.f-desktop-search:focus-within {
  width: 240px;
  border-color: var(--f-brand);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
  background: var(--f-surface);
}

.f-desktop-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.85rem;
  color: var(--f-text);
  width: 100%;
  padding-inline-start: 6px;
}

.f-desktop-search .f-search-icon {
  width: 16px;
  height: 16px;
  color: var(--f-text-muted);
  flex-shrink: 0;
}

.f-mobile-sub-search {
  padding: 0.75rem 0;
  background: var(--f-bg);
  border-bottom: 1px solid var(--f-border);
}

.f-mobile-search-form {
  position: relative;
  width: 100%;
}

.f-mobile-search-input {
  width: 100%;
  height: 44px;
  padding-inline-start: 1.15rem;
  padding-inline-end: 2.85rem;
  border-radius: 12px;
  border: 1px solid var(--f-border);
  background: var(--f-surface-2);
  color: var(--f-text);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
}

.f-mobile-search-input:focus {
  background: var(--f-surface);
  border-color: var(--f-brand);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.f-mobile-search-btn {
  position: absolute;
  inset-inline-end: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--f-brand);
  cursor: pointer;
}

.f-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--f-border);
  border-radius: 12px;
  background: var(--f-surface);
  color: var(--f-text) !important;
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.15s ease;
}

.f-icon-btn:hover {
  background: var(--f-surface-2);
  border-color: var(--f-brand);
  color: var(--f-brand) !important;
}

.f-badge {
  position: absolute;
  top: -5px;
  inset-inline-end: -5px;
  min-width: 19px;
  height: 19px;
  padding-inline: 4px;
  border-radius: var(--f-r-pill);
  background: var(--f-brand);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
}

.f-theme-toggle .f-icon-sun,
[data-theme="dark"] .f-theme-toggle .f-icon-moon {
  display: none;
}

[data-theme="dark"] .f-theme-toggle .f-icon-sun {
  display: inline-block;
}

.f-auth-btns {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.f-whatsapp {
  position: fixed;
  inset-block-end: var(--f-s-4);
  inset-inline-end: var(--f-s-4);
  z-index: 1020;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25d366;
  color: #0b2e18 !important;
}

.f-whatsapp .f-icon {
  width: 26px;
  height: 26px;
}

/* Footer */
.f-footer {
  margin-top: var(--f-s-8);
  padding-block: var(--f-s-7) var(--f-s-5);
  border-top: 1px solid var(--f-border);
  color: var(--f-text-muted);
}

.f-footer-grid {
  display: grid;
  gap: var(--f-s-6);
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.f-footer h2 {
  margin-bottom: var(--f-s-3);
  font-size: var(--f-text-base);
}

.f-footer a {
  display: block;
  padding-block: var(--f-s-1);
  color: var(--f-text-muted);
}

.f-footer a:hover {
  color: var(--f-text);
}

.f-footer-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.f-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--f-s-2);
}

.f-footer-social a {
  display: inline-flex;
}

.f-footer-bottom {
  margin-top: var(--f-s-6);
  padding-top: var(--f-s-4);
  border-top: 1px solid var(--f-border);
  font-size: var(--f-text-sm);
  text-align: center;
}

/* Language switch */
.front .lang-switch {
  display: inline-flex;
  align-items: center;
  gap: var(--f-s-2);
  min-height: 40px;
  padding-inline: var(--f-s-3);
  border: 1px solid var(--f-border);
  border-radius: var(--f-r);
  background: transparent;
  color: var(--f-text);
  font-size: var(--f-text-sm);
  font-weight: 600;
}

.front .lang-switch:hover {
  background: var(--f-surface-2);
  text-decoration: none;
}

.front .lang-switch-code {
  font-weight: 700;
}

/* Cards */
.f-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--f-surface);
  border: 1px solid var(--f-border);
  border-radius: var(--f-r-lg, 16px);
  color: var(--f-text);
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.f-card--link:hover {
  transform: translateY(-5px);
  border-color: rgba(2, 132, 199, 0.4);
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.12);
}

.f-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--f-surface-2);
  overflow: hidden;
}

.f-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.f-card--link:hover .f-card-media img {
  transform: scale(1.05);
}

.f-card-media--placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(2, 132, 199, 0.15) 0%,
    rgba(0, 172, 193, 0.15) 100%
  );
  color: var(--f-brand);
}

.f-card-media-icon {
  width: 44px;
  height: 44px;
  opacity: 0.8;
}

.f-card-badges {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 2;
}

.f-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.8);
  color: #ffffff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.f-card-badge--package {
  background: linear-gradient(135deg, #0284c7 0%, #00acc1 100%);
}

.f-card-badge--cat {
  background: rgba(2, 132, 199, 0.9);
}

.f-card-badge--hot {
  background: #ef4444;
}

.f-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem 1.25rem 0.85rem;
}

.f-card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0.4rem;
}

.f-rating-stars {
  display: inline-flex;
  gap: 2px;
  color: #f59e0b;
}

.f-icon-star {
  width: 13px;
  height: 13px;
}

.f-rating-val {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--f-text);
}

.f-card-title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.f-card-title a {
  color: var(--f-text);
  text-decoration: none !important;
  transition: color 0.15s ease;
}

.f-card-title a:hover {
  color: var(--f-brand);
}

.f-card-instructor {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.5rem;
  font-size: 0.82rem;
  color: var(--f-text-muted);
  font-weight: 600;
}

.f-instructor-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--f-brand-soft);
  color: var(--f-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
}

.f-instructor-name {
  color: var(--f-text-muted);
}

.f-card-meta {
  margin: 0 0 0.35rem;
  color: var(--f-text-muted);
  font-size: var(--f-text-sm);
}

.f-card-text {
  margin: 0;
  color: var(--f-text-muted);
  font-size: 0.85rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.f-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--f-border);
  background: var(--f-surface);
}

.f-card-price-wrap {
  display: flex;
  align-items: center;
}

.f-card-price-wrap .f-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--f-brand);
}

.f-price del {
  margin-inline-start: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--f-text-muted);
  text-decoration: line-through;
}

.f-price-explore {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--f-text-muted);
}

.f-card-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--f-brand-soft);
  color: var(--f-brand);
  transition: all 0.2s ease;
}

.f-card--link:hover .f-card-action-btn {
  background: var(--f-brand);
  color: #ffffff;
}

.f-card-action-btn .f-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.f-card--link:hover .f-card-action-btn .f-icon {
  transform: translateX(3px);
}

[dir="rtl"] .f-card--link:hover .f-card-action-btn .f-icon {
  transform: translateX(-3px);
}

.f-price {
  font-size: var(--f-text-lg);
  font-weight: 700;
  color: var(--f-text);
}

.f-price del {
  margin-inline-start: var(--f-s-2);
  color: var(--f-text-muted);
  font-size: var(--f-text-sm);
  font-weight: 400;
}

.f-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--f-surface-2);
}

.f-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--f-s-1);
  padding: 2px var(--f-s-3);
  border-radius: var(--f-r-pill);
  background: var(--f-surface-2);
  color: var(--f-text);
  font-size: var(--f-text-xs);
  font-weight: 600;
}

.f-chip--brand {
  background: var(--f-brand-soft);
  color: var(--f-text);
}

/* Section header */
.f-section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--f-s-3);
  margin-bottom: var(--f-s-5);
}

.f-section-header h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--f-text);
  letter-spacing: -0.01em;
}

.f-section-header p {
  max-width: 60ch;
  margin: var(--f-s-2) 0 0;
  color: var(--f-text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* Page hero */
.f-hero {
  padding-block: var(--f-s-6) var(--f-s-7);
  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(2, 132, 199, 0.08) 0%,
      transparent 45%
    ),
    var(--f-surface-2);
  border-bottom: 1px solid var(--f-border);
}

.f-hero--lg {
  padding-block: var(--f-s-7) var(--f-s-8);
}

.f-hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--f-text);
  letter-spacing: -0.02em;
}

.f-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 var(--f-s-3);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--f-text-muted);
}

.f-breadcrumb a {
  color: var(--f-text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.f-breadcrumb a:hover {
  color: var(--f-brand);
}

.f-breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-inline-start: 8px;
  color: var(--f-border);
}

.f-hero h1 {
  margin: 0 0 var(--f-s-3);
  font-size: var(--f-text-4xl);
}

.f-hero-lead {
  max-width: 60ch;
  margin: 0 0 var(--f-s-5);
  color: var(--f-text-muted);
  font-size: var(--f-text-lg);
}

.f-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--f-s-3);
}

.f-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--f-s-2);
  margin: 0 0 var(--f-s-3);
  padding: 0;
  list-style: none;
  color: var(--f-text-muted);
  font-size: var(--f-text-sm);
}

.f-breadcrumb li + li::before {
  content: "/";
  margin-inline-end: var(--f-s-2);
  opacity: 0.6;
}

.f-breadcrumb [aria-current] {
  color: var(--f-text);
  font-weight: 600;
}

/* Filter bar */
.f-filter {
  display: grid;
  gap: var(--f-s-3);
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  align-items: end;
  margin-bottom: var(--f-s-5);
  padding: var(--f-s-4);
  border: 1px solid var(--f-border);
  border-radius: var(--f-r);
}

/* Empty state & alerts */
.f-empty {
  padding: var(--f-s-7) var(--f-s-4);
  text-align: center;
  border: 1px dashed var(--f-border);
  border-radius: var(--f-r);
  color: var(--f-text-muted);
}

.f-empty .f-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: var(--f-s-3);
  color: var(--f-text-muted);
}

.f-empty h3 {
  font-size: var(--f-text-xl);
}

.f-alert {
  display: flex;
  align-items: flex-start;
  gap: var(--f-s-3);
  margin-bottom: var(--f-s-4);
  padding: var(--f-s-3) var(--f-s-4);
  border: 1px solid currentcolor;
  border-radius: var(--f-r);
  font-weight: 600;
}

.f-alert > span {
  flex: 1;
  color: var(--f-text);
}

.f-alert--success {
  color: var(--f-success);
}

.f-alert--danger {
  color: var(--f-danger);
}

.f-alert--warning {
  color: var(--f-warning);
}

.f-alert--info {
  color: var(--f-info);
}

/* Forms */
.front .form-label {
  margin-bottom: var(--f-s-1);
  color: var(--f-text);
  font-weight: 600;
}

.front .form-control,
.front .form-select {
  min-height: 44px;
  background-color: var(--f-surface);
  border-color: var(--f-border);
  border-radius: var(--f-r-sm);
  color: var(--f-text);
}

.front .form-control:focus,
.front .form-select:focus {
  border-color: var(--f-brand);
  box-shadow: 0 0 0 3px var(--f-brand-soft);
}

.front .form-text {
  color: var(--f-text-muted);
}

.front .invalid-feedback {
  color: var(--f-danger);
}

.f-password {
  position: relative;
}

.f-password .form-control {
  padding-inline-end: 48px;
}

.f-password-toggle {
  position: absolute;
  top: 50%;
  inset-inline-end: var(--f-s-2);
  display: inline-flex;
  padding: var(--f-s-2);
  border: 0;
  background: transparent;
  color: var(--f-text-muted);
  cursor: pointer;
  transform: translateY(-50%);
}

.f-password-toggle[aria-pressed="true"] .f-icon-eye,
.f-password-toggle:not([aria-pressed="true"]) .f-icon-eye-off {
  display: none;
}

/* Pagination */
.f-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--f-s-1);
  margin: var(--f-s-6) 0 0;
  padding: 0;
  list-style: none;
}

.f-pagination a,
.f-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding-inline: var(--f-s-3);
  border: 1px solid var(--f-border);
  border-radius: var(--f-r-sm);
  color: var(--f-text);
}

.f-pagination a:hover {
  background: var(--f-surface-2);
  text-decoration: none;
}

.f-pagination .active span {
  background: var(--f-brand);
  border-color: var(--f-brand);
  color: var(--f-on-brand);
  font-weight: 700;
}

.f-pagination .disabled span {
  opacity: 0.5;
}

/* Auth (same shell as every other page, compact header, centred card) */
.f-auth {
  display: grid;
  min-height: calc(100vh - 70px);
  min-height: calc(100dvh - 70px);
  place-items: center;
  padding: var(--f-s-6) var(--f-s-4);
}

.f-auth-card {
  width: 100%;
  max-width: 440px;
  padding: var(--f-s-6);
  border: 1px solid var(--f-border);
  border-radius: var(--f-r-lg);
}

.f-auth-card--wide {
  max-width: 560px;
}

@media (max-width: 575.98px) {
  .f-auth {
    align-items: start;
    padding: var(--f-s-4) var(--f-s-3) var(--f-s-6);
  }

  .f-auth-card {
    padding: var(--f-s-5) var(--f-s-4);
  }
}

body.front.f-body-auth {
  padding-bottom: 0 !important;
}

.f-auth .f-auth-title {
  text-align: center;
}

.f-auth .f-auth-lead {
  text-align: center;
}

.f-auth-title {
  margin: 0 0 var(--f-s-2);
  font-size: var(--f-text-2xl);
  font-weight: 700;
}

.f-auth-lead {
  margin: 0 0 var(--f-s-5);
  color: var(--f-text-muted);
}

.f-auth-aside {
  margin: 0 0 var(--f-s-4);
  color: var(--f-text-muted);
  font-size: var(--f-text-sm);
  text-align: start;
}

.f-auth-switch {
  margin: var(--f-s-5) 0 0;
  color: var(--f-text-muted);
  font-size: var(--f-text-sm);
  text-align: center;
}

.f-auth-switch a {
  margin-inline-start: var(--f-s-1);
  font-weight: 600;
}

.f-auth-divider {
  display: flex;
  align-items: center;
  gap: var(--f-s-3);
  margin: var(--f-s-5) 0 var(--f-s-4);
  color: var(--f-text-muted);
  font-size: var(--f-text-sm);
}

.f-auth-divider::before,
.f-auth-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--f-border);
}

.f-auth-social {
  display: grid;
  gap: var(--f-s-2);
}
/* Image fallback */
.f-img-fallback {
  background: var(--f-surface-2);
}

/* Home */
.f-home-hero {
  display: grid;
  gap: var(--f-s-7);
  align-items: center;
}

@media (min-width: 992px) {
  .f-home-hero {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.f-home-highlight {
  display: block;
  margin: 0 0 var(--f-s-3);
  color: var(--f-link);
  font-size: var(--f-text-xl);
  font-weight: 700;
}

.f-video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--f-surface-2);
  border: 1px solid var(--f-border);
  border-radius: var(--f-r-lg);
}

.f-video iframe,
.f-video button {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.f-video button {
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.f-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.f-video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 4rem;
  height: 4rem;
  color: #fff;
  filter: drop-shadow(0 1px 4px rgb(0 0 0 / 45%));
}

.f-subsection + .f-subsection {
  margin-top: var(--f-s-7);
}

.f-subsection-title {
  margin: 0 0 var(--f-s-4);
  font-size: var(--f-text-xl);
}

.f-trust {
  display: grid;
  gap: var(--f-s-6);
  align-items: start;
}

@media (min-width: 992px) {
  .f-trust {
    grid-template-columns: 1fr 2fr;
  }
}

.f-stats {
  display: grid;
  gap: var(--f-s-5);
}

.f-stat strong {
  display: block;
  font-size: var(--f-text-3xl);
  line-height: 1.2;
}

.f-stat strong small {
  color: var(--f-text-muted);
  font-size: var(--f-text-base);
  font-weight: 400;
}

.f-stat span {
  color: var(--f-text-muted);
  font-size: var(--f-text-sm);
}

.f-steps {
  display: grid;
  gap: var(--f-s-5);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: f-step;
}

@media (min-width: 576px) {
  .f-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

.f-steps li {
  display: grid;
  gap: var(--f-s-1);
}

.f-steps h3 {
  margin: 0;
  font-size: var(--f-text-base);
}

.f-steps .f-card-text {
  margin: 0;
}

.f-step-index {
  color: var(--f-link);
  font-size: var(--f-text-sm);
  font-weight: 700;
}

@media (min-width: 992px) {
  .f-steps--grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Instructor home: brand card next to the hero text */
.f-home-brand {
  display: grid;
  justify-items: center;
  gap: var(--f-s-3);
  padding: var(--f-s-7) var(--f-s-5);
  text-align: center;
  background: var(--f-surface);
  border: 1px solid var(--f-border);
  border-radius: var(--f-r-lg, 12px);
  box-shadow: var(--f-sh-2, none);
}

.f-home-brand-logo {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
}

.f-home-brand-initial {
  display: grid;
  place-items: center;
  background: var(--f-brand-soft);
  color: var(--f-link);
  font-size: var(--f-text-4xl);
  font-weight: 700;
}

.f-home-brand-name {
  margin: 0;
  font-size: var(--f-text-xl);
  font-weight: 700;
}

.f-home-brand-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--f-s-5);
  margin: var(--f-s-2) 0 0;
}

.f-home-brand-stats dt {
  font-size: var(--f-text-2xl);
  font-weight: 700;
}

.f-home-brand-stats dd {
  margin: 0;
  color: var(--f-text-muted);
  font-size: var(--f-text-sm);
}

.f-card-media--book {
  aspect-ratio: 5 / 6;
}

.f-closing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--f-s-5);
}

.f-closing h2 {
  margin: 0 0 var(--f-s-1);
  font-size: var(--f-text-2xl);
}

.f-closing p {
  margin: 0;
  color: var(--f-text-muted);
}

/* Detail pages (package / course) */
.f-detail {
  display: grid;
  gap: var(--f-s-7);
  padding-block: var(--f-s-7);
}

@media (min-width: 992px) {
  .f-detail {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    align-items: start;
  }
}

.f-detail-cover {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: var(--f-r);
  margin-bottom: var(--f-s-5);
}

/* Full-width cover above the content/price grid. */
.f-detail-cover--wide {
  display: block;
  aspect-ratio: 21 / 9;
  max-height: 420px;
  margin-block: var(--f-s-5) 0;
}

/* The price column stretches to the row height so the sticky card can follow the scroll. */
.f-detail > .f-detail-side {
  align-self: stretch;
}

.f-buy-card .f-buy-title {
  margin: 0 0 var(--f-s-2);
  font-size: var(--f-text-xl, 1.25rem);
}

.f-detail h2 {
  margin: var(--f-s-6) 0 var(--f-s-3);
  font-size: var(--f-text-2xl);
}

.f-detail > div > h2:first-child,
.f-detail aside > h2 {
  margin-top: 0;
}

.f-detail h3 {
  margin: var(--f-s-4) 0 var(--f-s-2);
  font-size: var(--f-text-base);
  color: var(--f-text-muted);
}

.f-checklist {
  margin: 0 0 var(--f-s-3);
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--f-s-2);
}

.f-checklist li {
  display: flex;
  gap: var(--f-s-2);
  align-items: baseline;
}

.f-checklist .f-icon {
  flex: none;
  align-self: center;
  color: var(--f-text-muted);
}

.f-tree {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Course content outline (Udemy-style accordion of sections and lectures). */
.f-outline-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--f-s-2);
  margin-block-end: var(--f-s-3);
  color: var(--f-text-muted);
  font-size: var(--f-text-sm, 0.875rem);
}

.f-outline-toggle {
  padding: 0;
  border: 0;
  background: none;
  color: var(--f-link);
  font-weight: 600;
  cursor: pointer;
}

.f-outline {
  border: 1px solid var(--f-border);
  border-radius: var(--f-r);
  overflow: hidden;
  background: var(--f-surface);
}

.f-outline--nested {
  margin: var(--f-s-2);
}

.f-outline-node + .f-outline-node {
  border-block-start: 1px solid var(--f-border);
}

.f-outline-node > summary {
  display: flex;
  align-items: center;
  gap: var(--f-s-2);
  padding: var(--f-s-3) var(--f-s-4);
  background: var(--f-surface-2);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.f-outline-node > summary::-webkit-details-marker {
  display: none;
}

.f-outline-chevron {
  flex: none;
  transition: transform 0.15s ease;
}

.f-outline-node[open] > summary > .f-outline-chevron {
  transform: rotate(180deg);
}

.f-outline-title {
  flex: 1 1 auto;
}

.f-outline-meta {
  flex: none;
  color: var(--f-text-muted);
  font-size: 0.875rem;
  font-weight: 400;
}

.f-outline-items {
  margin: 0;
  padding: 0;
  list-style: none;
}

.f-outline-items li {
  display: flex;
  align-items: center;
  gap: var(--f-s-3);
  padding: var(--f-s-2) var(--f-s-4);
}

.f-outline-items .f-icon {
  flex: none;
  color: var(--f-text-muted);
}

.f-outline-item-title {
  flex: 1 1 auto;
}

.f-outline-preview {
  flex: none;
  color: var(--f-link);
  font-size: 0.875rem;
  text-decoration: underline;
}

.f-buy-card {
  position: sticky;
  top: 88px;
  /* .f-card is height:100%, which stretched the price box to the whole row. */
  height: auto;
  align-self: start;
}

/* A buy card with more content under it (the course page bundles) scrolls with the page. */
.f-buy-card--static {
  position: static;
}

.f-buy-card .f-price {
  display: block;
  font-size: var(--f-text-3xl);
}

.f-buy-card .f-btn + form {
  margin-top: var(--f-s-2);
}

@media (max-width: 991.98px) {
  .f-buy-card {
    position: static;
  }
}

@media (max-width: 575.98px) {
  .f-section {
    padding-block: var(--f-s-7);
  }

  .f-hero {
    padding-block: var(--f-s-6);
  }

  .f-hero--lg {
    padding-block: var(--f-s-7);
  }

  .f-card-body {
    padding: var(--f-s-4);
  }
}

.f-mt {
  margin-block-start: var(--f-s-7);
}

.f-avatar--lg {
  width: 96px;
  height: 96px;
  margin-block-end: var(--f-s-5);
}

.f-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--f-s-5);
  margin-block-end: var(--f-s-6);
  border-block-end: 1px solid var(--f-border);
}

.f-tabs a {
  padding-block: var(--f-s-3);
  margin-block-end: -1px;
  color: var(--f-text-muted);
  border-block-end: 2px solid transparent;
}

.f-tabs a:hover {
  color: var(--f-text);
  text-decoration: none;
}

.f-tabs a[aria-current="page"] {
  color: var(--f-text);
  font-weight: 600;
  border-block-end-color: var(--f-brand);
}

.f-review-list {
  display: grid;
  gap: var(--f-s-4);
  max-width: 760px;
  margin-inline: auto;
}
.f-review {
  padding: var(--f-s-5);
  background: var(--f-surface);
  border: 1px solid var(--f-border);
  border-radius: var(--f-r);
}
.f-review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--f-s-3);
  align-items: center;
  margin-block-end: var(--f-s-3);
  color: var(--f-text-muted);
  font-size: var(--f-text-sm);
}
.f-stars {
  color: var(--f-brand);
  letter-spacing: 2px;
}
.f-review h2 {
  margin: 0 0 var(--f-s-2);
  font-size: var(--f-text-lg);
}
.f-review p {
  margin: 0;
  color: var(--f-text-muted);
}
.f-thanks {
  max-width: 560px;
  margin-inline: auto;
  padding: var(--f-s-7, 3rem) var(--f-s-5);
  text-align: center;
  background: var(--f-surface);
  border: 1px solid var(--f-border);
  border-radius: var(--f-r-lg, 14px);
}
.f-thanks .f-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin-block-end: var(--f-s-4);
  color: var(--f-success);
}
.f-thanks h1 {
  margin: 0 0 var(--f-s-3);
  font-size: var(--f-text-2xl);
}
.f-thanks p {
  margin: 0 0 var(--f-s-5);
  color: var(--f-text-muted);
}

/* Content pages: blog, books, faq, about, contact, event, policies */
.f-container--narrow {
  max-width: 820px;
}
.f-grid--wide {
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}
.f-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--f-s-2) var(--f-s-4);
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--f-text-muted);
  font-size: var(--f-text-sm);
}
.f-meta li {
  display: inline-flex;
  align-items: center;
  gap: var(--f-s-1);
}
.f-hero .f-meta {
  margin-block-start: var(--f-s-3);
}
.f-prose {
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.f-prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--f-r);
}
.f-prose > :last-child {
  margin-bottom: 0;
}

/* Legal pages (terms, privacy, refund): text written by the instructor in the rich editor */
.f-legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--f-s-2);
  margin-block-end: var(--f-s-4);
}
.f-legal-nav__link {
  padding: var(--f-s-2) var(--f-s-4);
  border: 1px solid var(--f-border);
  border-radius: 999px;
  color: var(--f-text-muted);
  font-size: var(--f-text-sm);
  text-decoration: none;
  background: var(--f-surface);
}
.f-legal-nav__link:hover {
  color: var(--f-brand);
  border-color: var(--f-brand);
}
.f-legal-nav__link.is-active {
  color: var(--f-on-brand);
  background: var(--f-brand);
  border-color: var(--f-brand);
}
.f-legal {
  color: var(--f-text);
  font-size: var(--f-text-base);
  line-height: 2;
}
.f-legal h1,
.f-legal h2,
.f-legal h3,
.f-legal h4 {
  margin: var(--f-s-6) 0 var(--f-s-3);
  color: var(--f-text);
  font-weight: 700;
  line-height: 1.4;
}
.f-legal > :first-child {
  margin-top: 0;
}
.f-legal h1,
.f-legal h2 {
  padding-block-end: var(--f-s-2);
  border-block-end: 1px solid var(--f-border);
  font-size: var(--f-text-xl);
}
.f-legal h3 {
  font-size: var(--f-text-lg);
}
.f-legal h4 {
  font-size: var(--f-text-base);
}
.f-legal p {
  margin: 0 0 var(--f-s-4);
}
.f-legal ul,
.f-legal ol {
  margin: 0 0 var(--f-s-4);
  padding-inline-start: var(--f-s-6);
}
.f-legal li {
  margin-block-end: var(--f-s-2);
}
.f-legal li::marker {
  color: var(--f-brand);
}
.f-legal a {
  color: var(--f-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.f-legal blockquote {
  margin: 0 0 var(--f-s-4);
  padding: var(--f-s-3) var(--f-s-4);
  border-inline-start: 3px solid var(--f-brand);
  background: var(--f-surface-2);
  color: var(--f-text-muted);
  border-radius: var(--f-r);
}
.f-legal table {
  width: 100%;
  margin: 0 0 var(--f-s-4);
  border-collapse: collapse;
  font-size: var(--f-text-sm);
}
.f-legal th,
.f-legal td {
  padding: var(--f-s-2) var(--f-s-3);
  border: 1px solid var(--f-border);
  text-align: start;
}
.f-legal th {
  background: var(--f-surface-2);
  font-weight: 700;
}
.f-legal hr {
  margin: var(--f-s-5) 0;
  border: 0;
  border-block-start: 1px solid var(--f-border);
}
.f-legal__empty {
  color: var(--f-text-muted);
  text-align: center;
}
.f-search {
  display: flex;
  flex-wrap: wrap;
  gap: var(--f-s-2);
  max-width: 520px;
  margin-block-start: var(--f-s-4);
}
.f-search .form-control {
  flex: 1 1 220px;
}
.f-closing .f-search {
  margin-block-start: 0;
  flex: 1 1 320px;
}
.f-faq-tools {
  display: flex;
  flex-wrap: wrap;
  gap: var(--f-s-2);
  margin-block-end: var(--f-s-4);
}
.f-faq-tools .form-control {
  flex: 1 1 240px;
}
.f-faq {
  --bs-accordion-border-color: var(--f-border);
  --bs-accordion-border-radius: var(--f-r);
  --bs-accordion-inner-border-radius: var(--f-r);
  --bs-accordion-btn-focus-box-shadow: none;
  --bs-accordion-active-bg: var(--f-surface-2);
  --bs-accordion-active-color: var(--f-text);
  --bs-accordion-bg: var(--f-surface);
  --bs-accordion-color: var(--f-text);
  --bs-accordion-btn-color: var(--f-text);
  --bs-accordion-btn-bg: var(--f-surface);
}
.f-faq .accordion-button {
  font-weight: 600;
  text-align: start;
}
.f-faq .accordion-body {
  color: var(--f-text-muted);
  line-height: 1.8;
}
.f-book {
  flex-direction: row;
}
.f-book-cover {
  flex: none;
  width: 130px;
  padding: var(--f-s-4);
  background: var(--f-surface-2);
}
.f-book-cover img,
.f-book-page-cover {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--f-r-sm);
}
.f-book .f-card-body {
  align-items: flex-start;
}
.f-book-page-cover {
  max-width: 200px;
  margin-inline: auto;
}
.f-contact {
  display: grid;
  gap: var(--f-s-6);
}
@media (min-width: 992px) {
  .f-contact {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    align-items: start;
  }
}
.f-contact-list {
  margin-block-end: var(--f-s-5);
}
.f-about-intro {
  display: grid;
  gap: var(--f-s-6);
  align-items: center;
}
.f-about-pair {
  display: grid;
  gap: var(--f-s-5);
}
@media (min-width: 768px) {
  .f-about-intro,
  .f-about-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.f-about-intro .f-detail-cover {
  margin-block-end: 0;
}
.f-card-body > .f-icon:first-child {
  color: var(--f-text-muted);
}
.f-stars-line {
  display: flex;
  gap: var(--f-s-2);
  align-items: center;
  margin: var(--f-s-3) 0 0;
}
.f-rating-summary {
  display: grid;
  gap: var(--f-s-5);
  margin-block-end: var(--f-s-5);
}
@media (min-width: 576px) {
  .f-rating-summary {
    grid-template-columns: 160px minmax(0, 1fr);
    align-items: center;
  }
}
.f-rating-avg {
  display: grid;
  gap: var(--f-s-1);
  justify-items: center;
  text-align: center;
}
.f-rating-avg strong {
  font-size: var(--f-text-4xl);
  line-height: 1;
}
.f-rating-bars {
  display: grid;
  gap: var(--f-s-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.f-rating-bars li {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) 3rem;
  gap: var(--f-s-3);
  align-items: center;
  font-size: var(--f-text-sm);
  color: var(--f-text-muted);
}
.f-bar {
  width: 100%;
  height: 8px;
  appearance: none;
  border: 0;
  border-radius: var(--f-r-pill);
  background: var(--f-surface-2);
  overflow: hidden;
}
.f-bar::-webkit-progress-bar {
  background: var(--f-surface-2);
}
.f-bar::-webkit-progress-value {
  background: var(--f-brand);
}
.f-bar::-moz-progress-bar {
  background: var(--f-brand);
}
.f-review-list--start {
  max-width: none;
  margin-inline: 0;
}
.f-review-reply {
  margin-block-start: var(--f-s-3);
  padding-inline-start: var(--f-s-4);
  border-inline-start: 2px solid var(--f-border);
}
.f-review-actions,
.f-review-reply-form {
  margin: var(--f-s-3) 0 0;
  font-size: var(--f-text-sm);
}
.f-review-reply-form form {
  display: grid;
  gap: var(--f-s-2);
  margin-block-start: var(--f-s-2);
}
.f-pay-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--f-s-1) var(--f-s-4);
  margin-block-end: var(--f-s-4);
}
.f-pay-summary dt {
  color: var(--f-text-muted);
  font-weight: 400;
}
.f-pay-summary dd {
  margin: 0;
  font-weight: 600;
}
.f-pay-panes {
  padding-block-start: var(--f-s-4);
}
.f-modal-title {
  margin: 0;
  font-size: var(--f-text-xl);
}
#error-handler {
  min-height: 1.5rem;
  margin-block: var(--f-s-2);
  color: var(--f-danger);
  font-size: var(--f-text-sm);
}
@media (max-width: 575.98px) {
  .f-book {
    flex-direction: column;
  }
  .f-book-cover {
    width: 100%;
    max-width: 180px;
    margin-inline: auto;
  }
}
.f-cart-line-main {
  flex: 1 1 12rem;
  min-width: 12rem;
}

/* Detail pages: key facts, outcomes, instructor and FAQ blocks */
.f-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--f-s-3) var(--f-s-6);
  margin: var(--f-s-4) 0 var(--f-s-5);
  padding: var(--f-s-4) 0;
  border-block: 1px solid var(--f-border);
}
.f-fact dt {
  display: flex;
  gap: var(--f-s-2);
  align-items: center;
  font-size: var(--f-text-sm);
  font-weight: 400;
  color: var(--f-text-muted);
}
.f-fact dd {
  margin: 0;
  font-weight: 600;
}
.f-block {
  margin-block-start: var(--f-s-7);
}
.f-block h2 {
  margin-block-start: 0;
}
.f-detail .f-block + .f-block {
  margin-block-start: var(--f-s-6);
}
.f-checklist--cols {
  gap: var(--f-s-3) var(--f-s-6);
}
@media (min-width: 768px) {
  .f-checklist--cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.f-checklist--cols .f-icon {
  align-self: flex-start;
  color: var(--f-brand);
}
.f-bullets {
  margin: 0;
  padding-inline-start: var(--f-s-5);
  display: grid;
  gap: var(--f-s-2);
}
.f-instructor-box {
  display: flex;
  gap: var(--f-s-5);
  align-items: flex-start;
}
.f-instructor-box .f-avatar {
  flex: none;
  margin: 0;
}
.f-instructor-name {
  margin: 0 0 var(--f-s-1);
  font-size: var(--f-text-lg);
  color: var(--f-text);
}
.f-faq-list {
  display: grid;
  gap: var(--f-s-2);
}
.f-faq-item {
  border: 1px solid var(--f-border);
  border-radius: var(--f-r);
  background: var(--f-surface);
}
.f-faq-item summary {
  padding: var(--f-s-4);
  font-weight: 600;
  cursor: pointer;
}
.f-faq-item p {
  margin: 0;
  padding: 0 var(--f-s-4) var(--f-s-4);
  color: var(--f-text-muted);
  line-height: 1.8;
}
.f-prose-text p {
  margin: 0 0 var(--f-s-4);
  line-height: 1.9;
}

/* ==========================================================================
   Polish layer: soft depth, brand tints and gentle motion for every public page.
   Still one accent colour; shadows are light and theme aware; motion respects
   prefers-reduced-motion. Everything below only refines the rules above.
   ========================================================================== */

:root {
  --f-sh-1: 0 1px 2px rgb(16 24 40 / 5%), 0 2px 6px rgb(16 24 40 / 5%);
  --f-sh-2:
    0 14px 30px -12px rgb(16 24 40 / 20%), 0 4px 10px -4px rgb(16 24 40 / 8%);
  --f-brand-wash: color-mix(in srgb, var(--f-brand) 7%, transparent);
  --f-r-lg: 16px;
}

[data-theme="dark"] {
  --f-sh-1: 0 1px 2px rgb(0 0 0 / 35%);
  --f-sh-2: 0 16px 34px -12px rgb(0 0 0 / 65%);
  --f-brand-wash: color-mix(in srgb, var(--f-brand) 11%, transparent);
}

.front ::selection {
  background: color-mix(in srgb, var(--f-brand) 30%, transparent);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Header: frosted bar with a soft edge */
.f-header {
  background: color-mix(in srgb, var(--f-bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  box-shadow:
    0 1px 0 var(--f-border),
    0 6px 18px -14px rgb(16 24 40 / 28%);
}

.f-nav .nav-link {
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.f-nav .nav-link:hover {
  background: var(--f-surface-2);
}

.f-nav .nav-link.active {
  border-radius: var(--f-r);
  background: var(--f-brand-soft);
  box-shadow: none;
}

.f-icon-btn,
.front .lang-switch {
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.f-icon-btn:hover,
.front .lang-switch:hover {
  border-color: var(--f-text-muted);
}

/* Buttons: a touch of depth on the primary action */
.f-btn {
  border-radius: 12px;
}

.f-btn--primary {
  box-shadow: 0 6px 16px -8px
    color-mix(in srgb, var(--f-brand) 85%, transparent);
}

@media (prefers-reduced-motion: no-preference) {
  .f-btn {
    transition:
      background-color 0.15s ease,
      border-color 0.15s ease,
      color 0.15s ease,
      transform 0.15s ease,
      box-shadow 0.15s ease;
  }

  .f-btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px -8px
      color-mix(in srgb, var(--f-brand) 90%, transparent);
  }

  .f-btn:active {
    transform: translateY(0);
  }
}

/* Heroes: a quiet brand wash instead of a flat white block */
.f-hero {
  position: relative;
  background:
    radial-gradient(
      60rem 22rem at 100% -30%,
      var(--f-brand-wash),
      transparent 70%
    ),
    linear-gradient(180deg, var(--f-surface-2), var(--f-bg));
}

.f-hero--lg {
  background:
    radial-gradient(
      48rem 26rem at 95% 0%,
      var(--f-brand-wash),
      transparent 65%
    ),
    radial-gradient(
      36rem 20rem at 0% 100%,
      var(--f-brand-wash),
      transparent 70%
    ),
    var(--f-bg);
}

.f-home-highlight {
  display: inline-block;
  padding: 2px var(--f-s-3);
  border-radius: var(--f-r-pill);
  background: var(--f-brand-soft);
  font-size: var(--f-text-base);
}

.f-hero h1 {
  letter-spacing: -0.01em;
}

@media (prefers-reduced-motion: no-preference) {
  .f-hero .f-container > *,
  .f-hero .f-home-hero > * {
    animation: f-rise 0.5s ease both;
  }

  .f-hero .f-home-hero > *:nth-child(2) {
    animation-delay: 0.1s;
  }
}

@keyframes f-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* Home video: framed, with a round play button */
.f-video {
  box-shadow: var(--f-sh-2);
}

.f-video button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgb(0 0 0 / 28%));
  pointer-events: none;
}

.f-video-play {
  z-index: 1;
  padding: 0.55rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--f-brand) 92%, transparent);
  color: var(--f-on-brand);
  filter: none;
  box-shadow: 0 8px 24px rgb(0 0 0 / 35%);
}

@media (prefers-reduced-motion: no-preference) {
  .f-video-play {
    transition: transform 0.2s ease;
  }

  .f-video button:hover .f-video-play {
    transform: scale(1.08);
  }

  .f-video img {
    transition: transform 0.5s ease;
  }

  .f-video button:hover img {
    transform: scale(1.03);
  }
}

/* Section headers: a short accent bar above the title */
.f-section-header h2::before {
  content: "";
  display: block;
  width: 2.25rem;
  height: 4px;
  margin-bottom: var(--f-s-3);
  border-radius: var(--f-r-pill);
  background: var(--f-brand);
}

.f-section--alt {
  background: linear-gradient(
    180deg,
    var(--f-surface-2),
    color-mix(in srgb, var(--f-surface-2) 60%, var(--f-bg))
  );
  border-block: 1px solid var(--f-border);
}

/* Cards: rounder, soft shadow, lift and image zoom on hover */
.f-card {
  border-radius: var(--f-r-lg);
  box-shadow: var(--f-sh-1);
}

.f-card-media {
  background: linear-gradient(135deg, var(--f-brand-soft), var(--f-surface-2));
}

.f-card-footer {
  background: color-mix(in srgb, var(--f-surface-2) 55%, var(--f-surface));
}

.f-card-title {
  line-height: 1.45;
}

.f-card--link:hover {
  border-color: color-mix(in srgb, var(--f-brand) 45%, var(--f-border));
  box-shadow: var(--f-sh-2);
}

.f-card--link:focus-within {
  border-color: var(--f-brand);
}

@media (prefers-reduced-motion: no-preference) {
  .f-card {
    transition:
      border-color 0.2s ease,
      box-shadow 0.2s ease,
      transform 0.2s ease;
  }

  .f-card--link:hover {
    transform: translateY(-4px);
  }

  .f-card-media img {
    transition: transform 0.45s ease;
  }

  .f-card--link:hover .f-card-media img {
    transform: scale(1.05);
  }
}

.f-card-footer .f-btn {
  box-shadow: none;
}

.f-avatar {
  border: 3px solid var(--f-surface);
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--f-brand) 45%, transparent),
    var(--f-sh-1);
}

.f-chip {
  border: 1px solid var(--f-border);
}

.f-chip--brand {
  border-color: color-mix(in srgb, var(--f-brand) 30%, transparent);
}

.f-price {
  letter-spacing: -0.01em;
}

/* Home: stats as tiles, steps as numbered cards, closing strip as a banner */
.f-stat {
  padding: var(--f-s-5);
  border: 1px solid var(--f-border);
  border-radius: var(--f-r-lg);
  background: var(--f-surface);
  box-shadow: var(--f-sh-1);
}

.f-stat strong {
  color: var(--f-link);
}

.f-steps li {
  align-content: start;
  padding: var(--f-s-5);
  border: 1px solid var(--f-border);
  border-radius: var(--f-r-lg);
  background: var(--f-surface);
  box-shadow: var(--f-sh-1);
}

.f-step-index {
  display: inline-grid;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: var(--f-s-2);
  place-items: center;
  border-radius: 50%;
  background: var(--f-brand-soft);
  color: var(--f-text);
  font-size: var(--f-text-base);
}

#home-help {
  background: transparent;
  border-block: 0;
}

#home-help .f-closing {
  padding: var(--f-s-6);
  border: 1px solid color-mix(in srgb, var(--f-brand) 25%, var(--f-border));
  border-radius: var(--f-r-lg);
  background:
    radial-gradient(
      30rem 14rem at 100% 0%,
      var(--f-brand-wash),
      transparent 70%
    ),
    var(--f-surface);
  box-shadow: var(--f-sh-1);
}

/* Detail pages */
.f-facts {
  padding: var(--f-s-4) var(--f-s-5);
  border: 1px solid var(--f-border);
  border-radius: var(--f-r-lg);
  background: var(--f-surface-2);
}

.f-detail-cover {
  border-radius: var(--f-r-lg);
  box-shadow: var(--f-sh-1);
}

.f-buy-card {
  border-top: 3px solid var(--f-brand);
  box-shadow: var(--f-sh-2);
}

.f-checklist--cols li {
  padding: var(--f-s-3) var(--f-s-4);
  border: 1px solid var(--f-border);
  border-radius: var(--f-r);
  background: var(--f-surface);
}

.f-instructor-box {
  padding: var(--f-s-5);
  border: 1px solid var(--f-border);
  border-radius: var(--f-r-lg);
  background: var(--f-surface);
  box-shadow: var(--f-sh-1);
}

.f-review {
  border-radius: var(--f-r-lg);
  box-shadow: var(--f-sh-1);
}

.f-stars {
  letter-spacing: 3px;
}

.f-faq-item {
  border-radius: var(--f-r);
  transition: border-color 0.15s ease;
}

.f-faq-item:hover,
.f-faq-item[open] {
  border-color: color-mix(in srgb, var(--f-brand) 45%, var(--f-border));
}

.f-faq-item[open] summary {
  color: var(--f-link);
}

.f-faq-item summary:hover {
  background: var(--f-surface-2);
  border-radius: var(--f-r);
}

.f-tabs a[aria-current="page"] {
  border-block-end-width: 3px;
}

/* Filters, empty states, pagination, thank-you */
.f-filter {
  border-radius: var(--f-r-lg);
  background: var(--f-surface);
  box-shadow: var(--f-sh-1);
}

.f-empty {
  border-radius: var(--f-r-lg);
  background: var(--f-surface-2);
}

.f-empty .f-icon {
  padding: 0.5rem;
  border-radius: 50%;
  background: var(--f-brand-soft);
  box-sizing: content-box;
}

.f-pagination a {
  border-radius: var(--f-r);
  transition: background-color 0.15s ease;
}

.f-pagination .active span {
  border-radius: var(--f-r);
  box-shadow: 0 6px 14px -8px
    color-mix(in srgb, var(--f-brand) 85%, transparent);
}

.f-thanks {
  box-shadow: var(--f-sh-2);
}

/* Auth: a lifted card on a soft wash */
.f-auth {
  background: radial-gradient(
    40rem 20rem at 50% -10%,
    var(--f-brand-wash),
    transparent 70%
  );
}

.f-auth-card {
  background: var(--f-surface);
  box-shadow: var(--f-sh-2);
}

/* Forms: calmer fields with a clear focus */
.front .form-control,
.front .form-select {
  border-radius: 10px;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

/* Footer: tinted base with an accent edge */
.f-footer {
  position: relative;
  background: var(--f-surface-2);
  border-top: 0;
}

.f-footer::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--f-brand), transparent);
  opacity: 0.8;
}

.f-footer h2 {
  color: var(--f-text);
  font-weight: 700;
}

.f-footer a {
  transition:
    color 0.15s ease,
    transform 0.15s ease;
}

.f-footer-social a {
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding-inline: var(--f-s-2);
  border: 1px solid var(--f-border);
  border-radius: var(--f-r-pill);
  background: var(--f-surface);
}

.f-footer-social a:hover {
  border-color: var(--f-brand);
}

.f-whatsapp {
  box-shadow: 0 10px 24px -8px rgb(37 211 102 / 60%);
}

@media (prefers-reduced-motion: no-preference) {
  .f-whatsapp {
    transition: transform 0.15s ease;
  }

  .f-whatsapp:hover {
    transform: scale(1.06);
  }
}

/* Hero with an instructor-uploaded banner: image under a dark scrim so the text always reads */
.f-hero--image {
  background:
    linear-gradient(
      90deg,
      rgba(15, 23, 42, 0.82) 0%,
      rgba(15, 23, 42, 0.55) 55%,
      rgba(15, 23, 42, 0.35) 100%
    ),
    var(--f-hero-image) center / cover no-repeat;
  border-bottom: 0;
}
[dir="rtl"] .f-hero--image {
  background:
    linear-gradient(
      270deg,
      rgba(15, 23, 42, 0.82) 0%,
      rgba(15, 23, 42, 0.55) 55%,
      rgba(15, 23, 42, 0.35) 100%
    ),
    var(--f-hero-image) center / cover no-repeat;
}
.f-hero--image h1,
.f-hero--image .f-hero-lead {
  color: #fff;
}
.f-hero--image .f-btn--outline {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff !important;
}
.f-hero--image .f-btn--outline:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* ---- Home redesign: hero, testimonials, partners ---- */
.f-home-hero-wrap {
  padding-block: var(--f-s-6) var(--f-s-7);
}

.f-home-hero {
  gap: var(--f-s-6);
}

.f-home-hero-text {
  text-align: center;
}

.f-home-hero-text h1 {
  font-size: clamp(1.65rem, 6.2vw, 2.9rem);
  line-height: 1.35;
  text-wrap: balance;
}

.f-home-hero-text .f-hero-lead {
  margin-inline: auto;
  font-size: var(--f-text-base);
  color: var(--f-text-muted);
}

.f-home-hero-text .f-home-highlight {
  margin-bottom: var(--f-s-4);
  font-size: var(--f-text-sm);
}

.f-home-cta {
  flex-direction: column;
  align-items: stretch;
  gap: var(--f-s-3);
}

.f-home-cta .f-btn {
  width: 100%;
  justify-content: center;
}

.f-home-proof {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--f-s-3);
  margin: var(--f-s-5) 0 0;
  padding: var(--f-s-4) 0 0;
  border-top: 1px solid var(--f-border);
  list-style: none;
}

.f-home-proof li {
  display: grid;
  gap: 2px;
}

.f-home-proof strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--f-s-1);
  color: var(--f-link);
  font-size: var(--f-text-2xl);
  line-height: 1.2;
}

.f-home-proof strong small {
  color: var(--f-text-muted);
  font-size: var(--f-text-sm);
  font-weight: 400;
}

.f-home-proof span {
  color: var(--f-text-muted);
  font-size: var(--f-text-xs);
  line-height: 1.5;
}

.f-home-hero .f-video {
  width: 100%;
  border-radius: var(--f-r-lg);
}

@media (min-width: 640px) {
  .f-home-cta {
    flex-direction: row;
    justify-content: center;
  }

  .f-home-cta .f-btn {
    width: auto;
  }
}

@media (min-width: 992px) {
  .f-home-hero-wrap {
    padding-block: var(--f-s-8);
  }

  .f-home-hero {
    gap: var(--f-s-7);
  }

  .f-home-hero-text {
    text-align: start;
  }

  .f-home-hero-text .f-hero-lead {
    margin-inline: 0;
    font-size: var(--f-text-lg);
  }

  .f-home-cta {
    justify-content: flex-start;
  }

  .f-home-proof strong {
    justify-content: flex-start;
  }

  .f-home-proof {
    max-width: 30rem;
  }
}

/* Testimonials */
.f-scroll-row--reviews {
  grid-auto-columns: minmax(270px, 84%);
}

@media (min-width: 768px) {
  .f-scroll-row--reviews {
    grid-auto-columns: minmax(320px, 1fr);
  }
}

.f-testimonial {
  display: flex;
  flex-direction: column;
  gap: var(--f-s-3);
  margin: 0;
  padding: var(--f-s-5);
  border: 1px solid var(--f-border);
  border-radius: var(--f-r-lg);
  background: var(--f-surface);
  box-shadow: var(--f-sh-1);
}

.f-testimonial .f-stars {
  color: var(--f-brand);
  letter-spacing: 2px;
}

.f-testimonial blockquote {
  flex: 1;
  margin: 0;
  color: var(--f-text);
  line-height: 1.8;
}

.f-testimonial figcaption {
  display: flex;
  align-items: center;
  gap: var(--f-s-3);
}

.f-testimonial figcaption strong,
.f-testimonial figcaption small {
  display: block;
  line-height: 1.4;
}

.f-testimonial figcaption small {
  color: var(--f-text-muted);
}

.f-testimonial-avatar {
  display: grid;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 50%;
  background: var(--f-brand-soft);
  color: var(--f-text);
  font-weight: 700;
}

/* Partners */
.f-partners {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--f-s-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.f-partners li {
  display: grid;
  min-height: 4.25rem;
  place-items: center;
  padding: var(--f-s-3);
  border: 1px solid var(--f-border);
  border-radius: var(--f-r);
  background: var(--f-surface);
}

.f-partners img {
  max-height: 2.5rem;
  width: auto;
  filter: grayscale(1);
  opacity: 0.75;
}

.f-partner-name {
  color: var(--f-text-muted);
  font-size: var(--f-text-lg);
  font-weight: 700;
  letter-spacing: 0.02em;
}

@media (min-width: 640px) {
  .f-partners {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  .f-partners {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Home: why us, FAQ, contact */
.f-why,
.f-contact-home {
  display: grid;
  gap: var(--f-s-6);
  align-items: center;
}

.f-why .f-stats {
  grid-template-columns: 1fr 1fr;
  gap: var(--f-s-3);
}

.f-why .f-stat strong {
  font-size: var(--f-text-2xl);
}

.f-faq-list {
  display: grid;
  gap: var(--f-s-3);
}

.f-faq-list details {
  border: 1px solid var(--f-border);
  border-radius: var(--f-r);
  background: var(--f-surface);
}

.f-faq-list summary {
  padding: var(--f-s-4);
  font-weight: 600;
  cursor: pointer;
}

.f-faq-list details p {
  margin: 0;
  padding: 0 var(--f-s-4) var(--f-s-4);
  color: var(--f-text-muted);
}

.f-contact-form {
  display: grid;
  gap: var(--f-s-3);
  padding: var(--f-s-5);
}

@media (min-width: 992px) {
  .f-why,
  .f-contact-home {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================================================================
   Mobile Bottom Navigation Bar & Mobile Experience (App-Style)
   ========================================================================== */

:root {
  --f-mobile-bar-bg: var(--f-surface);
  --f-mobile-bar-color: var(--f-text);
  --f-mobile-bar-h: 62px;
}

/* STRICT MOBILE ONLY: below 992px */
@media (max-width: 991.98px) {
  body.front {
    padding-bottom: calc(
      var(--f-mobile-bar-h) + env(safe-area-inset-bottom, 0px) + 8px
    ) !important;
  }
}

/* STRICT DESKTOP: 992px and above -> completely hide all mobile chrome */
@media (min-width: 992px) {
  .f-mobile-bar,
  .f-mobile-top-search,
  .f-mobile-sheet {
    display: none !important;
  }
  body.front {
    padding-bottom: 0 !important;
  }
  .f-floating-contacts {
    bottom: 24px !important;
    inset-inline-start: 24px !important;
  }
}

.f-mobile-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 1040;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  border-top: 1px solid var(--f-border);
}

[data-theme="dark"] .f-mobile-bar {
  background: rgba(15, 23, 42, 0.94);
  border-top-color: #1e293b;
}

.f-mobile-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: var(--f-mobile-bar-h);
  max-width: 480px;
  margin-inline: auto;
  padding-inline: 4px;
}

.f-mobile-bar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 4px 1px 6px;
  color: var(--f-text-muted) !important;
  text-decoration: none !important;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  transition:
    color 0.15s ease,
    opacity 0.15s ease;
  user-select: none;
  position: relative;
}

.f-mobile-bar-btn {
  background: transparent;
  border: none;
  cursor: pointer;
}

.f-mobile-bar-item:hover,
.f-mobile-bar-item:focus {
  color: var(--f-brand) !important;
}

.f-mobile-bar-item.active {
  color: var(--f-brand) !important;
  font-weight: 700;
}

.f-mobile-bar-item.active::after {
  content: "";
  position: absolute;
  bottom: 3px;
  width: 16px;
  height: 3px;
  border-radius: var(--f-r-pill);
  background: var(--f-brand);
}

.f-mobile-bar-icon {
  width: 22px;
  height: 22px;
  stroke-width: 2.1px;
  margin-bottom: 3px;
  transition: transform 0.15s ease;
}

.f-mobile-bar-item.active .f-mobile-bar-icon {
  transform: translateY(-1px);
}

.f-mobile-bar-label {
  white-space: nowrap;
  letter-spacing: -0.01em;
  font-size: 0.72rem;
}

.f-mobile-bar-badge {
  position: absolute;
  top: 2px;
  inset-inline-end: 22%;
  display: inline-grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  padding-inline: 3px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1;
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Mobile Bottom Sheet (All Header Content Accessible on Mobile)
   ========================================================================== */

.f-mobile-sheet {
  max-height: 82vh !important;
  border-top-left-radius: 24px !important;
  border-top-right-radius: 24px !important;
  background: var(--f-surface) !important;
  color: var(--f-text) !important;
  border-top: 1px solid var(--f-border) !important;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.28) !important;
}

.f-mobile-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--f-s-4) var(--f-s-5);
  border-bottom: 1px solid var(--f-border);
}

.f-mobile-sheet-body {
  padding: var(--f-s-4) var(--f-s-5);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.f-mobile-user-card {
  background: var(--f-surface-2);
  border: 1px solid var(--f-border);
}

.f-mobile-user-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--f-brand-soft);
  color: var(--f-brand);
  font-weight: 700;
  font-size: 1.1rem;
}

.f-mobile-sheet-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--f-s-3);
}

.f-mobile-ctrl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--f-s-2);
  padding: var(--f-s-3);
  background: var(--f-surface-2);
  border: 1px solid var(--f-border);
  border-radius: var(--f-r);
  color: var(--f-text) !important;
  text-decoration: none !important;
  font-size: var(--f-text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.f-mobile-ctrl-btn:hover {
  border-color: var(--f-brand);
  background: var(--f-surface);
}

.f-mobile-sheet-heading {
  display: block;
  margin-bottom: var(--f-s-2);
  font-size: var(--f-text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--f-text-muted);
}

.f-mobile-nav-link {
  display: flex;
  align-items: center;
  gap: var(--f-s-3);
  padding: 0.65rem var(--f-s-2);
  border-radius: var(--f-r);
  color: var(--f-text) !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.15s ease;
}

.f-mobile-nav-link:hover {
  background: var(--f-surface-2);
  color: var(--f-brand) !important;
  transform: translateX(-3px);
}

[dir="ltr"] .f-mobile-nav-link:hover {
  transform: translateX(3px);
}

.f-mobile-nav-link .f-icon {
  width: 20px;
  height: 20px;
  color: var(--f-brand);
}

/* ==========================================================================
   Floating Quick Contacts (WhatsApp & Telegram)
   ========================================================================== */

.f-floating-contacts {
  position: fixed;
  inset-inline-start: 16px;
  bottom: calc(var(--f-mobile-bar-h) + env(safe-area-inset-bottom, 0px) + 16px);
  z-index: 1045;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

@media (min-width: 992px) {
  .f-floating-contacts {
    bottom: 24px;
    inset-inline-start: 24px;
  }
}

.f-float-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #ffffff !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  transition:
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s ease;
}

.f-float-btn:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
}

.f-float-btn:active {
  transform: scale(0.95);
}

.f-float-btn--whatsapp {
  background: #25d366;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
}

.f-float-btn--telegram {
  background: #229ed9;
  box-shadow: 0 4px 16px rgba(34, 158, 217, 0.45);
}

.f-float-btn .f-icon {
  width: 24px;
  height: 24px;
}

/* ==========================================================================
   Mobile Standalone Top Search Bar (Clean & Matching App Reference)
   ========================================================================== */

.f-mobile-top-search {
  padding-block: var(--f-s-3);
  background: var(--f-bg);
  border-bottom: 1px solid var(--f-border);
}

.f-mobile-top-search .f-mobile-search-form {
  position: relative;
  width: 100%;
}

.f-mobile-top-search .f-mobile-search-input {
  width: 100%;
  height: 48px;
  padding-inline-start: 1.15rem;
  padding-inline-end: 3.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--f-text);
  background: var(--f-surface-2);
  border: 1px solid var(--f-border);
  border-radius: 12px;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.f-mobile-top-search .f-mobile-search-input:focus {
  background: var(--f-surface);
  border-color: #008ba3;
  box-shadow: 0 0 0 3px rgba(0, 139, 163, 0.15);
}

.f-mobile-top-search .f-mobile-search-input::placeholder {
  color: var(--f-text-muted);
  opacity: 0.85;
}

.f-mobile-top-search .f-mobile-search-btn {
  position: absolute;
  inset-inline-end: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
  color: var(--f-text-muted);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition:
    color 0.15s,
    background-color 0.15s;
}

.f-mobile-top-search .f-mobile-search-btn:hover {
  color: #008ba3;
  background: rgba(0, 139, 163, 0.1);
}

.f-mobile-top-search .f-mobile-search-btn .f-icon {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   Certification Tracks Grid (Elite Minds Style)
   ========================================================================== */

.f-cert-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.25rem;
}

@media (min-width: 576px) {
  .f-cert-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 992px) {
  .f-cert-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.f-cert-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  background: var(--f-surface);
  border: 1px solid var(--f-border);
  border-radius: var(--f-r-lg, 16px);
  text-decoration: none !important;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.f-cert-card:hover {
  transform: translateY(-4px);
  border-color: var(--f-brand);
  box-shadow: 0 16px 32px -4px rgba(15, 23, 42, 0.1);
}

.f-cert-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
}

.f-cert-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--f-brand-soft);
  color: var(--f-brand);
  transition: transform 0.2s ease;
}

.f-cert-card:hover .f-cert-icon {
  transform: scale(1.08);
}

.f-cert-icon .f-icon {
  width: 22px;
  height: 22px;
}

.f-cert-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--f-brand-soft);
  color: var(--f-brand);
  border: 1px solid rgba(2, 132, 199, 0.18);
}

.f-cert-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--f-text);
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

.f-cert-desc {
  font-size: 0.85rem;
  color: var(--f-text-muted);
  line-height: 1.6;
  margin: 0;
}

.f-cert-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--f-border);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--f-brand);
}

.f-cert-card-footer .f-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.f-cert-card:hover .f-cert-card-footer .f-icon {
  transform: translateX(4px);
}

[dir="rtl"] .f-cert-card:hover .f-cert-card-footer .f-icon {
  transform: translateX(-4px);
}

/* Fallback categories grid */
.f-categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--f-s-3);
}

@media (min-width: 768px) {
  .f-categories-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--f-s-4);
  }
}

@media (min-width: 992px) {
  .f-categories-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--f-s-4);
  }
}

.f-category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  background: var(--f-surface);
  border: 1px solid var(--f-border);
  border-radius: var(--f-r-lg, 16px);
  text-decoration: none !important;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.f-category-card:hover {
  transform: translateY(-3px);
  border-color: var(--f-brand);
  box-shadow: 0 10px 24px rgba(2, 132, 199, 0.12);
}

.f-category-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--f-text);
  line-height: 1.35;
}

/* ==========================================================================
   Brand New Modern Educational Hero (f-hero-universe) - Elite Minds Style
   ========================================================================== */

.f-hero-universe {
  position: relative;
  padding-block: var(--f-s-6) var(--f-s-7);
  background:
    radial-gradient(
      circle at 85% 15%,
      rgba(2, 132, 199, 0.12) 0%,
      transparent 45%
    ),
    radial-gradient(
      circle at 15% 85%,
      rgba(0, 172, 193, 0.08) 0%,
      transparent 40%
    ),
    var(--f-bg);
  overflow: hidden;
}

@media (min-width: 992px) {
  .f-hero-universe {
    padding-block: var(--f-s-7) var(--f-s-8);
  }
}

[data-theme="dark"] .f-hero-universe {
  background:
    radial-gradient(
      circle at 85% 15%,
      rgba(56, 189, 248, 0.16) 0%,
      transparent 45%
    ),
    radial-gradient(
      circle at 15% 85%,
      rgba(14, 165, 233, 0.1) 0%,
      transparent 40%
    ),
    var(--f-bg);
}

.f-hero-grid {
  display: flex;
  flex-direction: column;
  gap: var(--f-s-5);
}

@media (min-width: 992px) {
  .f-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: var(--f-s-7);
  }
}

.f-hero-content {
  display: flex;
  flex-direction: column;
}

.f-hero-tag-wrap {
  margin-bottom: var(--f-s-3);
}

.f-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--f-brand-soft);
  color: var(--f-brand);
  font-weight: 700;
  font-size: 0.84rem;
  border-radius: var(--f-r-pill, 999px);
  border: 1px solid rgba(2, 132, 199, 0.22);
}

[data-theme="dark"] .f-hero-tag {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
}

.f-hero-tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--f-brand);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.28);
  animation: f-pulse 2s infinite ease-in-out;
}

@keyframes f-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.6;
  }
}

.f-hero-h1 {
  margin: 0 0 var(--f-s-3);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--f-text);
}

.f-hero-h1-first {
  display: block;
}

.f-hero-h1-gradient {
  display: inline-block;
  background: linear-gradient(
    135deg,
    var(--f-brand) 0%,
    #00acc1 50%,
    #f59e0b 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.f-hero-description {
  margin: 0 0 var(--f-s-5);
  font-size: clamp(0.98rem, 1.2vw, 1.15rem);
  line-height: 1.8;
  color: var(--f-text-muted);
  max-width: 56ch;
}

.f-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--f-s-3);
  margin-bottom: var(--f-s-5);
}

.f-hero-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.85rem 1.85rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--f-brand) 0%, #00acc1 100%);
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.35);
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.f-hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.45);
  color: #ffffff !important;
}

.f-hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.85rem 1.6rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  border: 1px solid var(--f-border);
  background: var(--f-surface);
  color: var(--f-text) !important;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.f-hero-btn-secondary:hover {
  border-color: var(--f-brand);
  color: var(--f-brand) !important;
  background: var(--f-surface-2);
}

@media (max-width: 575.98px) {
  .f-hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .f-hero-btn-primary,
  .f-hero-btn-secondary {
    width: 100%;
  }
}

/* Mobile-First Compact Video Pill (Does NOT eat the mobile viewport!) */
.f-hero-mobile-video {
  margin-bottom: var(--f-s-4);
}

.f-mobile-video-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 6px 12px 6px 6px;
  background: var(--f-surface);
  border: 1px solid var(--f-border);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: start;
  cursor: pointer;
  transition: all 0.2s ease;
}

.f-mobile-video-pill:hover {
  border-color: var(--f-brand);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.16);
}

.f-mobile-video-thumb {
  position: relative;
  width: 68px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #0f172a;
}

.f-mobile-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.f-mobile-play-btn {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
}

.f-mobile-play-btn .f-icon {
  width: 20px;
  height: 20px;
}

.f-mobile-video-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.f-mobile-video-meta strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--f-text);
  line-height: 1.25;
}

.f-mobile-video-meta small {
  font-size: 0.74rem;
  color: var(--f-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Trust Metrics Strip */
.f-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: var(--f-s-4);
  border-top: 1px solid var(--f-border);
}

@media (min-width: 576px) {
  .f-hero-metrics {
    gap: var(--f-s-3);
  }
}

.f-metric-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--f-surface);
  border: 1px solid var(--f-border);
  border-radius: 12px;
  overflow: hidden;
}

.f-metric-icon-wrap {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(0, 139, 163, 0.1);
  color: #008ba3;
  flex-shrink: 0;
}

.f-metric-icon-wrap--gold {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}

.f-metric-icon-wrap--teal {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

.f-metric-icon-wrap .f-icon {
  width: 17px;
  height: 17px;
}

.f-metric-value {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--f-text);
  line-height: 1.2;
}

.f-metric-caption {
  display: block;
  font-size: 0.7rem;
  color: var(--f-text-muted);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Desktop Showcase Visual Card */
.f-hero-showcase {
  position: relative;
  width: 100%;
}

.f-showcase-aura {
  position: absolute;
  inset: -15px;
  background: radial-gradient(
    circle,
    rgba(0, 139, 163, 0.22) 0%,
    rgba(245, 134, 52, 0.1) 50%,
    transparent 70%
  );
  filter: blur(35px);
  z-index: 1;
  pointer-events: none;
}

.f-showcase-container {
  position: relative;
  z-index: 2;
}

.f-showcase-video-box {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--f-border);
  border-radius: 20px;
  overflow: hidden;
  background: var(--f-surface-2);
  box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.f-showcase-video-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px -14px rgba(0, 0, 0, 0.26);
}

.f-showcase-video-box img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.f-showcase-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.28);
  transition: background-color 0.2s ease;
}

.f-showcase-video-box:hover .f-showcase-overlay {
  background: rgba(0, 0, 0, 0.16);
}

.f-showcase-play-ring {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #ffffff;
  color: #008ba3;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}

.f-showcase-video-box:hover .f-showcase-play-ring {
  transform: scale(1.1);
}

.f-showcase-play-icon {
  width: 28px;
  height: 28px;
  margin-inline-start: 3px;
}

.f-floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--f-border);
  border-radius: var(--f-r-lg, 14px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  z-index: 3;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

[data-theme="dark"] .f-floating-badge {
  background: rgba(23, 26, 33, 0.94);
}

.f-floating-badge--top {
  top: -14px;
  inset-inline-end: 18px;
}

.f-floating-badge--bottom {
  bottom: -16px;
  inset-inline-start: 18px;
}

.f-floating-badge-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.f-floating-badge-icon--stars {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.f-floating-badge-icon--cap {
  background: rgba(0, 139, 163, 0.15);
  color: #008ba3;
}

.f-floating-badge-icon .f-icon {
  width: 20px;
  height: 20px;
}

.f-floating-badge strong {
  display: block;
  font-size: 0.86rem;
  line-height: 1.25;
  color: var(--f-text);
}

.f-floating-badge small {
  display: block;
  font-size: 0.74rem;
  color: var(--f-text-muted);
}

/* ==========================================================================
   Pill Badges & Section Header Accents
   ========================================================================== */

.f-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: var(--f-brand-soft);
  color: var(--f-brand);
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid rgba(2, 132, 199, 0.2);
}

.f-pill-badge .f-icon-xs {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   Why Choose Us & 4 Feature Pillars (Elite Minds Standard)
   ========================================================================== */

.f-why-section {
  background: var(--f-surface-2);
  padding-block: var(--f-s-7);
}

.f-why-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--f-text);
  margin-bottom: 0.75rem;
}

.f-why-lead {
  max-width: 60ch;
  margin-inline: auto;
  color: var(--f-text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.f-pillars-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.25rem;
}

@media (min-width: 576px) {
  .f-pillars-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 992px) {
  .f-pillars-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.f-pillar-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: var(--f-surface);
  border: 1px solid var(--f-border);
  border-radius: var(--f-r-lg, 18px);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.f-pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -4px rgba(15, 23, 42, 0.08);
  border-color: rgba(2, 132, 199, 0.35);
}

.f-pillar-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  margin-bottom: 1.25rem;
  transition: transform 0.2s ease;
}

.f-pillar-card:hover .f-pillar-icon {
  transform: scale(1.08);
}

.f-pillar-icon .f-icon {
  width: 26px;
  height: 26px;
}

.f-pillar-icon--cyan {
  background: rgba(0, 172, 193, 0.12);
  color: #00acc1;
}
.f-pillar-icon--blue {
  background: rgba(2, 132, 199, 0.12);
  color: #0284c7;
}
.f-pillar-icon--gold {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}
.f-pillar-icon--teal {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

.f-pillar-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--f-text);
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

.f-pillar-card p {
  font-size: 0.88rem;
  color: var(--f-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Trust Stats Banner */
.f-stats-banner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 1.5rem;
  background: var(--f-surface);
  border: 1px solid var(--f-border);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

@media (min-width: 992px) {
  .f-stats-banner {
    grid-template-columns: repeat(4, 1fr);
    padding: 1.75rem 2rem;
    gap: 1.5rem;
  }
}

.f-stat-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.f-stat-icon-wrap {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--f-brand-soft);
  color: var(--f-brand);
  flex-shrink: 0;
}

.f-stat-icon-wrap--gold {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}
.f-stat-icon-wrap--green {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}
.f-stat-icon-wrap--blue {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
}

.f-stat-icon-wrap .f-icon {
  width: 22px;
  height: 22px;
}

.f-stat-num {
  display: block;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--f-text);
  line-height: 1.1;
}

.f-stat-num small {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--f-text-muted);
}

.f-stat-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--f-text-muted);
  margin-top: 3px;
}

/* ==========================================================================
   Roadmap to Certification (4-Step Connected Journey)
   ========================================================================== */

.f-roadmap-section {
  padding-block: var(--f-s-7);
}

.f-roadmap-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--f-text);
  margin-bottom: 0.75rem;
}

.f-roadmap-lead {
  max-width: 60ch;
  margin-inline: auto;
  color: var(--f-text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.f-roadmap-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.25rem;
}

@media (min-width: 576px) {
  .f-roadmap-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 992px) {
  .f-roadmap-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.f-roadmap-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: var(--f-surface);
  border: 1px solid var(--f-border);
  border-radius: var(--f-r-lg, 18px);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.f-roadmap-card:hover {
  transform: translateY(-4px);
  border-color: var(--f-brand);
  box-shadow: 0 16px 32px -4px rgba(15, 23, 42, 0.08);
}

.f-roadmap-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.f-roadmap-number {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(2, 132, 199, 0.25);
  font-variant-numeric: tabular-nums;
  transition: color 0.2s ease;
}

.f-roadmap-card:hover .f-roadmap-number {
  color: var(--f-brand);
}

.f-roadmap-icon-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--f-brand);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15);
}

.f-roadmap-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--f-text);
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

.f-roadmap-desc {
  font-size: 0.88rem;
  color: var(--f-text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Full High-End Footer (Elite Minds Navy Aesthetic)
   ========================================================================== */

.f-footer {
  background: #080e1a !important;
  color: #94a3b8 !important;
  padding-top: 4.5rem !important;
  padding-bottom: 2.5rem !important;
  border-top: 1px solid #1e293b !important;
  margin-top: var(--f-s-8);
}

[data-theme="dark"] .f-footer {
  background: #050811 !important;
  border-top-color: #1e2433 !important;
}

.f-footer-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 576px) {
  .f-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .f-footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 3rem;
  }
}

.f-footer-brand-col .f-footer-logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.f-footer-about {
  margin-top: 1.15rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #94a3b8;
  max-width: 36ch;
}

.f-footer h2 {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin: 0 0 1.25rem !important;
  letter-spacing: 0.02em;
}

.f-footer a {
  display: block;
  color: #94a3b8 !important;
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
  text-decoration: none !important;
  transition:
    color 0.15s ease,
    transform 0.15s ease;
}

.f-footer a:hover {
  color: #38bdf8 !important;
  transform: translateX(4px);
}

[dir="rtl"] .f-footer a:hover {
  transform: translateX(-4px);
}

.f-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1.25rem;
}

.f-footer-social a {
  display: grid !important;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50% !important;
  background: #162032 !important;
  border: 1px solid #233149 !important;
  color: #ffffff !important;
  margin-bottom: 0 !important;
  transition: all 0.2s ease !important;
}

.f-footer-social a:hover {
  background: var(--f-brand) !important;
  border-color: var(--f-brand) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
}

.f-footer-social a img {
  filter: brightness(0) invert(1);
}

.f-footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #1e293b;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: #64748b;
}

.f-footer-bottom small {
  color: #64748b;
}

.f-footer-join {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* ==========================================================================
   Instructor Domain Hero (Universe & Showcase Card)
   ========================================================================== */

.f-hero-universe--instructor {
  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(var(--f-brand-rgb, 0, 139, 163), 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 10% 90%,
      rgba(245, 134, 52, 0.06) 0%,
      transparent 40%
    ),
    var(--f-bg);
}

[data-theme="dark"] .f-hero-universe--instructor {
  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(var(--f-brand-rgb, 0, 172, 193), 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 10% 90%,
      rgba(245, 134, 52, 0.08) 0%,
      transparent 40%
    ),
    var(--f-bg);
}

/* Mobile-only compact instructor card */
.f-hero-mobile-instructor {
  margin-top: var(--f-s-3);
  margin-bottom: var(--f-s-2);
}

.f-mobile-instructor-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  background: var(--f-surface);
  border: 1px solid var(--f-border);
  border-radius: var(--f-r-lg, 16px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.f-mobile-instructor-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--f-brand, #008ba3);
}

.f-mobile-instructor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.f-mobile-instructor-avatar .f-home-brand-initial {
  width: 100%;
  height: 100%;
  font-size: 1.25rem;
}

.f-mobile-instructor-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.f-mobile-instructor-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--f-text);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.f-mobile-instructor-sub {
  font-size: 0.78rem;
  color: var(--f-text-muted);
  font-weight: 500;
}

.f-mobile-instructor-badge {
  color: #10b981;
  flex-shrink: 0;
}

/* Desktop Showcase Card for Instructor */
.f-instructor-hero-card {
  position: relative;
  background: var(--f-surface);
  border: 1px solid var(--f-border);
  border-radius: 24px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  padding: 0;
  text-align: center;
}

[data-theme="dark"] .f-instructor-hero-card {
  background: var(--f-surface-2);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.f-instructor-card-banner {
  position: relative;
  width: 100%;
  height: 150px;
  overflow: hidden;
}

.f-instructor-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.f-instructor-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 40%,
    rgba(0, 0, 0, 0.45) 100%
  );
}

.f-instructor-card-inner {
  padding: var(--f-s-5);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.f-instructor-hero-card .f-instructor-card-banner + .f-instructor-card-inner {
  margin-top: -56px;
  position: relative;
  z-index: 2;
}

.f-instructor-avatar-holder {
  position: relative;
  margin-bottom: var(--f-s-3);
}

.f-instructor-avatar-holder .f-avatar,
.f-instructor-avatar-holder .f-home-brand-logo {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--f-surface);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.f-instructor-avatar-holder .f-home-brand-initial {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--f-brand-soft, rgba(0, 139, 163, 0.1));
  color: var(--f-brand, #008ba3);
  font-size: 2.4rem;
  font-weight: 800;
  border: 4px solid var(--f-surface);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.f-instructor-badge-status {
  position: absolute;
  bottom: 4px;
  inset-inline-end: 4px;
  width: 24px;
  height: 24px;
  background: #10b981;
  color: #ffffff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid var(--f-surface);
}

.f-instructor-hero-card .f-home-brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--f-text);
  margin-bottom: 6px;
}

.f-instructor-card-lead {
  font-size: 0.88rem;
  color: var(--f-text-muted);
  line-height: 1.5;
  margin-bottom: var(--f-s-3);
  max-width: 380px;
}

.f-instructor-hero-card .f-home-brand-stats {
  display: flex;
  justify-content: center;
  gap: var(--f-s-4);
  padding: 10px 18px;
  background: var(--f-surface-2, rgba(0, 0, 0, 0.02));
  border: 1px solid var(--f-border);
  border-radius: 14px;
  margin: 0;
}

.f-instructor-hero-card .f-home-brand-stats dt {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--f-text);
  line-height: 1.2;
}

.f-instructor-hero-card .f-home-brand-stats dd {
  font-size: 0.72rem;
  color: var(--f-text-muted);
  font-weight: 600;
  margin: 0;
}

/* Contact page: channel tiles, form, quiet side panel */
.f-contact-channels {
  display: grid;
  gap: var(--f-s-3);
  margin: 0 0 var(--f-s-6);
  padding: 0;
  list-style: none;
}
.f-contact-channel {
  display: flex;
  align-items: center;
  gap: var(--f-s-3);
  min-width: 0;
  padding: var(--f-s-4);
  border: 1px solid var(--f-border);
  border-radius: var(--f-r-lg);
  background: var(--f-surface);
}
.f-contact-channel-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--f-r);
  background: var(--f-brand-soft);
  color: var(--f-brand-strong);
}
.f-contact-channel-text {
  display: grid;
  min-width: 0;
}
.f-contact-channel-text small {
  color: var(--f-text-muted);
  font-size: var(--f-text-xs);
}
.f-contact-channel-text a,
.f-contact-channel-text span {
  overflow-wrap: anywhere;
  font-weight: 600;
  color: var(--f-text);
  text-align: start;
}
.f-contact-channel-text a:hover {
  color: var(--f-link);
}
.f-contact-note {
  margin: 0 0 var(--f-s-4);
  color: var(--f-text-muted);
}
.f-contact-fields {
  display: grid;
  gap: 0 var(--f-s-3);
}
.f-contact-side {
  display: grid;
  gap: var(--f-s-5);
}
.f-contact-art {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: contain;
}
.f-contact-faq {
  padding: var(--f-s-5);
  border-radius: var(--f-r-lg);
  background: var(--f-surface-2);
}
.f-contact-faq h2 {
  margin: 0 0 var(--f-s-2);
  font-size: var(--f-text-lg, 1.125rem);
}
.f-contact-faq p {
  margin: 0 0 var(--f-s-3);
  color: var(--f-text-muted);
}
@media (min-width: 768px) {
  .f-contact-channels {
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    grid-auto-flow: column;
  }
  .f-contact-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 992px) {
  .f-contact {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  }
  .f-contact-side {
    position: sticky;
    top: var(--f-s-6);
  }
}

/* FAQ page: search and help beside a calm list of separate question cards */
.f-faq-layout {
  display: grid;
  gap: var(--f-s-6);
  align-items: start;
}
@media (min-width: 992px) {
  .f-faq-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    grid-template-areas: "main side";
  }
  .f-faq-main {
    grid-area: main;
  }
  .f-faq-side {
    grid-area: side;
    position: sticky;
    inset-block-start: var(--f-s-6);
  }
}
.f-faq-side {
  display: grid;
  gap: var(--f-s-4);
}
.f-faq-count {
  margin: var(--f-s-2) 0 0;
  font-size: var(--f-text-sm);
  color: var(--f-text-muted);
}
.f-faq-help {
  padding: var(--f-s-5);
  border: 1px solid var(--f-border);
  border-radius: var(--f-r-lg);
  background: var(--f-surface-2);
}
.f-faq-help h2 {
  margin: 0 0 var(--f-s-2);
  font-size: var(--f-text-lg);
}
.f-faq-help p {
  margin: 0 0 var(--f-s-4);
  color: var(--f-text-muted);
}
.f-faq-help-actions {
  display: grid;
  gap: var(--f-s-2);
}
.f-faq.accordion {
  display: grid;
  gap: var(--f-s-3);
}
.f-faq .accordion-item {
  border: 1px solid var(--f-border);
  border-radius: var(--f-r) !important;
  background: var(--f-surface);
  overflow: hidden;
}
.f-faq .accordion-item:has(.accordion-collapse.show) {
  border-inline-start: 3px solid var(--f-brand);
}
.f-faq .accordion-button {
  padding: var(--f-s-4) var(--f-s-5);
  border-radius: 0 !important;
  box-shadow: none;
}
.f-faq .accordion-button:not(.collapsed) {
  background: var(--f-surface);
  color: var(--f-link);
}
.f-faq .accordion-button:focus-visible {
  outline: 2px solid var(--f-brand);
  outline-offset: -2px;
}
.f-faq .accordion-body {
  padding: 0 var(--f-s-5) var(--f-s-5);
}

/* Contact page: single centered form column */
.f-contact {
  grid-template-columns: minmax(0, 1fr);
  max-width: 680px;
  margin-inline: auto;
  gap: var(--f-s-4);
}
.f-contact-form-card .f-card-body {
  padding: var(--f-s-5);
}
.f-contact-faq-line {
  margin: 0;
  text-align: center;
  color: var(--f-text-muted);
}
.f-contact-faq-line a {
  font-weight: 600;
  color: var(--f-link);
}

/* About page: vision and mission as plain columns, values as a numbered list */
.f-about-point {
  padding-block-start: var(--f-s-4);
  border-block-start: 2px solid var(--f-brand);
}
.f-about-point h3 {
  display: flex;
  align-items: center;
  gap: var(--f-s-2);
  margin: 0 0 var(--f-s-3);
  font-size: var(--f-text-xl);
}
.f-about-point .f-icon {
  flex: none;
  color: var(--f-brand);
}
.f-values {
  display: grid;
  gap: var(--f-s-6) var(--f-s-5);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) {
  .f-values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 992px) {
  .f-values {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.f-value {
  padding-block-start: var(--f-s-4);
  border-block-start: 1px solid var(--f-border);
}
.f-value-num {
  display: block;
  margin-block-end: var(--f-s-2);
  font-size: var(--f-text-2xl);
  font-weight: 800;
  color: var(--f-brand);
}
.f-value h3 {
  margin: 0 0 var(--f-s-2);
  font-size: var(--f-text-lg);
}
.f-value .f-prose {
  color: var(--f-text-muted);
}
