/* ==========================================================================
   MwalimuFocus.Co.Ke - Main Stylesheet
   Modern, enterprise-grade styling tailored for Kenyan educators
   Exact match to design screenshot: Hero, Browse by Resource Type & Trending
   ========================================================================== */

/* --------------------------------------------------------------------------
   HERO SECTION (Icy Cyan Gradient, Shimmer Blobs, Dot Grid & Flush Search)
   Matches live https://mwalimufocus.co.ke hero architecture
   -------------------------------------------------------------------------- */
.mf-hero {
  position: relative;
  background-color: #cdfafa;
  background: linear-gradient(160deg, #e0ffff 0%, #b2f0f0 35%, #cdfafa 65%, #f0fffe 100%);
  padding: 64px 0 56px;
  overflow: hidden;
  text-align: center;
}

/* Thin teal accent line along the top */
.mf-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #00ced1 30%, #48cae4 70%, transparent);
  pointer-events: none;
  z-index: 3;
}

/* Thin shimmer line along the bottom */
.mf-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 206, 209, 0.35) 40%, transparent);
  pointer-events: none;
  z-index: 3;
}

/* Teal shimmer blob — top left */
.mf-hero-blob-tl {
  position: absolute;
  top: -80px;
  left: -80px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 206, 209, 0.22) 0%, transparent 70%);
  filter: blur(32px);
  pointer-events: none;
  z-index: 1;
}

/* Pale cyan-mint blob — bottom right */
.mf-hero-blob-br {
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(72, 202, 228, 0.18) 0%, transparent 70%);
  filter: blur(28px);
  pointer-events: none;
  z-index: 1;
}

/* Subtle 28px dot-grid overlay */
.mf-hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0, 150, 160, 0.10) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 1;
}

.mf-hero-container {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

/* Hero Badge Pill */
.mf-hero-badge {
  display: inline-block;
  background: rgba(0, 180, 216, 0.12);
  border: 1px solid rgba(0, 180, 216, 0.30);
  color: #006d8f;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

/* Hero Title with Gradient Highlight */
.mf-hero-title {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: #0f172a;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}

.mf-hero-title span {
  background: linear-gradient(135deg, #0077b6, #00b4d8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mf-hero-subtitle {
  font-size: 1rem;
  font-weight: 400;
  color: #334e68;
  max-width: 500px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

/* Screen-reader only utility for accessible labels without visual clutter */
.mf-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Hero Search Bar — Flush Split Input Group (Plain GET form, no dropdown) */
.mf-hero-search-card {
  background: #ffffff;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 150, 160, 0.18), 0 1px 4px rgba(0, 0, 0, 0.06);
  border: 1.5px solid rgba(0, 180, 216, 0.25);
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0 auto 32px;
  max-width: 520px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.mf-hero-search-card:focus-within {
  border-color: rgba(0, 119, 182, 0.55);
  box-shadow: 0 6px 24px rgba(0, 150, 160, 0.24), 0 1px 4px rgba(0, 0, 0, 0.06);
}

.mf-hero-search-card .mf-search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  padding-left: 18px;
  background: #ffffff;
  min-width: 0;
}

.mf-hero-search-card .mf-search-input-wrap svg {
  width: 18px;
  height: 18px;
  color: #0077b6;
  flex-shrink: 0;
}

.mf-hero-search-card .mf-search-input {
  width: 100%;
  height: auto;
  margin: 0;
  border: none;
  border-radius: 0;
  background: #ffffff;
  background-color: #ffffff;
  outline: none;
  box-shadow: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.45;
  padding: 14px 16px 14px 14px;
  color: #0f172a;
}

.mf-hero-search-card .mf-search-input:hover,
.mf-hero-search-card .mf-search-input:focus {
  border: none;
  box-shadow: none;
  outline: none;
  background-color: #ffffff;
}

.mf-hero-search-card .mf-search-input::placeholder {
  color: #64748b;
  font-weight: 400;
  opacity: 1;
}

.mf-hero-search-card .mf-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0077b6, #00b4d8);
  color: #ffffff;
  border: none;
  border-radius: 0;
  margin: 0;
  padding: 0 26px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  transition: filter 0.18s ease;
}

.mf-hero-search-card .mf-search-btn:hover {
  filter: brightness(1.08);
  color: #ffffff;
}

/* 4 Frosted Quick Stat Cards under Search (Scoped to .mf-hero to win over ui-core.css) */
.mf-hero-stats-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 auto;
}

.mf-hero .mf-stat-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 180, 216, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 10px 20px;
  min-width: 96px;
  box-shadow: 0 2px 8px rgba(0, 150, 160, 0.08);
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.mf-hero .mf-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 150, 160, 0.14);
  border-color: rgba(0, 180, 216, 0.42);
}

.mf-hero .mf-stat-card-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0077b6;
  display: block;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.mf-hero .mf-stat-card-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #475569;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   SECTION HEADINGS & LAYOUT UTILITIES
   -------------------------------------------------------------------------- */
.mf-section {
  padding: 68px 0;
}

.mf-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 46px;
}

.mf-section-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #0f766e;
  margin-bottom: 6px;
}

.mf-section-title {
  font-size: 32px;
  font-weight: 800;
  color: #0b343d;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 8px;
}

.mf-section-desc {
  font-size: 15px;
  color: #48727c;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   WHAT WE OFFER (Browse by Resource Type - 3 Column Layout)
   Faithful match to official design screenshot:
   - Soft pale-cyan card surface (#e0fbf7) with crisp subtle border (#bbf2e9)
   - Vibrant sky-blue title (#0284c7)
   - Slate readable body text (#334155)
   - Vertically-centered icon alignment (align-items: center)
   -------------------------------------------------------------------------- */
.mf-resource-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.mf-type-card {
  background: #e0fbf7;
  border: 1px solid #bbf2e9;
  border-radius: 16px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  position: relative;
  overflow: hidden;
}

.mf-type-card:hover {
  transform: translateY(-3px);
  border-color: #8be4d4;
  background: #d4f8f1;
  box-shadow: 0 10px 24px -4px rgba(6, 95, 84, 0.09);
}

.mf-type-card-content {
  flex: 1;
  min-width: 0;
}

.mf-type-card-title {
  font-size: 15.5px;
  font-weight: 700;
  color: #0284c7;
  margin-bottom: 6px;
  line-height: 1.35;
  transition: color 0.15s ease;
}

.mf-type-card:hover .mf-type-card-title {
  color: #0369a1;
}

.mf-type-card-desc {
  font-size: 13px;
  color: #334155;
  line-height: 1.5;
  font-weight: 400;
  margin: 0;
}

.mf-type-card-icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mf-type-card-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* --------------------------------------------------------------------------
   TRENDING (Most Popular Downloads - 4 Column Layout)
   -------------------------------------------------------------------------- */
.mf-trending-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.mf-trend-card {
  background: #ebfcf9;
  border: 1px solid #d0f0e8;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(11, 52, 61, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.mf-trend-card:hover {
  transform: translateY(-4px);
  border-color: #8ce1d2;
  box-shadow: 0 14px 28px -4px rgba(11, 52, 61, 0.09);
}

.mf-trend-card-badge {
  background: #c2f4ec;
  color: #0284c7;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 10px 14px;
  text-align: center;
  border-bottom: 1px solid #aeebe0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mf-trend-card-body {
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.mf-trend-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0b343d;
  line-height: 1.45;
  margin-bottom: 20px;
  min-height: 58px;
}

.mf-trend-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mf-btn-trend-download {
  background: #116535;
  color: #ffffff;
  border: none;
  padding: 9px 12px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color 0.15s ease, transform 0.15s ease;
  text-decoration: none;
}

.mf-btn-trend-download:hover {
  background: #0d522b;
  color: #ffffff;
}

.mf-btn-trend-download svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
}

/* --------------------------------------------------------------------------
   SIMPLE PROCESS / HOW IT WORKS (Exact match to screenshot)
   -------------------------------------------------------------------------- */
.mf-section-process {
  padding: 60px 0 35px;
  background-color: #ffffff;
}

.mf-simple-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.mf-simple-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 10px;
}

.mf-step-circle-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0284c7;
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.28);
}

.mf-step-item-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.mf-step-item-desc {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.55;
  max-width: 290px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   TRUST & GUARANTEE STRIP (4-Column Pale Mint Card)
   -------------------------------------------------------------------------- */
.mf-trust-strip {
  background: #e3faf5;
  border: 1px solid #c2ece3;
  border-radius: 16px;
  padding: 24px 20px;
  margin: 48px auto 0;
  max-width: 1040px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(11, 52, 61, 0.03);
}

.mf-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 8px;
}

.mf-trust-icon {
  color: #0284c7;
  width: 26px;
  height: 26px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mf-trust-icon svg {
  width: 22px;
  height: 22px;
  stroke: #0284c7;
}

.mf-trust-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}

.mf-trust-desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   VENDOR BANNER (EARN WITH MWALIMU FOCUS - Rich Cyan/Teal Gradient)
   -------------------------------------------------------------------------- */
.mf-section-vendor {
  padding: 10px 0 65px;
}

.mf-vendor-banner {
  background: linear-gradient(110deg, #0284c7 0%, #0ea5e9 40%, #06b6d4 75%, #14b8a6 100%);
  border-radius: 20px;
  padding: 44px 50px;
  color: #0b343d;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px -8px rgba(2, 132, 199, 0.32);
}

.mf-vendor-banner::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.mf-vendor-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: #0b343d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 5px 15px;
  border-radius: 9999px;
  margin-bottom: 16px;
}

.mf-vendor-title {
  font-size: 28px;
  font-weight: 800;
  color: #0b343d;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 12px;
}

.mf-vendor-desc {
  font-size: 14px;
  color: #114b56;
  line-height: 1.6;
  max-width: 760px;
  margin-bottom: 22px;
  font-weight: 500;
}

.mf-vendor-pills-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.mf-vendor-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 9999px;
  padding: 7px 16px;
  color: #0b343d;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

.mf-vendor-pill svg {
  width: 15px;
  height: 15px;
  stroke: #0b343d;
  flex-shrink: 0;
}

.mf-vendor-action-wrap {
  margin-bottom: 10px;
}

.mf-btn-vendor-start {
  background: #116535;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
  font-family: inherit;
}

.mf-btn-vendor-start:hover {
  background: #0d522b;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.24);
  color: #ffffff;
}

.mf-btn-vendor-start svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.mf-vendor-footnote {
  font-size: 12.5px;
  color: #114b56;
  margin-top: 12px;
  font-weight: 500;
}

.mf-vendor-modal-badge {
  background: #0284c7;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 6px;
  margin: 0;
}

.mf-modal-btn-vendor {
  width: 100%;
  background: #0284c7;
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 8px;
  border: none;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mf-modal-btn-vendor:hover {
  background: #0369a1;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
}

/* --------------------------------------------------------------------------
   CHECKOUT / PREVIEW / VENDOR MODALS (Viewport-Safe, Scrollable Body)
   -------------------------------------------------------------------------- */
.mf-modal {
  position: fixed;
  inset: 0;
  background: rgba(11, 52, 61, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 16px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.mf-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.mf-modal-dialog {
  background: #ffffff;
  border-radius: 16px;
  max-width: 520px;
  width: 100%;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.28);
  transform: translateY(16px) scale(0.97);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mf-modal-dialog--wide {
  max-width: 580px;
}

.mf-modal.is-active .mf-modal-dialog {
  transform: translateY(0) scale(1);
}

.mf-modal-header {
  padding: 14px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

.mf-modal-title {
  font-size: 16.5px;
  font-weight: 800;
  color: #0b343d;
  margin: 0;
}

.mf-modal-close {
  background: transparent;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
}

.mf-modal-close:hover {
  color: #0f172a;
  background: #e2e8f0;
}

.mf-modal-body {
  padding: 18px 22px 20px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

.mf-modal-body .mf-form-group {
  margin-bottom: 12px;
}

.mf-modal-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  margin-bottom: 14px;
}

.mf-modal-form-grid .mf-form-group {
  margin-bottom: 0;
  min-width: 0;
}

@media (max-width: 600px) {
  .mf-modal {
    padding: 12px;
  }
  .mf-modal-dialog {
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 14px;
  }
  .mf-modal-body {
    padding: 16px;
  }
  .mf-modal-form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.mf-mpesa-badge {
  background: #00aa4f;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 6px;
  margin: 0;
}

.mf-form-group {
  margin-bottom: 16px;
}

/* ==========================================================================
   ENTERPRISE MODERN FORM CONTROL SYSTEM
   Cohesive, polished styling for textareas, email inputs, phone numbers,
   selects, search fields, passwords, and form groups across MwalimuFocus
   ========================================================================== */

.mf-form-group {
  margin-bottom: 20px;
  position: relative;
}

.mf-form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.mf-form-label .mf-req,
.mf-form-label span.req {
  color: #dc2626;
  font-weight: 700;
  margin-left: 2px;
}

.mf-form-hint {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-top: 5px;
  line-height: 1.45;
}

/* Universal Modern Input, Textarea, and Select Styles */
.mf-form-input,
.mf-form-textarea,
.mf-form-select,
.mf-input-control,
.mf-vinput,
.mf-vtextarea,
.mf-checkout-input,
.mf-field-input,
input[type="text"]:not(.mf-search-input):not(.mf-search-text-input):not(.mf-browse-search-input):not(.mf-drawer-search-input),
input[type="email"]:not(.mf-newsletter-input),
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="search"]:not(.mf-search-input):not(.mf-search-text-input):not(.mf-browse-search-input):not(.mf-drawer-search-input),
input[type="url"],
textarea:not(.mf-legacy-textarea),
select.mf-modern-select {
  width: 100%;
  height: 46px;
  padding: 10px 14px;
  background-color: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 9px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  color: #0f172a;
  box-sizing: border-box;
  outline: none;
  line-height: 1.4;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  transition: border-color 0.18s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.18s cubic-bezier(0.16, 1, 0.3, 1), 
              background-color 0.18s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

/* Hover state */
.mf-form-input:hover,
.mf-form-textarea:hover,
.mf-form-select:hover,
.mf-input-control:hover,
.mf-vinput:hover,
.mf-vtextarea:hover,
.mf-checkout-input:hover,
.mf-field-input:hover,
input[type="text"]:not(.mf-search-input):not(.mf-search-text-input):not(.mf-browse-search-input):not(.mf-drawer-search-input):hover,
input[type="email"]:not(.mf-newsletter-input):hover,
input[type="tel"]:hover,
input[type="password"]:hover,
input[type="number"]:hover,
input[type="search"]:not(.mf-search-input):not(.mf-search-text-input):not(.mf-browse-search-input):not(.mf-drawer-search-input):hover,
textarea:hover:not(.mf-legacy-textarea) {
  border-color: #94a3b8;
}

/* Modern Active Focus State (Brand Forest Green Focus Ring) */
.mf-form-input:focus,
.mf-form-textarea:focus,
.mf-form-select:focus,
.mf-input-control:focus,
.mf-vinput:focus,
.mf-vtextarea:focus,
.mf-checkout-input:focus,
.mf-field-input:focus,
input[type="text"]:not(.mf-search-input):not(.mf-search-text-input):not(.mf-browse-search-input):not(.mf-drawer-search-input):focus,
input[type="email"]:not(.mf-newsletter-input):focus,
input[type="tel"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="search"]:not(.mf-search-input):not(.mf-search-text-input):not(.mf-browse-search-input):not(.mf-drawer-search-input):focus,
textarea:focus:not(.mf-legacy-textarea) {
  outline: none;
  border-color: #166534;
  box-shadow: 0 0 0 3.5px rgba(22, 101, 52, 0.14);
  background-color: #ffffff;
}

/* Modern Placeholder */
.mf-form-input::placeholder,
.mf-form-textarea::placeholder,
.mf-input-control::placeholder,
.mf-vinput::placeholder,
.mf-vtextarea::placeholder,
.mf-checkout-input::placeholder,
.mf-field-input::placeholder,
input::placeholder,
textarea::placeholder {
  color: #94a3b8;
  font-weight: 400;
  opacity: 1;
}

/* Disabled & Readonly */
.mf-form-input:disabled,
.mf-form-textarea:disabled,
input:disabled,
textarea:disabled,
.mf-form-input[readonly],
textarea[readonly] {
  background-color: #f1f5f9;
  border-color: #e2e8f0;
  color: #64748b;
  cursor: not-allowed;
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   SPECIALIZED TEXTAREA STYLING
   -------------------------------------------------------------------------- */
.mf-form-textarea,
.mf-vtextarea,
textarea {
  height: auto !important;
  min-height: 110px;
  padding: 12px 15px;
  line-height: 1.55;
  resize: vertical;
  border-radius: 9px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

textarea::-webkit-scrollbar {
  width: 6px;
}
textarea::-webkit-scrollbar-track {
  background: transparent;
}
textarea::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}
textarea::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* --------------------------------------------------------------------------
   SPECIALIZED PHONE NUMBER INPUT STYLING
   Formatted for Kenyan M-Pesa Numbers (07XX / 01XX / +254)
   -------------------------------------------------------------------------- */
.mf-phone-input,
input[type="tel"],
input[name*="phone"],
input[id*="phone"] {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.35px;
}

/* Phone input with country / carrier prefix */
.mf-phone-wrap,
.mf-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.mf-phone-prefix,
.mf-input-prefix {
  position: absolute;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: #166534;
  pointer-events: none;
  z-index: 2;
  user-select: none;
}

.mf-phone-wrap .mf-form-input,
.mf-phone-wrap input,
.mf-phone-wrap .mf-form-input.has-prefix,
.mf-phone-wrap input[type="tel"],
.mf-input-wrapper .mf-form-input,
.mf-input-wrapper input[type="tel"] {
  padding-left: 78px !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.35px;
}

/* --------------------------------------------------------------------------
   SPECIALIZED EMAIL INPUT STYLING
   -------------------------------------------------------------------------- */
input[type="email"],
.mf-input-email {
  letter-spacing: -0.01em;
}

/* Input Icon Wrappers (Email, Phone, Search, Password) */
.mf-input-icon-wrap,
.mf-input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.mf-input-icon-wrap .mf-form-input,
.mf-input-icon-wrap input,
.mf-input-with-icon .mf-form-input,
.mf-input-with-icon input {
  width: 100%;
}

/* When has leading icon, pad left */
.mf-input-icon-wrap.has-leading-icon .mf-form-input,
.mf-input-icon-wrap.has-leading-icon input,
.mf-input-icon-wrap .mf-leading-icon + input,
.mf-input-icon-wrap .mf-leading-icon + .mf-form-input,
.mf-input-icon-wrap .mf-form-input.has-icon,
.mf-input-icon-wrap input.has-icon {
  padding-left: 42px !important;
  padding-right: 14px;
}

.mf-input-icon,
.mf-trailing-icon {
  position: absolute;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #166534;
  pointer-events: none;
  z-index: 2;
}

.mf-input-icon svg,
.mf-trailing-icon svg {
  width: 18px;
  height: 18px;
}

.mf-leading-icon {
  position: absolute;
  left: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  pointer-events: none;
  z-index: 2;
}

.mf-leading-icon svg {
  width: 18px;
  height: 18px;
}

/* --------------------------------------------------------------------------
   SELECT DROPDOWNS (Modern Custom Chevron)
   -------------------------------------------------------------------------- */
select,
.mf-form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
  padding-right: 40px !important;
  cursor: pointer;
}

select:focus,
.mf-form-select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23166534' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

.mf-modal-btn-pay {
  width: 100%;
  background: #00aa4f;
  color: #ffffff;
  padding: 13px;
  border-radius: 8px;
  border: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mf-modal-btn-pay:hover {
  background: #008f42;
  box-shadow: 0 6px 16px rgba(0, 170, 79, 0.3);
}

/* Toast Notifications */
.mf-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0b343d;
  color: #ffffff;
  padding: 13px 20px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  font-size: 13.5px;
  font-weight: 600;
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.25s ease;
  pointer-events: none;
}

.mf-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .mf-resource-type-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mf-trending-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .mf-trust-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .mf-hero {
    padding: 48px 0 44px;
  }
  .mf-hero-stats-row {
    gap: 8px;
  }
  .mf-hero .mf-stat-card {
    padding: 8px 14px;
    min-width: 84px;
  }
  .mf-resource-type-grid {
    grid-template-columns: 1fr;
  }
  .mf-trending-grid {
    grid-template-columns: 1fr;
  }
  .mf-simple-steps-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .mf-vendor-banner {
    padding: 34px 22px;
  }
  .mf-vendor-title {
    font-size: 24px;
  }
}

@media (max-width: 640px) {
  .mf-type-card {
    padding: 16px 16px;
    gap: 12px;
    border-radius: 14px;
  }
  .mf-type-card-icon {
    width: 50px;
    height: 50px;
  }
  .mf-type-card-title {
    font-size: 14.5px;
  }
  .mf-type-card-desc {
    font-size: 12px;
  }
}

@media (max-width: 520px) {
  .mf-trust-strip {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .mf-vendor-pills-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ==========================================================================
   SUBSCRIPTION PLANS PAGE (Exact match to screenshot media_1790543735269.png)
   ========================================================================== */
.mf-plans-page-wrapper {
  background-color: #ffffff;
  min-height: calc(100vh - 400px);
  padding: 56px 0 90px;
}

.mf-plans-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header Section */
.mf-plans-header {
  text-align: center;
  margin-bottom: 46px;
}

.mf-plans-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 34px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.025em;
  margin: 0 0 12px 0;
}

.mf-plans-subtitle {
  font-size: 16.5px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
  font-weight: 400;
}

.mf-plans-highlight {
  color: #0d9488;
  font-weight: 700;
}

/* Pricing Cards Grid */
.mf-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: stretch;
  justify-content: center;
  margin-bottom: 72px;
}

.mf-plan-card {
  position: relative;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mf-plan-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -4px rgba(15, 23, 42, 0.08);
}

/* Six Months (Featured / Most Popular Card) */
.mf-plan-card.mf-plan-featured {
  border: 2px solid #22d3ee;
  box-shadow: 0 10px 28px -4px rgba(6, 182, 212, 0.22), 0 4px 12px rgba(6, 182, 212, 0.12);
  overflow: hidden;
  background-color: #ffffff;
}

.mf-plan-card.mf-plan-featured:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px -4px rgba(6, 182, 212, 0.28), 0 6px 16px rgba(6, 182, 212, 0.16);
}

/* Diagonal Ribbon ("MOST POPULAR") */
.mf-plan-ribbon {
  position: absolute;
  top: 18px;
  right: -36px;
  width: 140px;
  background: linear-gradient(135deg, #0d9488, #06b6d4);
  color: #ffffff;
  text-align: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 5px 0;
  transform: rotate(45deg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  pointer-events: none;
  z-index: 5;
}

/* Distinct Top Card Header (Pale Mint / Aqua) */
.mf-plan-card-header {
  background-color: #e6f7f5;
  padding: 26px 20px 24px;
  text-align: center;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.mf-plan-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 21px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.25;
}

/* Card Body Section (Pure White) */
.mf-plan-card-body {
  background-color: #ffffff;
  padding: 28px 24px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.mf-plan-price {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px 0;
  line-height: 1.2;
}

.mf-plan-cycle {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  margin: 0 0 24px 0;
  line-height: 1.2;
}

.mf-plan-validity {
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  margin: 0 0 24px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  line-height: 1.3;
}

.mf-plan-bolt {
  font-size: 12px;
  color: #0f172a;
  display: inline-block;
  line-height: 1;
}

/* Subscribe Now Buttons */
.mf-plan-btn {
  display: block;
  width: 100%;
  padding: 13px 20px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  text-align: center;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease;
  margin-top: auto;
  box-sizing: border-box;
}

/* Dark Green Button (Monthly & Yearly) */
.mf-plan-btn-green {
  background-color: #166534;
  color: #ffffff;
}

.mf-plan-btn-green:hover {
  background-color: #14532d;
  box-shadow: 0 4px 12px rgba(22, 101, 52, 0.32);
}

/* Deep Teal Button (Six Months / Featured) */
.mf-plan-btn-teal {
  background-color: #0d9488;
  color: #ffffff;
}

.mf-plan-btn-teal:hover {
  background-color: #0f766e;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.35);
}

/* Lower Section: Everything Included, Every Plan */
.mf-features-section {
  margin-top: 10px;
}

.mf-features-header {
  text-align: center;
  margin-bottom: 44px;
}

.mf-features-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.015em;
  margin: 0 0 10px 0;
}

.mf-features-subtitle {
  font-size: 15px;
  color: #64748b;
  margin: 0;
}

/* 4-Column Feature Category Grid */
.mf-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  align-items: start;
}

.mf-feature-col {
  display: flex;
  flex-direction: column;
}

.mf-feature-col-header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 12px;
  border-bottom: 2px solid #a5f3fc;
  margin-bottom: 18px;
}

.mf-feature-col-icon {
  width: 20px;
  height: 20px;
  color: #0d9488;
  flex-shrink: 0;
}

.mf-feature-col-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  white-space: nowrap;
}

.mf-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mf-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #334155;
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
  line-height: 1.4;
}

.mf-feature-item:hover {
  color: #0d9488;
  transform: translateX(2px);
}

.mf-feature-item-icon {
  width: 17px;
  height: 17px;
  color: #06b6d4;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mf-feature-item-text {
  font-size: 14px;
  font-weight: 500;
  color: #334155;
}

.mf-feature-item:hover .mf-feature-item-text {
  color: #0d9488;
}

/* Responsive Rules for Subscriptions Page */
@media (max-width: 992px) {
  .mf-plans-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .mf-plan-card {
    padding: 30px 18px 24px;
  }
  .mf-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .mf-plans-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
    gap: 24px;
  }
  .mf-features-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .mf-plans-title {
    font-size: 28px;
  }
  .mf-plans-header {
    margin-bottom: 34px;
  }
}

/* ==========================================================================
   CATEGORY EDUCATION LEVELS VIEW (Exams, Notes, Schemes, etc.)
   Matches screenshot media_1790544272023.png exactly
   ========================================================================== */
.mf-levels-page-wrapper {
  background-color: #ffffff;
  min-height: calc(100vh - 380px);
  padding: 24px 0 60px;
}

.mf-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0 0 18px 0;
  font-size: 14px;
}

.mf-breadcrumb-item {
  display: inline-flex;
  align-items: center;
}

.mf-breadcrumb-item + .mf-breadcrumb-item::before {
  content: "›";
  padding: 0 8px;
  color: #64748b;
  font-size: 15px;
  font-weight: 600;
}

.mf-breadcrumb-item a {
  color: #0284c7;
  text-decoration: none;
  font-weight: 500;
}

.mf-breadcrumb-item a:hover {
  text-decoration: underline;
}

.mf-breadcrumb-item.active {
  color: #475569;
  font-weight: 500;
}

.mf-levels-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 27px;
  font-weight: 800;
  color: #0a1a28;
  letter-spacing: -0.02em;
  margin: 0 0 8px 0;
}

.mf-levels-subtitle {
  font-size: 15px;
  color: #253545;
  margin: 0 0 32px 0;
  line-height: 1.5;
}

.mf-levels-subtitle b,
.mf-levels-subtitle strong {
  font-weight: 700;
  color: #0f172a;
}

.mf-explore-heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 21px;
  font-weight: 800;
  color: #0a1a28;
  letter-spacing: -0.015em;
  margin: 44px 0 22px 0;
}

/* Feature Checkmark Bullet List */
.mf-check-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 32px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mf-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: #1a2a3a;
  line-height: 1.55;
}

.mf-check-list li .mf-check-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

/* 6-Level Grid (2 rows x 3 columns) */
.mf-levels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mf-level-card {
  position: relative;
  background-color: #E0FFFF;
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  text-decoration: none;
  display: block;
}

.mf-level-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(152, 251, 152, 0.9);
}

.mf-level-card-body {
  padding: 22px 20px 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
  box-sizing: border-box;
}

.mf-level-card-text {
  flex: 1;
}

.mf-level-card-title {
  font-family: var(--mf-font-main, 'Plus Jakarta Sans', sans-serif);
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.mf-level-card-desc {
  font-size: 13.5px;
  color: #253545;
  margin: 0;
  line-height: 1.45;
  font-weight: 400;
}

.mf-level-card-icon {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mf-level-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@media (max-width: 960px) {
  .mf-levels-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (max-width: 600px) {
  .mf-levels-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .mf-levels-title {
    font-size: 22px;
  }
  .mf-level-card-icon {
    width: 75px;
    height: 75px;
  }
}

/* ==========================================================================
   EXAM PRODUCT CARDS VIEW (Stage Products: End-Term, Mid-Term, Opener)
   Matches screenshot media_1790548337283.png exactly
   ========================================================================== */
.exam-card { 
  background: #E0FFFF; 
  border: 1px solid rgba(0, 0, 0, 0.06); 
  border-radius: 14px; 
  overflow: hidden; 
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06); 
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease; 
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
} 
.exam-card:hover { 
  transform: translateY(-3px); 
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10); 
  border-color: rgba(0, 0, 0, 0.10); 
} 
.exam-card__header { 
  background: rgba(0, 206, 209, 0.10); 
  border-bottom: 1px solid rgba(0, 0, 0, 0.06); 
  padding: 12px 10px; 
  text-align: center;
} 
.exam-card__subject { 
  letter-spacing: 0.3px; 
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #1a2a3a;
  text-transform: uppercase;
} 
.exam-card__body { 
  padding: 14px 14px 0 14px; 
  display: flex;
  flex-direction: column;
  flex: 1;
} 
.exam-card__title { 
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15.5px; 
  font-weight: 600; 
  text-decoration: none; 
  color: #0b5ed7; 
  line-height: 1.35; 
  margin-bottom: 10px; 
  text-align: center;
  display: block;
} 
.exam-card__title:hover { 
  text-decoration: underline; 
  color: #084298;
} 
.exam-card__price { 
  margin-top: auto; 
  margin-bottom: 10px; 
  font-size: 15px; 
  text-align: center;
  font-weight: 600;
  color: #1a2a3a;
} 
.exam-card__old-price { 
  text-decoration: line-through; 
  color: #777; 
  margin-left: 6px; 
  font-weight: 400;
} 
.exam-card__footer { 
  background: transparent; 
  border-top: 1px solid rgba(0, 0, 0, 0.06); 
  margin-top: 12px; 
  padding: 12px 14px; 
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
} 
.exam-card--all { 
  position: relative; 
  border: 2px solid rgba(0, 206, 209, 0.9); 
  box-shadow: 0 14px 34px rgba(0, 206, 209, 0.22); 
} 
.exam-card--all::before { 
  content: "FULL SET"; 
  position: absolute; 
  top: 8px; 
  right: -48px; 
  width: 160px; 
  text-align: center; 
  background: linear-gradient(180deg, rgba(0, 206, 209, 0.92), rgba(0, 170, 175, 0.92)); 
  color: rgba(255, 255, 255, 0.96); 
  font-weight: 700; 
  font-size: 11px; 
  letter-spacing: 0.9px; 
  text-transform: uppercase; 
  padding: 7px 0; 
  transform: rotate(45deg); 
  transform-origin: center; 
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12); 
  border: 1px solid rgba(255, 255, 255, 0.20); 
  z-index: 2; 
} 
.exam-card--all::after { 
  content: ""; 
  position: absolute; 
  top: 8px; 
  right: -44px; 
  width: 170px; 
  height: 26px; 
  transform: rotate(45deg); 
  transform-origin: center; 
  z-index: 1; 
  pointer-events: none; 
  background: rgba(0, 0, 0, 0.10); 
  clip-path: polygon(0% 0%, 100% 0%, 96% 50%, 100% 100%, 0% 100%, 4% 50%); 
  filter: blur(0.4px); 
  opacity: 0.35; 
} 
.exam-card--all .exam-card__header { 
  background: rgba(0, 206, 209, 0.18); 
} 
.exam-card--all:hover { 
  transform: translateY(-5px); 
  box-shadow: 0 18px 44px rgba(0, 206, 209, 0.26); 
}

/* Button styles matching screenshot media_1790548337283.png */
.exam-card .btn-outline-dark,
.exam-card .btn {
  display: inline-block;
  padding: 6px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  border: 1.5px solid #3a4a5c;
  color: #1a2a3a;
  background-color: transparent;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  min-width: 110px;
  text-align: center;
  box-sizing: border-box;
}
.exam-card .btn-outline-dark:hover,
.exam-card .btn:hover {
  background-color: #f0f4f8;
  border-color: #1a2a3a;
  color: #0a1a28;
}

/* Stage Products Container & Grid */
.mf-stage-header-box {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 20px;
  text-align: center;
  margin-bottom: 24px;
  border-radius: 8px;
}
.mf-stage-header-box h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #0a1a28;
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}
.mf-stage-header-box p {
  font-size: 15px;
  color: #475569;
  margin: 0;
  line-height: 1.5;
}

.mf-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 16px;
  margin-bottom: 36px;
}

@media (max-width: 1200px) {
  .mf-products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 900px) {
  .mf-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
@media (max-width: 580px) {
  .mf-products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ==========================================================================
   NON-EXAM TERM RESOURCE CARDS VIEW (Schemes of Work, Lesson Plans,
   Records of Work, Lesson Notes, Set Books, Curriculum Designs, etc.)
   Clean centered header + 4-column pale-cyan cards with Buy Now / Add to Cart
   ========================================================================== */
.mf-term-header {
  text-align: center;
  max-width: 860px;
  margin: 18px auto 34px auto;
  padding: 0 8px;
}

.mf-term-header__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 29px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 12px 0;
}

.mf-term-header__subtitle {
  font-size: 14.5px;
  color: #4b5563;
  line-height: 1.65;
  margin: 0;
  font-weight: 400;
}

.mf-term-header__subtitle strong {
  color: #1f2937;
  font-weight: 700;
}

.mf-term-products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  margin: 0 0 42px 0;
}

@media (max-width: 1199px) {
  .mf-term-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 860px) {
  .mf-term-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 540px) {
  .mf-term-products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .mf-term-header__title {
    font-size: 23px;
  }
}

.mf-term-card {
  background-color: #e0fbfc;
  border: 1px solid #c2e7ea;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  box-sizing: border-box;
}

.mf-term-card:hover {
  transform: translateY(-3px);
  border-color: #93dce2;
  box-shadow: 0 10px 24px rgba(11, 52, 61, 0.09);
}

.mf-term-card.is-in-cart {
  border-color: #16a34a;
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.14);
}

.mf-term-card__header {
  background-color: #d6f5f6;
  border-bottom: 1px solid #c2e7ea;
  padding: 11px 12px;
  text-align: center;
}

.mf-term-card__subject {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: 0.2px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mf-term-card__body {
  padding: 22px 16px 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.mf-term-card__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  color: #0b4fd6;
  line-height: 1.5;
  text-decoration: none;
  margin: 0 0 18px 0;
  display: block;
  transition: color 0.15s ease;
}

.mf-term-card__title:hover {
  color: #073494;
  text-decoration: underline;
}

.mf-term-card__price {
  margin: auto 0 0 0;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  text-align: center;
  line-height: 1.4;
}

.mf-term-card__old-price {
  color: #94a3b8;
  text-decoration: line-through;
  margin-left: 5px;
  font-weight: 400;
}

.mf-term-card__footer {
  background-color: #d8f6f7;
  border-top: 1px solid #c2e7ea;
  padding: 12px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.mf-term-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  border-radius: 5px;
  border: 1px solid #475569;
  background-color: transparent;
  color: #1e293b;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  box-sizing: border-box;
}

.mf-term-btn:hover {
  background-color: #1e293b;
  border-color: #1e293b;
  color: #ffffff;
}

.mf-term-btn--cart.is-in-cart {
  background-color: #166534;
  border-color: #166534;
  color: #ffffff;
  font-weight: 600;
}

.mf-term-btn--cart.is-in-cart:hover {
  background-color: #14532d;
  border-color: #14532d;
  color: #ffffff;
}

.mf-term-siblings-bar {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.mf-term-siblings-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.mf-term-sibling-pill {
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  transition: all 0.15s ease;
}

.mf-term-sibling-pill:hover {
  background: #e0f2fe;
  border-color: #7dd3fc;
  color: #0369a1;
}

.mf-term-sibling-pill.is-active {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
}

/* ==========================================================================
   SHOPPING CART & CHECKOUT PAGE (Exact match to media_1790570757044.png)
   ========================================================================== */
.mf-cart-page-wrapper {
  padding: 40px 0 80px;
  background-color: #ffffff;
  min-height: calc(100vh - 350px);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .mf-cart-page-wrapper {
    padding: 24px 0 60px;
  }
  .mf-cart-page-wrapper .mf-container {
    padding-left: 14px;
    padding-right: 14px;
  }
}

.mf-cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 48px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

@media (max-width: 992px) {
  .mf-cart-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

/* Left Column: Cart Main */
.mf-cart-main {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.mf-cart-page-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 26px;
  font-weight: 500;
  color: #1e293b;
  margin: 0 0 28px 0;
  letter-spacing: -0.015em;
  line-height: 1.3;
  word-break: break-word;
}

.mf-cart-page-title strong {
  font-weight: 700;
  color: #0f172a;
}

@media (max-width: 640px) {
  .mf-cart-page-title {
    font-size: 20px;
    margin-bottom: 20px;
    line-height: 1.35;
  }
}

.mf-cart-section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 16px 0;
  letter-spacing: -0.01em;
}

/* Table Responsive Container */
.mf-cart-table-responsive {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 24px;
  box-sizing: border-box;
}

.mf-cart-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.mf-cart-table th {
  padding: 12px 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  border-bottom: 1.5px solid #e2e8f0;
  white-space: nowrap;
}

.mf-cart-table td {
  padding: 16px 14px;
  font-size: 14px;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.mf-cart-title-cell {
  min-width: 200px;
}

.mf-cart-item-link {
  color: #2563eb;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.mf-cart-item-link:hover {
  text-decoration: underline;
  color: #1d4ed8;
}

.mf-cart-subject-cell {
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
}

.mf-cart-level-cell {
  font-size: 13.5px;
  color: #475569;
  white-space: nowrap;
}

.mf-cart-category-cell {
  font-size: 13.5px;
  color: #475569;
  white-space: nowrap;
}

.mf-cart-price-cell {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
}

.mf-cart-action-cell {
  text-align: center;
  width: 48px;
}

.mf-cart-remove-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  color: #1e293b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.mf-cart-remove-btn:hover {
  color: #dc2626;
  background-color: #fee2e2;
}

.mf-cart-remove-btn svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   MOBILE-FIRST CARD VIEW FOR CART ITEMS (<= 768px)
   Eliminates all horizontal scrolling, blowout, and right-edge clipping
   ========================================================================== */
@media (max-width: 768px) {
  .mf-cart-table-responsive {
    overflow-x: visible;
    margin-bottom: 20px;
  }

  .mf-cart-table {
    display: block;
    width: 100%;
    border: none;
  }

  .mf-cart-table thead {
    display: none;
  }

  .mf-cart-table tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .mf-cart-table tr {
    display: block;
    position: relative;
    width: 100%;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 14px 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    box-sizing: border-box;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }

  .mf-cart-table td {
    padding: 0;
    border: none;
  }

  /* Remove Button Pinned Top-Right */
  .mf-cart-table td.mf-cart-action-cell {
    position: absolute;
    top: 12px;
    right: 12px;
    width: auto;
    text-align: right;
    z-index: 2;
  }

  .mf-cart-table .mf-cart-remove-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fee2e2;
    border-radius: 8px;
  }

  .mf-cart-table .mf-cart-remove-btn:active {
    transform: scale(0.92);
  }

  .mf-cart-table .mf-cart-remove-btn svg {
    width: 16px;
    height: 16px;
  }

  /* Title Row */
  .mf-cart-table td.mf-cart-title-cell {
    display: block;
    min-width: 0;
    padding: 0 42px 10px 0; /* Clear top-right delete button */
  }

  .mf-cart-table .mf-cart-item-link {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.38;
    display: block;
    word-break: break-word;
  }

  /* Metadata Chips (Subject, Level, Category) */
  .mf-cart-table td.mf-cart-subject-cell,
  .mf-cart-table td.mf-cart-level-cell,
  .mf-cart-table td.mf-cart-category-cell {
    display: inline-block;
    padding: 3px 8px;
    margin: 0 6px 8px 0;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.4;
    border-radius: 6px;
    vertical-align: middle;
    white-space: nowrap;
    max-width: 100%;
    box-sizing: border-box;
  }

  .mf-cart-table td.mf-cart-subject-cell {
    background-color: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #dbeafe;
  }

  .mf-cart-table td.mf-cart-level-cell {
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #dcfce7;
  }

  .mf-cart-table td.mf-cart-category-cell {
    background-color: #faf5ff;
    color: #7e22ce;
    border: 1px solid #f3e8ff;
  }

  /* Price Row (Bottom Row with Label) */
  .mf-cart-table td.mf-cart-price-cell {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed #e2e8f0;
    padding: 10px 0 0 0;
    margin-top: 4px;
    font-size: 16px;
    font-weight: 800;
    color: #116535;
    white-space: nowrap;
  }

  .mf-cart-table td.mf-cart-price-cell::before {
    content: 'Price:';
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
  }
}

/* Discount Callout Box (Pale Turquoise) */
.mf-cart-discount-box {
  background-color: #d1f4fa;
  border: 1px solid #b7edf7;
  border-radius: 8px;
  padding: 16px 22px;
  font-size: 14px;
  line-height: 1.55;
  color: #0b4e5b;
  margin-bottom: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  word-break: break-word;
}

@media (max-width: 640px) {
  .mf-cart-discount-box {
    padding: 14px 16px;
    font-size: 13.5px;
    line-height: 1.5;
    border-radius: 10px;
  }
}

.mf-cart-discount-box del {
  color: #64748b;
  margin: 0 3px;
  text-decoration: line-through;
}

.mf-cart-discount-box strong {
  font-weight: 800;
  color: #043741;
}

/* Continue Shopping Button */
.mf-cart-continue-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
  margin-bottom: 30px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .mf-cart-continue-wrap {
    display: block;
    margin-bottom: 24px;
  }
  .mf-cart-continue-wrap .mf-continue-btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
}

.mf-continue-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #1f2937;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.mf-continue-btn:hover {
  background-color: #111827;
  color: #ffffff;
}

.mf-continue-btn svg {
  width: 17px;
  height: 17px;
  stroke: #ffffff;
}

/* Right Column: Checkout Sidebar */
.mf-cart-sidebar {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.mf-checkout-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 6px 0;
  letter-spacing: -0.015em;
  word-break: break-word;
}

.mf-checkout-subtitle {
  font-size: 13.5px;
  color: #475569;
  margin: 0 0 18px 0;
  line-height: 1.45;
}

.mf-checkout-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .mf-checkout-card {
    padding: 20px 16px;
  }
}

@media (max-width: 480px) {
  .mf-checkout-card {
    padding: 16px 14px;
  }
}

.mf-checkout-error-alert {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 16px;
}

.mf-form-group {
  margin-bottom: 18px;
}

.mf-form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
}


.mf-input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.mf-input-icon-wrap .mf-form-input {
  padding-right: 42px;
}

.mf-input-icon {
  position: absolute;
  right: 12px;
  color: #10b981;
  display: inline-flex;
  align-items: center;
  pointer-events: none;
}

.mf-input-icon svg {
  width: 18px;
  height: 18px;
}

.mf-checkout-note {
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
  margin: 12px 0 20px 0;
}

.mf-checkout-submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #1f2937;
  color: #ffffff;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.mf-checkout-submit-btn:hover {
  background-color: #111827;
}

.mf-checkout-submit-btn svg {
  width: 16px;
  height: 16px;
  stroke: #ffffff;
}

/* Empty Cart State */
.mf-cart-empty-box {
  text-align: center;
  padding: 60px 20px;
  background-color: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  max-width: 600px;
  margin: 20px auto;
}

.mf-empty-cart-icon {
  width: 64px;
  height: 64px;
  color: #94a3b8;
  margin-bottom: 16px;
}

.mf-cart-empty-box h2 {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.mf-cart-empty-box p {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 24px;
}

.mf-btn-browse-exams {
  display: inline-block;
  background-color: #116535;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.mf-btn-browse-exams:hover {
  background-color: #0d4a27;
  color: #ffffff;
}

/* Payment Success State */
.mf-cart-success-box {
  background-color: #ffffff;
  border: 1px solid #d1fae5;
  border-radius: 16px;
  padding: 36px 30px;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.08);
  max-width: 800px;
  margin: 0 auto;
}

.mf-cart-success-header {
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.mf-success-icon {
  width: 60px;
  height: 60px;
  background-color: #d1fae5;
  color: #059669;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.mf-success-icon svg {
  width: 32px;
  height: 32px;
}

.mf-cart-success-header h2 {
  font-size: 24px;
  font-weight: 800;
  color: #065f46;
  margin-bottom: 8px;
}

.mf-success-receipt {
  font-size: 15px;
  color: #1f2937;
  margin-bottom: 6px;
}

.mf-success-note {
  font-size: 14px;
  color: #4b5563;
  margin: 0;
}

.mf-success-downloads-list {
  margin-bottom: 28px;
}

.mf-success-downloads-list h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 14px;
}

.mf-success-download-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 12px;
}

@media (max-width: 640px) {
  .mf-cart-success-box {
    padding: 24px 16px;
  }
  .mf-success-download-item {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 14px !important;
  }
  .mf-success-item-details {
    min-width: 0 !important;
    width: 100%;
    margin-bottom: 10px;
  }
  .mf-success-download-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .mf-success-download-actions .mf-btn-download-now {
    width: 100%;
    justify-content: center;
  }
}

.mf-success-item-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mf-success-item-details strong {
  font-size: 14px;
  color: #1e293b;
}

.mf-success-meta {
  font-size: 12px;
  color: #64748b;
}

.mf-btn-download-now {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #16a34a;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.mf-btn-download-now:hover {
  background-color: #15803d;
  color: #ffffff;
}

.mf-btn-download-now svg {
  width: 16px;
  height: 16px;
}

.mf-success-footer-actions {
  text-align: center;
  margin-top: 20px;
}

/* Responsive Claim Rows for M-Pesa Code Verification */
.mf-inline-claim-row,
.mf-modal-claim-row {
  display: flex;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.mf-inline-claim-row input,
.mf-modal-claim-row input {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
}

.mf-inline-claim-row button,
.mf-modal-claim-row button {
  flex-shrink: 0;
  white-space: nowrap;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .mf-inline-claim-row,
  .mf-modal-claim-row {
    flex-direction: column;
  }
  .mf-inline-claim-row button,
  .mf-modal-claim-row button {
    width: 100%;
    height: 40px;
  }
}

/* STK Push Modal */
.mf-stk-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.mf-stk-modal.is-active {
  display: flex;
}

.mf-stk-modal-card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 36px 30px;
  max-width: 420px;
  width: 100%;
  max-height: min(90vh, 640px);
  overflow-y: auto;
  text-align: center;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.mf-stk-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e2e8f0;
  border-top-color: #16a34a;
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: mfSpin 1s linear infinite;
}

@keyframes mfSpin {
  to { transform: rotate(360deg); }
}

.mf-stk-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
}

.mf-stk-desc {
  font-size: 14px;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 20px;
}

.mf-stk-amount-pill {
  display: inline-block;
  background-color: #f1f5f9;
  color: #0f172a;
  font-weight: 800;
  font-size: 18px;
  padding: 6px 18px;
  border-radius: 9999px;
  margin-bottom: 16px;
}

.mf-stk-countdown {
  font-size: 12.5px;
  color: #94a3b8;
}

/* ==========================================================================
   Subscription Checkout Page & Dedicated M-Pesa Payment Card
   Exact match to design in media_1790698651328.png
   ========================================================================== */
.mf-checkout-page-wrapper {
  background-color: #ffffff;
  min-height: calc(100vh - 160px);
  padding: 48px 20px 80px 20px;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: #111827;
}

.mf-checkout-container {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.mf-checkout-title {
  font-size: 32px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
  margin: 0 0 10px 0;
  line-height: 1.25;
}

.mf-checkout-subtitle {
  font-size: 16px;
  color: #4b5563;
  margin: 0 0 34px 0;
  line-height: 1.5;
}

.mf-checkout-highlight {
  color: #166534;
  font-weight: 700;
}

.mf-checkout-page-wrapper .mf-checkout-card {
  max-width: 580px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #f0f2f5;
  border-radius: 12px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
  padding: 34px 38px 38px 38px;
  text-align: left;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .mf-checkout-page-wrapper .mf-checkout-card {
    padding: 20px 16px;
  }
}

.mf-checkout-card-heading {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 6px 0;
  letter-spacing: -0.01em;
}

.mf-checkout-card-subheading {
  font-size: 13.5px;
  color: #6b7280;
  margin: 0 0 24px 0;
  line-height: 1.45;
}

.mf-checkout-field {
  margin-bottom: 0;
}

.mf-checkout-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.mf-checkout-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14.5px;
  color: #111827;
  background-color: #ffffff;
  box-sizing: border-box;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mf-checkout-input::placeholder {
  color: #9ca3af;
  font-size: 14px;
}

.mf-checkout-input:focus {
  border-color: #166534;
  box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.12);
}

.mf-checkout-hint {
  display: block;
  font-size: 12px;
  color: #9ca3af;
  margin-top: 6px;
  margin-bottom: 20px;
  line-height: 1.4;
}

.mf-checkout-input-wrapper {
  position: relative;
  width: 100%;
}

.mf-checkout-input.has-icon {
  padding-right: 42px;
}

.mf-checkout-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  color: #10b981;
}

.mf-checkout-btn {
  width: 100%;
  height: 46px;
  background-color: #1b6838;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(27, 104, 56, 0.2);
  transition: background-color 0.15s ease, transform 0.1s ease;
  font-family: inherit;
  margin-top: 4px;
}

.mf-checkout-btn:hover {
  background-color: #14532d;
}

.mf-checkout-btn:active {
  transform: scale(0.99);
}

.mf-checkout-btn:disabled {
  background-color: #9ca3af;
  cursor: not-allowed;
  box-shadow: none;
}

.mf-checkout-feedback {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.45;
}

.mf-checkout-feedback.is-error {
  background-color: #fef2f2;
  border: 1px solid #fee2e2;
  color: #991b1b;
}

.mf-checkout-feedback.is-info {
  background-color: #f0fdf4;
  border: 1px solid #dcfce7;
  color: #166534;
}

@media (max-width: 640px) {
  .mf-checkout-page-wrapper {
    padding: 24px 16px 60px 16px;
  }
  .mf-checkout-title {
    font-size: 26px;
  }
  .mf-checkout-subtitle {
    font-size: 14.5px;
    margin-bottom: 24px;
  }
  .mf-checkout-card {
    padding: 24px 20px;
  }
}


/* ==========================================================================
   SET BOOK GUIDES LANDING (Aligned with live https://mwalimufocus.co.ke/setbooks/)
   ========================================================================== */
.mf-sb-header {
  text-align: center;
  margin: 6px 0 32px;
}

.mf-sb-header__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #0a1a28;
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}

.mf-sb-header__subtitle {
  font-size: 15px;
  color: #6c757d;
  margin: 0;
}

.sb-level-section {
  margin-bottom: 2.5rem;
}

.sb-level-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6c757d;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 0.55rem;
  margin: 0 0 1.25rem 0;
}

.sb-lang-block {
  margin-bottom: 1.5rem;
}

.sb-lang-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #94a3b8;
  margin: 0 0 0.75rem 2px;
}

.sb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.sb-card {
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  display: flex;
  text-decoration: none;
  color: inherit;
}

.sb-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.sb-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #5bc0be, #3a86ff);
}

.sb-card.kiswahili::before {
  background: linear-gradient(90deg, #9b5de5, #c77dff);
}

.sb-card__body {
  padding: 1.15rem 1.1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  width: 100%;
}

.sb-card__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a2e;
  line-height: 1.42;
  margin: 0;
  transition: color 0.15s ease;
}

.sb-card:hover .sb-card__title {
  color: #3a86ff;
}

.sb-card.kiswahili:hover .sb-card__title {
  color: #9b5de5;
}

.sb-card__cover {
  flex-shrink: 0;
  width: 48px;
  height: 64px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
}

.sb-card__cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sb-card--coming-soon {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  box-shadow: none;
  cursor: default;
  opacity: 0.86;
}

.sb-card--coming-soon:hover {
  transform: none;
  box-shadow: none;
}

.sb-card--coming-soon::before {
  opacity: 0.45;
}

.sb-card--coming-soon:hover .sb-card__title,
.sb-card.kiswahili.sb-card--coming-soon:hover .sb-card__title {
  color: #334155;
}

.sb-card__title-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.sb-card__soon-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 2px 8px;
  border-radius: 999px;
}

@media (max-width: 960px) {
  .sb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .sb-grid {
    grid-template-columns: 1fr;
  }
  .sb-card__cover {
    width: 52px;
    height: 68px;
  }
}

/* ==========================================================================
   TOPICAL Q&A LANDING (Aligned with live https://mwalimufocus.co.ke/questions-and-answers/)
   ========================================================================== */
.mf-qa-header-box {
  background: linear-gradient(135deg, #ffffff 0%, #f0fffe 100%);
  border: 1px solid rgba(13, 148, 136, 0.12);
  border-radius: 14px;
  padding: 28px 24px;
  margin: 6px 0 2rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.mf-qa-header-box h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #0a1a28;
  margin: 0 0 10px 0;
  letter-spacing: -0.02em;
}

.mf-qa-header-box p {
  font-size: 15px;
  color: #3a4a5c;
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.6;
}

.mf-qa-card {
  display: flex;
  background-color: #E0FFFF;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 20px 20px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: 100%;
  box-sizing: border-box;
}

.mf-qa-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.13);
}

.mf-qa-card.coming-soon {
  opacity: 0.62;
  cursor: not-allowed;
}

.mf-qa-card.coming-soon:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mf-coming-soon-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background-color: #94a3b8;
  color: #ffffff;
  border-radius: 20px;
  padding: 3px 10px;
  margin-top: 6px;
}

/* ==========================================================================
   CLEAN EDITORIAL PAGES (Aligned with live https://mwalimufocus.co.ke/about-us/)
   ========================================================================== */
.mf-editorial-page {
  background: #ffffff;
  padding: 24px 0 64px;
  min-height: 70vh;
}

.mf-editorial-article {
  max-width: 800px;
  margin: 18px auto 0;
  color: #1a2a3a;
  font-size: 15.5px;
  line-height: 1.78;
}

.mf-editorial-article h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 30px;
  font-weight: 800;
  color: #0a1a28;
  text-align: center;
  margin: 0 0 28px 0;
  letter-spacing: -0.02em;
}

.mf-editorial-article h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 21px;
  font-weight: 700;
  color: #0a1a28;
  margin: 28px 0 10px 0;
}

.mf-editorial-article p {
  margin: 0 0 16px 0;
  color: #253545;
}

.mf-editorial-article ul {
  margin: 0 0 18px 0;
  padding-left: 22px;
  color: #253545;
}

.mf-editorial-article li {
  margin-bottom: 8px;
}

.mf-editorial-article a {
  color: #0b5ed7;
  text-decoration: none;
  font-weight: 600;
}

.mf-editorial-article a:hover {
  text-decoration: underline;
}

/* Brand-Green Promo Strip under Main Header (Matches live mwalimufocus.co.ke) */
.mf-promo-bar {
  background-color: #FFC107;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  padding: 6px 16px;
  text-align: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: #1a2a3a;
}

.mf-promo-bar strong {
  font-weight: 800;
}

.mf-promo-bar__btn {
  display: inline-block;
  margin-left: 8px;
  background-color: #1a2a3a;
  color: #ffffff !important;
  font-size: 12.5px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.mf-promo-bar__btn:hover {
  background-color: #1a6e3c;
  color: #ffffff !important;
}

/* Exam Card Brand-Green Buy Now button parity */
.exam-card__footer .btn-buy-now {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #1a6e3c;
  background-color: #1a6e3c;
  color: #ffffff;
  transition: background-color 0.15s ease;
}

.exam-card__footer .btn-buy-now:hover {
  background-color: #145c31;
  border-color: #145c31;
  color: #ffffff;
}
