/* ==========================================================================
   CMwithMN - Modern Glassmorphic Navbar & Design System
   ========================================================================== */

/* ---------------- CSS Custom Properties (Design Tokens) ---------------- */
:root {
  /* Typography */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Colors */
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-text-main: #0f172a;
  --color-text-muted: #64748b;
  --color-text-dim: #94a3b8;

  /* Primary Accent & Gradients */
  --color-primary: #0284c7;
  --color-primary-hover: #0369a1;
  --gradient-accent: linear-gradient(135deg, #0284c7 0%, #6366f1 50%, #a855f7 100%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%);

  /* Glassmorphism Navbar Tokens */
  --nav-bg: rgba(255, 255, 255, 0.72);
  --nav-bg-scrolled: rgba(255, 255, 255, 0.86);
  --nav-border: rgba(255, 255, 255, 0.8);
  --nav-border-scrolled: rgba(226, 232, 240, 0.8);
  --nav-shadow: 0 4px 24px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --nav-shadow-scrolled: 0 10px 30px -4px rgba(15, 23, 42, 0.1), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  --nav-blur: 16px;

  /* Button Tokens */
  --btn-login-bg: #ffffff;
  --btn-login-text: #0f172a;
  --btn-login-border: rgba(15, 23, 42, 0.12);
  --btn-login-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);

  /* Layout & Animation */
  --max-width: 1200px;
  --radius-full: 9999px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-duration: 0.24s;
}

/* ---------------- Base & Reset ---------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Screen Reader / Search Engine Optimization Only */
.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;
}

/* ---------------- Ambient Background Glows ---------------- */
.ambient-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  will-change: transform;
  animation: floatMesh 18s ease-in-out infinite alternate;
}

.blob-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #38bdf8 0%, #818cf8 100%);
  top: -120px;
  left: -100px;
}

.blob-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #c084fc 0%, #e879f9 100%);
  top: 15%;
  right: -150px;
  animation-delay: -6s;
}

.blob-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #67e8f9 0%, #93c5fd 100%);
  bottom: 5%;
  left: 15%;
  animation-delay: -12s;
}

@keyframes floatMesh {
  0% {
    transform: translate(0px, 0px) scale(1);
  }

  50% {
    transform: translate(40px, 60px) scale(1.08);
  }

  100% {
    transform: translate(-30px, -40px) scale(0.95);
  }
}

/* ---------------- Floating Glassmorphism Navbar ---------------- */
.navbar-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: padding 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar-wrapper.scrolled {
  padding: 12px 24px;
}

/* Main Pill Bar (Full width initially in desktop view, animates smoothly to centered floating pill on scroll) */
.navbar {
  width: 100%;
  max-width: 100%;
  height: 64px;
  background: transparent;
  -webkit-backdrop-filter: blur(0px);
  backdrop-filter: blur(0px);
  border: 1px solid transparent;
  box-shadow: none;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  transition: max-width 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    padding 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    backdrop-filter 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    -webkit-backdrop-filter 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar-wrapper.scrolled .navbar {
  max-width: 1120px;
  background: var(--nav-bg-scrolled);
  -webkit-backdrop-filter: blur(var(--nav-blur)) saturate(180%);
  backdrop-filter: blur(var(--nav-blur)) saturate(180%);
  border-color: var(--nav-border-scrolled);
  box-shadow: var(--nav-shadow-scrolled);
  padding: 0 14px 0 22px;
}

/* ---------------- Brand Logo ---------------- */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text-main);
  user-select: none;
  outline-offset: 4px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.brand-logo:hover {
  opacity: 0.88;
}

.brand-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}

.logo-icon-box {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-main);
}

.logo-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text-main);
}

/* ---------------- Navigation Links (Center) ---------------- */
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: 8px 4px;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--color-text-main);
}

.nav-link.active {
  color: var(--color-text-main);
  font-weight: 600;
}

/* Subtle active bottom dot indicator */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 16px;
  height: 2px;
  background-color: var(--color-text-main);
  border-radius: 2px;
  transition: transform 0.2s var(--transition-smooth);
}

.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* ---------------- Right Actions / Login Button ---------------- */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-login {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e1b4b 0%, #2e1065 50%, #0284c7 100%);
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 8px 22px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s var(--transition-smooth), box-shadow 0.25s var(--transition-smooth), background 0.25s var(--transition-smooth);
  outline-offset: 2px;
}

.btn-login .btn-text {
  position: relative;
  z-index: 2;
}

.btn-login:hover {
  background: linear-gradient(135deg, #2e1065 0%, #3b0764 50%, #0369a1 100%);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px) scale(1.02);

}

.btn-login:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgba(46, 16, 101, 0.2);
}

/* Shine Swipe for Dashboard Button */
.btn-shine-swipe {
  position: absolute;
  top: 0;
  left: -120%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.65) 50%,
      transparent 100%);
  transform: skewX(-25deg);
  pointer-events: none;
  z-index: 1;
  animation: btnShineSwipe 5s ease-in-out infinite;
}

@keyframes btnShineSwipe {
  0% {
    left: -120%;
  }

  100% {
    left: 220%;
  }
}

/* Mobile Toggle Hamburger Button */
.mobile-toggle-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-sm);
  color: var(--color-text-main);
}

.hamburger-line {
  width: 22px;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.mobile-toggle-btn.open .hamburger-line:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.mobile-toggle-btn.open .hamburger-line:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

/* ---------------- Mobile Dropdown Menu ---------------- */
.mobile-menu {
  width: 100%;
  max-width: 1120px;
  background: var(--nav-bg-scrolled);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--nav-border-scrolled);
  border-radius: var(--radius-lg);
  box-shadow: var(--nav-shadow-scrolled);
  margin-top: 10px;
  padding: 20px;
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.mobile-menu.open {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-link {
  display: block;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: background 0.2s ease, color 0.2s ease;
}

.mobile-link:hover,
.mobile-link.active {
  background: rgba(0, 0, 0, 0.04);
  color: var(--color-text-main);
  font-weight: 600;
}

.mobile-login-item {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-login-btn {
  width: 100%;
  padding: 12px;
}

/* ---------------- Page Content Demo Sections ---------------- */
.page-content {
  position: relative;
  z-index: 1;
  padding-top: 0;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero Section (Dead-Center Middle & Horizontal Alignment) */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 90px 0 40px;
  width: 100%;
  box-sizing: border-box;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}

/* Unified Hero Centered Wrapper */
.hero-unified-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.badge-pill {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #000000;
  margin-top: 18px;
  margin-bottom: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}



.badge-lms-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 4px;
  display: inline-block;
  vertical-align: middle;
}

/* Shine Swipe Animation (7-Second Slow Smooth Duration) */
.badge-shine-swipe {
  position: absolute;
  top: 0;
  left: -120%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.75) 50%,
      transparent 100%);
  transform: skewX(-25deg);
  pointer-events: none;
  animation: badgeShineSwipe 7s ease-in-out infinite;
}

@keyframes badgeShineSwipe {
  0% {
    left: -120%;
  }

  100% {
    left: 220%;
  }
}

/* ---------------- Split Hero Showcase (GIF | Divider | Header Text) ---------------- */
.hero-split-showcase {
  position: relative;
  top: 0px;
  /* Position adjustment: Vertical */
  left: 0px;
  /* Position adjustment: Horizontal */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  /* Balanced space between elements */
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

/* Left: 3D Rotating Coin GIF Container (Enlarged on Desktop) */
.hero-split-left {
  position: relative;
  top: 0px;
  /* Position adjustment: Left column Y */
  left: 0px;
  /* Position adjustment: Left column X */
  width: 380px;
  /* Scaled up container width */
  height: 460px;
  /* Scaled up height matching divider */
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin-right: -12px;
}

/* Left: Coin GIF Image (Enlarged on Desktop) */
.hero-split-gif {
  position: relative;
  top: 0px;
  /* Position adjustment: GIF Y */
  left: 0px;
  /* Position adjustment: GIF X */
  width: 470px;
  height: 470px;
  max-width: none;
  max-height: none;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 20px 48px rgba(0, 0, 0, 0.12));
  transition: transform 0.3s var(--transition-smooth);
  flex-shrink: 0;
}

.hero-split-gif:hover {
  transform: scale(1.02);
}

/* Center: Vertical Line Divider Container (Scaled to 460px) */
.hero-split-divider {
  position: relative;
  top: 0px;
  /* Position adjustment: Divider Y */
  left: 0px;
  /* Position adjustment: Divider X */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 460px;
  flex-shrink: 0;
  padding: 0;
}

/* Divider Nodes (Top & Bottom Circles) */
.divider-node {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid #2e1065;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(46, 16, 101, 0.1);
  flex-shrink: 0;
}

.divider-node.top-node {
  top: 0px;
  /* Position adjustment: Top circle dot Y */
  left: 0px;
  /* Position adjustment: Top circle dot X */
}

.divider-node.bottom-node {
  top: 0px;
  /* Position adjustment: Bottom circle dot Y */
  left: 0px;
  /* Position adjustment: Bottom circle dot X */
}

/* Divider Stem Vertical Line */
.divider-line {
  position: relative;
  top: 0px;
  /* Position adjustment: Vertical line Y */
  left: 0px;
  /* Position adjustment: Vertical line X */
  width: 2.5px;
  height: 100%;
  background: #2e1065;
  opacity: 0.85;
  border-radius: 2px;
  margin: 2px 0;
}

/* Right: Header Text & Subheading Container (Enlarged on Desktop) */
.hero-split-right {
  position: relative;
  top: 0px;
  /* Position adjustment: Right column Y */
  left: 0px;
  /* Position adjustment: Right column X */
  flex: 0 0 auto;
  width: 100%;
  max-width: 650px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
}

/* Right: Header Text Image (Enlarged on Desktop) */
.hero-split-headertext {
  position: relative;
  top: 0px;
  /* Position adjustment: Header image Y */
  left: 0px;
  /* Position adjustment: Header image X */
  width: 100%;
  max-width: 630px;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.05));
  transition: transform 0.3s var(--transition-smooth);
}

.hero-split-headertext:hover {
  transform: translateY(-2px);
}

/* Right: Sinhala Subheading Text (Enlarged on Desktop) */
.hero-sinhala-subheading {
  position: relative;
  top: 0px;
  /* Position adjustment: Subtext Y */
  left: 0px;
  /* Position adjustment: Subtext X */
  font-family: 'Noto Sans Sinhala', var(--font-main);
  font-size: clamp(1.45rem, 2.3vw, 1.85rem);
  font-weight: 700;
  line-height: 1.45;
  color: #1e1b4b;
  margin-top: 16px;
  letter-spacing: -0.01em;
  text-align: left;
  text-shadow: 0 1px 2px rgba(30, 27, 75, 0.04);
}



/* Metric Highlight Pill Cards (Inside Hero Right Column - Scaled on Desktop) */
.stats-pills-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 100%;
  margin: 24px 0 0;
  width: 100%;
}

.stat-pill-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 28px;
  background: #ffffff;
  border-radius: 16px;
  /* Refined rounded corners */
  box-shadow: 0 10px 28px -4px rgba(46, 16, 101, 0.08), 0 2px 8px -2px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(226, 232, 240, 0.85);
  transition: transform 0.3s var(--transition-smooth), box-shadow 0.3s var(--transition-smooth);
}

.stat-pill-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -4px rgba(46, 16, 101, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.05);
}

.stat-pill-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #2e1065;
}

.stat-pill-icon {
  width: 38px;
  height: 38px;
  display: block;
}

.stat-pill-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 3px;
}

.stat-pill-number {
  font-family: var(--font-main);
  font-size: 1.42rem;
  font-weight: 800;
  color: #2e1065;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.stat-pill-label {
  font-family: var(--font-main);
  font-size: 0.74rem;
  font-weight: 700;
  color: #4b5563;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.2;
}

/* Content Sections */
.content-section {
  padding: 100px 0;
}

.content-section.light-bg {
  background: rgba(241, 245, 249, 0.6);
  border-top: 1px solid rgba(226, 232, 240, 0.6);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-tag {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  display: inline-block;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text-main);
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
}

/* ---------------- About The Program & Student Slider Section ---------------- */
.program-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.program-split-showcase {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 48px;
  max-width: 1160px;
  margin: 0 auto;
}

/* Left Column: About Program */
.program-about-left {
  flex: 1 1 48%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.program-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.program-tag-icon {
  width: 18px;
  height: 18px;
  color: #64748b;
}

.program-text-p {
  font-family: 'Noto Sans Sinhala', var(--font-main);
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.85;
  color: #1e1b4b;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.program-text-p:last-child {
  margin-bottom: 0;
}

.highlight-blue {
  color: #0284c7;
  font-weight: 700;
}

/* Center Vertical Divider with Cross Nodes */
.program-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 20px;
  flex-shrink: 0;
  position: relative;
}

.cross-node {
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  color: #64748b;
  user-select: none;
}

.program-divider-line {
  width: 1px;
  height: 100%;
  background: rgba(148, 163, 184, 0.4);
  margin: 8px 0;
}

/* Right Column: Student Comments Automatic Slider */
.program-comments-right {
  flex: 1 1 48%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  min-height: 240px;
}

.student-slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.student-slider-track {
  position: relative;
  width: 100%;
  min-height: 220px;
  transition: min-height 0.3s ease;
}

.student-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 1;
}

.student-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  z-index: 2;
}

.student-slide.exit-up {
  opacity: 0;
  transform: translateY(-40px);
  pointer-events: none;
  z-index: 1;
}

.student-comment-card {
  display: flex;
  align-items: flex-start;
  gap: 22px;
}

.student-avatar-box {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  background: #f1f5f9;
}

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

.student-comment-content {
  flex: 1;
  text-align: left;
}

.student-quote {
  font-family: 'Noto Sans Sinhala', var(--font-main);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.75;
  color: #1e1b4b;
  margin-bottom: 14px;
}

.student-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.student-name {
  font-family: 'Noto Sans Sinhala', var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  color: #1e1b4b;
}

.student-sub {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 600;
}

/* Slider Indicator Dots */
.slider-indicators {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding-left: 90px;
}

.slider-dot {
  width: 24px;
  height: 6px;
  border-radius: var(--radius-full);
  background: rgba(148, 163, 184, 0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s var(--transition-smooth);
}

.slider-dot.active {
  width: 36px;
  background: #0284c7;
}

.slider-dot:hover:not(.active) {
  background: rgba(148, 163, 184, 0.7);
}

/* ---------------- Classes Section & Course Card ---------------- */
.classes-section {
  padding: 80px 0;
  position: relative;
}

.class-cards-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto;
}

.class-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: 28px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.08), 0 4px 16px -2px rgba(15, 23, 42, 0.03);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.class-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -12px rgba(15, 23, 42, 0.14), 0 8px 24px -4px rgba(15, 23, 42, 0.05);
}

.class-card-cover-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #064e3b;
  position: relative;
}

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

.class-card:hover .class-card-cover-img {
  transform: scale(1.03);
}

.class-card-body {
  padding: 24px 26px 26px;
  text-align: left;
}

.class-instructor {
  font-size: 0.88rem;
  color: #64748b;
  font-weight: 500;
  margin-bottom: 6px;
}

.instructor-name {
  color: #0f172a;
  font-weight: 700;
}

.class-card-title {
  font-family: 'Noto Sans Sinhala', var(--font-main);
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  line-height: 1.35;
}

.class-details-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.class-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: #475569;
  font-weight: 500;
  line-height: 1.45;
}

.detail-icon {
  width: 18px;
  height: 18px;
  color: #64748b;
  flex-shrink: 0;
  margin-top: 2px;
}

.class-card-divider {
  height: 1px;
  width: 100%;
  background: rgba(226, 232, 240, 0.85);
  margin: 22px 0 18px;
}

.class-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.class-price {
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.class-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.95rem;
  color: #64748b;
  font-weight: 600;
}

.badge-screen-icon {
  width: 18px;
  height: 18px;
  color: #64748b;
}

/* Results Grid */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.result-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease;
}

.result-card:hover {
  transform: translateY(-3px);
}

.result-metric {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.result-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.result-desc {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* FAQ Accordion */
.faq-accordion {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(203, 213, 225, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.faq-question {
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--color-text-main);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-text-muted);
  transition: transform 0.2s ease;
}

details[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  margin-top: 14px;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.faq-answer code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.875rem;
  color: #0f172a;
}

/* ---------------- Help & Registration Tutorial Section ---------------- */
.help-section {
  padding: 80px 0;
  position: relative;
}

.help-video-container {
  max-width: 820px;
  width: 100%;
  margin: 0 auto 40px;
  display: flex;
  justify-content: center;
}

.help-streamable-wrapper {
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 45px -12px rgba(15, 23, 42, 0.18), 0 4px 16px rgba(0, 0, 0, 0.04);
  background: #000000;
}

/* WhatsApp Technical Support Box */
.whatsapp-support-box {
  max-width: 680px;
  margin: 0 auto;
}

.whatsapp-support-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 24px;
  background: #ffffff;
  border-radius: var(--radius-full);
  border: 1px solid rgba(37, 211, 102, 0.3);
  box-shadow: 0 10px 30px -6px rgba(37, 211, 102, 0.12), 0 4px 12px rgba(0, 0, 0, 0.03);
  text-decoration: none;
  color: var(--color-text-main);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.whatsapp-support-link:hover {
  transform: translateY(-3px);
  border-color: #25d366;
  box-shadow: 0 16px 36px -6px rgba(37, 211, 102, 0.22);
}

.whatsapp-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

.whatsapp-svg {
  width: 24px;
  height: 24px;
}

.whatsapp-support-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.whatsapp-title {
  font-family: 'Noto Sans Sinhala', var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
}

.whatsapp-number {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.02em;
}

.whatsapp-chat-pill {
  padding: 8px 18px;
  background: #1e1b4b;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: background 0.2s ease;
}

.whatsapp-support-link:hover .whatsapp-chat-pill {
  background: #0284c7;
}

@media (max-width: 640px) {
  .whatsapp-support-link {
    flex-direction: column;
    text-align: center;
    border-radius: 20px;
    padding: 20px 16px;
    gap: 12px;
  }

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

  .minimal-play-btn {
    width: 58px;
    height: 58px;
  }

  .minimal-play-btn .play-icon {
    width: 22px;
    height: 22px;
  }
}

/* ---------------- Modal Dialog ---------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.2s ease;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 36px 32px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.15);
  position: relative;
  transform: scale(0.96);
  transition: transform 0.24s var(--transition-smooth);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.modal-close-btn:hover {
  background: #e2e8f0;
  color: var(--color-text-main);
}

.modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text-main);
}

.modal-subtitle {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-main);
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  border: 1px solid #cbd5e1;
  font-family: var(--font-main);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.btn-submit {
  background: var(--color-text-main);
  color: #ffffff;
  padding: 12px;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s ease;
}

.btn-submit:hover {
  background: #1e293b;
}

/* ---------------- Footer ---------------- */
.site-footer {
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  padding: 40px 0;
  background: #ffffff;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--color-text-dim);
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  text-decoration: none;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

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

/* ---------------- Responsive Media Queries ---------------- */
@media (max-width: 860px) {
  .navbar-wrapper {
    padding: 12px 16px;
  }

  .nav-links {
    display: none;
  }

  .mobile-toggle-btn {
    display: flex;
  }

  .navbar {
    padding: 0 12px 0 18px;
    height: 58px;
  }

  .hero-cta-group {
    flex-direction: column;
    gap: 12px;
  }

  .hero-cta-group a,
  .hero-cta-group button {
    width: 100%;
    max-width: 300px;
  }

  .hero-split-showcase {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 8px auto 28px;
    padding: 0 12px;
  }

  /* Don't show divider on mobile */
  .hero-split-divider {
    display: none !important;
  }

  /* 1st: GIF on mobile - enlarged for prominence */
  .hero-split-left {
    margin-right: 0 !important;
    width: 100%;
    max-width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px !important;
    position: relative;
  }

  .hero-split-gif {
    width: 220px;
    height: 220px;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    margin: 0 auto;
    flex-shrink: 0;
  }

  /* 2nd & 3rd: Header image & Subheader below */
  .hero-split-right {
    width: 100%;
    max-width: 100%;
    align-items: center;
    text-align: center;
    display: flex;
    flex-direction: column;
    margin-top: 0;
  }

  .hero-split-headertext {
    max-width: min(90vw, 380px);
    margin: 0 auto;
  }

  .hero-sinhala-subheading {
    font-size: clamp(1.05rem, 4vw, 1.35rem);
    text-align: center;
    white-space: normal;
    /* Wraps cleanly on mobile phone screens */
    margin-top: 8px;
    width: 100%;
  }

  .stats-pills-container {
    justify-content: center;
    margin: 14px auto 0;
    gap: 10px;
    flex-wrap: wrap;
  }

  .stat-pill-card {
    padding: 9px 18px;
    gap: 10px;
    border-radius: 12px;
  }

  .stat-pill-icon {
    width: 26px;
    height: 26px;
  }

  .stat-pill-number {
    font-size: 1.08rem;
  }

  .stat-pill-label {
    font-size: 0.6rem;
  }

  .badge-pill {
    font-size: 0.72rem;
    margin-top: 14px;
    justify-content: center;
  }

  /* Program Section Mobile */
  .program-split-showcase {
    flex-direction: column;
    gap: 28px;
  }

  .program-divider {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    margin: 4px 0;
    gap: 12px;
  }

  .program-divider-line {
    width: 100%;
    height: 1px;
    background: rgba(148, 163, 184, 0.35);
    margin: 0;
  }

  .cross-node {
    font-size: 1.25rem;
    color: #94a3b8;
    line-height: 1;
    flex-shrink: 0;
  }

  .program-about-left {
    text-align: left;
  }

  .student-comment-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .student-avatar-box {
    width: 64px;
    height: 64px;
    margin: 0 auto;
  }

  .student-comment-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

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

  .student-meta {
    align-items: center;
    text-align: center;
  }

  .slider-indicators {
    padding-left: 0;
    justify-content: center;
    margin-top: 20px;
  }
}

@media (max-width: 480px) {
  .hero-split-left {
    max-width: 180px;
    height: 180px;
    margin: 0 auto 6px !important;
  }

  .hero-split-gif {
    width: 180px;
    height: 180px;
  }

  .hero-split-headertext {
    max-width: min(92vw, 340px);
  }

  .hero-sinhala-subheading {
    font-size: 1.05rem;
    line-height: 1.4;
  }

  .stats-pills-container {
    gap: 8px;
    margin-top: 14px;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 340px;
  }

  .stat-pill-card {
    padding: 8px 12px;
    gap: 8px;
    border-radius: 11px;
    flex: 1 1 0;
    min-width: 0;
    box-shadow: 0 4px 14px -2px rgba(46, 16, 101, 0.06);
  }

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

  .stat-pill-number {
    font-size: 0.98rem;
  }

  .stat-pill-label {
    font-size: 0.54rem;
  }

  .program-text-p {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .student-quote {
    font-size: 0.96rem;
    line-height: 1.65;
  }

  .student-avatar-box {
    width: 50px;
    height: 50px;
  }
}