/* ==========================================================================
   Eduniety Lab (labs.edunlab.kr) - SweetRush Inspired Modern Stylesheet
   Theme: Bright Human-Centric EduTech & Animated Rainbow Accents
   ========================================================================== */

@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.min.css");
@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Inter:wght@300;400;500;600;700;800&family=Fira+Code:wght@400;500&display=swap");

/* --- CSS Variables & Design Tokens (SweetRush Light Theme) --- */
:root {
  /* Color Palette */
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-muted: #f1f5f9;

  --border-color: #e2e8f0;
  --border-highlight: #cbd5e1;

  --text-main: #121b21;
  --text-muted: #64748b;
  --text-dim: #94a3b8;

  /* Brand Accents */
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;

  --secondary: #2563eb;
  --cyan-accent: #0891b2;
  --emerald-accent: #059669;
  --amber-accent: #d97706;
  --purple-accent: #7e22ce;

  /* Typography */
  --font-sans:
    "Pretendard", "Inter", -apple-system, BlinkMacSystemFont, system-ui, Roboto,
    sans-serif;
  --font-doodle: "Caveat", cursive, sans-serif;
  --font-mono: "Fira Code", monospace;

  /* Radii & Shadows */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --backdrop-blur: blur(20px);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-card:
    0 10px 30px -5px rgba(0, 0, 0, 0.06), 0 4px 12px -2px rgba(0, 0, 0, 0.04);
  --shadow-hover:
    0 20px 40px -10px rgba(0, 0, 0, 0.12), 0 8px 16px -4px rgba(0, 0, 0, 0.06);
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* --- SweetRush Animated Rainbow Border --- */
.animated-gradient-border {
  position: relative;
  width: 100%;
}

.animated-gradient-border::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3.5px;
  width: 100%;
  background: linear-gradient(
    270deg,
    #ca193a,
    #f4812a,
    #e8ad21,
    #8fb03d,
    #3ea496,
    #105f94,
    #753599,
    #ca193a,
    #f4812a,
    #e8ad21
  );
  background-size: 300% 100%;
  animation: borderShift 8s linear infinite;
  z-index: 10;
}

.animated-gradient-border-footer {
  position: relative;
  width: 100%;
}

.animated-gradient-border-footer::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 3.5px;
  width: 100%;
  background: linear-gradient(
    270deg,
    #ca193a,
    #f4812a,
    #e8ad21,
    #8fb03d,
    #3ea496,
    #105f94,
    #753599,
    #ca193a,
    #f4812a,
    #e8ad21
  );
  background-size: 300% 100%;
  animation: borderShift 8s linear infinite;
  z-index: 10;
}

@keyframes borderShift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

/* Soft background subtle pattern */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(
    rgba(100, 116, 139, 0.08) 1.5px,
    transparent 1.5px
  );
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- Section Formatting --- */
section {
  padding: 100px 0;
  position: relative;
}

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

/* --- SweetRush Color-Coded Tag Pills --- */
.c-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.c-tag.yellow {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.c-tag.orange {
  background: #ffedd5;
  color: #c2410c;
  border: 1px solid #fdba74;
}

.c-tag.purple {
  background: #f3e8ff;
  color: #7e22ce;
  border: 1px solid #ddd6fe;
}

.c-tag.emerald {
  background: #d1fae5;
  color: #047857;
  border: 1px solid #6ee7b7;
}

.c-tag.cyan {
  background: #cffafe;
  color: #0e7490;
  border: 1px solid #a5f3fc;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 16px;
  color: var(--text-main);
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- Handwritten Doodle Keyword Accents --- */
.has-doodle {
  position: relative;
  display: inline-block;
  color: #4f46e5;
  font-weight: 800;
}

.has-doodle::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M0 15 Q 25 5, 50 15 T 100 15' stroke='%23F4812A' stroke-width='6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E")
    no-repeat center center;
  background-size: 100% 100%;
  pointer-events: none;
}

/* --- Header Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 84px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: var(--backdrop-blur);
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #753599 0%, #4f46e5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(117, 53, 153, 0.3);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  line-height: 1.1;
  font-size: 1.25rem;
}

.brand-sub {
  font-size: 0.7rem;
  color: var(--cyan-accent);
  letter-spacing: 2px;
  font-weight: 700;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition-fast);
  padding: 8px 0;
  position: relative;
}

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

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: linear-gradient(90deg, #f4812a, #753599);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* --- Buttons (SweetRush Capsule Style) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition-normal);
  cursor: pointer;
  border: none;
  outline: none;
  white-space: nowrap;
}

.btn-primary {
  background: #121b21;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(18, 27, 33, 0.25);
}

.btn-primary:hover {
  background: #4f46e5;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(79, 70, 229, 0.35);
}

.btn-cyan {
  background: linear-gradient(135deg, #0891b2 0%, #0284c7 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(8, 145, 178, 0.3);
}

.btn-cyan:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(8, 145, 178, 0.45);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-main);
  border: 1.5px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

/* Stand-alone SweetRush arrow link */
.standalone-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
  transition: var(--transition-fast);
}

.standalone-link i {
  transition: transform var(--transition-fast);
}

.standalone-link:hover i {
  transform: translateX(4px);
}

/* --- Hero Section (NO Intro Flash, Instant Load) --- */
.hero {
  padding-top: 160px;
  padding-bottom: 100px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  max-width: 640px;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--text-main);
}

.hero-desc {
  font-size: 1.18rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--border-color);
}

.stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 4px;
}

.stat-number span {
  color: var(--primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Hero Visual Feature Stack */
.hero-visual {
  position: relative;
}

.hero-main-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-hover);
  position: relative;
  z-index: 2;
}

.card-header-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.dot-group {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red {
  background: #ef4444;
}
.dot.yellow {
  background: #f59e0b;
}
.dot.green {
  background: #10b981;
}

.status-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--emerald-accent);
  background: #d1fae5;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-accent);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.3);
  }
}

.hero-hub-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hub-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.hub-item:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.hub-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hub-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.hub-icon.indigo {
  background: #eef2ff;
  color: #4f46e5;
}
.hub-icon.cyan {
  background: #cffafe;
  color: #0891b2;
}
.hub-icon.emerald {
  background: #d1fae5;
  color: #059669;
}
.hub-icon.amber {
  background: #fef3c7;
  color: #d97706;
}

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

.hub-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.floating-badge {
  position: absolute;
  z-index: 3;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-hover);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: floatAnim 6s ease-in-out infinite alternate;
}

.floating-badge-1 {
  top: -20px;
  right: -20px;
}
.floating-badge-2 {
  bottom: -20px;
  left: -20px;
  animation-delay: -3s;
}

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

/* --- Assessment Suite Section --- */
.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-normal);
}

.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-highlight);
}

.assessment-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.card-top {
  margin-bottom: 24px;
}

.card-tag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.card-icon-box.indigo {
  background: #eef2ff;
  color: #4f46e5;
}
.card-icon-box.cyan {
  background: #cffafe;
  color: #0891b2;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-main);
}

.card-text {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-main);
  font-weight: 500;
}

.feature-list i {
  color: var(--emerald-accent);
  font-size: 0.9rem;
}

.card-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.info-tooltip-btn {
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

/* --- RAG AI Edumate Section --- */
.edumate-section {
  background: #f1f5f9;
}

.edumate-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.edumate-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.feature-box {
  display: flex;
  gap: 18px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.feature-box:hover {
  box-shadow: var(--shadow-card);
  border-color: #cbd5e1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #cffafe;
  color: var(--cyan-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.feature-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Chat Simulator Widget (SweetRush Crisp Light Style) */
.chat-simulator {
  background: #ffffff;
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 540px;
}

.chat-sim-header {
  padding: 18px 24px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-sim-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-main);
}

.rag-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: #cffafe;
  color: var(--cyan-accent);
  border: 1px solid #a5f3fc;
}

.chat-sim-body {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 0.92rem;
  background: #fafafa;
}

.chat-msg {
  display: flex;
  gap: 12px;
  max-width: 90%;
}

.chat-msg.user {
  margin-left: auto;
  flex-direction: row-reverse;
}

.chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.chat-msg.bot .chat-avatar {
  background: linear-gradient(135deg, #4f46e5, #0891b2);
  color: #ffffff;
}

.chat-msg.user .chat-avatar {
  background: #334155;
  color: #ffffff;
}

.chat-bubble {
  padding: 14px 18px;
  border-radius: 18px;
  line-height: 1.5;
}

.chat-msg.bot .chat-bubble {
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  border-top-left-radius: 4px;
}

.chat-msg.user .chat-bubble {
  background: #121b21;
  color: #ffffff;
  border-top-right-radius: 4px;
}

.rag-source-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: #cffafe;
  border: 1px solid #a5f3fc;
  color: #0e7490;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 600;
}

.preset-questions {
  padding: 12px 20px;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
}

.preset-chip {
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.preset-chip:hover {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: var(--primary);
}

.chat-sim-input-area {
  padding: 14px 20px;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 10px;
}

.chat-sim-input {
  flex: 1;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 10px 18px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
}

.chat-sim-input:focus {
  border-color: var(--primary);
  background: #ffffff;
}

/* --- PBL Courses Section --- */
.courses-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.filter-btn:hover,
.filter-btn.active {
  background: #121b21;
  color: #ffffff;
  border-color: #121b21;
  box-shadow: 0 4px 14px rgba(18, 27, 33, 0.2);
}

.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.course-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-normal);
}

.course-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-hover);
}

.course-thumb-box {
  width: 100%;
  height: 170px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.course-thumb-box.dip {
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
}
.course-thumb-box.boost {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}
.course-thumb-box.nigeria {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.course-thumb-icon {
  font-size: 3.5rem;
}

.course-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.35;
}

.course-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.course-details-list {
  font-size: 0.86rem;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}

.course-details-list span {
  color: var(--primary);
  font-weight: 700;
}

/* --- PBL Content DB Section --- */
.pbl-banner-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-hover);
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.role-chip {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.role-chip i {
  color: var(--cyan-accent);
  font-size: 1.15rem;
}

/* --- Contact Section --- */
.contact-section {
  text-align: center;
  padding: 90px 0;
}

.contact-card {
  background: linear-gradient(135deg, #121b21 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 64px 36px;
  max-width: 880px;
  margin: 0 auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* --- Footer --- */
footer {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-desc {
  max-width: 320px;
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-col-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}

/* --- Modals --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 27, 33, 0.6);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #ffffff;
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 540px;
  padding: 36px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-backdrop.active .modal-content {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #f1f5f9;
  border: none;
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

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

.modal-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.account-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 0.88rem;
}

.account-table th,
.account-table td {
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  text-align: left;
}

.account-table th {
  background: #f8fafc;
  color: var(--text-main);
  font-weight: 700;
}

.account-table td {
  background: #ffffff;
}

.code-badge {
  font-family: var(--font-mono);
  background: #eef2ff;
  color: #4f46e5;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 600;
}

/* Contact Form Input Styles */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  text-align: left;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.form-input,
.form-textarea {
  width: 100%;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--primary);
  background: #ffffff;
}

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

/* --- Toast Notifications --- */
.toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #ffffff;
  border: 1px solid var(--emerald-accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  color: var(--text-main);
  padding: 16px 22px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  animation: toastIn 0.3s ease forwards;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
  .hero-grid,
  .edumate-grid,
  .pbl-banner-card {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-title {
    font-size: 2.75rem;
  }
  .cards-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 32px 24px;
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-150%);
    transition: transform 0.4s ease;
    box-shadow: var(--shadow-hover);
  }

  .nav-menu.active {
    transform: translateY(0);
  }
  .mobile-toggle {
    display: block;
  }

  .cards-grid-2,
  .cards-grid-3,
  .footer-grid,
  .roles-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.2rem;
  }
  .section-title {
    font-size: 2rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .floating-badge {
    display: none;
  }
}
