/* ==========================================================================
   Mesuullogic Theme - Master Stylesheet
   Art Direction inspired by reference: Deep Charcoal, Luminous Orange, 
   Editorial Typography, Layered Floating Cards, African Tech Academy
   ========================================================================== */

/* -------------------------------------------------------------
   1. Design Tokens & Root Variables
   ------------------------------------------------------------- */
:root {
  --color-bg-base: #050505;
  --color-bg-vanta: #050505;
  --color-bg-charcoal: #050505;
  --color-bg-surface: #0e0e0e;
  --color-bg-card-dark: #0a0a0a;
  --color-gold-accent: #ff5520;

  --color-orange-primary: #ff5520;
  --color-orange-hover: #e04414;
  --color-orange-glow: rgba(255, 85, 32, 0.35);
  --color-orange-soft: rgba(255, 85, 32, 0.12);

  --color-white: #ffffff;
  --color-text-white: #ffffff;
  --color-text-light: #f3f4f6;
  --color-text-muted: #9ca3af;
  --color-text-dark: #111827;
  --color-text-subtle: #6b7280;

  --color-border-subtle: rgba(255, 255, 255, 0.08);
  --color-border-orange: rgba(255, 85, 32, 0.3);

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --container-max-width: 1440px;
  --header-height: 86px;
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  max-width: 100vw;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-bg-base);
  color: var(--color-text-light);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  max-width: 100vw;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container-fluid {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 3.5vw, 3.5rem);
  padding-right: clamp(1.25rem, 3.5vw, 3.5rem);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.text-center { text-align: center; }

/* -------------------------------------------------------------
   2. Navigation Header (Matching Reference Image)
   ------------------------------------------------------------- */
.reference-nav-header {
  position: relative;
  background-color: var(--color-bg-base);
  z-index: 1000;
  padding: 1.25rem 0 0.85rem;
}

/* Admin bar offset: Push header down so it never gets covered by admin bar */
body.admin-bar .site-header.reference-nav-header {
  margin-top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .site-header.reference-nav-header {
    margin-top: 46px;
  }
}

/* Customizer preview top breathable padding */
.wp-customizer .site-header.reference-nav-header,
body.customize-support .site-header.reference-nav-header {
  padding-top: 1.5rem;
}

.reference-nav-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  position: relative;
}

.site-branding {
  position: relative;
  display: flex;
  align-items: center;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.site-logo-img {
  height: 34px;
  width: auto;
  max-width: 195px;
  object-fit: contain;
  display: block;
}

.mesuullogic-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.1;
}

.logo-subline {
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--color-orange-primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Quarter-circle geometric accent from reference (hidden for clean minimal layout) */
.nav-geometric-accent {
  display: none;
}

/* Nav Menu Links */
.main-navigation .nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2.75rem;
}

.main-navigation .nav-menu li a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.925rem;
  font-weight: 500;
  color: #cbd5e1;
  transition: color 0.2s ease;
}

.nav-arrow {
  font-size: 0.85rem;
  color: #94a3b8;
  transition: transform 0.2s ease, color 0.2s ease;
}

.main-navigation .nav-menu li a:hover {
  color: #ffffff;
}

.main-navigation .nav-menu li a:hover .nav-arrow {
  color: var(--color-orange-primary);
  transform: translate(2px, -2px);
}

.main-navigation .nav-menu li.current-menu-item > a,
.main-navigation .nav-menu li.current_page_item > a {
  color: #ffffff;
  font-weight: 700;
  position: relative;
}

.main-navigation .nav-menu li.current-menu-item > a::after,
.main-navigation .nav-menu li.current_page_item > a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-orange-primary);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(255, 85, 32, 0.6);
}

.main-navigation .nav-menu li.current-menu-item > a .nav-arrow,
.main-navigation .nav-menu li.current_page_item > a .nav-arrow {
  color: var(--color-orange-primary);
}

.mobile-nav-menu li.current-menu-item > a {
  color: var(--color-orange-primary) !important;
  font-weight: 700;
}

/* Enroll Now Button */
.btn-enroll {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-orange-primary);
  color: #ffffff !important;
  font-size: 0.925rem;
  font-weight: 700;
  padding: 0.65rem 1.45rem;
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
  box-shadow: 0 4px 18px rgba(255, 85, 32, 0.3);
}

.btn-enroll:hover {
  background-color: var(--color-orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(255, 85, 32, 0.45);
}

.btn-arrow {
  font-size: 1rem;
}

.header-divider-line {
  width: 100%;
  height: 1px;
  background: var(--color-border-subtle);
  margin-top: 0.5rem;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger-box {
  width: 24px;
  height: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-inner,
.hamburger-box::before,
.hamburger-box::after {
  content: '';
  width: 100%;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.2s ease;
}

/* Mobile Drawer Overlay */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  visibility: hidden;
  transition: visibility 0.3s ease;
}

.mobile-drawer.is-open { visibility: visible; }

.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-drawer.is-open .mobile-drawer-backdrop { opacity: 1; }

.mobile-drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  width: min(85vw, 360px);
  height: 100%;
  background: var(--color-bg-surface);
  border-left: 1px solid var(--color-border-subtle);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-drawer.is-open .mobile-drawer-content { transform: translateX(0); }

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.mobile-drawer-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border-subtle);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-nav-menu {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.mobile-nav-menu li { margin-bottom: 1.25rem; }
.mobile-nav-menu li a {
  font-size: 1.15rem;
  font-weight: 600;
  color: #f1f5f9;
}

.mobile-drawer-footer { margin-top: auto; }
.mobile-drawer-contact-info {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* -------------------------------------------------------------
   3. Mesuullogic Reference Hero Section (Single Screen at a Glance)
   ------------------------------------------------------------- */
html, body {
  background-color: #000000;
}

body.home {
  background-color: #000000;
  min-height: 100vh;
}

/* Hero Sticky Scroll Track driving the 40-frame animation */
.hero-scroll-track {
  position: relative;
  height: 220vh;
  background-color: #000000;
  width: 100%;
}

/* Full-Screen Sticky Viewport Stage */
.hero-sticky-stage {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #000000;
  z-index: 5;
}

body.admin-bar .hero-sticky-stage {
  top: 32px;
  height: calc(100vh - 32px);
}

@media screen and (max-width: 782px) {
  body.admin-bar .hero-sticky-stage {
    top: 46px;
    height: calc(100vh - 46px);
  }
}

/* Full-Screen Sticky Canvas */
.hero-canvas-sticky-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.hero-scroll-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Seamless Vignette - Blends Canvas Edges into Vanta Black */
.hero-canvas-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: 
    radial-gradient(ellipse at 50% 45%, transparent 45%, rgba(5, 5, 5, 0.6) 75%, #050505 98%),
    linear-gradient(to top, #050505 0%, transparent 15%),
    linear-gradient(to bottom, #050505 0%, transparent 12%),
    linear-gradient(to right, #050505 0%, transparent 12%),
    linear-gradient(to left, #050505 0%, transparent 12%);
}

/* Fixed Frosted Glass Header over Scroll Track */
.site-header.reference-nav-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.15rem 0 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.admin-bar .site-header.reference-nav-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header.reference-nav-header {
    top: 46px;
  }
}

/* Masteriyo Account & LMS Fixed Header Clearance */
body.masteriyo-account-page .page-banner,
body.mto-account-page .page-banner,
body.page-template-page-account .page-banner,
body.page-account .page-banner {
  display: none !important;
}

body.masteriyo-account-page article,
body.mto-account-page article,
body.page-template-page-account article,
body.masteriyo-account-page .site-content-area,
body.mto-account-page .site-content-area,
body.masteriyo-account-page .entry-content,
body.mto-account-page .entry-content,
body.masteriyo-account-page .standard-page-content,
body.mto-account-page .standard-page-content {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  border: none !important;
}

#masteriyo-account-page,
#masteriyo-account,
.masteriyo-account-dashboard,
body.mto-account-page #primary-content,
body.mto-account-page #main {
  padding-top: calc(var(--header-height, 86px) + 24px) !important;
  box-sizing: border-box !important;
}

body.admin-bar #masteriyo-account-page,
body.admin-bar #masteriyo-account,
body.admin-bar .masteriyo-account-dashboard,
body.admin-bar.mto-account-page #primary-content,
body.admin-bar.mto-account-page #main {
  padding-top: calc(var(--header-height, 86px) + 32px + 24px) !important;
}

@media screen and (max-width: 782px) {
  #masteriyo-account-page,
  #masteriyo-account,
  .masteriyo-account-dashboard,
  body.mto-account-page #primary-content,
  body.mto-account-page #main {
    padding-top: calc(var(--header-height, 86px) + 16px) !important;
  }

  body.admin-bar #masteriyo-account-page,
  body.admin-bar #masteriyo-account,
  body.admin-bar .masteriyo-account-dashboard,
  body.admin-bar.mto-account-page #primary-content,
  body.admin-bar.mto-account-page #main {
    padding-top: calc(var(--header-height, 86px) + 46px + 16px) !important;
  }
}

/* ========================================================
   UNIVERSAL HERO COMPONENT STYLES (Applies to all viewports)
   ======================================================== */
.front-page-wrapper {
  position: relative;
  background-color: #000000;
}

.mesuullogic-hero-section {
  position: relative;
}

/* 1. Left Badges & Social Proof */
.hero-top-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.badge-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background-color: var(--color-orange-primary);
  border-radius: var(--radius-xs);
  color: #ffffff;
  flex-shrink: 0;
}

.badge-text-box {
  display: flex;
  flex-direction: column;
  font-size: 0.725rem;
  color: #cbd5e1;
  line-height: 1.25;
}

.badge-text-box strong { color: #ffffff; font-weight: 600; }

.circuit-connector-left {
  display: flex;
  align-items: center;
  margin-bottom: 0.65rem;
}

.circuit-dot {
  width: 6px;
  height: 6px;
  background: var(--color-orange-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-orange-primary);
}

.circuit-line {
  height: 1px;
  width: 90px;
  background: linear-gradient(90deg, rgba(255, 85, 32, 0.6) 0%, transparent 100%);
  margin-left: 6px;
}

.hero-social-proof {
  margin-bottom: 0;
}

.proof-avatars-row {
  display: flex;
  align-items: center;
  margin-bottom: 0.35rem;
}

.avatar-circle {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid #000000;
  margin-right: -8px;
}

.avatar-circle img { width: 100%; height: 100%; object-fit: cover; }

.proof-number {
  font-size: clamp(1.85rem, 2.5vw, 2.4rem);
  font-weight: 600;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 0.15rem;
}

.proof-label {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

/* 2. Orange Programs Card */
.hero-orange-card {
  background-color: var(--color-orange-primary);
  color: #ffffff;
  border-radius: var(--radius-xs);
  padding: 0.95rem 1rem 0.75rem;
  width: 100%;
  box-shadow: 0 12px 35px rgba(255, 85, 32, 0.35);
  box-sizing: border-box;
}

.orange-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.big-metric {
  font-size: clamp(1.75rem, 2.2vw, 2rem);
  font-weight: 600;
  line-height: 1;
  color: #ffffff;
  letter-spacing: -0.03em;
  margin-bottom: 0.15rem;
}

.metric-caption {
  font-size: 0.7rem;
  font-weight: 400;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
}

.orange-card-arrow-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #ffffff;
  color: var(--color-orange-primary);
  border-radius: var(--radius-xs);
  font-size: 0.9rem;
  font-weight: 600;
  flex-shrink: 0;
}

.orange-card-person-wrap {
  width: 100%;
  height: clamp(75px, 11vh, 105px);
  border-radius: var(--radius-xs);
  overflow: hidden;
  margin-bottom: 0.45rem;
  background-color: #1a0f0a;
}

.orange-person-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.orange-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.725rem;
  font-weight: 600;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.instructor-name { font-weight: 600; color: #ffffff; }
.instructor-experience { font-size: 0.7rem; font-weight: 400; color: rgba(255, 255, 255, 0.85); }

/* 3. Overlapping White Card */
.overlapping-white-card {
  background: #ffffff;
  color: var(--color-text-dark);
  border-radius: var(--radius-xs);
  padding: 0.75rem 1.15rem;
  display: flex;
  align-items: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  width: 100%;
  box-sizing: border-box;
}

.card-left-col {
  flex: 1.2;
  display: flex;
  flex-direction: column;
}

.white-card-title {
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.2rem;
}

.white-card-copy {
  font-size: 0.725rem;
  font-weight: 400;
  color: #4b5563;
  line-height: 1.35;
  margin: 0 0 0.5rem;
  max-width: 290px;
}

.btn-black-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: #000000;
  color: #ffffff !important;
  font-size: 0.725rem;
  font-weight: 600;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-xs);
  align-self: flex-start; /* Original left-aligned button layout */
}

.white-card-divider {
  width: 1px;
  height: 55px;
  background-color: #e5e7eb;
  margin: 0 0.95rem;
  flex-shrink: 0;
}

.card-right-col { flex: 1; }

.step-indicator {
  font-size: 0.7rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.2rem;
  letter-spacing: 0.04em;
}

.step-title {
  font-size: 0.925rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.2rem;
  line-height: 1.25;
}

.step-copy {
  font-size: 0.725rem;
  font-weight: 400;
  color: #6b7280;
  line-height: 1.35;
  margin: 0;
}

/* 4. Right Editorial Typography */
.circuit-connector-right {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.circuit-connector-right .circuit-dot { width: 6px; height: 6px; }
.circuit-connector-right .circuit-line { width: 75px; }

.stacked-editorial-title {
  display: flex;
  flex-direction: column;
  font-size: clamp(1.85rem, 2.7vw, 2.8rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.title-group-upper {
  display: flex;
  flex-direction: column;
}

.hero-supporting-title {
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  font-weight: 500;
  color: #f3f4f6;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.accent-italic {
  font-style: italic;
  font-weight: 600;
  color: var(--color-orange-primary);
}

.hero-editorial-copy {
  font-size: 0.8rem;
  font-weight: 400;
  color: #a1a1aa;
  line-height: 1.45;
  max-width: 330px;
  margin: 0 0 0.5rem;
}

.hero-course-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0;
}

.course-pill {
  font-size: 0.68rem;
  font-weight: 500;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-xs);
}

/* 5. Video Demo Feature */
.hero-video-demo-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.video-action-cluster {
  display: flex;
  align-items: center;
  position: relative;
  flex-shrink: 0;
}

.play-btn-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-orange-primary);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(255, 85, 32, 0.45);
  z-index: 2;
}

.mentor-avatar-mini {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #000000;
  margin-left: -8px;
  z-index: 1;
}

.mentor-avatar-mini img { width: 100%; height: 100%; object-fit: cover; }

.video-text-content { display: flex; flex-direction: column; }

.video-explainer {
  font-size: 0.75rem;
  font-weight: 400;
  color: #94a3b8;
  line-height: 1.35;
  margin: 0 0 0.25rem;
}

.video-explainer strong { color: #ffffff; font-weight: 600; }

.view-demo-link {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-transform: uppercase;
}

/* Minimal Footer at document end */
.minimal-landing-footer {
  position: relative;
  width: 100%;
  z-index: 20;
  padding: 1.5rem clamp(1.5rem, 3.5vw, 4.5rem);
  height: auto;
  background: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
}

.footer-minimal-inner {
  font-size: 0.7rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #64748b;
}

.footer-minimal-inner strong { color: #cbd5e1; font-weight: 600; }
.footer-legal-links a { color: #64748b; font-size: 0.7rem; }
.footer-legal-links a:hover { color: #ffffff; }
.footer-legal-links .sep { margin: 0 0.4rem; color: #475569; }


/* Full-width header container matching hero edges */
.site-header .container-fluid {
  max-width: 100% !important;
  width: 100%;
  padding-left: clamp(1.5rem, 3.5vw, 4rem);
  padding-right: clamp(1.5rem, 3.5vw, 4rem);
}

/* ========================================================
   DESKTOP VIEWPORT GRID (>= 1025px)
   Pinned unified 3-column stage seen at a glance
   Left is left-sided, right is right-sided, middle is centered
   ======================================================== */
@media (min-width: 1025px) {
  .mesuullogic-hero-section {
    padding: 0;
  }

  .hero-viewport-container {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(280px, 340px) 1fr minmax(280px, 340px);
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 0.4rem 2rem;
    padding: calc(52px + 0.5rem) clamp(1.5rem, 3.5vw, 4rem) 48px;
    max-width: 100% !important;
    width: 100%;
    min-height: 0;
    box-sizing: border-box;
    position: relative;
    z-index: 5;
  }

  .hero-stage-grid,
  .hero-bottom-shelf-grid {
    display: contents;
  }

  /* LEFT-SIDED: Left Column flush to left margin */
  .hero-col-left {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
    justify-self: start;
    width: 100%;
    margin-bottom: 0.35rem;
  }

  .bottom-shelf-left {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
    justify-self: start;
    width: 100%;
  }

  /* CENTERED: Middle Column with Student and White Card centered */
  .hero-col-center {
    grid-column: 2;
    grid-row: 1;
    pointer-events: none;
  }

  .bottom-shelf-center {
    grid-column: 2;
    grid-row: 2;
    align-self: end;
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .bottom-shelf-center .overlapping-white-card {
    max-width: 580px;
    width: 100%;
    margin: 0 auto;
  }

  /* RIGHT-SIDED: Right Column flush to right margin with right-aligned elements */
  .hero-col-right {
    grid-column: 3;
    grid-row: 1;
    align-self: end;
    justify-self: end;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    margin-bottom: 0.35rem;
  }

  .hero-col-right .circuit-connector-right {
    display: flex;
    flex-direction: row-reverse;
    margin-left: auto;
    margin-bottom: 0.5rem;
  }

  .hero-col-right .circuit-connector-right .circuit-line {
    background: linear-gradient(270deg, rgba(255, 85, 32, 0.6) 0%, transparent 100%);
    margin-left: 0;
    margin-right: 6px;
  }

  .hero-col-right .stacked-editorial-title {
    font-size: clamp(2.2rem, 2.7vw, 2.85rem);
    font-weight: 800;
    line-height: 0.94;
    width: 100%;
    align-items: flex-end;
    text-align: right;
  }

  .hero-col-right .hero-supporting-title {
    text-align: right;
    width: 100%;
  }

  .hero-col-right .hero-editorial-copy {
    text-align: right;
    margin-left: auto;
    margin-right: 0;
  }

  .hero-col-right .hero-course-pills {
    justify-content: flex-end;
    width: 100%;
  }

  .bottom-shelf-right {
    grid-column: 3;
    grid-row: 2;
    align-self: center;
    justify-self: end;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding-bottom: 0;
    margin-bottom: 0.35rem;
  }

  .bottom-shelf-right .hero-video-demo-card {
    width: fit-content;
    margin-left: auto;
  }
}


/* ========================================================
   TABLET & MOBILE VIEWPORT (< 1025px)
   Sticky pinned hero with streamlined, compact content
   ======================================================== */
@media (max-width: 1024px) {
  body.home {
    min-height: 100vh;
  }

  /* Hero scroll track on tablet & mobile */
  .hero-scroll-track {
    position: relative;
    height: 200vh;
    background-color: #000000;
    width: 100%;
  }

  /* Pinned Viewport Stage */
  .hero-sticky-stage {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #000000;
    box-sizing: border-box;
    z-index: 5;
  }

  body.admin-bar .hero-sticky-stage {
    top: 32px;
    height: calc(100vh - 32px);
  }

  @media screen and (max-width: 782px) {
    body.admin-bar .hero-sticky-stage {
      top: 46px;
      height: calc(100vh - 46px);
    }
  }

  /* Compact mobile header to maximize viewport real estate */
  .site-header.reference-nav-header {
    padding: 0.65rem 0 0.55rem;
  }

  .logo-text {
    font-size: 1.15rem;
  }

  .logo-subline {
    font-size: 0.65rem;
  }

  .mesuullogic-mark {
    width: 32px;
    height: 32px;
  }

  .mesuullogic-mark svg {
    width: 20px;
    height: 20px;
  }

  .site-logo-img {
    height: 25px;
    max-width: 140px;
  }

  /* Header Actions on Mobile: Show Enroll Now CTA button + Hamburger */
  .main-navigation {
    display: none !important;
  }

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

  .btn-enroll {
    display: inline-flex !important;
    align-items: center;
    gap: 0.35rem;
    background-color: var(--color-orange-primary);
    color: #ffffff !important;
    font-size: clamp(0.72rem, 2.5vw, 0.8rem);
    font-weight: 700;
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-xs);
    box-shadow: 0 4px 14px rgba(255, 85, 32, 0.35);
    white-space: nowrap;
    text-decoration: none;
  }

  .btn-enroll .btn-arrow {
    font-size: 0.85rem;
  }

  .mobile-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0.35rem;
  }

  .hero-canvas-sticky-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
  }

  .hero-viewport-container {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Anchors all hero content to bottom on mobile */
    gap: 0.45rem;
    box-sizing: border-box;
  }

  /* Stage Grid: Positioned right on top of the white card */
  .hero-stage-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: auto;
    margin-bottom: 0;
  }

  /* Hide left badge and social proof on mobile so it doesn't clutter */
  .hero-col-left {
    display: none;
  }

  .hero-col-center {
    display: none; /* Open center: canvas student is clearly visible */
  }

  /* Right column contains the increased-size hero headline and content */
  .hero-col-right {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
  }

  .circuit-connector-right {
    display: none;
  }

  /* Headline on Mobile: EMPOWER YOUR on line 1, FUTURE on line 2 spanning text width */
  .stacked-editorial-title {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 0.35rem;
  }

  .title-group-upper {
    display: flex !important;
    flex-direction: row !important;
    align-items: baseline;
    gap: 0.38rem;
    font-size: clamp(1.35rem, 5.2vw, 1.75rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.95);
  }

  .title-group-upper .title-row {
    display: inline-block !important;
    font-size: inherit !important;
    font-weight: inherit !important;
  }

  .title-row-future {
    display: block !important;
    width: 100%;
    font-size: clamp(2.85rem, 11.5vw, 4rem);
    font-weight: 900;
    line-height: 0.88;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.95);
    margin-bottom: 0.15rem;
  }

  /* Supporting Title on Mobile: Become a global talent */
  .hero-supporting-title {
    font-size: clamp(1.1rem, 4vw, 1.35rem);
    font-weight: 700;
    margin-bottom: 0.3rem;
    line-height: 1.22;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
  }

  /* Readable Description Copy on Mobile */
  .hero-editorial-copy {
    font-size: clamp(0.85rem, 3.1vw, 0.96rem);
    font-weight: 500;
    color: #ffffff;
    line-height: 1.45;
    max-width: 480px;
    margin: 0 0 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.95), 0 4px 14px rgba(0, 0, 0, 0.98);
  }

  /* Smaller Course Pills on Mobile */
  .hero-course-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.28rem;
    margin-bottom: 0.45rem;
  }

  .course-pill {
    font-size: clamp(0.6rem, 2.1vw, 0.68rem);
    padding: 0.16rem 0.48rem;
    background: rgba(15, 15, 15, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-weight: 600;
    letter-spacing: 0.01em;
  }

  /* Bottom Shelf: Streamlined and fully unclipped */
  .hero-bottom-shelf-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 0;
    margin-bottom: 34px;
  }

  /* Hide orange card & video demo on mobile so screen is uncluttered */
  .bottom-shelf-left {
    display: none;
  }

  .bottom-shelf-right {
    display: none;
  }

  /* White Card centered at bottom */
  .bottom-shelf-center {
    width: 100%;
    margin: 0;
  }

  .overlapping-white-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: var(--radius-xs);
    padding: 0.65rem 0.95rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
    width: 100%;
    box-sizing: border-box;
  }

  .card-left-col {
    flex: 1.15;
  }

  .white-card-title {
    font-size: clamp(0.84rem, 2.8vw, 0.95rem);
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.015em;
    line-height: 1.2;
    margin: 0 0 0.15rem;
  }

  .white-card-copy {
    font-size: clamp(0.66rem, 2.2vw, 0.74rem);
    font-weight: 400;
    color: #4b5563;
    line-height: 1.28;
    margin: 0 0 0.35rem;
    max-width: 100%;
  }

  .btn-black-pill {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.28rem 0.75rem;
    border-radius: var(--radius-xs);
    gap: 0.3rem;
  }

  .white-card-divider {
    width: 1px;
    height: 48px;
    background-color: #e5e7eb;
    margin: 0 0.75rem;
    flex-shrink: 0;
  }

  .card-right-col {
    flex: 1;
  }

  .step-indicator {
    font-size: 0.64rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.1rem;
    letter-spacing: 0.04em;
  }

  .step-title {
    font-size: clamp(0.78rem, 2.6vw, 0.88rem);
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.15rem;
    line-height: 1.2;
  }

  .step-copy {
    font-size: clamp(0.66rem, 2.2vw, 0.74rem);
    font-weight: 400;
    color: #6b7280;
    line-height: 1.28;
    margin: 0;
  }

  /* Minimal Footer at document end */
  .minimal-landing-footer {
    position: relative;
    width: 100%;
    z-index: 20;
    height: auto;
    padding: 1.25rem clamp(0.75rem, 2.5vw, 1.5rem);
    background: #000000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .footer-minimal-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    font-size: 0.8rem;
    line-height: 1.5;
    text-align: center;
  }

  .footer-copyright {
    white-space: normal;
    text-align: center;
    color: #94a3b8;
  }

  .footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.35rem 0.65rem;
  }

  .footer-legal-links a {
    font-size: 0.8rem;
    color: #cbd5e1;
    padding: 0.2rem 0.35rem;
  }

  .footer-legal-links a:hover {
    color: var(--color-orange-primary);
  }

  .footer-legal-links .sep {
    color: #475569;
  }
}


/* -------------------------------------------------------------
   5. Subsequent Sections (Services, Stats, Portfolio, etc.)
   Updated to Mesuullogic Brand Aesthetics
   ------------------------------------------------------------- */
.section-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 1rem;
  background: var(--color-orange-soft);
  border: 1px solid var(--color-border-orange);
  border-radius: var(--radius-full);
  color: var(--color-orange-primary);
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.section-title {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0 0 1rem;
}

.section-description {
  font-size: 1.125rem;
  color: #94a3b8;
  line-height: 1.7;
  margin: 0;
}

.section-header {
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

/* Services / Programs Grid */
.services-section {
  padding: 6.5rem 0;
  background: #0f0a07;
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: #140e0b;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: var(--color-border-orange);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 85, 32, 0.15);
}

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

.service-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--color-orange-soft);
  border: 1px solid var(--color-border-orange);
  color: var(--color-orange-primary);
}

.service-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-orange-primary);
}

.service-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.85rem;
}

.service-desc {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.65;
  margin: 0 0 1.5rem;
}

.service-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.service-features-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: #cbd5e1;
}

.service-features-list li .icon-check {
  color: var(--color-orange-primary);
}

.service-card-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-orange-primary);
}

/* Stats Section */
.stats-section {
  padding: 6.5rem 0;
}

.stats-banner {
  background: #140e0b;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  padding: 3.5rem 2.5rem;
  margin-bottom: 5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  text-align: center;
}

.stat-number {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.stat-plus, .stat-percent, .stat-x, .stat-ms {
  color: var(--color-orange-primary);
}

.stat-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 0.4rem;
}

.stat-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0;
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.advantage-card {
  background: #140e0b;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  padding: 2.5rem 2rem;
}

.adv-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--color-orange-soft);
  color: var(--color-orange-primary);
  margin-bottom: 1.5rem;
}

.advantage-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.75rem;
}

.advantage-card p {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.65;
  margin: 0;
}

/* Portfolio Section */
.portfolio-section {
  padding: 6.5rem 0;
  background: #0f0a07;
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.portfolio-card {
  background: #140e0b;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.portfolio-cat {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-orange-primary);
}

.portfolio-metric-badge {
  background: var(--color-orange-soft);
  color: var(--color-orange-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.portfolio-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0.85rem 0 1rem;
}

.portfolio-desc {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.65;
  margin: 0 0 1.5rem;
}

.tag-pill {
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-right: 0.4rem;
}

/* Testimonials */
.testimonials-section { padding: 6.5rem 0; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: #140e0b;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  padding: 2.25rem;
}

.testimonial-stars { color: #f59e0b; margin-bottom: 1.25rem; }
.testimonial-quote {
  font-size: 1rem;
  font-style: italic;
  color: #e2e8f0;
  line-height: 1.7;
  margin: 0 0 2rem;
}

.author-avatar-initial {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-orange-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.author-name { font-size: 1rem; font-weight: 700; color: #ffffff; }
.author-role { font-size: 0.825rem; color: #94a3b8; }

/* FAQ Section */
.faq-section {
  padding: 6.5rem 0;
  background: #0f0a07;
  border-top: 1px solid var(--color-border-subtle);
}

.faq-accordion-wrap {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: #140e0b;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item.is-active {
  border-color: var(--color-border-orange);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 1.75rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
}

.faq-trigger .faq-icon {
  color: var(--color-orange-primary);
  transition: transform 0.2s ease;
}

.faq-item.is-active .faq-trigger .faq-icon {
  transform: rotate(180deg);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-content { padding: 0 1.75rem 1.5rem; }
.faq-content p {
  margin: 0;
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.7;
}

/* CTA & Contact Form */
.cta-section { padding: 6.5rem 0; }
.cta-banner-card {
  background: #140e0b;
  border: 1px solid var(--color-border-orange);
  border-radius: var(--radius-sm);
  padding: 4rem 3.5rem;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 3.5rem;
}

.cta-title {
  font-size: clamp(2rem, 3.5vw, 2.65rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin: 0 0 1.25rem;
}

.cta-description {
  font-size: 1.05rem;
  color: #94a3b8;
  line-height: 1.7;
  margin: 0 0 2rem;
}

.guarantee-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #cbd5e1;
  margin-bottom: 0.65rem;
}

.guarantee-icon { color: var(--color-orange-primary); }

.contact-card-form {
  background: #0c0806;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  padding: 2.25rem 2rem;
}

.form-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1.5rem;
}

.form-group { margin-bottom: 1.15rem; }
.form-group label {
  display: block;
  font-size: 0.825rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #140e0b;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-xs);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.925rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-orange-primary);
  box-shadow: 0 0 0 3px rgba(255, 85, 32, 0.2);
}

.btn-primary {
  background-color: var(--color-orange-primary);
  color: #ffffff !important;
  font-weight: 700;
  border-radius: var(--radius-xs);
  box-shadow: 0 4px 18px rgba(255, 85, 32, 0.35);
  border: none;
  cursor: pointer;
  padding: 0.85rem 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.btn-primary:hover {
  background-color: var(--color-orange-hover);
  transform: translateY(-1px);
}

.btn-block { width: 100%; }

.site-footer {
  background: #080504;
  border-top: 1px solid var(--color-border-subtle);
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-bio {
  font-size: 0.925rem;
  color: #94a3b8;
  line-height: 1.65;
  margin: 1.25rem 0 1.5rem;
}

.footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 0.85rem;
  background: var(--color-orange-soft);
  border: 1px solid var(--color-border-orange);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-orange-primary);
}

.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-orange-primary);
}

.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1.25rem;
}

.footer-links, .footer-contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links li a {
  font-size: 0.9rem;
  color: #94a3b8;
}

.footer-links li a:hover {
  color: var(--color-orange-primary);
}

.footer-contact-info li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #94a3b8;
}

.contact-icon { color: var(--color-orange-primary); }

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

.footer-legal-links a { color: #64748b; margin: 0 0.5rem; }
.footer-legal-links a:hover { color: #cbd5e1; }

.back-to-top-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border-subtle);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.back-to-top-btn:hover {
  background: var(--color-orange-primary);
}

/* -------------------------------------------------------------
   6. Responsive Layout Breakpoints
   ------------------------------------------------------------- */
@media (max-width: 1200px) {
  .hero-stage {
    grid-template-columns: 32% 38% 30%;
  }
  .hero-bottom-overlapping-card-wrap {
    margin: -40px auto 0 10%;
    max-width: 760px;
  }
}

@media (max-width: 1024px) {
  .hero-stage {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-col-center {
    order: -1;
  }
  .hero-bottom-overlapping-card-wrap {
    margin: 2rem auto 0;
    max-width: 100%;
  }
  .services-grid, .portfolio-grid, .testimonials-grid, .stats-grid, .advantage-grid, .cta-grid, .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .main-navigation {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .nav-geometric-accent {
    display: none;
  }
  .services-grid, .portfolio-grid, .testimonials-grid, .stats-grid, .advantage-grid, .cta-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
  }
}

/* ==========================================================================
   4. Our Programs Section (Black Editorial Grid & Typographic Cloud)
   ========================================================================== */
.programs-editorial-section {
  position: relative;
  background-color: #000000;
  color: #ffffff;
  padding: clamp(5.5rem, 10vh, 9rem) 0 clamp(6rem, 11vh, 10rem);
  overflow: hidden;
  width: 100%;
  z-index: 10;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Subtle Technical Engineering Grid on Black */
.programs-grid-texture {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.065) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.065) 1px, transparent 1px);
  background-size: 58px 58px;
  pointer-events: none;
  z-index: 1;
}

.programs-container {
  position: relative;
  z-index: 2;
  max-width: 100% !important;
  width: 100%;
  padding-left: clamp(1.5rem, 4vw, 4.5rem);
  padding-right: clamp(1.5rem, 4vw, 4.5rem);
  box-sizing: border-box;
}

/* Top Editorial Header Row */
.programs-header-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: start;
  gap: 3.5rem;
  margin-bottom: clamp(4rem, 7vh, 6.5rem);
}

.programs-eyebrow {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: #cbd5e1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.programs-main-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.2rem, 3.8vw, 3.5rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0;
}

.programs-header-right {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  padding-top: 2.25rem;
}

.programs-lead-copy,
.programs-secondary-copy {
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.68;
  color: #a1a1aa;
  margin: 0;
  max-width: 520px;
}

/* Typographic Cloud Stage */
.programs-cloud-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.5rem 0;
}

/* Cloud Rows */
.cloud-row {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  margin-bottom: clamp(0.35rem, 0.9vh, 0.85rem);
}

.cloud-row-top {
  transform: translateX(-4%);
}

.cloud-row-mid-upper {
  transform: translateX(8%);
}

.cloud-row-centerpiece {
  transform: none;
  position: relative;
  z-index: 5;
}

.cloud-row-mid-lower {
  transform: translateX(-5%);
}

.cloud-row-bottom {
  transform: translateX(6%);
  margin-bottom: 0;
}

/* Cluster Wrappers for Terms & Nested Badges */
.cluster-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.marketing-cluster {
  gap: clamp(0.6rem, 1.2vw, 1.25rem);
}

.centerpiece-cluster {
  gap: clamp(0.5rem, 1.6vw, 1.75rem);
  position: relative;
  z-index: 5;
}

.creative-cluster {
  gap: clamp(0.75rem, 2vw, 2.25rem);
}

/* Terms Typography */
.cloud-term {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 5.5rem);
  letter-spacing: -0.02em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.42);
  transition: all 0.35s ease;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.cloud-term:hover {
  color: #ffffff;
  transform: scale(1.02);
  text-shadow: 0 0 28px rgba(255, 255, 255, 0.35);
}

/* Main Centerpiece: Analytics & Economics */
.cloud-term-hero {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.8rem, 7.2vw, 7.2rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  cursor: pointer;
  user-select: none;
  transition: transform 0.35s ease, text-shadow 0.35s ease;
  white-space: nowrap;
}

.cloud-term-hero:hover {
  transform: scale(1.02);
  text-shadow: 0 0 35px rgba(255, 85, 32, 0.4);
}

.cloud-term-hero .term-ampersand {
  font-weight: 300;
  opacity: 0.9;
}

/* Floating Pill Badges */
.floating-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.38rem 1rem;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-size: clamp(0.72rem, 0.9vw, 0.85rem);
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  user-select: none;
}

.floating-badge:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
}

/* Badge Clusters */
.badge-cluster-left {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: clamp(0.2rem, 0.5vw, 0.5rem);
}

.badge-cluster-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(0.2rem, 0.5vw, 0.5rem);
}

/* Badge Color Themes matching reference */
.badge-mint {
  background-color: #bbf7d0;
  color: #14532d;
}

.badge-orange {
  background-color: #ea580c;
  color: #ffffff;
}

.badge-lilac {
  background-color: #e9d5ff;
  color: #581c87;
}

.badge-cream {
  background-color: #fef08a;
  color: #713f12;
  align-self: flex-start;
  margin-top: -0.85rem;
}

.badge-blue {
  background-color: #bae6fd;
  color: #0369a1;
}

.badge-gold {
  background-color: #fde047;
  color: #422006;
}

/* ==========================================================================
   Responsive Breakpoints for Our Programs Section
   ========================================================================== */
@media (max-width: 1024px) {
  .programs-editorial-section {
    padding: clamp(3.5rem, 6vh, 5rem) 0 clamp(4rem, 7vh, 5.5rem);
  }

  .programs-header-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: clamp(2.5rem, 4vh, 3.5rem);
  }

  .programs-header-right {
    padding-top: 0;
    gap: 1rem;
  }

  .programs-lead-copy,
  .programs-secondary-copy {
    max-width: 100%;
  }
}

/* Mobile & Small Tablet Lockup (<= 900px):
   Balanced, non-overlapping, fluid poster layout matching the reference */
@media (max-width: 900px) {
  .programs-container {
    padding-left: clamp(0.85rem, 3vw, 1.5rem);
    padding-right: clamp(0.85rem, 3vw, 1.5rem);
  }

  .programs-main-title {
    font-size: clamp(1.75rem, 5.8vw, 2.4rem);
    line-height: 1.2;
  }

  .programs-cloud-stage {
    padding: 1rem 0 1.5rem;
    width: 100%;
    overflow: visible;
  }

  .cloud-row {
    margin-bottom: clamp(0.45rem, 1.2vh, 0.85rem);
    flex-wrap: nowrap !important;
  }

  .cloud-row-top {
    transform: translateX(-2%) !important;
  }

  .cloud-row-mid-upper {
    transform: translateX(4%) !important;
  }

  .cloud-row-centerpiece {
    transform: none !important;
    z-index: 10;
  }

  .cloud-row-mid-lower {
    transform: translateX(-3%) !important;
  }

  .cloud-row-bottom {
    transform: translateX(3%) !important;
  }

  /* Fluid typography perfectly calibrated for mobile screens */
  .cloud-term {
    font-size: clamp(1.25rem, 5.2vw, 2.2rem);
    line-height: 1;
    white-space: nowrap;
  }

  .cloud-term-hero {
    font-size: clamp(1.42rem, 5.8vw, 2.5rem);
    line-height: 0.95;
    white-space: nowrap;
    gap: 0.2rem;
  }

  /* Compact Floating Badges */
  .floating-badge {
    font-size: clamp(0.52rem, 1.7vw, 0.68rem);
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.7);
    white-space: nowrap;
  }

  .badge-cream {
    margin-top: -0.35rem;
  }

  .marketing-cluster {
    gap: clamp(0.35rem, 1.2vw, 0.75rem);
  }

  .centerpiece-cluster {
    gap: clamp(0.3rem, 1.2vw, 0.75rem);
  }

  .creative-cluster {
    gap: clamp(0.45rem, 1.5vw, 1.2rem);
  }
}

/* Extra-small mobile screens (<= 420px) */
@media (max-width: 420px) {
  .programs-container {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }

  .cloud-row {
    margin-bottom: 0.4rem;
  }

  .cloud-term {
    font-size: clamp(1.08rem, 4.6vw, 1.35rem);
  }

  .cloud-term-hero {
    font-size: clamp(1.22rem, 5.1vw, 1.52rem);
    gap: 0.15rem;
  }

  .floating-badge {
    font-size: 0.48rem;
    padding: 0.18rem 0.42rem;
  }

  .marketing-cluster {
    gap: 0.25rem;
  }

  .centerpiece-cluster {
    gap: 0.22rem;
  }

  .creative-cluster {
    gap: 0.35rem;
  }

  .badge-cream {
    margin-top: -0.2rem;
  }
}

/* ==========================================================================
   5. Career Accelerators / Courses Section (Ready To Reimagine Your Career?)
   ========================================================================== */
.career-accelerators-section {
  position: relative;
  background-color: var(--color-bg-vanta, #050505);
  color: var(--color-text-light, #EAEFEF);
  padding: clamp(4.5rem, 8vh, 7.5rem) 0 clamp(5rem, 9vh, 8.5rem);
  width: 100%;
  z-index: 10;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.accelerators-container {
  max-width: 1340px;
  margin: 0 auto;
  padding-left: clamp(1.5rem, 4vw, 4.5rem);
  padding-right: clamp(1.5rem, 4vw, 4.5rem);
  box-sizing: border-box;
  width: 100%;
}

/* Section Header */
.accelerators-header {
  margin-bottom: clamp(2.5rem, 5vh, 3.75rem);
}

.accelerators-title {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #0f172a;
  line-height: 1.2;
  margin: 0 0 0.85rem;
}

.accelerators-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  color: #64748b;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
}

/* 3-Column Courses Grid */
.accelerators-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 2.5vw, 2.5rem);
  align-items: stretch;
}

/* Accelerator Card */
.accelerator-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px -4px rgba(0, 0, 0, 0.05), 0 2px 8px -2px rgba(0, 0, 0, 0.03);
  border: 1px solid #f1f5f9;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  cursor: pointer;
}

.accelerator-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.12), 0 4px 14px -3px rgba(0, 0, 0, 0.04);
  border-color: #e2e8f0;
}

/* Card Media Image */
.card-media-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #f8fafc;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.accelerator-card:hover .card-img {
  transform: scale(1.04);
}

/* Card Body */
.card-body-wrap {
  padding: 1.5rem 1.65rem 1.65rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.card-title {
  margin: 0 0 1.5rem;
  font-family: var(--font-sans);
  font-size: clamp(1.15rem, 1.35vw, 1.35rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: #0f172a;
}

.card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.accelerator-card:hover .card-title a {
  color: #ea580c;
}

/* Card Meta Footer Row */
.card-meta-row {
  display: flex;
  align-items: center;
  gap: clamp(0.65rem, 1vw, 1rem);
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
  margin-top: auto;
  font-size: 0.84rem;
  color: #64748b;
  font-weight: 500;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.meta-students svg,
.meta-duration svg {
  color: #94a3b8;
}

.meta-rating svg {
  color: #f59e0b;
}

.meta-sub {
  color: #94a3b8;
  font-weight: 400;
}

.card-action-arrow {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  text-decoration: none;
  transition: transform 0.25s ease, color 0.25s ease;
}

.accelerator-card:hover .card-action-arrow {
  transform: translateX(4px);
  color: #ea580c;
}

/* ==========================================================================
   Responsive Breakpoints for Career Accelerators
   ========================================================================== */
@media (max-width: 1024px) {
  .accelerators-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
  }

  .accelerators-container {
    padding-left: clamp(1.25rem, 3vw, 2.5rem);
    padding-right: clamp(1.25rem, 3vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  .career-accelerators-section {
    padding: clamp(3.5rem, 6vh, 4.75rem) 0 clamp(4rem, 7vh, 5.25rem);
  }

  .accelerators-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .accelerators-container {
    padding-left: clamp(1rem, 3.5vw, 1.5rem);
    padding-right: clamp(1rem, 3.5vw, 1.5rem);
  }

  .accelerators-title {
    font-size: clamp(1.75rem, 6vw, 2.35rem);
    line-height: 1.25;
  }

  .accelerators-subtitle {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .accelerator-card {
    border-radius: 16px;
  }

  .card-body-wrap {
    padding: 1.25rem 1.35rem 1.35rem;
  }

  .card-title {
    margin-bottom: 1.25rem;
    font-size: 1.18rem;
  }

  .card-meta-row {
    gap: 0.65rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 420px) {
  .card-meta-row {
    gap: 0.45rem;
    font-size: 0.74rem;
  }

  .meta-item svg {
    width: 13px;
    height: 13px;
  }
}

/* ==========================================================================
   First-Time Visitor Cinematic Preloader
   ========================================================================== */
.messulogic-preloader {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: #050505;
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.messulogic-preloader.is-loaded {
  opacity: 0;
  transform: scale(1.04);
  visibility: hidden;
  pointer-events: none;
}

.preloader-backdrop {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.preloader-ambient-glow {
  width: clamp(320px, 50vw, 680px);
  height: clamp(320px, 50vw, 680px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 85, 32, 0.22) 0%, rgba(255, 85, 32, 0.05) 45%, rgba(0, 0, 0, 0) 70%);
  filter: blur(40px);
  animation: preloaderAuraBreathe 3s ease-in-out infinite alternate;
}

@keyframes preloaderAuraBreathe {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.15); opacity: 1; }
}

.preloader-center-stage {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 380px;
  width: 100%;
}

.preloader-logo-container {
  position: relative;
  margin-bottom: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-logo-image {
  max-width: 220px;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 25px rgba(255, 85, 32, 0.45));
  animation: preloaderLogoPulse 2.4s ease-in-out infinite alternate;
}

@keyframes preloaderLogoPulse {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 20px rgba(255, 85, 32, 0.35));
  }
  100% {
    transform: scale(1.03);
    filter: drop-shadow(0 0 35px rgba(255, 85, 32, 0.65));
  }
}

.preloader-progress-rail {
  width: 100%;
  max-width: 280px;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6);
}

.preloader-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff5520 0%, #ff8a55 100%);
  border-radius: 999px;
  transition: width 0.12s ease-out;
  position: relative;
  box-shadow: 0 0 12px rgba(255, 85, 32, 0.85);
}

.preloader-fill-sparkle {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 8px;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 0 8px #ffffff;
}

.preloader-status-cluster {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 280px;
  margin-top: 0.85rem;
  font-family: var(--font-mono, monospace);
  font-size: 0.76rem;
  color: #9ca3af;
  letter-spacing: 0.03em;
}

.preloader-status-label {
  color: #9ca3af;
}

.preloader-counter {
  color: #ff5520;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

html.is-preloading,
body.is-preloading {
  overflow: hidden !important;
}

/* ==========================================================================
   Navigation Dropdown Menu (Programs: Charity, SIWES & Industrial Internship)
   ========================================================================== */
.main-navigation .nav-menu li.menu-item-has-children {
  position: relative;
}

.main-navigation .nav-menu li.menu-item-has-children > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.main-navigation .nav-menu li.menu-item-has-children > a .dropdown-chevron {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: #94a3b8;
  display: inline-block;
  vertical-align: middle;
}

.main-navigation .nav-menu li.menu-item-has-children:hover > a .dropdown-chevron,
.main-navigation .nav-menu li.menu-item-has-children:focus-within > a .dropdown-chevron {
  transform: rotate(180deg);
  color: var(--color-orange-primary);
}

.main-navigation .nav-menu li.menu-item-has-children .sub-menu {
  position: absolute;
  top: 100%;
  left: -12px;
  min-width: 270px;
  background: rgba(14, 14, 18, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 24px rgba(255, 85, 32, 0.12);
  padding: 8px;
  margin: 12px 0 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s ease;
  z-index: 1000;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Invisible bridge so mouse doesn't drop off when navigating to dropdown */
.main-navigation .nav-menu li.menu-item-has-children .sub-menu::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.main-navigation .nav-menu li.menu-item-has-children:hover > .sub-menu,
.main-navigation .nav-menu li.menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.main-navigation .nav-menu .sub-menu li {
  width: 100%;
}

.main-navigation .nav-menu .sub-menu li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.88rem;
  font-weight: 600;
  color: #cbd5e1;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.main-navigation .nav-menu .sub-menu li a:hover {
  background: rgba(255, 85, 32, 0.14);
  color: #ff5520;
  transform: translateX(4px);
}

.main-navigation .nav-menu .sub-menu li.current-menu-item > a {
  background: rgba(255, 85, 32, 0.18);
  color: #ff5520;
  font-weight: 700;
}

.main-navigation .nav-menu .sub-menu li.current-menu-item > a::after {
  display: none;
}

/* Mobile Drawer Sub-Menu */
.mobile-nav-menu .sub-menu {
  list-style: none;
  padding: 6px 0 6px 18px;
  margin: 6px 0 10px;
  border-left: 2px solid rgba(255, 85, 32, 0.35);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-menu .sub-menu li a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #94a3b8;
  display: block;
  padding: 6px 0;
}

.mobile-nav-menu .sub-menu li a:hover,
.mobile-nav-menu .sub-menu li.current-menu-item > a {
  color: var(--color-orange-primary) !important;
  font-weight: 700;
}

/* ==========================================================================
   Universal Font Consistency Enforcement
   Strictly guarantees Plus Jakarta Sans across all headings, body, cards, and UI
   ========================================================================== */
html, body, button, input, textarea, select, 
h1, h2, h3, h4, h5, h6, 
p, span, a, label, li, 
.site-header, .site-footer, .btn, .subpage-wrapper,
.masteriyo-course-card, .dark-course-card, .mto-course-card,
.bento-card, .course-card-meta, .section-title {
  font-family: var(--font-sans, 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif);
}

.font-mono, code, pre, .badge-mono, .code-tag, .stat-mono {
  font-family: var(--font-mono, 'JetBrains Mono', monospace) !important;
}

.font-serif, .editorial-quote, .hero-editorial-italic {
  font-family: 'Playfair Display', Georgia, serif !important;
}


