@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Inter:wght@400;500&display=swap');

:root {
  --bg: #ffffff;
  --surface: #fdfbfc;
  --text: #0b1020;
  --muted-text: #4b5563;
  --border: rgba(11, 16, 32, 0.12);

  --primary: #8338ec;
  --secondary: #f921a7;
  --accent: #ffd60a;
  --plum: #dda0dd;

  --on-dark: #ffffff;
  --on-light: #0b1020;

  --background: var(--bg);
  --foreground: var(--text);

  --card: var(--surface);
  --card-foreground: var(--text);

  --popover: var(--surface);
  --popover-foreground: var(--text);

  --primary-foreground: var(--on-dark);
  --secondary-foreground: var(--on-dark);
  --accent-foreground: var(--on-light);

  --muted: var(--surface);
  --muted-foreground: var(--muted-text);

  --success: #22c55e;
  --success-foreground: #ffffff;

  --destructive: #ef4444;
  --destructive-foreground: #ffffff;

  --input: var(--border);
  --ring: var(--primary);

  --radius: 0.75rem;

  --gradient-hero: linear-gradient(135deg, #8338ec 0%, #f921a7 55%, #ffd60a 100%);
  --gradient-warm: linear-gradient(135deg, #8338ec 0%, #f921a7 55%, #ffd60a 100%);

  --shadow-soft: 0 8px 24px rgba(11, 16, 32, 0.1);
  --shadow-medium: 0 14px 40px rgba(11, 16, 32, 0.14);
  --shadow-large: 0 24px 70px rgba(11, 16, 32, 0.18);
  --shadow-glow: 0 18px 55px rgba(131, 56, 236, 0.35);
  --shadow-warm-glow: 0 18px 55px rgba(255, 107, 0, 0.3);

  --shadow-sm: var(--shadow-soft);
  --shadow-md: var(--shadow-medium);
  --shadow-lg: var(--shadow-large);

  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

button {
  font-family: 'Poppins', sans-serif;
}

.gradient-hero {
  background: var(--gradient-hero);
}

.gradient-warm {
  background: var(--gradient-warm);
}

.hero-only-gradient {
  background: linear-gradient(135deg, #9400D3 0%, #800080 100%);
}

/* Compact hero height to match Lovable reference proportions */
.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 75vh;
  padding-top: 70px !important;
  padding-bottom: 60px !important;
}

.hero-section h1 {
  font-weight: 700 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.5px !important;
  margin-bottom: 22px !important;
}

.hero-section .max-w-4xl > p {
  font-size: 18px !important;
  line-height: 1.6 !important;
  opacity: 0.95 !important;
  margin-top: 12px !important;
  margin-bottom: 32px !important;
}

.hero-buttons {
  margin-bottom: 40px;
}

.hero-section .hero-underline {
  opacity: 1 !important;
}

.hero-section .hero-underline-stroke {
  stroke: #ff8a3d !important;
  stroke-width: 3px !important;
  opacity: 0.85 !important;
}

.hero-section .floating-icon {
  position: absolute !important;
  transform: scale(0.9) !important;
  z-index: 2 !important;
  pointer-events: none !important;
}

.hero-section .floating-icon-left {
  left: 24px !important;
  top: 50% !important;
  transform: translateY(-50%) scale(0.9) !important;
}

.hero-section .floating-icon-right {
  right: 24px !important;
  top: 42% !important;
  transform: translateY(-50%) scale(0.9) !important;
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 70vh;
    padding: 60px 20px !important;
  }

  .hero-section h1 {
    line-height: 1.15 !important;
  }

  .hero-section .floating-icon-left {
    left: 10px !important;
    top: 58% !important;
    transform: translateY(-50%) scale(0.75) !important;
  }

  .hero-section .floating-icon-right {
    right: 10px !important;
    top: 44% !important;
    transform: translateY(-50%) scale(0.75) !important;
  }
}

/* Hero text + buttons */
.hero-section,
.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section h4,
.hero-section p,
.hero-section span {
  color: #ffffff !important;
}

.hero-section .text-primary-foreground,
.hero-section .text-primary-foreground\\/80,
.hero-section .text-primary-foreground\\/70 {
  color: #ffffff !important;
}

.hero-primary-btn {
  background: #ffffff !important;
  color: #800080 !important;
  border-color: #ffffff !important;
}

.hero-primary-btn:hover {
  background: #9400D3 !important;
  color: #ffffff !important;
}

.hero-secondary-btn {
  background: transparent !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
}

.hero-secondary-btn:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

/* Hero system buttons */
.btn-system {
  background: #ffffff;
  color: #800080;
  border: 2px solid #800080;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-system:hover {
  background: #800080;
  color: #ffffff;
}

/* Keep navbar visually separate and clean */
header.fixed {
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

header.fixed nav {
  min-height: 80px;
  display: flex;
  align-items: center;
}

.header-logo img,
header.fixed .logo img,
header.fixed .nav-logo img,
header.fixed a[href="index.html"] img {
  height: 44px;
  width: auto;
  max-height: none !important;
  display: block;
}

header.fixed .logo,
header.fixed .nav-logo,
header.fixed a[href="index.html"] {
  display: flex;
  align-items: center;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
}

@media (max-width: 768px) {
  .header-logo img,
  header.fixed .logo img,
  header.fixed .nav-logo img,
  header.fixed a[href="index.html"] img {
    height: 36px;
  }
}

header .nav-inner,
header .nav-container,
header nav {
  display: flex;
  align-items: center;
}

header a[href="index.html"] img {
  height: 52px;
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  header a[href="index.html"] img {
    height: 40px;
  }
}

.shadow-glow {
  box-shadow: var(--shadow-glow);
}

.shadow-warm-glow {
  box-shadow: var(--shadow-warm-glow);
}

/* Hero container + buttons */
.hero-card {
  background: #ffffff;
  box-shadow: var(--shadow-large);
}

.hero-gradient {
  background: linear-gradient(135deg, #8338ec 0%, #f921a7 55%, #ffd60a 100%);
}

.btn-hero-primary {
  background: var(--secondary);
  color: var(--on-dark);
  box-shadow: var(--shadow-glow);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05) saturate(1.05);
  box-shadow: var(--shadow-glow);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.92);
  color: var(--on-light);
  border: 2px solid rgba(255, 255, 255, 0.7);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-hero-secondary:hover {
  transform: translateY(-2px);
  filter: brightness(1.02);
}

/* Dark feature cards */
.feature-card {
  background: #15151d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-medium);
}

.feature-card:hover {
  box-shadow: var(--shadow-large);
}

/* Why Enseigne */
.why-enseigne {
  background: var(--primary);
}

.why-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow-soft);
}

.why-icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--on-dark);
  margin-bottom: 18px;
  box-shadow: var(--shadow-soft);
}

.why-icon-purple {
  background: var(--primary);
}

.why-icon-pink {
  background: var(--secondary);
}

.why-icon-yellow {
  background: var(--accent);
  color: var(--on-light);
}

/* Featured courses */
.featured-courses-section {
  background: #ffffff;
  font-family: 'Poppins', 'Plus Jakarta Sans', sans-serif;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.course-card {
  height: 100%;
  min-height: 540px;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(11, 16, 32, 0.1);
  box-shadow: 0 8px 24px rgba(11, 16, 32, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 34px rgba(11, 16, 32, 0.14);
}

.course-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #f3f4f6;
}

.course-body {
  flex: 1;
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.course-title {
  font-family: 'Poppins', 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  line-height: 1.35;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.course-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #f59e0b;
}

.course-rating svg {
  fill: currentColor;
}

.course-description {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #4b5563;
  margin: 0;
}

.course-meta-row {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.course-meta-row span {
  min-height: 52px;
  border-radius: 12px;
  background: #f7f8fc;
  border: 1px solid rgba(11, 16, 32, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 6px;
  color: #374151;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.25;
}

@media (max-width: 1023px) {
  .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-card {
    min-height: 520px;
  }
}

@media (max-width: 639px) {
  .course-grid {
    grid-template-columns: 1fr;
  }

  .course-card {
    min-height: 500px;
  }
}

/* Testimonials carousel */
.testimonials-section {
  background: var(--primary);
}

.testimonial-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-track {
  flex: 1;
  min-height: 320px;
  position: relative;
}

.testimonial-slide {
  display: none;
}

.testimonial-slide.is-active {
  display: block;
}

.testimonial-card {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 28px;
  padding: 40px;
  color: #ffffff;
  box-shadow: var(--shadow-medium);
}

.testimonial-card p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
}

.testimonial-stars {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  color: #ffd60a;
}

.testimonial-author {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.testimonial-name {
  font-weight: 600;
}

.testimonial-role {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
}

.carousel-arrow {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.carousel-arrow:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.22);
}

.carousel-dots {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
}

.carousel-dot.is-active {
  background: #ffd60a;
  border-color: #ffd60a;
  transform: scale(1.2);
}

@media (max-width: 900px) {
  .testimonial-carousel {
    flex-direction: column;
  }

  .carousel-arrow {
    width: 42px;
    height: 42px;
  }
}

/* Pre-footer CTA container */
.cta-card {
  background: #15151d;
  box-shadow: var(--shadow-large);
}

.cta-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.cta-gradient {
  background: var(--gradient-hero);
  opacity: 0.75;
  z-index: 1;
}

.cta-content {
  position: relative;
  z-index: 2 !important;
}

.btn-cta-primary {
  background: var(--secondary);
  color: var(--on-dark);
  box-shadow: var(--shadow-glow);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.btn-cta-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05) saturate(1.05);
  box-shadow: var(--shadow-glow);
}

.btn-cta-secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.65);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-cta-secondary:hover {
  transform: translateY(-2px);
  filter: brightness(1.02);
}

/* Icon badges */
.icon-badge {
  background: var(--primary) !important;
  color: var(--on-dark) !important;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.icon-badge svg {
  color: inherit;
}

.icon-badge:hover {
  transform: scale(1.04);
  box-shadow: var(--shadow-medium);
}

.icon-purple {
  background: var(--primary) !important;
  color: var(--on-dark) !important;
}

.icon-fuchsia {
  background: var(--secondary) !important;
  color: var(--on-dark) !important;
}

.icon-yellow {
  background: var(--accent) !important;
  color: var(--on-light) !important;
}

.icon-plum {
  background: var(--plum) !important;
  color: var(--on-dark) !important;
}

/* Trusted logos */
.trusted-logo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  justify-items: center;
  align-items: center;
  gap: 60px;
  width: 100%;
  margin: 0 auto;
}

.trusted-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 88px;
}

.trusted-logo-item img {
  max-height: 76px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.trusted-logo-item img:hover {
  opacity: 1;
}

@media (max-width: 1024px) {
  .trusted-logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .trusted-logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .trusted-logo-item {
    min-height: 72px;
  }

  .trusted-logo-item img {
    max-height: 60px;
  }
}

/* Force white text/icons on dark or gradient backgrounds */
.gradient-hero,
.gradient-warm,
.bg-foreground,
.bg-primary,
.bg-secondary {
  color: var(--on-dark);
}

.gradient-hero *,
.gradient-warm *,
.bg-foreground *,
.bg-primary *,
.bg-secondary * {
  color: inherit;
}

.gradient-hero .text-muted-foreground,
.gradient-warm .text-muted-foreground,
.bg-foreground .text-muted-foreground,
.bg-primary .text-muted-foreground,
.bg-secondary .text-muted-foreground {
  color: rgba(255, 255, 255, 0.82) !important;
}

.gradient-hero .label,
.gradient-warm .label {
  color: rgba(255, 255, 255, 0.7);
}

.gradient-hero .text-foreground,
.gradient-warm .text-foreground,
.bg-foreground .text-foreground,
.bg-primary .text-foreground,
.bg-secondary .text-foreground {
  color: var(--on-dark) !important;
}

/* Footer color aligned with hero gradient */
footer {
  background: linear-gradient(135deg, #9400D3 0%, #800080 100%) !important;
  color: #ffffff !important;
}

footer h1,
footer h2,
footer h3,
footer h4,
footer h5,
footer h6,
footer p,
footer span,
footer a,
footer svg {
  color: #ffffff !important;
}

footer a:hover {
  opacity: 0.9;
}

.gradient-hero svg,
.gradient-warm svg,
.bg-foreground svg,
.bg-primary svg,
.bg-secondary svg {
  color: var(--on-dark);
}

/* Button system */
a.bg-primary.text-primary-foreground,
button.bg-primary.text-primary-foreground {
  background: var(--gradient-hero) !important;
  color: var(--on-dark) !important;
}

a.bg-primary.text-primary-foreground:hover,
button.bg-primary.text-primary-foreground:hover,
a.bg-secondary.text-secondary-foreground:hover,
button.bg-secondary.text-secondary-foreground:hover {
  filter: brightness(1.06) saturate(1.05);
  box-shadow: var(--shadow-glow) !important;
}

/* Outline buttons */
.border-2.border-primary.text-primary {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}

.gradient-hero .border-2,
.gradient-warm .border-2,
.bg-foreground .border-2,
.bg-primary .border-2,
.bg-secondary .border-2 {
  border-color: rgba(255, 255, 255, 0.85) !important;
  color: var(--on-dark) !important;
  background: transparent !important;
}

/* Links */
a {
  color: var(--primary);
}

.gradient-hero a,
.gradient-warm a,
.bg-foreground a,
.bg-primary a,
.bg-secondary a {
  color: rgba(255, 255, 255, 0.92) !important;
}

.gradient-hero a:hover,
.gradient-warm a:hover,
.bg-foreground a:hover,
.bg-primary a:hover,
.bg-secondary a:hover {
  text-decoration: underline;
}

.nav-mobile {
  display: none;
}

.nav-mobile.is-open {
  display: flex;
  flex-direction: column;
}

#mobile-menu {
  display: none;
}

#mobile-menu.active {
  display: flex;
  flex-direction: column;
}

/* Unified button system */
.btn,
a.btn,
button.btn,
.hero-primary-btn,
.hero-secondary-btn,
.btn-cta-primary,
.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.375rem;
  border-radius: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  border: 2px solid transparent;
  transition: background 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, transform 0.2s ease;
}

.btn:focus-visible,
a.btn:focus-visible,
button.btn:focus-visible,
.hero-primary-btn:focus-visible,
.hero-secondary-btn:focus-visible,
.btn-cta-primary:focus-visible,
.btn-cta-secondary:focus-visible {
  outline: 2px solid rgba(128, 0, 128, 0.45);
  outline-offset: 2px;
}

.btn-primary,
a.btn-primary,
button.btn-primary,
.hero-primary-btn,
.btn-cta-primary {
  background: linear-gradient(135deg, #9400D3 0%, #800080 100%) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover,
a.btn-primary:hover,
button.btn-primary:hover,
.hero-primary-btn:hover,
.btn-cta-primary:hover {
  filter: brightness(0.94);
  box-shadow: var(--shadow-medium);
  transform: translateY(-1px);
}

.btn-secondary,
a.btn-secondary,
button.btn-secondary,
.btn-outline,
a.btn-outline,
button.btn-outline,
.hero-secondary-btn,
.btn-cta-secondary {
  background: transparent !important;
  color: #800080 !important;
  border: 2px solid #800080 !important;
}

.btn-secondary:hover,
a.btn-secondary:hover,
button.btn-secondary:hover,
.btn-outline:hover,
a.btn-outline:hover,
button.btn-outline:hover,
.hero-secondary-btn:hover,
.btn-cta-secondary:hover {
  background: rgba(128, 0, 128, 0.08) !important;
  color: #800080 !important;
  border-color: #800080 !important;
}

/* Our Programs header centering only */
.our-programs-section .section-header {
  max-width: 44rem;
  margin: 0 auto;
  text-align: center;
}

.our-programs-section .section-header p {
  margin-left: auto;
  margin-right: auto;
}

/* Footer styling aligned with hero gradient */
footer {
  background: linear-gradient(135deg, #9400D3 0%, #800080 100%) !important;
  color: #ffffff !important;
  padding-top: 72px !important;
  padding-bottom: 60px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
}

footer h1,
footer h2,
footer h3,
footer h4,
footer h5,
footer h6 {
  color: #ffffff !important;
  font-weight: 600 !important;
}

footer p,
footer li,
footer span {
  color: #ffffff !important;
}

footer small {
  color: #ffffff !important;
}

/* WHO WE SERVE cards */
.who-we-serve .card:nth-child(1) {
  background: #9400D3;
  color: #ffffff;
}

.who-we-serve .card:nth-child(2) {
  background: #DDA0DD;
  color: #ffffff;
}

.who-we-serve .card:nth-child(3) {
  background: #800080;
  color: #ffffff;
}

.who-we-serve .card h3,
.who-we-serve .card p,
.who-we-serve .card a {
  color: #ffffff;
}

footer a {
  color: #ffffff !important;
  transition: filter 0.2s ease, text-decoration-color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
  filter: brightness(1.05);
}

footer svg {
  color: #ffffff !important;
  transition: transform 0.2s ease, filter 0.2s ease;
}

footer a:hover svg {
  transform: scale(1.05);
  filter: drop-shadow(0 0 10px rgba(233, 213, 255, 0.35));
}

/* Students hero styles (shared with homepage hero markup) */
.students-hero {
  position: relative;
  overflow: hidden;
  background: var(--surface);
}

.students-hero-blobs span {
  position: absolute;
  border-radius: 999px;
  filter: blur(70px);
  pointer-events: none;
}

.students-hero-blobs span:first-child {
  width: 280px;
  height: 280px;
  top: 40px;
  right: 40px;
  background: color-mix(in srgb, var(--secondary) 30%, transparent);
}

.students-hero-blobs span:last-child {
  width: 320px;
  height: 320px;
  left: 20px;
  bottom: 20px;
  background: color-mix(in srgb, var(--primary) 30%, transparent);
}

.students-hero-content {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.students-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--secondary) 14%, transparent);
  color: var(--secondary);
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.students-pill i {
  width: 16px;
  height: 16px;
}

.students-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 4.8vw, 4.2rem);
  line-height: 1.08;
  color: var(--text);
  font-weight: 700;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.students-hero .text-gradient {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.students-hero .section-lead {
  max-width: 760px;
  margin: 0 auto 30px;
  color: var(--muted-text);
  font-size: 1.1rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Homepage-only: keep original curved bottom */
.home-hero-curved {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 120px;
}

.home-hero-curved > .container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-hero-curved .students-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 860px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.home-hero-curved .section-lead {
  text-align: center;
}

.home-hero-curved .hero-curve {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

.home-hero-curved .hero-home-stats {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.home-hero-curved .hero-home-stat-value {
  font-family: "Poppins", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}

.home-hero-curved .hero-home-stat-label {
  margin-top: 6px;
  color: var(--muted-text);
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .students-hero {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .students-hero h1 {
    font-size: clamp(2.1rem, 9vw, 3rem);
    line-height: 1.12;
  }

  .students-hero .section-lead {
    font-size: 1rem;
    margin-bottom: 28px;
  }

  .students-hero-blobs span:first-child {
    width: 190px;
    height: 190px;
    top: 16px;
    right: 8px;
  }

  .students-hero-blobs span:last-child {
    width: 210px;
    height: 210px;
    left: 0;
    bottom: 12px;
  }

  .home-hero-curved .hero-home-stats {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 56px;
  }
}

@media (max-width: 480px) {
  .students-hero {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .students-hero h1 {
    font-size: clamp(1.9rem, 9vw, 2.4rem);
    line-height: 1.15;
  }

  .students-hero .section-lead {
    font-size: 0.98rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero-actions .btn,
  .hero-actions a.btn,
  .hero-actions button.btn {
    width: 100%;
    justify-content: center;
  }
}

/* Keep Events/Global cards on one reusable full-width button behavior */
#upcoming-events .events-card-content .btn,
#global-programs .events-card-content .btn {
  display: block;
  width: 100%;
  text-align: center;
}
