/* ==========================================================================
   OpenSoftwares — Home Page Styles (css/home.css)
   Design: "Paper, Ink and Saffron"
   Sections: Hero (slider + headline) → App → ERP → Stats → Testimonials → Group → CTA
   ========================================================================== */

/* -------------------------------------------------------------------------
   Page-level padding to account for the floating pill header
   ------------------------------------------------------------------------- */
body.home-page { padding-top: 0; }

/* -------------------------------------------------------------------------
   A. HERO SECTION
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(72px, 8vw, 84px);
  padding-bottom: clamp(24px, 4vw, 44px);
}

.hero-container {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}

@media (min-width: 1024px) {
  .hero-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: flex-start;
    gap: clamp(24px, 3.5vw, 48px);
    min-height: auto;
  }
}

.hero-text-col {
  display: flex;
  flex-direction: column;
}

.hero-trust-line {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: var(--s2);
}

/* Slider Column & Card */
.hero-slider-col {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-slider-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  border-radius: clamp(14px, 1.8vw, 20px);
  overflow: hidden;
  box-shadow: 0 12px 36px -10px rgba(10, 42, 94, 0.10);
  background: var(--paper);
  margin: 0 auto;
  border: 1px solid rgba(14, 14, 16, 0.09);
}

@media (min-width: 1024px) {
  .hero-slider-col {
    align-items: flex-end;
    margin-top: 4px;
  }
  .hero-slider-card {
    margin: 0 0 0 auto;
    max-width: 390px;
    width: 100%;
    transform: rotate(0.5deg);
    animation: sliderSettle 1s 0.2s var(--ease-out) forwards;
  }
}

@keyframes sliderSettle {
  to { transform: rotate(0deg); }
}

.hero-slider-card .slider-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--paper);
}

/* Shared slider items */
.slide-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
  overflow: hidden;
  background: var(--paper);
}

.slide-item.active {
  opacity: 1;
  z-index: 2;
}

.slide-item img, .slide-item object, .slide-item .slide-svg-wrap {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: var(--paper);
  /* Subtle Ken Burns zoom */
  animation: kenBurns 5s var(--ease-out) forwards;
}


@keyframes kenBurns {
  from { transform: scale(1); }
  to   { transform: scale(1.05); }
}

/* Slide caption scrim at bottom-left */
.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--s4) var(--s3) var(--s3);
  background: linear-gradient(to top, rgba(11,22,48,0.7) 0%, transparent 100%);
  z-index: 3;
}

.slide-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 4px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s 0.1s var(--ease-out), transform 0.4s 0.1s var(--ease-out);
}

.slide-title-text {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s 0.18s var(--ease-out), transform 0.4s 0.18s var(--ease-out);
}

.slide-caption-text {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  margin-top: 4px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s 0.26s var(--ease-out), transform 0.4s 0.26s var(--ease-out);
}

.slide-item.active .slide-label,
.slide-item.active .slide-title-text,
.slide-item.active .slide-caption-text {
  opacity: 1;
  transform: none;
}

/* Slide progress bar (thin saffron, instead of dots) */
.slider-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255,255,255,0.15);
  z-index: 4;
  display: flex;
}

.slider-progress-segment {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.slider-progress-segment::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--saffron);
  transform: scaleX(0);
  transform-origin: left;
}

.slider-progress-segment.filling::after {
  animation: progressFill var(--slide-duration, 5500ms) linear forwards;
}

.slider-progress-segment.done::after {
  transform: scaleX(1);
}

@keyframes progressFill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* Slider Arrow Buttons (clean, visible on all viewports) */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #CBD5E1;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(10, 42, 94, 0.12);
  cursor: pointer;
  transition: all var(--dur-fast);
}

.slider-arrow:hover {
  background: #FFFFFF;
  border-color: var(--navy);
  box-shadow: 0 6px 16px rgba(10, 42, 94, 0.2);
  transform: translateY(-50%) scale(1.05);
}

.slider-arrow-prev { left: var(--s2); }
.slider-arrow-next { right: var(--s2); }

/* --------- HERO CONTENT (headline, sub, buttons) ---------- */
.hero-content {
  padding: var(--s4) 0 var(--s2);
}

.hero-trust-line-desktop {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: var(--s3);
  display: none;
}

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(2.4rem, 4.5vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
  color: var(--ink);
  margin-bottom: var(--s3);
}

.hero-title em.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.08em;
  position: relative;
  color: var(--ink);
}

/* SVG hand-drawn underline under the italic phrase */
.hero-underline-svg {
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  pointer-events: none;
  overflow: visible;
}

.hero-underline-path {
  stroke: var(--saffron);
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  transition: stroke-dashoffset 1.2s 0.6s var(--ease-out);
}

.hero-underline-path.draw { stroke-dashoffset: 0; }

.hero-subline {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 56ch;
  margin-bottom: var(--s4);
}

.hero-actions {
  display: flex;
  gap: var(--s2);
  align-items: center;
  flex-wrap: wrap;
}

/* Stats rows */
.hero-stats-row {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-top: var(--s4);
  padding-top: var(--s3);
  border-top: 1px solid var(--line);
}

.hero-stats-desktop {
  display: none;
}

.hero-stats-mobile {
  display: flex;
  margin-top: var(--s4);
  justify-content: flex-start;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.hero-stat-num {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
}

.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 4px;
}

.hero-stats-divider {
  width: 1px;
  height: 32px;
  background: var(--line);
}

@media (min-width: 1024px) {
  .hero-stats-desktop {
    display: flex;
  }
  .hero-stats-mobile {
    display: none;
  }
  .hero-actions {
    flex-wrap: nowrap;
  }
}

/* -------------------------------------------------------------------------
   B. APP SHOWCASE SECTION
   ------------------------------------------------------------------------- */
.app-section {
  background-color: var(--paper);
  overflow: hidden;
  padding-top: clamp(36px, 4.5vw, 56px);
  padding-bottom: clamp(48px, 6vw, 72px);
}

/* "Coming Soon on Google Play" notice */
.app-play-notice {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px 8px 16px;
  margin-bottom: var(--s3);
  background: #FFFFFF;
  box-shadow: 0 4px 16px rgba(11,22,48,0.06);
}

.app-play-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-play-badge .gp-logo {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.app-play-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.15;
}

.app-play-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.app-play-divider {
  width: 1px;
  height: 28px;
  background: var(--line);
  margin: 0 4px;
}

/* Styled Notify Button with Ringing Bell SVG */
.app-notify-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--midnight);
  color: #FFFFFF !important;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(11,22,48,0.18);
  transition: all var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}

.app-notify-btn:hover {
  background: #14234A;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(11,22,48,0.25);
  color: #FFFFFF !important;
}

.notify-bell-icon {
  width: 14px;
  height: 14px;
  color: var(--saffron);
  animation: bellRing 3s ease-in-out infinite;
  transform-origin: top center;
}

@keyframes bellRing {
  0%, 80%, 100% { transform: rotate(0); }
  85% { transform: rotate(14deg); }
  90% { transform: rotate(-12deg); }
  95% { transform: rotate(8deg); }
}

/* App section two-column layout */
.app-layout {
  display: flex;
  gap: clamp(40px, 6vw, 100px);
  align-items: flex-start;
}

.app-text-col {
  flex: 0 0 auto;
  max-width: 400px;
  position: relative;
  z-index: 2;
}

.app-phone-col {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.app-section-title {
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: var(--s3);
}

.app-section-body {
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 44ch;
}

/* --------- Phone Device Frame ---------- */
.phone-device {
  position: relative;
  width: 280px;
  flex-shrink: 0;
  animation: phoneFloat 5s ease-in-out infinite;
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .phone-device { animation: none; }
}

.phone-frame {
  background: #111318;
  border-radius: 38px;
  padding: 12px 6px 8px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.12),
    0 0 0 2px #1a1d24,
    0 0 0 3px rgba(255,255,255,0.06),
    var(--shadow-card);
  position: relative;
}

.phone-notch-bar {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 2px;
}

/* Punch-hole camera */
.phone-camera {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0a0b0d;
  border: 1px solid rgba(255,255,255,0.08);
}

/* Status bar */
.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  height: 18px;
  background: #161920;
}

.phone-status-time {
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

.phone-status-icons {
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgba(255,255,255,0.7);
}

.phone-status-icons svg { width: 10px; height: 10px; }

/* Phone screen viewport */
.phone-screen-wrap {
  background: #1a1e28;
  border-radius: 10px;
  overflow: hidden;
  height: 390px;
  position: relative;
}

/* Individual screens */
.phone-screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-screen.active {
  opacity: 1;
  transform: none;
  z-index: 2;
}

/* ---- Screen: Dashboard ---- */
.screen-dashboard {
  background: #f6f4ef;
  padding: 12px 10px;
}

.dash-profile-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.dash-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0B1630, #14234A);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
}

.dash-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
}
.dash-class {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dash-greeting { margin-left: auto; font-size: 9px; color: var(--ink-mute); }

/* Attendance ring mini */
.dash-attend-row {
  background: var(--midnight);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.attend-ring-mini {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.attend-ring-mini-svg { width: 44px; height: 44px; }
.attend-track { fill: none; stroke: rgba(255,255,255,0.1); stroke-width: 4; }
.attend-fill {
  fill: none;
  stroke: var(--saffron);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 113;
  stroke-dashoffset: 15;
  transform: rotate(-90deg);
  transform-origin: 22px 22px;
  transition: stroke-dashoffset 1.2s 0.4s var(--ease-out);
}

.attend-label {
  color: rgba(255,255,255,0.6);
  font-size: 9px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.attend-pct {
  color: #fff;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
}

.dash-hw-section { margin-bottom: 10px; }
.dash-hw-title { font-size: 9px; font-weight: 600; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 6px; }

.hw-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
  color: var(--ink-soft);
}

.hw-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--saffron); flex-shrink: 0; }
.hw-subject { font-weight: 600; color: var(--ink); }
.hw-due { margin-left: auto; color: var(--ink-mute); font-family: var(--font-mono); }

.dash-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.qa-btn {
  background: var(--paper-2);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  gap: 4px;
}

.qa-btn-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--midnight);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.qa-btn-icon svg { width: 10px; height: 10px; stroke-width: 1.5; }
.qa-btn-label { font-size: 8px; color: var(--ink-soft); text-align: center; font-weight: 500; line-height: 1.2; }

/* ---- Screen: Attendance Calendar ---- */
.screen-attendance {
  background: #f6f4ef;
  padding: 10px;
}

.attend-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.attend-month-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
}
.attend-big-ring {
  width: 70px;
  height: 70px;
  margin: 0 auto 10px;
}
.attend-big-ring-svg { width: 70px; height: 70px; }
.attend-big-track { fill: none; stroke: var(--paper-2); stroke-width: 6; }
.attend-big-fill {
  fill: none; stroke: var(--saffron); stroke-width: 6;
  stroke-linecap: round; stroke-dasharray: 179; stroke-dashoffset: 20;
  transform: rotate(-90deg); transform-origin: 35px 35px;
}
.attend-big-text {
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  fill: var(--ink); text-anchor: middle; dominant-baseline: central;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.cal-dow {
  font-family: var(--font-mono); font-size: 7px; color: var(--ink-mute);
  text-align: center; padding: 2px 0; text-transform: uppercase;
}
.cal-day {
  aspect-ratio: 1; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; font-weight: 500; color: var(--ink-soft);
}
.cal-day.present { background: rgba(47, 143, 107, 0.15); color: var(--success); }
.cal-day.absent  { background: rgba(196, 80, 63, 0.12);  color: var(--danger); }
.cal-day.leave   { background: rgba(232, 163, 23, 0.15); color: #b07800; }
.cal-day.today   { background: var(--midnight); color: #fff; font-weight: 700; }
.cal-day.future  { color: var(--ink-mute); opacity: 0.5; }

/* ---- Screen: Videos ---- */
.screen-videos {
  background: #f6f4ef;
  padding: 10px;
}
.videos-title { font-size: 11px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.video-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
  border: 1px solid var(--line);
}
.video-thumb {
  height: 72px;
  background: var(--midnight);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.video-thumb-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background: repeating-linear-gradient(45deg, #14234A 0, #14234A 1px, transparent 0, transparent 50%);
  background-size: 8px 8px;
}
.video-play-btn {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
}
.video-play-btn svg { width: 12px; height: 12px; fill: var(--midnight); stroke: none; margin-left: 2px; }
.video-info { padding: 7px 8px; }
.video-subject { font-family: var(--font-mono); font-size: 8px; color: var(--saffron); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 3px; }
.video-name { font-size: 9px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.video-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.video-duration { font-family: var(--font-mono); font-size: 8px; color: var(--ink-mute); }
.video-progress-bar { width: 100%; height: 2px; background: var(--line); border-radius: 1px; overflow: hidden; }
.video-progress-fill { height: 100%; background: var(--saffron); border-radius: 1px; }

/* ---- Screen: Bus Tracking (Clean High-Contrast GPS Navigation) ---- */
.screen-bus {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #DCE5ED;
  padding: 0;
  overflow: hidden;
}
.bus-top-bar {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bus-live-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #0B1630;
  color: #fff;
  padding: 3px 8px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.bus-live-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  animation: blink 1.2s infinite;
}
.bus-top-speed {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #0A2A5E;
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.bus-map-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.bus-map-bg svg {
  display: block;
  width: 100%;
  height: 100%;
}
.bus-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px;
  background: linear-gradient(to top, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.7) 70%, transparent 100%);
  z-index: 3;
}
.bus-eta-card {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 4px 14px rgba(10,42,94,0.12);
  display: flex;
  align-items: center;
  gap: 8px;
}
.bus-eta-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #FEF3C7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bus-eta-details {
  flex: 1;
  min-width: 0;
}
.bus-eta-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}
.bus-eta-pill {
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 700;
  background: #DCFCE7;
  color: #15803D;
  padding: 1px 5px;
  border-radius: 4px;
  text-transform: uppercase;
}
.bus-eta-eta {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 800;
  color: #0B1630;
}
.bus-eta-title {
  font-size: 9px;
  font-weight: 600;
  color: #0B1630;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bus-driver {
  font-size: 8px;
  color: #64748B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bus-call-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
}
.bus-call-btn:hover {
  background: #0d3575;
}

/* ---- Screen: Notices ---- */
.screen-notices {
  background: #f6f4ef;
  padding: 10px;
  overflow-y: auto;
}
.notices-title { font-size: 11px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.notice-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 7px;
}
.notice-tag {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 3px;
}
.notice-text {
  font-size: 9px;
  color: var(--ink-soft);
  line-height: 1.45;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow-wrap: anywhere;
}
.notice-date { font-family: var(--font-mono); font-size: 8px; color: var(--ink-mute); margin-top: 4px; }

/* Bottom Tab Bar inside phone */
.phone-tab-bar {
  display: flex;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 6px 0 4px;
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

.phone-tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px 0;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--ink-mute);
  font-size: 7px;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color var(--dur-fast);
  position: relative;
  z-index: 1;
}

.phone-tab-btn svg { width: 16px; height: 16px; stroke-width: 1.5; }
.phone-tab-btn.active { color: var(--midnight); }

/* Saffron sliding indicator under tabs */
.tab-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 20%;
  height: 2px;
  background: var(--saffron);
  border-radius: 0 0 2px 2px;
  transition: transform 0.3s var(--ease-out);
}

/* Gesture bar */
.phone-gesture-bar {
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.gesture-pill {
  width: 80px;
  height: 4px;
  border-radius: 2px;
  background: #ddd;
}

/* App layout responsive */
@media (max-width: 1023px) {
  .app-layout { flex-direction: column; align-items: center; }
  .app-text-col { max-width: 100%; order: 2; text-align: center; }
  .app-phone-col { order: 1; }
  .app-play-notice { margin-left: auto; margin-right: auto; }
  .app-section-body { max-width: 100%; }
}

@media (min-width: 1024px) {
  .app-layout { flex-direction: row; align-items: center; }
  .app-text-col { order: 1; }
  .app-phone-col { order: 2; justify-content: flex-end; }
  .phone-device { width: 300px; }
  .phone-screen-wrap { height: 500px; }
}

/* -------------------------------------------------------------------------
   C. ERP SECTION
   ------------------------------------------------------------------------- */
.erp-section {
  background-color: var(--midnight);
  color: #fff;
}

.erp-section h2 { color: #fff; }
.erp-section p { color: rgba(255,255,255,0.6); }
.erp-section .section-label { color: rgba(255,255,255,0.35); }

.erp-heading { color: #fff; margin-bottom: var(--s2); }
.erp-subline { max-width: 52ch; margin-bottom: var(--s6); }

/* Laptop/monitor mockup — fixed 1200x760 design, scaled via JS/CSS */
.erp-mockup-host {
  width: 100%;
  margin: 0 auto var(--s6);
  position: relative;
}

/* The element whose width we measure for scaling */
.erp-mockup-scaler {
  position: relative;
  /* height is set via JS as 760 * scale */
}

/* The actual 1200x760 design canvas */
.erp-mockup-canvas {
  width: 1200px;
  height: 760px;
  transform-origin: top left;
  /* transform: scale(...) applied via JS */
  background: #1a1e28;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), var(--shadow-card);
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 0;
  left: 0;
}

/* Browser chrome */
.erp-browser-bar {
  background: #12151f;
  padding: 0 16px;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.erp-traffic-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.erp-dot {
  width: 11px; height: 11px; border-radius: 50%;
}
.erp-dot-red    { background: #FF5F57; }
.erp-dot-amber  { background: #FFBD2E; }
.erp-dot-green  { background: #28C840; }

.erp-url-field {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  height: 26px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 6px;
  max-width: 380px;
  margin: 0 auto;
}

.erp-lock-icon { color: rgba(255,255,255,0.3); width: 11px; height: 11px; flex-shrink: 0; }
.erp-url-text {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ERP body area */
.erp-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Sidebar */
.erp-sidebar {
  width: 200px;
  flex-shrink: 0;
  background: #0f1220;
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  padding: 16px 0;
}

.erp-sidebar-logo {
  padding: 0 16px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 8px;
}
.erp-sidebar-logo-text {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.erp-module-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  border: none;
  background: none;
  text-align: left;
  width: 100%;
  transition: background var(--dur-fast), color var(--dur-fast);
  border-radius: 0;
}

.erp-module-btn svg {
  width: 15px; height: 15px;
  stroke-width: 1.5; flex-shrink: 0;
  opacity: 0.7;
}

.erp-module-btn:hover { background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.75); }

.erp-module-btn.active {
  background: rgba(232,163,23,0.10);
  color: #fff;
  position: relative;
}
.erp-module-btn.active::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--saffron);
  border-radius: 0 2px 2px 0;
}
.erp-module-btn.active svg { opacity: 1; color: var(--saffron); }

/* ERP Panel */
.erp-panel {
  flex: 1;
  padding: 24px;
  overflow: hidden;
  background: #1a1e28;
  position: relative;
}

.erp-panel-view {
  position: absolute;
  inset: 0;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.erp-panel-view.active {
  opacity: 1;
  pointer-events: all;
}

/* Panel sub-elements */
.erp-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.erp-panel-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
}

.erp-panel-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.35);
}

/* KPI cards */
.erp-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.erp-kpi-card {
  background: #12151f;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 14px 16px;
}

.erp-kpi-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 6px;
}

.erp-kpi-value {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 500;
  color: #fff;
  line-height: 1;
}

.erp-kpi-trend {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--success);
  margin-top: 4px;
}

/* Area chart placeholder */
.erp-chart-area {
  background: #12151f;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 16px;
  flex: 1;
  position: relative;
  overflow: hidden;
}

.erp-chart-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 12px;
}

.erp-chart-svg {
  width: 100%;
  height: 120px;
  overflow: visible;
}

.erp-chart-line {
  fill: none;
  stroke: var(--saffron);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  transition: stroke-dashoffset 1.5s 0.3s var(--ease-out);
}
.erp-chart-line.draw { stroke-dashoffset: 0; }

.erp-chart-area-fill {
  opacity: 0.08;
  fill: var(--saffron);
}

/* Students table */
.erp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.erp-table th {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.erp-table td {
  padding: 10px 12px;
  color: rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.erp-table tr:hover td { background: rgba(255,255,255,0.02); }

.erp-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.erp-badge-present { background: rgba(47,143,107,0.15); color: var(--success); }
.erp-badge-absent  { background: rgba(196,80,63,0.12);  color: var(--danger); }

/* Timetable grid in ERP */
.erp-timetable { font-size: 10px; }
.erp-tt-header {
  display: grid;
  grid-template-columns: 60px repeat(5, 1fr);
  gap: 4px; margin-bottom: 4px;
}
.erp-tt-daylabel {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
}
.erp-tt-row {
  display: grid;
  grid-template-columns: 60px repeat(5, 1fr);
  gap: 4px; margin-bottom: 4px;
}
.erp-tt-time {
  font-family: var(--font-mono);
  font-size: 8px;
  color: rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
}
.erp-tt-cell {
  background: rgba(255,255,255,0.04);
  border-radius: 4px;
  padding: 5px 6px;
  font-size: 8px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  min-height: 28px;
  display: flex;
  align-items: center;
}
.erp-tt-cell.math { background: rgba(232,163,23,0.12); color: #E8A317; }
.erp-tt-cell.sci  { background: rgba(47,143,107,0.12); color: var(--success); }
.erp-tt-cell.eng  { background: rgba(20,35,74,0.5);    color: rgba(255,255,255,0.8); }

/* ERP capabilities list below mockup */
.erp-capabilities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: var(--s6);
}

.erp-cap-item {
  display: flex;
  align-items: flex-start;
  gap: var(--s2);
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--line-light);
}

.erp-cap-item:nth-child(odd)  { padding-right: var(--s4); border-right: 1px solid var(--line-light); }
.erp-cap-item:nth-child(even) { padding-left: var(--s4); }

.erp-cap-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--saffron);
  flex-shrink: 0;
  margin-top: 2px;
}

.erp-cap-text h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.erp-cap-text p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
}

@media (max-width: 640px) {
  .erp-capabilities { grid-template-columns: 1fr; }
  .erp-cap-item:nth-child(odd)  { padding-right: 0; border-right: none; }
  .erp-cap-item:nth-child(even) { padding-left: 0; }
}

/* -------------------------------------------------------------------------
   D. STATS SECTION
   ------------------------------------------------------------------------- */
.stats-section { background-color: var(--paper); }

.stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat-item {
  flex: 1;
  min-width: 150px;
  padding: var(--s5) var(--s4);
  text-align: center;
  position: relative;
}

.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0; top: 25%; bottom: 25%;
  width: 1px;
  background: var(--line);
}

.stat-num {
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  display: block;
}

.stat-suffix {
  font-size: 0.6em;
  color: var(--saffron);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 8px;
}

@media (max-width: 640px) {
  .stats-row { flex-direction: column; }
  .stat-item + .stat-item::before { display: none; }
  .stat-item { border-bottom: 1px solid var(--line); padding: var(--s4); }
  .stat-item:last-child { border-bottom: none; }
}

/* -------------------------------------------------------------------------
   E. TESTIMONIALS
   ------------------------------------------------------------------------- */
.testimonials-section { background: var(--paper-2); }

.testimonial-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.testimonial-item {
  padding: var(--s6) 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s4);
  align-items: start;
}

.testimonial-item:first-child { border-top: 1px solid var(--line); }

.testimonial-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.5vw, 1.6rem);
  color: var(--ink);
  line-height: 1.45;
  letter-spacing: -0.01em;
  max-width: 68ch;
}

.testimonial-source {
  text-align: right;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}

.testimonial-role {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 4px;
}

@media (max-width: 640px) {
  .testimonial-item { grid-template-columns: 1fr; }
  .testimonial-source { text-align: left; }
}

/* -------------------------------------------------------------------------
   F. GROUP OF COMPANIES SECTION
   ------------------------------------------------------------------------- */
.group-section { background: var(--paper); }

/* -------------------------------------------------------------------------
   G. FINAL CTA BAND
   ------------------------------------------------------------------------- */
.cta-band {
  background-color: var(--midnight);
  color: #fff;
  text-align: center;
  padding: clamp(80px, 12vw, 140px) var(--s3);
}

.cta-band h2 {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: var(--s3);
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
}

.cta-band h2 em.serif { color: rgba(255,255,255,0.85); }

.cta-band p {
  color: rgba(255,255,255,0.55);
  font-size: 1.05rem;
  margin-bottom: var(--s5);
  max-width: 44ch;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: var(--s2);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.btn-cta-primary {
  background: var(--paper);
  color: var(--midnight);
  border-color: var(--paper);
  border-radius: var(--r-btn);
  height: 52px;
  padding: 0 2rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--dur-fast) var(--ease-out);
}

.btn-cta-primary:hover {
  background: rgba(246,244,239,0.88);
  transform: translateY(-1px);
}

.btn-cta-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--dur-fast);
}
.btn-cta-wa:hover { color: #fff; }

/* -------------------------------------------------------------------------
   Animations & Utility
   ------------------------------------------------------------------------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: none; }
}
