/* --- RESET & BASIC STYLES --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #f8fafc;
  color: #0f172a;
  line-height: 1.5;
}

html {
  scroll-behavior: smooth;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- NAVBAR --- */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
}

.nav-inner {
  display: grid;
  grid-template-columns: auto minmax(220px, 360px) auto auto;
  align-items: center;
  min-height: 76px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #f8fafc;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.7rem;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.35);
  font-size: 1rem;
}

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

.nav-search {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  background: rgba(248, 250, 252, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 0.7rem;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-search:focus-within {
  background: rgba(248, 250, 252, 0.14);
  border-color: rgba(96, 165, 250, 0.8);
}

.nav-search input {
  width: 100%;
  min-width: 0;
  padding: 0.68rem 0.85rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f8fafc;
  font: inherit;
  font-size: 0.875rem;
}

.nav-search input::placeholder {
  color: #94a3b8;
}

.nav-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.7rem;
  height: 2.7rem;
  flex: 0 0 2.7rem;
  border: 0;
  background: transparent;
  color: #bfdbfe;
  font-size: 1.35rem;
  cursor: pointer;
}

.nav-search button:hover {
  color: #ffffff;
}

.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;
}

.permission-notice { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 3000; display: flex; align-items: center; gap: 1rem; width: min(100% - 2.5rem, 440px); padding: 1rem 1.1rem; border: 1px solid #bfdbfe; border-radius: 0.8rem; background: rgba(15, 23, 42, 0.96); color: #f8fafc; box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25); }
.permission-notice strong { display: block; font-size: 0.9rem; }
.permission-notice p { margin-top: 0.25rem; color: #cbd5e1; font-size: 0.75rem; line-height: 1.45; }
.permission-notice button { flex: 0 0 auto; padding: 0.6rem 0.75rem; border: 0; border-radius: 0.5rem; background: #2563eb; color: #ffffff; font: inherit; font-size: 0.75rem; font-weight: 700; cursor: pointer; }
.permission-notice button:disabled { cursor: wait; opacity: 0.6; }
.permission-notice .permission-dismiss { padding: 0.25rem; background: transparent; color: #cbd5e1; font-size: 1.2rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.1rem;
  border-radius: 0.7rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.87rem;
  transition: all 0.2s ease;
}

.nav-link-btn-secondary {
  color: #e2e8f0;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.nav-link-btn-secondary:hover {
  background: rgba(148, 163, 184, 0.12);
}

.nav-link-btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.35);
}

.nav-link-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 15px 30px rgba(37, 99, 235, 0.45);
}

@media (max-width: 900px) {
  .nav-inner {
    flex-wrap: wrap;
    grid-template-columns: 1fr auto;
    justify-content: center;
    padding: 1rem 0;
  }

  .nav-search {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    max-width: 420px;
  }

  .nav-links {
    width: 100%;
    grid-column: 1 / -1;
    grid-row: 3;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem 1.4rem;
  }
}

@media (max-width: 520px) {
  .nav-inner {
    grid-template-columns: 1fr;
  }

  .brand,
  .nav-actions {
    justify-self: center;
  }

  .nav-actions {
    width: 100%;
    justify-content: center;
  }

  .nav-link-btn {
    flex: 1;
  }
}

/* --- UTILITIES --- */
.text-center { text-align: center; }
.mb-16 { margin-bottom: 4rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.w-full { width: 100%; }
.items-center { align-items: center; }
.block { display: block; }
.text-emerald { color: #34d399; }
.text-blue { color: #60a5fa; }
.text-indigo { color: #818cf8; }
.text-indigo-light { color: #a5b4fc; }
.text-slate-gray { color: #94a3b8; }
.text-muted { color: #64748b; }

/* --- GRIDS --- */
.grid-2, .grid-3 { display: grid; gap: 2rem; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { grid-template-columns: 1.2fr 0.8fr; display: grid; gap: 3rem; align-items: center;}
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  text-align: center;
  cursor: pointer;
  border: none;
}
.btn-primary { background-color: #2563eb; color: #ffffff; box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.2); }
.btn-primary:hover { background-color: #1d4ed8; }
.btn-secondary { background-color: #1e293b; color: #ffffff; border: 1px solid #334155; }
.btn-secondary:hover { background-color: #334155; }
.btn-indigo { background-color: #4f46e5; color: #ffffff; font-size: 0.875rem; }
.btn-indigo:hover { background-color: #4338ca; }

/* --- 1. HERO SECTION --- */
.hero-section {
  background: #020617;
  color: #ffffff;
  min-height: 620px;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(15, 23, 42, 0.74) 46%, rgba(2, 6, 23, 0.78) 100%);
}
.hero-backdrops,
.hero-backdrop {
  position: absolute;
  inset: 0;
}
.hero-backdrop {
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1s ease, transform 7s ease;
  z-index: -2;
}
.hero-backdrop.is-active {
  opacity: 1;
  transform: scale(1);
}
.hero-grid {
  position: relative;
  z-index: 1;
}
.badge {
  background-color: rgba(37, 99, 235, 0.3);
  color: #60a5fa;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero-title { font-size: 2.5rem; font-weight: 800; line-height: 1.2; margin-top: 1rem; }
@media (min-width: 768px) { .hero-title { font-size: 3.5rem; } }
.highlight { color: #3b82f6; }
.hero-desc { font-size: 1.125rem; color: #cbd5e1; max-width: 36rem; margin-top: 1.5rem; }
.hero-cta-group { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-content-enter { animation: heroContentEnter 0.7s ease both; }
.hero-dots { display: flex; gap: 0.55rem; margin-top: 2.25rem; }
.hero-dot { width: 2rem; height: 0.3rem; padding: 0; border: 0; border-radius: 999px; background: rgba(203, 213, 225, 0.4); cursor: pointer; transition: width 0.25s ease, background 0.25s ease; }
.hero-dot.is-active { width: 3.5rem; background: #60a5fa; }

/* --- MOVING ANNOUNCEMENT BAR --- */
.announcement-bar { overflow: hidden; border-top: 1px solid rgba(96, 165, 250, 0.3); border-bottom: 1px solid rgba(96, 165, 250, 0.3); background: #0b1630; color: #dbeafe; }
.announcement-track { display: flex; width: max-content; animation: announcementScroll 28s linear infinite; }
.announcement-content { display: flex; align-items: center; gap: 1.5rem; min-height: 3rem; padding-right: 1.5rem; white-space: nowrap; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; }
.announcement-label { color: #67e8f9; font-size: 0.68rem; letter-spacing: 0.12em; }

/* --- HERO CARD VISUAL --- */
.hero-visual { position: relative; display: flex; justify-content: center; }
.pulse-glow {
  width: 24rem; height: 24rem; background: linear-gradient(to top right, #3b82f6, #4f46e5);
  border-radius: 1.5rem; opacity: 0.15; filter: blur(40px); position: absolute;
  animation: pulseAnimation 3s infinite alternate;
}
.dashboard-card {
  background-color: rgba(15, 23, 42, 0.8); backdrop-filter: blur(20px);
  border: 1px solid #1e293b; padding: 2rem; border-radius: 1rem; width: 100%; max-width: 28rem; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.card-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #1e293b; padding-bottom: 1rem; margin-bottom: 1.5rem; }
.card-title { font-weight: 600; color: #e2e8f0; }
.live-indicator { display: flex; position: relative; width: 8px; height: 8px; }
.live-indicator .ping { position: absolute; width: 100%; height: 100%; border-radius: 50%; background-color: #34d399; opacity: 0.75; animation: pingAnimation 1s cubic-bezier(0, 0, 0.2, 1) infinite; }
.live-indicator .dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background-color: #10b981; }
.pulse-stat { display: flex; justify-content: space-between; align-items: center; background-color: rgba(30, 41, 59, 0.5); padding: 0.75rem; border-radius: 0.5rem; font-size: 0.875rem; margin-bottom: 1rem; }
.stat-label { color: #94a3b8; }
.stat-value { font-family: monospace; font-weight: 700; }

/* --- 4. CONTACT & AI HELP --- */
.contact-section { background: #eaf0fb; padding: 5rem 0; }
.contact-content { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr); gap: 4rem; align-items: center; }
.contact-intro .section-title { color: #0f172a; }
.contact-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.contact-detail-item { padding: 1.2rem; border: 1px solid #cbd5e1; border-radius: 0.75rem; background: rgba(255, 255, 255, 0.8); }
.contact-detail-label { display: block; margin-bottom: 0.35rem; color: #64748b; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.contact-detail-item a,
.contact-detail-item p { color: #0f172a; font-size: 0.95rem; font-weight: 700; text-decoration: none; }
.contact-detail-item a:hover { color: #4f46e5; }
.contact-detail-item small { display: block; margin-top: 0.45rem; color: #64748b; font-size: 0.72rem; }
.ai-help-points { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 2rem; }
.ai-help-points span { padding: 0.55rem 0.8rem; border: 1px solid #c7d2fe; border-radius: 999px; background: #ffffff; color: #3730a3; font-size: 0.82rem; font-weight: 700; }
.ai-open-trigger { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 2rem; padding: 0.85rem 1.1rem; border: 0; border-radius: 0.65rem; background: #4f46e5; color: #ffffff; font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 12px 24px rgba(79, 70, 229, 0.22); }
.ai-open-trigger:hover { background: #4338ca; transform: translateY(-1px); }
.ai-chat-overlay { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 1.25rem; background: rgba(15, 23, 42, 0.48); backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
.ai-chat-overlay.is-open { opacity: 1; pointer-events: auto; }
.ai-chat { width: min(100%, 560px); overflow: hidden; background: #0f172a; border: 1px solid #475569; border-radius: 1rem; box-shadow: 0 25px 70px rgba(2, 6, 23, 0.45); transform: translateY(16px) scale(0.98); transition: transform 0.25s ease; }
.ai-chat-overlay.is-open .ai-chat { transform: translateY(0) scale(1); }
.ai-chat-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.4rem; border-bottom: 1px solid #334155; }
.ai-chat-header h3 { margin-top: 0.2rem; color: #f8fafc; font-size: 1.1rem; }
.ai-chat-kicker { color: #a5b4fc; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.ai-chat-header-actions { display: flex; align-items: center; gap: 0.8rem; }
.ai-status { display: inline-flex; align-items: center; gap: 0.4rem; color: #86efac; font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.ai-status span { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: #22c55e; }
.ai-chat-close { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border: 1px solid #475569; border-radius: 0.5rem; background: transparent; color: #cbd5e1; font-size: 1.35rem; line-height: 1; cursor: pointer; }
.ai-chat-close:hover { background: #1e293b; color: #ffffff; }
.ai-chat-messages { display: flex; flex-direction: column; gap: 0.8rem; min-height: 250px; max-height: 340px; overflow-y: auto; padding: 1.25rem 1.4rem; background: #111827; }
.chat-message { max-width: 88%; padding: 0.75rem 0.9rem; border-radius: 0.8rem; font-size: 0.9rem; line-height: 1.55; white-space: pre-wrap; }
.chat-message-bot { align-self: flex-start; background: #1e293b; color: #dbeafe; border: 1px solid #334155; }
.chat-message-user { align-self: flex-end; background: #2563eb; color: #ffffff; }
.ai-chat-form { display: flex; gap: 0.65rem; padding: 1rem 1.4rem 0.75rem; background: #0f172a; }
.ai-chat-form textarea { width: 100%; resize: none; border: 1px solid #475569; border-radius: 0.65rem; padding: 0.75rem; outline: none; background: #1e293b; color: #f8fafc; font: inherit; font-size: 0.88rem; }
.ai-chat-form textarea:focus { border-color: #60a5fa; }
.ai-chat-form textarea::placeholder { color: #94a3b8; }
.voice-search-button { align-self: stretch; min-width: 2.8rem; border: 1px solid #475569; border-radius: 0.65rem; background: #1e293b; color: #bfdbfe; font-size: 1.05rem; cursor: pointer; }
.voice-search-button:hover { border-color: #60a5fa; background: #263854; }
.voice-search-button.is-listening { background: #be123c; border-color: #fb7185; color: #ffffff; animation: voicePulse 1s ease-in-out infinite; }
.voice-search-button:disabled { cursor: not-allowed; opacity: 0.45; }
.chat-send { align-self: stretch; min-width: 5.2rem; border: 0; border-radius: 0.65rem; background: #4f46e5; color: #ffffff; font-weight: 700; cursor: pointer; }
.chat-send:hover { background: #4338ca; }
.chat-send:disabled { opacity: 0.65; cursor: wait; }
.ai-chat-note { padding: 0 1.4rem 1rem; color: #94a3b8; font-size: 0.72rem; }
body.chat-is-open { overflow: hidden; }

/* --- DEDICATED AI CHAT PAGE --- */
.ai-chat-page { min-height: 100vh; overflow: hidden; background: #020617; }
.home-blur-backdrop { position: fixed; inset: -12px; z-index: 0; width: calc(100% + 24px); height: calc(100% + 24px); border: 0; filter: blur(9px); pointer-events: none; transform: scale(1.02); }
.home-blur-overlay { position: fixed; inset: 0; z-index: 1; background: rgba(2, 6, 23, 0.58); }
.ai-chat-page-layer { position: relative; z-index: 2; display: flex; flex-direction: column; min-height: 100vh; padding: 1.25rem; }
.ai-chat-page-topbar { display: flex; align-items: center; justify-content: space-between; width: min(100%, 900px); margin: 0 auto; }
.back-home-link { color: #dbeafe; font-size: 0.9rem; font-weight: 700; text-decoration: none; }
.back-home-link:hover { color: #ffffff; }
.ai-page-label { color: #bfdbfe; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.ai-chat-page-card { width: min(100%, 560px); margin: auto; }
.ai-chat-page .ai-chat-header h1 { margin-top: 0.2rem; color: #f8fafc; font-size: 1.25rem; }

/* --- 2. GATEWAYS/SERVICES --- */
.services-section { position: relative; overflow: hidden; padding: 5rem 0 6rem; background: linear-gradient(180deg, #f8fafc 0%, #eef4ff 100%); }
.services-section::before { content: ""; position: absolute; top: 9rem; left: 50%; width: min(80vw, 900px); height: 15rem; transform: translateX(-50%); background: rgba(96, 165, 250, 0.12); border-radius: 50%; filter: blur(70px); pointer-events: none; }
.services-section > .container { position: relative; z-index: 1; }
.section-title { font-size: 2rem; font-weight: 700; color: #0f172a; }
.section-subtitle { color: #475569; margin-top: 0.5rem; }
.card { background-color: #ffffff; border: 1px solid #e2e8f0; border-radius: 1rem; padding: 2rem; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 16px 30px rgba(15, 23, 42, 0.06); transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease; }
.service-card { position: relative; min-height: 370px; overflow: hidden; animation: cardReveal 0.7s ease both; }
.service-card::before { content: ""; position: absolute; top: -5rem; right: -4rem; width: 12rem; height: 12rem; border-radius: 50%; opacity: 0.18; filter: blur(2px); transition: transform 0.45s ease, opacity 0.35s ease; }
.service-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.65) 50%, transparent 65%); transform: translateX(-120%); transition: transform 0.7s ease; pointer-events: none; }
.service-card:nth-child(2) { animation-delay: 0.12s; }
.service-card:nth-child(3) { animation-delay: 0.24s; }
.service-card:hover { transform: translateY(-10px) rotate(-0.35deg); box-shadow: 0 24px 42px rgba(15, 23, 42, 0.14); }
.service-card:hover::before { transform: scale(1.35); opacity: 0.28; }
.service-card:hover::after { transform: translateX(120%); }
.service-card-scrap { border-top: 4px solid #f59e0b; }
.service-card-scrap::before { background: #fbbf24; }
.service-card-wholesale { border-top: 4px solid #3b82f6; }
.service-card-wholesale::before { background: #60a5fa; }
.service-card-training { border-top: 4px solid #6366f1; }
.service-card-training::before { background: #818cf8; }
.card-topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.75rem; color: #64748b; }
.card-kicker { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.card-arrow { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border: 1px solid #cbd5e1; border-radius: 50%; color: #334155; font-size: 1rem; transition: transform 0.3s ease, background 0.3s ease; }
.service-card:hover .card-arrow { transform: rotate(45deg); background: #f8fafc; }
.card-icon { position: relative; z-index: 1; width: 3.4rem; height: 3.4rem; border-radius: 1rem; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; font-weight: bold; margin-bottom: 1.5rem; box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08); animation: iconFloat 3.2s ease-in-out infinite; }
.service-card:nth-child(2) .card-icon { animation-delay: 0.45s; }
.service-card:nth-child(3) .card-icon { animation-delay: 0.9s; }
.bg-amber-light { background-color: #fef3c7; } .text-amber { color: #d97706; }
.bg-blue-light { background-color: #dbeafe; } .text-blue { color: #2563eb; }
.bg-indigo-light { background-color: #e0e7ff; } .text-indigo { color: #4f46e5; }
.card-heading { position: relative; z-index: 1; font-size: 1.3rem; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 0.75rem; }
.card-heading span { display: block; color: #334155; }
.card-text { color: #475569; font-size: 0.875rem; line-height: 1.6; margin-bottom: 1.5rem; }
.card-link { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 0.35rem; width: fit-content; font-weight: 800; font-size: 0.875rem; text-decoration: none; transition: gap 0.25s ease; }
.card-link:hover { gap: 0.65rem; }

/* --- STUDENT SUCCESS PROFILES --- */
.graduates-section { padding: 5.5rem 0; background: #f8fafc; }
.graduate-heading { margin-bottom: 2.75rem; }
.section-eyebrow { display: inline-block; color: #4f46e5; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.graduate-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.graduate-card { overflow: hidden; border: 1px solid #dbe4f0; border-radius: 1rem; background: #ffffff; box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.graduate-card:hover { transform: translateY(-8px); box-shadow: 0 24px 42px rgba(15, 23, 42, 0.12); }
.graduate-image { display: block; width: 100%; height: 225px; object-fit: cover; object-position: center; filter: saturate(0.9); transition: transform 0.45s ease, filter 0.45s ease; }
.graduate-card:hover .graduate-image { transform: scale(1.04); filter: saturate(1.1); }
.graduate-card-body { padding: 1.35rem; }
.graduate-meta { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; color: #64748b; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.graduate-status { color: #047857; }
.graduate-card h3 { margin-top: 0.85rem; color: #0f172a; font-size: 1.3rem; }
.graduate-role { margin-top: 0.2rem; color: #4f46e5; font-size: 0.85rem; font-weight: 800; }
.graduate-copy { min-height: 4.2rem; margin-top: 0.85rem; color: #475569; font-size: 0.88rem; line-height: 1.6; }
.graduate-footer { display: flex; justify-content: space-between; gap: 0.75rem; margin-top: 1.2rem; padding-top: 0.9rem; border-top: 1px solid #e2e8f0; color: #64748b; font-size: 0.72rem; }
.graduate-footer strong { color: #334155; text-align: right; }

/* --- 3. TRAINING SECTION --- */
.training-section { background-color: #0f172a; color: #ffffff; padding: 5rem 0; }
.training-section .section-title { color: #ffffff; font-size: 2.25rem; }
.features-list { display: flex; flex-direction: column; gap: 1rem; }
.feature-item { display: flex; gap: 1rem; align-items: flex-start; }
.check-icon { color: #34d399; font-size: 1.25rem; font-weight: bold; }
.feature-title { font-weight: 600; color: #e2e8f0; }
.feature-desc { color: #94a3b8; font-size: 0.875rem; }
.academy-box { background-color: #020617; border: 1px solid #1e293b; padding: 1.5rem; border-radius: 1rem; }
.academy-box-title { font-size: 1.125rem; font-weight: 700; margin-bottom: 1rem; color: #e2e8f0; }
.module-stack { display: flex; flex-direction: column; gap: 1rem; }
.module-item { background-color: #0f172a; padding: 1rem; border-radius: 0.75rem; border: 1px solid #1e293b; display: flex; justify-content: space-between; align-items: center; }
.module-tag { font-family: monospace; font-size: 0.75rem; font-weight: bold; text-transform: uppercase; }
.module-name { font-size: 0.875rem; font-weight: 600; margin-top: 0.25rem; }
.live-badge { background-color: rgba(16, 185, 129, 0.1); color: #34d399; font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.5rem; border-radius: 0.25rem; border: 1px solid rgba(16, 185, 129, 0.2); }
.locked-badge { color: #64748b; font-size: 0.75rem; font-weight: 600; }

/* --- 4. FOOTER --- */
.footer { border-top: 1px solid #e2e8f0; background-color: #ffffff; padding: 3rem 0; text-align: center; font-size: 0.875rem; color: #64748b; }

@media (max-width: 820px) {
  .contact-content { grid-template-columns: 1fr; gap: 2.5rem; }
  .graduate-grid { grid-template-columns: 1fr; max-width: 520px; }
}

@media (max-width: 520px) {
  .ai-chat-header,
  .ai-chat-form { align-items: stretch; flex-direction: column; }

  .ai-chat-header-actions { justify-content: space-between; }

  .chat-send { min-height: 2.8rem; }

  .ai-chat-page-topbar { align-items: flex-start; flex-direction: column; gap: 0.7rem; }
  .ai-chat-page-card { margin-top: 2rem; }
  .contact-details { grid-template-columns: 1fr; }
  .permission-notice { right: 0.75rem; bottom: 0.75rem; width: calc(100% - 1.5rem); align-items: flex-start; flex-wrap: wrap; }
  .permission-notice div { width: calc(100% - 1.5rem); }
}

/* --- ANIMATIONS --- */
@keyframes pulseAnimation { 0% { opacity: 0.15; transform: scale(1); } 100% { opacity: 0.25; transform: scale(1.05); } }
@keyframes pingAnimation { 75%, 100% { transform: scale(2); opacity: 0; } }
@keyframes announcementScroll { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes voicePulse { 50% { box-shadow: 0 0 0 6px rgba(244, 63, 94, 0.2); } }
@keyframes heroContentEnter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cardReveal { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes iconFloat { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-5px) rotate(2deg); } }

@media (prefers-reduced-motion: reduce) {
  .hero-backdrop,
  .hero-content-enter,
  .service-card,
  .card-icon,
  .announcement-track { transition: none; animation: none; }
}

/* --- SEPARATE PAGE STYLES --- */
.page-shell {
  min-height: 100vh;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

.page-hero {
  background: linear-gradient(135deg, #0f172a, #1e3a8a 45%, #312e81);
  color: #ffffff;
  padding: 4rem 0 3rem;
}

.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-kicker {
  display: inline-block;
  background: rgba(96, 165, 250, 0.15);
  color: #bfdbfe;
  border: 1px solid rgba(147, 197, 253, 0.25);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-title {
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.12;
  margin-top: 1rem;
}

.page-subtitle {
  max-width: 760px;
  margin-top: 1rem;
  color: #dbeafe;
  font-size: 1.08rem;
}

.page-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 20px 5rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.info-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

.info-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.bg-blue-soft { background: #dbeafe; color: #1d4ed8; }
.bg-amber-soft { background: #fef3c7; color: #b45309; }
.bg-emerald-soft { background: #d1fae5; color: #047857; }
.bg-violet-soft { background: #ede9fe; color: #6d28d9; }

.info-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.info-card p,
.info-card li {
  color: #475569;
  line-height: 1.7;
}

.info-card ul {
  margin-top: 0.8rem;
  padding-left: 1.1rem;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.5rem;
}

.panel h3 {
  margin-bottom: 1rem;
  font-size: 1.35rem;
}

.schedule-list {
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.schedule-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.8rem;
  color: #334155;
}

.form-box {
  display: grid;
  gap: 1rem;
}

.form-box label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.4rem;
}

.form-box input,
.form-box select,
.form-box textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 0.7rem;
  padding: 0.8rem 0.9rem;
  font: inherit;
  background: #f8fafc;
}

.form-box textarea {
  min-height: 120px;
  resize: vertical;
}

.dark-panel {
  background: linear-gradient(135deg, #0f172a, #111827);
  color: #fff;
  border: none;
}

.dark-panel p,
.dark-panel li,
.dark-panel span {
  color: #dbeafe;
}

.quote-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 0.9rem;
  padding: 1rem 1.2rem;
  margin-top: 1.5rem;
}

.quote-box strong {
  font-size: 1.75rem;
  color: #1d4ed8;
}

/* --- STUDENT PROFILE DASHBOARD --- */
.student-profile-page { background: #f3f6fb; }
.student-dashboard { width: min(100% - 40px, 1180px); margin: 0 auto; padding: 3.5rem 0 5rem; }
.student-welcome { display: flex; align-items: end; justify-content: space-between; gap: 2rem; padding: 2rem; border-radius: 1rem; background: linear-gradient(120deg, #0f172a, #1e3a8a 60%, #312e81); color: #ffffff; box-shadow: 0 18px 35px rgba(15, 23, 42, 0.18); }
.student-welcome h1 { margin-top: 0.9rem; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; }
.student-welcome p { margin-top: 0.8rem; color: #cbd5e1; }
.student-course-chip { min-width: 210px; padding: 1rem; border: 1px solid rgba(191, 219, 254, 0.25); border-radius: 0.75rem; background: rgba(15, 23, 42, 0.34); }
.student-course-chip span { display: block; color: #93c5fd; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.student-course-chip strong { display: block; margin-top: 0.35rem; font-size: 0.95rem; }
.progress-overview { margin-top: 1.5rem; padding: 1.35rem 1.5rem; border: 1px solid #dbe4f0; border-radius: 0.9rem; background: #ffffff; }
.progress-copy { display: flex; justify-content: space-between; color: #334155; font-weight: 800; }
.progress-copy strong { color: #4f46e5; }
.progress-track { height: 0.6rem; margin-top: 0.8rem; overflow: hidden; border-radius: 999px; background: #e2e8f0; }
.progress-track span { display: block; width: 42%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2563eb, #4f46e5); }
.progress-overview p { margin-top: 0.65rem; color: #64748b; font-size: 0.8rem; }
.dashboard-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1.5rem; margin-top: 1.5rem; }
.dashboard-panel { padding: 1.5rem; border: 1px solid #dbe4f0; border-radius: 0.9rem; background: #ffffff; box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04); }
.dashboard-panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.panel-eyebrow { color: #6366f1; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.dashboard-panel h2 { margin-top: 0.25rem; color: #0f172a; font-size: 1.25rem; }
.panel-count { color: #64748b; font-size: 0.72rem; font-weight: 800; white-space: nowrap; }
.resource-list { display: grid; gap: 0.75rem; margin-top: 1.25rem; }
.resource-item { display: flex; align-items: center; gap: 0.8rem; padding: 0.8rem; border: 1px solid #e2e8f0; border-radius: 0.65rem; }
.resource-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.3rem; height: 2.3rem; border-radius: 0.5rem; background: #fee2e2; color: #dc2626; font-size: 0.62rem; font-weight: 900; }
.resource-blue { background: #dbeafe; color: #2563eb; }
.resource-green { background: #d1fae5; color: #047857; }
.resource-item div { flex: 1; min-width: 0; }
.resource-item strong, .resource-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resource-item strong { color: #1e293b; font-size: 0.82rem; }
.resource-item small { margin-top: 0.2rem; color: #64748b; font-size: 0.7rem; }
.resource-item button { border: 0; background: transparent; color: #2563eb; font-size: 1.2rem; cursor: pointer; }
.module-progress-list { display: grid; gap: 0.95rem; margin-top: 1.4rem; }
.module-progress-list > div { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; color: #334155; font-size: 0.82rem; }
.module-progress-list strong { color: #64748b; font-size: 0.72rem; }
.done-check, .pending-check { display: inline-flex; align-items: center; justify-content: center; width: 1.3rem; height: 1.3rem; margin-right: 0.45rem; border-radius: 50%; background: #d1fae5; color: #047857; font-size: 0.7rem; font-style: normal; font-weight: 900; }
.pending-check { background: #e0e7ff; color: #4f46e5; font-size: 0.55rem; }
.history-panel { margin-top: 1.5rem; }
.history-list { display: grid; gap: 0.2rem; margin-top: 1.25rem; }
.history-list > div { display: flex; align-items: center; gap: 0.8rem; padding: 0.75rem 0; border-bottom: 1px solid #eef2f7; }
.history-list > div:last-child { border-bottom: 0; }
.history-dot { width: 0.65rem; height: 0.65rem; flex: 0 0 auto; border-radius: 50%; }
.history-dot-green { background: #10b981; } .history-dot-blue { background: #3b82f6; } .history-dot-purple { background: #8b5cf6; } .history-dot-amber { background: #f59e0b; }
.history-list div div { flex: 1; }
.history-list strong, .history-list small { display: block; }
.history-list strong { color: #334155; font-size: 0.82rem; }
.history-list small, .history-list time { margin-top: 0.2rem; color: #64748b; font-size: 0.72rem; }
.history-list time { margin-top: 0; }
.login-shell { display: grid; min-height: calc(100vh - 76px); place-items: center; padding: 2rem 20px; }
.login-card { width: min(100%, 480px); padding: 2rem; border: 1px solid #dbe4f0; border-radius: 1rem; background: #ffffff; box-shadow: 0 20px 45px rgba(15, 23, 42, 0.1); }
.login-card h1 { margin-top: 0.9rem; color: #0f172a; font-size: 2rem; }
.login-card > p { margin-top: 0.65rem; color: #64748b; }
.login-card .form-box { margin-top: 1.6rem; }
.login-error { min-height: 1.2rem; color: #dc2626; font-size: 0.78rem; }
.login-back-link { display: inline-block; margin-top: 1.4rem; color: #4f46e5; font-size: 0.82rem; font-weight: 700; text-decoration: none; }
.online-class-page { background: #eef3fb; }
.online-class-shell { width: min(100% - 40px, 1180px); margin: 0 auto; padding: 4rem 0 5rem; }
.class-access-loading, .class-access-error { padding: 3rem; border: 1px solid #dbe4f0; border-radius: 1rem; background: #ffffff; text-align: center; box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06); }
.class-access-loading h1, .class-access-error h1 { margin-top: 1rem; color: #0f172a; }
.class-access-error p { max-width: 560px; margin: 0.8rem auto 0; color: #64748b; }
.class-access-error .page-cta-row { justify-content: center; }
.class-room { padding: 2rem; border-radius: 1rem; background: #0f172a; color: #ffffff; box-shadow: 0 20px 45px rgba(15, 23, 42, 0.2); }
.class-room-header { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.class-room-header h1 { margin-top: 0.8rem; font-size: clamp(2rem, 4vw, 3.2rem); }
.class-room-header p { margin-top: 0.6rem; color: #cbd5e1; }
.class-room-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(250px, 0.6fr); gap: 1.5rem; margin-top: 2rem; }
.video-placeholder { display: flex; min-height: 380px; flex-direction: column; align-items: center; justify-content: center; gap: 0.55rem; border: 1px solid #334155; border-radius: 0.8rem; background: radial-gradient(circle at center, #1e3a8a, #020617 68%); color: #dbeafe; }
.video-placeholder small { color: #94a3b8; }
.video-play { display: inline-flex; align-items: center; justify-content: center; width: 4rem; height: 4rem; border-radius: 50%; background: #4f46e5; box-shadow: 0 0 0 10px rgba(99, 102, 241, 0.16); }
.class-sidebar { padding: 1.4rem; border: 1px solid #334155; border-radius: 0.8rem; background: #020617; }
.class-sidebar h2 { color: #f8fafc; font-size: 1.1rem; }
.class-sidebar ul { display: grid; gap: 0.85rem; margin: 1.25rem 0 1.5rem; padding-left: 1.1rem; color: #cbd5e1; font-size: 0.85rem; }

@media (max-width: 640px) {
  .online-class-shell { width: calc(100% - 24px); padding-top: 1.5rem; }
  .class-room { padding: 1.2rem; }
  .class-room-header { align-items: flex-start; flex-direction: column; }
  .class-room-grid { grid-template-columns: 1fr; }
  .video-placeholder { min-height: 260px; }
}

@media (max-width: 640px) {
  .page-cta-row {
    flex-direction: column;
  }

  .page-cta-row a,
  .btn {
    width: 100%;
  }

  .student-dashboard { width: calc(100% - 24px); padding-top: 1.5rem; }
  .student-welcome { align-items: stretch; flex-direction: column; padding: 1.3rem; }
  .student-course-chip { min-width: 0; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-panel { padding: 1.1rem; }
}
