:root {

  /* ── Brand Colors (extracted directly from the SmartLearn logo) ── */
  --color-navy:          #1a253a;   /* Deep Trust Blue — logo text & icon outline */
  --color-navy-mid:      #243349;   /* Slightly lighter navy for hover states */
  --color-navy-light:    rgba(26, 37, 58, 0.08); /* Transparent navy for tinted fills */
  --color-orange:        #e67e22;   /* Energy Orange — logo arrow & lightbulb */
  --color-orange-dark:   #cf6d17;   /* Darker orange for hover/pressed states */
  --color-orange-light:  rgba(230, 126, 34, 0.12); /* Transparent orange for tinted fills */

  /* ── Background Colors ── */
  --bg-page:     #f4f7f6;   /* Cool light gray — main page background. Slightly cool
                               tone reduces contrast fatigue compared to pure white,
                               yet reads as clean and professional. */
  --bg-panel:    #ffffff;   /* Pure white — cards, modals, form panels. The contrast
                               between #f4f7f6 and #ffffff creates natural depth
                               without needing shadows everywhere. */
  --bg-navy:     #1a253a;   /* Deep navy — header, footer, hero. Creates strong visual
                               bookmarks at the top and bottom of the page. */
  --bg-navy-alt: #1e2c42;   /* Slightly lighter navy for alternating hero rows */

  /* ── Text Colors ── */
  --text-heading:  #1a253a;   /* Deep Trust Blue for headings — matches the logo */
  --text-body:     #2c3e50;   /* Deep charcoal for body text — warm enough to feel
                                 human, dark enough for high readability */
  --text-muted:    #6b7e8f;   /* Mid-gray for secondary text, placeholders, captions */
  --text-on-navy:  #e8edf4;   /* Light blue-gray for text on dark navy backgrounds */
  --text-on-orange:#ffffff;   /* White for text on orange CTA buttons */

  /* ── Border / Separator Colors ── */
  --border-default: #d1d8db;    /* Mid-tone cool gray — used for card borders, dividers */
  --border-focus:   rgba(230, 126, 34, 0.45); /* Orange focus ring on inputs */
  --border-nav:     rgba(255, 255, 255, 0.1); /* Subtle white border inside dark header */

  /* ── Semantic Status Colors ── */
  --color-success: #27ae60;   /* Green for success states, checkmarks */
  --color-error:   #e74c3c;   /* Red for validation errors */
  --color-warning: #f39c12;   /* Amber for warnings */

  /* ── Typography ── */
  --font-heading: 'Poppins', sans-serif;  /* Geometric sans — matches logo's Poppins-like style */
  --font-body:    'Inter',   sans-serif;  /* Humanist sans — optimised for on-screen reading */

  /* ── Layout ── */
  --container-max:   1140px;
  --section-padding: 96px 5%;
  --radius-sm:   8px;
  --radius-md:  14px;
  --radius-lg:  22px;
  --radius-pill: 50px;

  /* ── Transitions ── */
  --transition-fast:   0.18s ease;
  --transition-smooth: 0.32s ease;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;   /* Native smooth scrolling for anchor links */
  font-size: 16px;           /* Base font size; rem units throughout are relative to this */
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.65;
  overflow-x: hidden;        /* Prevents horizontal scrollbar from animation overflow */
}

/* Custom scrollbar — a small brand-touch on WebKit browsers */
::-webkit-scrollbar        { width: 6px; }
::-webkit-scrollbar-track  { background: var(--bg-page); }
::-webkit-scrollbar-thumb  { background: var(--color-orange); border-radius: 3px; }

.section-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--section-padding);
}

section {
  position: relative;
}

/* ── Section Typography (shared labels, titles, subtitles) ── */

/* Small orange pill above section headings — e.g., "Features", "About Us" */
.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-orange);
  background: var(--color-orange-light);
  border: 1px solid rgba(230, 126, 34, 0.22);
  border-radius: var(--radius-pill);
  padding: 4px 14px;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 48px;
  line-height: 1.75;
}

/* Centre-aligned section header block (used on Features, Courses) */
.section-header {
  text-align: center;
}
.section-header .section-subtitle {
  margin: 0 auto 48px;
}

/* ── Gradient text accent (used on key words like "AI-Powered") ──
   The orange-to-navy gradient matches the logo's two brand colors,
   making gradient text feel intentional rather than decorative.
*/
.text-gradient {
  background: linear-gradient(135deg, var(--color-orange), var(--color-navy));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Scroll-in Animation
   Elements with .animate-on-scroll start invisible and translated down.
   trail.js's IntersectionObserver adds .is-visible when they enter the
   viewport, triggering the CSS transition to fade and slide them in.
*/
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 70px;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(247, 251, 254);      /* Deep Trust Blue — consistent with logo */
  border-bottom: 1px solid var(--border-nav);
  transition: box-shadow var(--transition-smooth);
}

/* Adds a refined shadow once the user has scrolled past the hero */
#site-header.is-scrolled {
  box-shadow: 0 2px 20px rgba(26, 37, 58, 0.45);
}

/* ── Logo ──
   The .logo anchor wraps the <img> tag.
   Flexbox aligns the image cleanly within the header height.
*/
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-image {
  height: 71px;
  width: auto;
  display: block;

}

/* Desktop navigation links */
#main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

#main-nav a {
  color: var(--color-navy);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  transition: color var(--transition-fast);
  padding-bottom: 2px;
}

/* Animated orange underline on hover — the orange accent on the navy
   background exactly mirrors the logo's orange-on-navy color relationship. */
#main-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-fast);
}

#main-nav a:hover {
  color: var(--color-orange);
}

#main-nav a:hover::after {
  transform: scaleX(1);
}

/* Mobile hamburger — hidden on desktop */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-on-navy);
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
}

/* Mobile nav panel — shown when JS adds .is-open */
#main-nav.is-open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background-color: var(--color-navy);
  padding: 20px 5%;
  gap: 18px;
  border-bottom: 1px solid var(--border-nav);
  z-index: 999;
}

.btn-primary {
  background-color: var(--color-orange);
  color: var(--text-on-orange);
  border: 2px solid var(--color-orange);
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background-color var(--transition-fast),
              border-color var(--transition-fast),
              box-shadow var(--transition-fast),
              transform var(--transition-fast);
}

.btn-primary:hover {
  background-color: var(--color-orange-dark);
  border-color: var(--color-orange-dark);
  box-shadow: 0 6px 22px rgba(230, 126, 34, 0.38);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-navy);
  border: 2px solid var(--color-navy);
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color var(--transition-fast),
              color var(--transition-fast),
              transform var(--transition-fast);
}

/* On the dark hero background the secondary button needs white text */
#home .btn-secondary {
  color: var(--text-on-navy);
  border-color: rgba(255, 255, 255, 0.35);
}

#home .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.btn-secondary:hover {
  background-color: var(--color-navy);
  color: #fff;
  transform: translateY(-2px);
}

#home {
  background-color: var(--bg-navy);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 70px;   /* Offset for the fixed 70px header */
}

/* Two-column grid: text left, robot illustration right */
.hero-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

/* "Now powered by GPT-4" badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(230, 126, 34, 0.12);
  border: 1px solid rgba(230, 126, 34, 0.3);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  font-size: 13px;
  color: #f0a35a;
  margin-bottom: 22px;
  animation: fadeUp 0.7s ease both;
}

/* Pulsing dot in the badge — uses orange to match the badge border */
.pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--color-orange);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.3; transform: scale(0.65); }
}

/* Hero headline */
#home h1 {
  font-family: var(--font-heading);
  font-size: clamp(30px, 4.2vw, 54px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  animation: fadeUp 0.7s ease 0.1s both;
}

.hero-subtitle {
  font-size: clamp(14px, 1.5vw, 16px);
  color: rgba(232, 237, 244, 0.8);
  max-width: 460px;
  margin-bottom: 32px;
  line-height: 1.8;
  animation: fadeUp 0.7s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeUp 0.7s ease 0.3s both;
}

/* Social proof strip */
.social-proof {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
  animation: fadeUp 0.7s ease 0.4s both;
}

.avatar-stack {
  display: flex;
}

.avatar-stack img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--color-navy);
  margin-left: -9px;
  object-fit: cover;
}

.avatar-stack img:first-child {
  margin-left: 0;
}

.social-proof-text {
  font-size: 13px;
  color: rgba(232, 237, 244, 0.7);
}

.social-proof-text strong {
  color: #ffffff;
}

/* Shared entrance animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.robot-container {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
  animation: fadeUp 0.7s ease 0.5s both;
}

.robot-scene {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Ground line — orange glow mirrors the logo arrow color */
.ground-line {
  position: absolute;
  bottom: 50px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-orange), transparent);
  box-shadow: 0 0 14px rgba(230, 126, 34, 0.5);
}

/* Walking robot — animates left to right */
.walking-robot {
  position: absolute;
  bottom: 52px;
  left: -100px;
  width: 70px;
  height: 70px;
  animation: walk-bounce 1s infinite ease-in-out,
             move-across 20s infinite linear;
  z-index: 3;
}

@keyframes move-across {
  0%   { left: -10%; }
  100% { left: 110%; }
}

@keyframes walk-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-3px); }
}

.robot-body {
  position: relative;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--color-navy-mid), var(--color-navy));
  border-radius: 30% 30% 20% 20%;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.12);
  margin: 0 auto;
}

/* Robot head — orange to match logo's accent */
.robot-head {
  position: absolute;
  top: -12px;
  left: 12px;
  width: 26px;
  height: 22px;
  background: linear-gradient(135deg, var(--color-orange), var(--color-orange-dark));
  border-radius: 50% 50% 40% 40%;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.robot-head::before,
.robot-head::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 5px;
  background: white;
  border-radius: 50%;
  top: 7px;
}

.robot-head::before { left: 4px; }
.robot-head::after  { right: 4px; }

.antenna {
  position: absolute;
  top: -6px;
  left: 10px;
  width: 3px;
  height: 8px;
  background: var(--color-orange);
  border-radius: 2px;
}

.antenna::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -2.5px;
  width: 6px;
  height: 6px;
  background: #ffd07a;   /* Warm yellow — antenna light tip */
  border-radius: 50%;
  animation: antenna-blink 2s infinite;
}

@keyframes antenna-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

.robot-arm {
  position: absolute;
  width: 10px;
  height: 22px;
  background: var(--color-navy-mid);
  border-radius: 5px;
  top: 8px;
}

.arm-left  { left: -11px;  transform: rotate(-15deg); animation: arm-left 1s infinite ease-in-out; }
.arm-right { right: -11px; transform: rotate(15deg);  animation: arm-right 1s infinite ease-in-out; }

@keyframes arm-left  { 0%, 100% { transform: rotate(-15deg); } 50% { transform: rotate(-30deg); } }
@keyframes arm-right { 0%, 100% { transform: rotate(15deg);  } 50% { transform: rotate(30deg); } }

.robot-leg {
  position: absolute;
  width: 10px;
  height: 20px;
  background: var(--color-orange);
  border-radius: 4px;
  bottom: -18px;
}

.leg-left  { left: 8px;  animation: leg-left 1s infinite ease-in-out; }
.leg-right { right: 8px; animation: leg-right 1s infinite ease-in-out; }

@keyframes leg-left  { 0%, 100% { transform: rotate(10deg);  } 50% { transform: rotate(-10deg); } }
@keyframes leg-right { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(10deg); } }

.robot-book {
  position: absolute;
  width: 22px;
  height: 16px;
  background: linear-gradient(135deg, #ffd07a, var(--color-orange));
  border-radius: 3px;
  bottom: 4px;
  left: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Floating reading robot in the centre */
.reading-robot {
  position: absolute;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  animation: float 3s ease-in-out infinite;
  z-index: 2;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-7px); }
}

/* Speech bubble above the reading robot */
.speech-bubble {
  position: absolute;
  top: -36px;
  left: 50px;
  background: var(--bg-panel);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-size: 11px;
  color: var(--text-body);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  animation: float 3s ease-in-out infinite 0.5s;
}

.speech-bubble::before {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 10px;
  border: 7px solid transparent;
  border-top-color: var(--border-default);
  border-bottom: 0;
}

/* Tiny decorative robot, right side */
.mini-robot {
  position: absolute;
  bottom: 52px;
  right: 15%;
  width: 45px;
  animation: float 4s ease-in-out infinite 1s;
}

.mini-robot .robot-body { width: 35px; height: 35px; }
.mini-robot .robot-head { width: 18px; height: 16px; top: -9px; left: 8px; }
.mini-robot .robot-leg  { height: 14px; width: 7px; bottom: -12px; }
.mini-robot .robot-leg.leg-left  { left: 5px; }
.mini-robot .robot-leg.leg-right { right: 5px; }
.mini-robot .robot-arm  { width: 7px; height: 16px; }
.mini-robot .robot-book { width: 15px; height: 11px; left: 10px; }

#features {
  background-color: var(--bg-page);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 28px;
  cursor: pointer;
  transition: border-color var(--transition-fast),
              transform var(--transition-fast),
              box-shadow var(--transition-fast);
}

.feature-card:hover {
  border-color: var(--color-orange);
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(26, 37, 58, 0.1);
}

.feature-card:focus {
  outline: 2px solid var(--color-orange);
  outline-offset: 3px;
}

/* Feature icon badge */
.feature-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 18px;
}

/* Two icon variants — alternating navy and orange (see HTML comments) */
.feature-icon-navy   { background-color: var(--color-navy); }
.feature-icon-orange { background-color: var(--color-orange); }

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 9px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

.click-hint {
  display: inline-block;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-orange);
}

/* Feature detail overlay (dark screen behind the info panel) */
.feature-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 37, 58, 0.55);
  backdrop-filter: blur(4px);
  z-index: 800;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.feature-overlay.is-active {
  opacity: 1;
  pointer-events: all;
}

/* Slide-up info box */
.feature-info-box {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: min(520px, 92vw);
  background: var(--bg-panel);
  border: 1px solid var(--border-default);
  border-top: 4px solid var(--color-orange);   /* Orange top stripe — brand accent */
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 36px 32px;
  z-index: 801;
  transition: transform var(--transition-smooth);
  text-align: center;
}

.feature-info-box.is-active {
  transform: translateX(-50%) translateY(0);
}

.feature-info-box .fib-icon {
  font-size: 46px;
  margin-bottom: 12px;
  display: block;
}

.feature-info-box h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 10px;
}

.feature-info-box p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 18px;
  line-height: 1.65;
}

.feature-detail {
  background: var(--bg-page);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 13px;
  color: var(--text-body);
  text-align: left;
  margin-bottom: 22px;
  line-height: 1.85;
}

.close-info-btn {
  background: var(--color-navy);
  color: #fff;
  border: none;
  padding: 10px 28px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-heading);
  transition: background-color var(--transition-fast);
}

.close-info-btn:hover {
  background-color: var(--color-navy-mid);
}

#services {
  background-color: var(--bg-panel);   /* White panel — alternates with page gray */
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  background: var(--bg-page);           /* Light gray — inverted from section bg */
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.service-card:hover {
  border-color: var(--color-navy);
  transform: translateY(-3px);
}

/* Service icon — large emoji in an orange-tinted pill */
.service-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: var(--color-orange-light);
  border: 1px solid rgba(230, 126, 34, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 18px;
}

/* Pill tags for service categories */
.service-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  background: var(--color-navy-light);
  color: var(--color-navy);
  border: 1px solid rgba(26, 37, 58, 0.15);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
}

#about {
  background-color: var(--bg-page);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 14px;
}

.about-text strong {
  color: var(--text-heading);
}

/* 2×2 stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.stat-item {
  background: var(--bg-panel);
  border: 1px solid var(--border-default);
  border-left: 4px solid var(--color-orange);  /* Orange left stripe — brand anchor */
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* About section illustration panel */
.about-illustration {
  background: var(--bg-panel);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 32px;
}

/* Logo reused as a large brand mark illustration */
.about-logo-display {
  max-width: 320px;
  width: 100%;
  height: auto;
  opacity: 0.9;
}

#courses {
  background-color: var(--bg-panel);
  border-top: 1px solid var(--border-default);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.course-card {
  background: var(--bg-page);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(26, 37, 58, 0.12);
}

.course-thumbnail {
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.course-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.course-card:hover .course-thumbnail img {
  transform: scale(1.05);
}

.course-body {
  padding: 20px;
}

.course-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

/* Course category pill — color set inline by the Course class */
.course-tag {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
}

.course-level {
  font-size: 12px;
  color: var(--text-muted);
}

.course-body h4 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 6px;
}

.course-body p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
}

.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.course-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--text-body);
}

.course-rating i {
  color: var(--color-orange);   /* Orange star — brand consistent */
}

/* Enrol button */
.btn-enrol {
  background: var(--color-orange-light);
  border: 1px solid rgba(230, 126, 34, 0.25);
  color: var(--color-orange-dark);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background-color var(--transition-fast),
              color var(--transition-fast),
              border-color var(--transition-fast);
}

.btn-enrol:hover {
  background: var(--color-orange);
  border-color: var(--color-orange);
  color: #ffffff;
}


/* ── SECTION 12: AUTH (LOGIN / SIGNUP)
*/
#login {
  background-color: var(--bg-page);
}

.auth-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.auth-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 26px;
}

/* Benefits checklist */
.benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.benefits-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-body);
}

.benefits-list i {
  color: var(--color-success);
  font-size: 16px;
  flex-shrink: 0;
}

/* The white auth card */
.auth-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(26, 37, 58, 0.08);
}

/* Tab row — navy background echoes the header */
.auth-tabs {
  display: flex;
  background: var(--color-navy);
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 15px;
  cursor: pointer;
  font-weight: 600;
  color: rgba(232, 237, 244, 0.65);
  transition: color var(--transition-fast), background-color var(--transition-fast);
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 0.04em;
  background: none;
  border: none;
}

/* Active tab uses orange — the action color — to signal selection */
.auth-tab.active {
  color: #ffffff;
  background: var(--color-orange);
}

.auth-form-area {
  padding: 28px 30px;
}

.form-panel        { display: none; }
.form-panel.active { display: block; }

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-heading);
  margin-bottom: 7px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg-page);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--text-body);           /* Deep charcoal — readable */
  font-size: 14px;
  font-family: var(--font-body);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px var(--border-focus);  /* Orange focus ring */
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.form-group textarea {
  min-height: 110px;
  resize: vertical;
}

/* Password strength bar */
.password-strength-bar {
  height: 4px;
  background: var(--border-default);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}

.password-strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.password-strength-text {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

/* Validation error message */
.form-error {
  font-size: 12px;
  color: var(--color-error);
  margin-top: 5px;
  display: none;   /* JS changes to 'block' on validation failure */
}

.form-group.has-error input,
.form-group.has-error textarea {
  border-color: var(--color-error);
}

/* Full-width form submit button — uses orange CTA style */
.btn-submit {
  width: 100%;
  background: var(--color-navy);
  border: 2px solid var(--color-navy);
  color: #ffffff;
  padding: 13px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-heading);
  transition: background-color var(--transition-fast),
              transform var(--transition-fast),
              box-shadow var(--transition-fast);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

.btn-submit:hover {
  background: var(--color-orange);
  border-color: var(--color-orange);
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(230, 126, 34, 0.3);
}


/* ── SECTION 14: FEEDBACK
*/
#feedback {
  background-color: var(--bg-panel);
  border-top: 1px solid var(--border-default);
}

.feedback-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.feedback-card {
  background: var(--bg-page);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 34px;
}

.feedback-card h3 {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 22px;
}

#feedback .form-group input,
#feedback .form-group textarea {
  background: var(--bg-panel);
}

/* Contact info list */
.contact-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
  font-style: normal;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.contact-item i {
  color: var(--color-orange);
  width: 16px;
  flex-shrink: 0;
}

.contact-item a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contact-item a:hover {
  color: var(--color-navy);
}

footer {
  background-color: var(--color-navy);
  padding: 60px 5% 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 0 0 0;
}

.footer-brand p {
  font-size: 13px;
  color: rgba(232, 237, 244, 0.6);
  line-height: 1.75;
  margin: 16px 0 20px;
  max-width: 280px;
}

/* Footer logo — same image, smaller height */
.logo-image-footer {
  height: 92px;
  width: 200px;
  display: block;
  /* Slight brightness boost so the logo reads well on dark navy */
  filter: brightness(1.1);
}

/* Social icon buttons */
.social-links {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(232, 237, 244, 0.6);
  text-decoration: none;
  font-size: 14px;
  transition: background-color var(--transition-fast),
              color var(--transition-fast),
              border-color var(--transition-fast);
}

.social-btn:hover {
  background: var(--color-orange);
  border-color: var(--color-orange);
  color: #ffffff;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: rgba(232, 237, 244, 0.55);
  text-decoration: none;
  font-size: 13px;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--color-orange);
}

/* Footer bottom bar */
.footer-bottom {
  max-width: var(--container-max);
  margin: 44px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(232, 237, 244, 0.4);
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 37, 58, 0.6);
  backdrop-filter: blur(6px);
  z-index: 9200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.popup-box {
  background: var(--bg-panel);
  border: 1px solid var(--border-default);
  border-top: 4px solid var(--color-orange);  /* Orange top stripe — brand signature */
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  position: relative;
  transform: translateY(18px) scale(0.97);
  transition: transform var(--transition-smooth);
}

.overlay.is-open .popup-box {
  transform: translateY(0) scale(1);
}

.popup-icon {
  font-size: 50px;
  margin-bottom: 14px;
  display: block;
}

.popup-box h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.popup-box p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 22px;
  line-height: 1.65;
}

/* X close button */
.popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition-fast);
}

.popup-close:hover {
  color: var(--color-navy);
}

.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  background: var(--bg-panel);
  border: 1px solid var(--border-default);
  border-left: 4px solid var(--color-orange);  /* Orange left accent stripe */
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
  transform: translateY(80px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  box-shadow: 0 8px 30px rgba(26, 37, 58, 0.15);
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon { font-size: 20px; }

.toast-body strong {
  display: block;
  font-size: 14px;
  color: var(--text-heading);
  margin-bottom: 2px;
}

.toast-body span {
  color: var(--text-muted);
  font-size: 12px;
}

@media (max-width: 1024px) {
  .hero-wrap,
  .about-grid,
  .auth-wrapper,
  .feedback-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .features-grid,
  .services-grid,
  .courses-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  /* Hide desktop nav; hamburger appears */
  #main-nav {
    display: none;
  }

  #main-nav.is-open {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .features-grid,
  .services-grid,
  .courses-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .robot-container {
    height: 180px;
  }

  .mini-robot {
    display: none;
  }

  .speech-bubble {
    left: 42px;
    font-size: 10px;
  }
}