/* ==========================================
   CSS Variables (Theme Colors)
   ========================================== */
:root {
  --background: hsl(210, 40%, 98%);
  --foreground: hsl(222, 47%, 11%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(222, 47%, 11%);
  --primary: hsl(0, 60%, 55%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(210, 40%, 96%);
  --secondary-foreground: hsl(222, 47%, 11%);
  --muted-foreground: hsl(215, 16%, 47%);
  --accent: hsl(345, 55%, 48%);
  --accent-foreground: hsl(0, 0%, 100%);
  --border: hsl(214, 32%, 91%);
  --teal-500: hsl(5, 65%, 60%);
  --radius: 0.75rem;
}


/* ==========================================
   Base Styles
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

img {
  max-width: 100%;
  height: auto;
}

/* ==========================================
   Layout
   ========================================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* ==========================================
   Header
   ========================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(214, 219, 228, 0.5);
}

.header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .header nav {
    padding: 1rem 2rem;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.3s;
}

.logo:hover {
  transform: scale(1.02);
}

.logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

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

.logo-text .name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--foreground);
  line-height: 1.2;
}

.logo-text .subtitle {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  display: none;
}

@media (min-width: 640px) {
  .logo-text .subtitle {
    display: block;
  }
}

/* Desktop Navigation */
.nav-desktop {
  display: none;
  gap: 0.25rem;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  position: relative;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(15, 23, 42, 0.7);
  border-radius: 9999px;
  transition: all 0.3s;
}

.nav-link:hover {
  color: var(--foreground);
  background: var(--secondary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  border-radius: 9999px;
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 50%;
}

/* CTA Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(to right, var(--primary), var(--teal-500));
  color: var(--primary-foreground);
  box-shadow: 0 10px 15px -3px rgba(205, 85, 85, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 20px 25px -5px rgba(205, 85, 85, 0.3);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(205, 85, 85, 0.3);
  color: var(--foreground);
}

.btn-outline:hover {
  background: rgba(205, 85, 85, 0.05);
  border-color: rgba(205, 85, 85, 0.5);
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.header-cta {
  display: none;
}

@media (min-width: 768px) {
  .header-cta {
    display: block;
  }
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(241, 245, 249, 0.5);
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.mobile-menu-btn:hover {
  background: var(--secondary);
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
  stroke: var(--foreground);
}

/* Mobile Navigation */
.nav-mobile {
  display: none;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(214, 219, 228, 0.5);
  padding: 1rem 1.5rem;
}

.nav-mobile.active {
  display: block;
}

@media (min-width: 768px) {
  .nav-mobile {
    display: none !important;
  }
}

.nav-mobile a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(15, 23, 42, 0.8);
  border-radius: 0.75rem;
  transition: all 0.3s;
}

.nav-mobile a:hover {
  color: var(--foreground);
  background: var(--secondary);
}

.nav-mobile .btn {
  width: 100%;
  margin-top: 1rem;
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  gap: 3rem;
  padding: 5rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

@media (min-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 8rem 2rem;
    align-items: center;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: linear-gradient(to right, rgba(205, 85, 85, 0.1), rgba(197, 57, 95, 0.1));
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgba(205, 85, 85, 0.2);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--foreground);
}

@media (min-width: 640px) {
  .hero h1 {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3.75rem;
  }
}

.hero h1 .gradient-text {
  background: linear-gradient(to right, var(--primary), var(--teal-500), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-description {
  margin-top: 2rem;
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.75;
  max-width: 36rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

.hero-visual {
  position: relative;
  max-width: 28rem;
  margin: 0 auto;
}

.hero-visual-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(205, 85, 85, 0.15), rgba(215, 105, 95, 0.1), rgba(197, 57, 95, 0.15));
  border-radius: 3rem;
  transform: rotate(6deg);
  transition: transform 0.5s;
}

.hero-visual:hover .hero-visual-bg {
  transform: rotate(3deg);
}

.hero-visual-card {
  position: relative;
  background: rgba(214, 219, 228, 0.4);
  border-radius: 2.5rem;
  box-shadow: 0 25px 50px -12px rgba(205, 85, 85, 0.1);
  overflow: hidden;
  transform: rotate(-3deg);
  transition: transform 0.5s;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  margin: 1rem;
}

.hero-visual:hover .hero-visual-card {
  transform: rotate(-1deg);
}

.hero-visual-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Floating cards */
.floating-card {
  position: absolute;
  background: var(--card);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 20px 25px -5px rgba(205, 85, 85, 0.1);
  border: 1px solid rgba(214, 219, 228, 0.5);
  display: none;
  align-items: center;
  gap: 0.75rem;
  animation: float 6s ease-in-out infinite;
}

@media (min-width: 640px) {
  .floating-card {
    display: flex;
  }
}

.floating-card.top-right {
  top: -1rem;
  right: -1rem;
}

.floating-card.bottom-left {
  bottom: -1rem;
  left: -1rem;
  animation-delay: 2s;
}

.floating-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(to bottom right, rgba(233, 15, 15, 0.2), rgba(197, 57, 95, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-card-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary);
}

.floating-card-text .value {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--foreground);
}

.floating-card-text .label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* Wave separator */
.wave-separator {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.wave-separator svg {
  display: block;
  width: 100%;
  height: 4rem;
}

@media (min-width: 768px) {
  .wave-separator svg {
    height: 6rem;
  }
}

/* ==========================================
   Showcase Section
   ========================================== */
.showcase {
  padding: 4rem 0 3rem;
}

.showcase-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 1024px) {
  .showcase-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.showcase-card {
  text-align: center;
}

.showcase-image {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--secondary), rgba(205, 85, 85, 0.08));
}

.showcase-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.showcase-card:hover .showcase-image img {
  transform: scale(1.05);
}

.showcase-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.4s;
}

.showcase-card:hover .showcase-overlay {
  opacity: 1;
}

.showcase-overlay p {
  color: white;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.showcase-card h3 {
  margin-top: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
}

/* ==========================================
   Services Section
   ========================================== */
.services {
  background: var(--secondary);
  padding: 5rem 0 7rem;
  position: relative;
  overflow: hidden;
}

.section-header {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 4rem;
}

.accent-line {
  width: 3rem;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  border-radius: 9999px;
  margin: 0 auto 1.5rem;
}

.section-header h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--foreground);
}

@media (min-width: 640px) {
  .section-header h2 {
    font-size: 2.25rem;
  }
}

.section-header p {
  margin-top: 1rem;
  color: var(--muted-foreground);
  line-height: 1.75;
}

.services-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  position: relative;
  background: var(--card);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(214, 219, 228, 0.5);
  transition: all 0.5s;
}

.service-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(-0.5rem);
  border-color: rgba(205, 85, 85, 0.3);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 4px;
  background: linear-gradient(to right, transparent, var(--primary), transparent);
  border-radius: 0 0 9999px 9999px;
  opacity: 0;
  transition: opacity 0.5s;
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  background: linear-gradient(to bottom right, rgba(205, 85, 85, 0.1), rgba(197, 57, 95, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: all 0.5s;
}

.service-card:hover .service-icon {
  background: linear-gradient(to bottom right, var(--primary), var(--teal-500));
}

.service-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary);
  transition: stroke 0.5s;
}

.service-card:hover .service-icon svg {
  stroke: var(--primary-foreground);
}

.service-card h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.625;
}

/* ==========================================
   Stats Section
   ========================================== */
.stats {
  padding: 5rem 0 7rem;
  position: relative;
  overflow: hidden;
}

.stats-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item:not(:first-child)::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 4rem;
  background: linear-gradient(to bottom, transparent, var(--border), transparent);
  display: none;
}

@media (min-width: 1024px) {
  .stat-item:not(:first-child)::before {
    display: block;
  }
}

.stat-value {
  font-family: 'Poppins', sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--primary), var(--teal-500), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: transform 0.3s;
}

@media (min-width: 640px) {
  .stat-value {
    font-size: 3rem;
  }
}

.stat-item:hover .stat-value {
  transform: scale(1.1);
}

.stat-label {
  margin-top: 0.5rem;
  color: var(--muted-foreground);
  font-weight: 500;
}

/* ==========================================
   CTA Section
   ========================================== */
.cta {
  position: relative;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, var(--foreground), hsl(215, 25%, 27%), var(--foreground));
  clip-path: polygon(0 10%, 100% 0%, 100% 100%, 0% 100%);
}

.cta-content {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 6rem 1.5rem 8rem;
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .cta-content {
    grid-template-columns: 1fr 1fr;
    padding: 8rem 2rem;
  }
}

.cta h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--background);
}

@media (min-width: 640px) {
  .cta h2 {
    font-size: 2.25rem;
  }
}

.cta p {
  margin-top: 1rem;
  color: rgba(248, 250, 252, 0.7);
  line-height: 1.625;
  max-width: 32rem;
}

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

.cta .btn-outline {
  border-color: rgba(248, 250, 252, 0.3);
  color: var(--background);
}

.cta .btn-outline:hover {
  background: rgba(248, 250, 252, 0.1);
}

/* ==========================================
   Footer
   ========================================== */
.footer {
  position: relative;
  background: linear-gradient(to bottom right, var(--foreground), hsl(215, 25%, 27%), var(--foreground));
  color: var(--background);
  overflow: hidden;
}

.footer-wave {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.footer-wave svg {
  display: block;
  width: 100%;
  height: 4rem;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 6rem 1.5rem 3rem;
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 2rem;
    padding: 6rem 2rem 3rem;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.footer-brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.footer-brand-text .name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
}

.footer-brand-text .type {
  font-size: 0.875rem;
  color: rgba(248, 250, 252, 0.7);
}

.footer-description {
  font-size: 0.875rem;
  color: rgba(248, 250, 252, 0.7);
  line-height: 1.625;
}

.footer h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.footer h3::after {
  content: '';
  position: absolute;
  bottom: -0.25rem;
  left: 0;
  width: 2rem;
  height: 2px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  border-radius: 9999px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(248, 250, 252, 0.7);
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a:hover {
  color: var(--background);
  padding-left: 0.25rem;
}

.footer-services li {
  font-size: 0.875rem;
  color: rgba(248, 250, 252, 0.7);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.footer-services li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(to right, var(--primary), var(--accent));
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.footer-contact a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: rgba(248, 250, 252, 0.7);
  margin-bottom: 1rem;
  transition: color 0.3s;
}

.footer-contact a:hover {
  color: var(--background);
}

.footer-contact-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(248, 250, 252, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.footer-contact a:hover .footer-contact-icon {
  background: linear-gradient(to bottom right, var(--primary), var(--teal-500));
}

.footer-contact-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(248, 250, 252, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.footer-social a:hover {
  background: linear-gradient(to bottom right, var(--primary), var(--teal-500));
  transform: scale(1.1);
}

.footer-social svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(248, 250, 252, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom p {
  font-size: 0.875rem;
  color: rgba(248, 250, 252, 0.5);
}

.footer-bottom .type {
  font-size: 0.75rem;
}

/* ==========================================
   Page Hero (Secondary Pages)
   ========================================== */
.page-hero {
  position: relative;
  background: var(--secondary);
  overflow: hidden;
}

.page-hero-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
  position: relative;
}

@media (min-width: 1024px) {
  .page-hero-content {
    padding: 6rem 2rem 7rem;
  }
}

.page-hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--foreground);
  max-width: 42rem;
}

@media (min-width: 640px) {
  .page-hero h1 {
    font-size: 3rem;
  }
}

.page-hero p {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.625;
  max-width: 42rem;
}

/* ==========================================
   Cards Grid (Courses, Events)
   ========================================== */
.cards-section {
  padding: 4rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.cards-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  position: relative;
  background: var(--card);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(214, 219, 228, 0.5);
  transition: all 0.5s;
}

.card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(-0.5rem);
  border-color: rgba(205, 85, 85, 0.3);
}

.card-accent {
  height: 6px;
  background: linear-gradient(to right, var(--primary), var(--teal-500), var(--accent));
}

.card-content {
  padding: 1.5rem;
}

.card-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  background: var(--secondary);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.card-type {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.card-type.video {
  background: linear-gradient(to right, rgba(205, 85, 85, 0.1), rgba(215, 105, 95, 0.1));
  color: var(--primary);
}

.card-type.fiche {
  background: linear-gradient(to right, rgba(197, 57, 95, 0.1), rgba(210, 75, 105, 0.1));
  color: var(--accent);
}

.card-type svg {
  width: 12px;
  height: 12px;
}

.card h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--foreground);
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.card:hover h3 {
  color: var(--primary);
}

.card-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.625;
  margin-bottom: 1rem;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.card-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.card-meta svg {
  width: 14px;
  height: 14px;
}

/* ==========================================
   Filter Buttons
   ========================================== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(205, 85, 85, 0.3);
  transform: scale(1.05);
}

.filter-btn.active {
  background: linear-gradient(to right, var(--primary), var(--teal-500));
  color: var(--primary-foreground);
  border-color: transparent;
  box-shadow: 0 10px 15px -3px rgba(205, 85, 85, 0.25);
}

.filter-btn svg {
  width: 16px;
  height: 16px;
}

/* Subject filters */
.subject-filters {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.subject-filters-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.subject-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.subject-btn:hover {
  transform: scale(1.05);
}

.subject-btn.math {
  background: rgba(205, 85, 85, 0.1);
  color: var(--primary);
}
.subject-btn.math:hover {
  background: var(--primary);
  color: var(--primary-foreground);
}

.subject-btn.francais {
  background: rgba(245, 158, 11, 0.1);
  color: rgb(217, 119, 6);
}
.subject-btn.francais:hover {
  background: rgb(245, 158, 11);
  color: white;
}

.subject-btn.sciences {
  background: rgba(16, 185, 129, 0.1);
  color: rgb(5, 150, 105);
}
.subject-btn.sciences:hover {
  background: rgb(16, 185, 129);
  color: white;
}

.subject-btn.langues {
  background: rgba(197, 57, 95, 0.1);
  color: var(--accent);
}
.subject-btn.langues:hover {
  background: var(--accent);
  color: var(--accent-foreground);
}

/* ==========================================
   Contact Page
   ========================================== */
.contact-section {
  padding: 4rem 0 6rem;
}

.contact-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
  }
}

.contact-info h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  background: linear-gradient(to bottom right, rgba(205, 85, 85, 0.1), rgba(197, 57, 95, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
}

.contact-item:hover .contact-item-icon {
  background: linear-gradient(to bottom right, var(--primary), var(--teal-500));
}

.contact-item-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary);
  transition: stroke 0.3s;
}

.contact-item:hover .contact-item-icon svg {
  stroke: var(--primary-foreground);
}

.contact-item-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.contact-item-value {
  font-weight: 500;
  color: var(--foreground);
  transition: color 0.3s;
}

a.contact-item-value:hover {
  color: var(--primary);
}

.contact-social h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.contact-social-links {
  display: flex;
  gap: 0.75rem;
}

.contact-social-links a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.contact-social-links a:hover {
  background: linear-gradient(to bottom right, var(--primary), var(--teal-500));
  color: var(--primary-foreground);
  transform: scale(1.1);
}

.contact-social-links svg {
  width: 20px;
  height: 20px;
}

.contact-logo-card {
  margin-top: 3rem;
  padding: 1.5rem;
  background: linear-gradient(to bottom right, var(--secondary), rgba(241, 245, 249, 0.5));
  border-radius: 1rem;
  border: 1px solid rgba(214, 219, 228, 0.5);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-logo-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.contact-logo-card .name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--foreground);
}

.contact-logo-card .subtitle {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.contact-logo-card .type {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

/* Contact Cards Grid (no-form layout) */
.contact-cards-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .contact-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact-card {
  background: var(--card);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(214, 219, 228, 0.5);
  transition: all 0.5s;
  position: relative;
  overflow: hidden;
}

.contact-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(-0.5rem);
  border-color: rgba(205, 85, 85, 0.3);
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--teal-500), var(--accent));
  opacity: 0;
  transition: opacity 0.5s;
}

.contact-card:hover::before {
  opacity: 1;
}

.contact-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  background: linear-gradient(to bottom right, rgba(205, 85, 85, 0.1), rgba(197, 57, 95, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: all 0.5s;
}

.contact-card:hover .contact-card-icon {
  background: linear-gradient(to bottom right, var(--primary), var(--teal-500));
}

.contact-card-icon svg {
  stroke: var(--primary);
  transition: stroke 0.5s;
}

.contact-card:hover .contact-card-icon svg {
  stroke: var(--primary-foreground);
}

.contact-card h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.contact-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.625;
  margin-bottom: 1.25rem;
}

.contact-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--primary);
  transition: gap 0.3s;
}

a.contact-card-link:hover {
  gap: 0.75rem;
}

/* Contact Bottom Grid (logo + social) */
.contact-bottom-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .contact-bottom-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-logo-card-lg {
  padding: 2rem;
  background: linear-gradient(to bottom right, var(--secondary), rgba(241, 245, 249, 0.5));
  border-radius: 1.5rem;
  border: 1px solid rgba(214, 219, 228, 0.5);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.contact-logo-card-lg img {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.contact-logo-card-lg .name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--foreground);
}

.contact-logo-card-lg .subtitle {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

.contact-logo-card-lg .type {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin-top: 0.5rem;
}

.contact-social-card {
  padding: 2rem;
  background: var(--card);
  border-radius: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(214, 219, 228, 0.5);
}

.contact-social-card h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.contact-social-card > p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.contact-social-links-lg {
  display: flex;
  gap: 1rem;
}

.contact-social-links-lg a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.75rem;
  background: var(--secondary);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  transition: all 0.3s;
}

.contact-social-links-lg a:hover {
  background: linear-gradient(to bottom right, var(--primary), var(--teal-500));
  color: var(--primary-foreground);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(205, 85, 85, 0.25);
}

/* Contact Form */
.contact-form-card {
  background: var(--card);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(214, 219, 228, 0.5);
  position: relative;
  overflow: hidden;
}

@media (min-width: 640px) {
  .contact-form-card {
    padding: 2rem;
  }
}

@media (min-width: 1024px) {
  .contact-form-card {
    padding: 2.5rem;
  }
}

.contact-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(to right, var(--primary), var(--teal-500), var(--accent));
}

.contact-form-card h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.contact-form-card > p {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.form-row {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .form-row.two-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--foreground);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted-foreground);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(205, 85, 85, 0.2);
}

.form-group textarea {
  resize: none;
  min-height: 120px;
}

/* Form success */
.form-success {
  text-align: center;
  padding: 3rem 0;
}

.form-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(to bottom right, rgba(209, 250, 229, 1), rgba(204, 251, 241, 1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.form-success-icon svg {
  width: 32px;
  height: 32px;
  stroke: rgb(5, 150, 105);
}

.form-success h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

/* ==========================================
   About Page
   ========================================== */
.about-hero {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-hero {
    grid-template-columns: 1fr 1fr;
  }
}

.about-visual {
  position: relative;
  max-width: 24rem;
  margin: 0 auto;
}

.about-visual-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(205, 85, 85, 0.15), rgba(215, 105, 95, 0.1), rgba(197, 57, 95, 0.15));
  border-radius: 3rem;
  transform: rotate(3deg);
  transition: transform 0.5s;
}

.about-visual:hover .about-visual-bg {
  transform: rotate(6deg);
}

.about-visual-card {
  position: relative;
  background: var(--card);
  border-radius: 2.5rem;
  box-shadow: 0 25px 50px -12px rgba(205, 85, 85, 0.1);
  overflow: hidden;
  transform: rotate(-2deg);
  transition: transform 0.5s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  margin: 1rem;
}

.about-visual:hover .about-visual-card {
  transform: rotate(-1deg);
}

/* Mission Section */
.mission-section {
  padding: 4rem 0 6rem;
}

.mission-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .mission-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.mission-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: linear-gradient(to right, rgba(205, 85, 85, 0.1), rgba(197, 57, 95, 0.1));
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgba(205, 85, 85, 0.2);
  margin-bottom: 1.5rem;
}

.mission-badge svg {
  width: 16px;
  height: 16px;
}

.mission-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.mission-card {
  background: linear-gradient(to bottom right, var(--secondary), rgba(241, 245, 249, 0.5));
  border-radius: 1rem;
  padding: 1.25rem;
  border: 1px solid rgba(214, 219, 228, 0.5);
  transition: all 0.3s;
}

.mission-card:hover {
  border-color: rgba(205, 85, 85, 0.3);
}

.mission-card svg {
  width: 32px;
  height: 32px;
  margin-bottom: 0.75rem;
  transition: transform 0.3s;
}

.mission-card:hover svg {
  transform: scale(1.1);
}

.mission-card h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--foreground);
}

.mission-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Quote card */
.quote-card {
  background: var(--card);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(214, 219, 228, 0.5);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.5s;
}

@media (min-width: 1024px) {
  .quote-card {
    padding: 2.5rem;
  }
}

.quote-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.quote-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--teal-500), var(--accent));
}

.quote-icon {
  position: absolute;
  top: 2rem;
  left: 2rem;
  width: 40px;
  height: 40px;
  color: rgba(205, 85, 85, 0.2);
}

.quote-card blockquote {
  position: relative;
  z-index: 10;
  padding-top: 1rem;
  font-size: 1.125rem;
  color: var(--foreground);
  line-height: 1.75;
  font-style: italic;
}

@media (min-width: 1024px) {
  .quote-card blockquote {
    font-size: 1.25rem;
  }
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.quote-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(to bottom right, rgba(205, 85, 85, 0.2), rgba(197, 57, 95, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  background: linear-gradient(to right, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.quote-author-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--foreground);
}

.quote-author-role {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Values Section */
.values-section {
  background: var(--secondary);
  padding: 4rem 0 6rem;
}

.values-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.value-card {
  background: var(--card);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(214, 219, 228, 0.5);
  transition: all 0.5s;
  position: relative;
  overflow: hidden;
}

.value-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(-0.5rem);
  border-color: rgba(205, 85, 85, 0.3);
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--teal-500), var(--accent));
  opacity: 0;
  transition: opacity 0.5s;
}

.value-card:hover::before {
  opacity: 1;
}

.value-icon {
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  background: linear-gradient(to bottom right, rgba(205, 85, 85, 0.1), rgba(197, 57, 95, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: all 0.5s;
}

.value-card:hover .value-icon {
  background: linear-gradient(to bottom right, var(--primary), var(--teal-500));
}

.value-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--primary);
  transition: stroke 0.5s;
}

.value-card:hover .value-icon svg {
  stroke: var(--primary-foreground);
}

.value-card h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.625;
}

/* Timeline */
.timeline-section {
  padding: 4rem 0 6rem;
}

.timeline {
  position: relative;
  margin-top: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--teal-500), var(--accent));
}

@media (min-width: 1024px) {
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-item {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 1024px) {
  .timeline-item {
    padding-left: 0;
    width: 50%;
  }

  .timeline-item:nth-child(odd) {
    padding-right: 4rem;
    text-align: right;
  }

  .timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-left: 4rem;
  }
}

.timeline-dot {
  position: absolute;
  left: 1rem;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(to right, var(--primary), var(--accent));
  border: 4px solid var(--background);
  transform: translateX(-50%);
  z-index: 10;
}

@media (min-width: 1024px) {
  .timeline-dot {
    left: auto;
    right: -8px;
  }

  .timeline-item:nth-child(even) .timeline-dot {
    right: auto;
    left: -8px;
  }
}

.timeline-year {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: linear-gradient(to right, rgba(205, 85, 85, 0.1), rgba(197, 57, 95, 0.1));
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 700;
  border: 1px solid rgba(205, 85, 85, 0.2);
  margin-bottom: 0.75rem;
}

.timeline-item h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.timeline-item p {
  color: var(--muted-foreground);
}

/* Team Section */
.team-section {
  background: var(--secondary);
  padding: 4rem 0 6rem;
}

.team-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.team-card {
  background: var(--card);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(214, 219, 228, 0.5);
  text-align: center;
  transition: all 0.5s;
}

.team-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(-0.5rem);
  border-color: rgba(205, 85, 85, 0.3);
}

.team-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(to bottom right, rgba(205, 85, 85, 0.1), rgba(197, 57, 95, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: all 0.5s;
}

.team-card:hover .team-icon {
  background: linear-gradient(to bottom right, var(--primary), var(--teal-500));
}

.team-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--primary);
  transition: stroke 0.5s;
}

.team-card:hover .team-icon svg {
  stroke: var(--primary-foreground);
}

.team-card h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.team-card .role {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}

.team-card .count {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: linear-gradient(to right, rgba(205, 85, 85, 0.1), rgba(197, 57, 95, 0.1));
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 500;
}

/* ==========================================
   Events Page
   ========================================== */
.featured-event {
  padding: 3rem 0 4rem;
}

.featured-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.featured-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(to right, var(--primary), var(--accent));
  animation: pulse 2s infinite;
}

.featured-badge span {
  font-size: 0.875rem;
  font-weight: 500;
  background: linear-gradient(to right, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.featured-card {
  background: var(--card);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(214, 219, 228, 0.5);
  transition: all 0.5s;
}

.featured-card:hover {
  border-color: rgba(205, 85, 85, 0.3);
}

.featured-card::before {
  content: '';
  display: block;
  height: 6px;
  background: linear-gradient(to right, var(--primary), var(--teal-500), var(--accent));
}

.featured-grid {
  display: grid;
}

@media (min-width: 1024px) {
  .featured-grid {
    grid-template-columns: 1fr 4fr;
  }
}

.featured-date {
  background: linear-gradient(to bottom right, var(--primary), var(--teal-500));
  color: var(--primary-foreground);
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .featured-date {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 2rem;
  }
}

.featured-date .month {
  font-size: 0.875rem;
  opacity: 0.8;
}

.featured-date .day {
  font-size: 3rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1;
}

@media (min-width: 1024px) {
  .featured-date .day {
    font-size: 3.75rem;
  }
}

.featured-date .year {
  font-size: 0.875rem;
  opacity: 0.8;
}

.featured-date svg {
  width: 32px;
  height: 32px;
  opacity: 0.5;
}

.featured-content {
  padding: 1.5rem 2rem;
}

@media (min-width: 1024px) {
  .featured-content {
    padding: 2rem;
  }
}

.featured-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: linear-gradient(to right, rgba(205, 85, 85, 0.1), rgba(197, 57, 95, 0.1));
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.featured-content h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
}

@media (min-width: 1024px) {
  .featured-content h2 {
    font-size: 1.875rem;
  }
}

.featured-description {
  color: var(--muted-foreground);
  line-height: 1.625;
  margin-bottom: 1.5rem;
  max-width: 42rem;
}

.featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.featured-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.featured-meta svg {
  width: 16px;
  height: 16px;
  stroke: var(--primary);
}

/* Events grid */
.events-section {
  background: var(--secondary);
  padding: 3rem 0 5rem;
}

.events-header {
  margin-bottom: 2.5rem;
}

.events-header h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
}

@media (min-width: 640px) {
  .events-header h2 {
    font-size: 1.875rem;
  }
}

.events-header p {
  margin-top: 0.5rem;
  color: var(--muted-foreground);
}

.event-card {
  background: var(--card);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(214, 219, 228, 0.5);
  transition: all 0.5s;
}

.event-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(-0.5rem);
  border-color: rgba(205, 85, 85, 0.3);
}

.event-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.event-date {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.event-date-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  background: linear-gradient(to bottom right, rgba(205, 85, 85, 0.1), rgba(197, 57, 95, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.event-card:hover .event-date-icon {
  background: linear-gradient(to bottom right, var(--primary), var(--teal-500));
}

.event-date-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary);
  transition: stroke 0.3s;
}

.event-card:hover .event-date-icon svg {
  stroke: var(--primary-foreground);
}

.event-date-text .day {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--foreground);
}

.event-date-text .month {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.event-category {
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  background: var(--secondary);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.event-card h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--foreground);
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.event-card:hover h3 {
  color: var(--primary);
}

.event-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
}

.event-spots {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.event-spots svg {
  width: 14px;
  height: 14px;
}

/* Past events */
.past-events {
  padding: 4rem 0 5rem;
}

.past-events-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .past-events-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.past-event {
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid var(--border);
  transition: border-color 0.3s;
}

.past-event:hover {
  border-color: var(--primary);
}

.past-event::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--muted-foreground);
  border: 2px solid var(--border);
  transition: all 0.3s;
}

.past-event:hover::before {
  background: linear-gradient(to right, var(--primary), var(--accent));
  border-color: transparent;
}

.past-event-date {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0.25rem;
}

.past-event h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.past-event:hover h3 {
  color: var(--primary);
}

.past-event-participants {
  font-size: 0.875rem;
  font-weight: 500;
  background: linear-gradient(to right, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================
   Animations
   ========================================== */
@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(2deg);
  }
}

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

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

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-slide-up {
  animation: slideUp 0.6s ease-out forwards;
}

/* ==========================================
   Decorative Elements
   ========================================== */
.gradient-orb {
  position: absolute;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  background: linear-gradient(to bottom right, rgba(205, 85, 85, 0.15), rgba(197, 57, 95, 0.1));
  filter: blur(60px);
  pointer-events: none;
}

.floating-shape {
  position: absolute;
  pointer-events: none;
  opacity: 0.4;
}

/* ==========================================
   Utility Classes
   ========================================== */
.text-center {
  text-align: center;
}

.hidden {
  display: none;
}

@media (min-width: 1024px) {
  .lg-show {
    display: block;
  }
}

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

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================
   Admin Panel
   ========================================== */

.admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.admin-tab {
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.admin-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.admin-tab.active {
  background: linear-gradient(to right, var(--primary), var(--teal-500));
  color: white;
  border-color: transparent;
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-table-wrapper {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border: 1px solid rgba(214, 219, 228, 0.5);
}

.admin-table th {
  text-align: left;
  padding: 1rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  background: var(--secondary);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.admin-table td {
  padding: 0.875rem 1.25rem;
  font-size: 0.875rem;
  color: var(--foreground);
  border-bottom: 1px solid rgba(214, 219, 228, 0.3);
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: rgba(205, 85, 85, 0.03);
}

.admin-actions {
  display: flex;
  gap: 0.5rem;
  white-space: nowrap;
}

.admin-btn-edit {
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(205, 85, 85, 0.1);
  color: var(--primary);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.admin-btn-edit:hover {
  background: rgba(205, 85, 85, 0.2);
}

.admin-btn-delete {
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(220, 38, 38, 0.1);
  color: rgb(220, 38, 38);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.admin-btn-delete:hover {
  background: rgba(220, 38, 38, 0.2);
}

.admin-badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.admin-badge-video {
  background: rgba(59, 130, 246, 0.1);
  color: rgb(59, 130, 246);
}

.admin-badge-fiche {
  background: rgba(16, 185, 129, 0.1);
  color: rgb(16, 185, 129);
}

.admin-badge-admin {
  background: rgba(205, 85, 85, 0.1);
  color: var(--primary);
}

.admin-badge-editor {
  background: rgba(59, 130, 246, 0.1);
  color: rgb(59, 130, 246);
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: var(--card);
  border-radius: 1.5rem;
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}

.modal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(to right, var(--primary), var(--teal-500), var(--accent));
  border-radius: 1.5rem 1.5rem 0 0;
}

/* Toast */
.admin-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: white;
  background: rgb(16, 185, 129);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 200;
}

.admin-toast.error {
  background: rgb(220, 38, 38);
}

.admin-toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 768px) {
  .admin-table th:nth-child(4),
  .admin-table td:nth-child(4),
  .admin-table th:nth-child(5),
  .admin-table td:nth-child(5) {
    display: none;
  }

  .modal-card {
    padding: 1.5rem;
    border-radius: 1rem;
  }
}

/* ==========================================
   HOMEPAGE — Youth-oriented Redesign
   ========================================== */

/* --- Home Hero --- */
.home-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  margin-top: -80px;
  padding-top: 72px;
}

.home-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0f0c29 0%, #1a1145 30%, #302b63 60%, #24243e 100%);
  z-index: 0;
}

.home-hero-mesh {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(131, 56, 236, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(251, 99, 64, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(72, 149, 239, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 40% 30%, rgba(255, 0, 128, 0.1) 0%, transparent 40%);
  animation: meshShift 12s ease-in-out infinite alternate;
}

@keyframes meshShift {
  0% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0.8; transform: scale(1); }
}

.home-float-emoji {
  position: absolute;
  font-size: 2rem;
  z-index: 2;
  opacity: 0.4;
  animation: emojiFloat 6s ease-in-out infinite;
  pointer-events: none;
  user-select: none;
}

@keyframes emojiFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-15px) rotate(5deg); }
  50% { transform: translateY(-25px) rotate(-3deg); }
  75% { transform: translateY(-10px) rotate(2deg); }
}

.home-hero-content {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin: 0 auto;
  padding: 7rem 1.5rem 4rem;
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .home-hero-content {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 8rem 2rem 6rem;
  }
}

/* Hero Badge */
.home-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.home-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #43e97b;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

/* Hero Title */
.home-hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .home-hero-title {
    font-size: 3.5rem;
  }
}

@media (min-width: 1024px) {
  .home-hero-title {
    font-size: 4.25rem;
  }
}

.home-gradient-text {
  background: linear-gradient(115deg, #f5576c, #ff6a88, #4facfe);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientFlow 4s ease infinite;
}

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

.home-hero-desc {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  max-width: 32rem;
}

/* Hero Buttons */
.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.home-btn-glow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #f5576c, #ff6a88);
  box-shadow: 0 0 30px rgba(245, 87, 108, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: all 0.3s;
  text-decoration: none;
}

.home-btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(245, 87, 108, 0.6), 0 12px 32px rgba(0, 0, 0, 0.4);
}

.home-btn-glass {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s;
  text-decoration: none;
}

.home-btn-glass:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Social proof */
.home-hero-proof {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.home-proof-avatars {
  display: flex;
}

.home-proof-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  border: 2px solid rgba(15, 12, 41, 0.8);
  margin-left: -8px;
}

.home-proof-avatar:first-child {
  margin-left: 0;
}

.home-hero-proof p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

.home-hero-proof p strong {
  color: rgba(255, 255, 255, 0.85);
}

/* Hero Visual — Card Stack */
.home-hero-visual {
  display: none;
}

@media (min-width: 1024px) {
  .home-hero-visual {
    display: block;
  }
}

.home-hero-card-stack {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  aspect-ratio: 4 / 3;
}

.home-hero-img-card {
  position: absolute;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.home-hero-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero-img-tag {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
}

.home-hero-img-main {
  width: 75%;
  height: 80%;
  bottom: 0;
  left: 0;
  z-index: 3;
  transform: rotate(-3deg);
}

.home-hero-img-main:hover {
  transform: rotate(-1deg) scale(1.03);
}

.home-hero-img-secondary {
  width: 55%;
  height: 60%;
  top: 0;
  right: 0;
  z-index: 2;
  transform: rotate(4deg);
}

.home-hero-img-secondary:hover {
  transform: rotate(2deg) scale(1.03);
}

.home-hero-img-tertiary {
  width: 40%;
  height: 45%;
  bottom: 5%;
  right: 5%;
  z-index: 1;
  transform: rotate(-6deg);
}

.home-hero-img-tertiary:hover {
  transform: rotate(-3deg) scale(1.03);
}

/* --- Bento Showcase --- */
.home-bento {
  padding: 5rem 0;
  background: var(--background);
}

.home-section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.home-section-tag {
  display: inline-block;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(245, 87, 108, 0.1), rgba(79, 172, 254, 0.1));
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.home-section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--foreground);
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .home-section-title {
    font-size: 2.5rem;
  }
}

.home-section-desc {
  margin-top: 0.75rem;
  font-size: 1.0625rem;
  color: var(--muted-foreground);
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

/* Bento Grid */
.home-bento-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .home-bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto auto;
  }

  .home-bento-large {
    grid-row: 1 / 3;
  }

  .home-bento-wide {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .home-bento-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .home-bento-large {
    grid-row: 1 / 3;
    grid-column: 1;
  }

  .home-bento-small:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .home-bento-small:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
  }

  .home-bento-wide {
    grid-column: 2 / 4;
    grid-row: 2;
  }
}

.home-bento-card {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(214, 219, 228, 0.5);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.home-bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: rgba(245, 87, 108, 0.3);
}

.home-bento-img {
  position: relative;
  overflow: hidden;
}

.home-bento-large .home-bento-img {
  height: 220px;
}

.home-bento-small .home-bento-img {
  height: 160px;
}

.home-bento-wide .home-bento-img {
  height: 180px;
}

@media (min-width: 768px) {
  .home-bento-large .home-bento-img {
    height: 260px;
  }
}

.home-bento-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.home-bento-card:hover .home-bento-img img {
  transform: scale(1.08);
}

.home-bento-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 12, 41, 0.5) 0%, transparent 60%);
}

.home-bento-content {
  padding: 1.25rem 1.5rem 1.5rem;
}

.home-bento-emoji {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.home-bento-content h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--foreground);
  margin-bottom: 0.375rem;
}

.home-bento-content p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.home-bento-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap 0.3s;
}

.home-bento-link:hover {
  gap: 0.625rem;
}

/* --- Why Join Section --- */
.home-why {
  padding: 5rem 0;
  background: linear-gradient(to bottom, var(--secondary), var(--background));
}

.home-why-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .home-why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .home-why-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.home-why-card {
  position: relative;
  padding: 1.75rem 1.5rem;
  border-radius: 1.25rem;
  background: var(--card);
  border: 1px solid rgba(214, 219, 228, 0.5);
  transition: all 0.4s;
  overflow: hidden;
}

.home-why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f5576c, #ff6a88, #ffd166, #43e97b, #4facfe);
  background-size: 200% auto;
  opacity: 0;
  transition: opacity 0.4s;
}

.home-why-card:hover::before {
  opacity: 1;
  animation: gradientFlow 3s ease infinite;
}

.home-why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: transparent;
}

.home-why-icon {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.home-why-card h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.home-why-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* --- Stats Marquee --- */
.home-stats {
  padding: 2rem 0;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  overflow: hidden;
}

.home-stats-track {
  overflow: hidden;
  width: 100%;
}

.home-stats-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  animation: marquee 20s linear infinite;
  width: max-content;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.home-stat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
  padding: 0.5rem 0;
}

.home-stat-value {
  font-family: 'Poppins', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, #f5576c, #ffd166, #43e97b, #4facfe);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-stat-label {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.home-stat-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

/* --- CTA Section --- */
.home-cta {
  position: relative;
  overflow: hidden;
  padding: 6rem 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
}

.home-cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-cta-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
}

.home-cta-blob-1 {
  width: 400px;
  height: 400px;
  background: #f5576c;
  top: -100px;
  right: -100px;
  animation: blobMove 8s ease-in-out infinite alternate;
}

.home-cta-blob-2 {
  width: 350px;
  height: 350px;
  background: #4facfe;
  bottom: -100px;
  left: -100px;
  animation: blobMove 8s ease-in-out infinite alternate-reverse;
}

@keyframes blobMove {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -20px) scale(1.1); }
}

.home-cta-content {
  position: relative;
  z-index: 10;
  max-width: 40rem;
  margin: 0 auto;
}

.home-cta-emoji {
  font-size: 3rem;
  display: block;
  margin-bottom: 1.5rem;
}

.home-cta h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .home-cta h2 {
    font-size: 2.5rem;
  }
}

.home-cta p {
  margin-top: 1rem;
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.home-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.home-btn-glow-white {
  background: #fff;
  color: #1a1145;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.2), 0 8px 24px rgba(0, 0, 0, 0.3);
}

.home-btn-glow-white:hover {
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.35), 0 12px 32px rgba(0, 0, 0, 0.4);
}

.home-btn-glass-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s;
  text-decoration: none;
}

.home-btn-glass-dark:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* ==========================================
   Homepage Dark Header
   ========================================== */
.header-dark {
  background: rgba(15, 12, 41, 0.6);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-dark .logo-text .name {
  color: #fff;
}

.header-dark .logo-text .subtitle {
  color: rgba(255, 255, 255, 0.5);
}

.header-dark .nav-link {
  color: rgba(255, 255, 255, 0.7);
}

.header-dark .nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.header-dark .nav-link::after {
  background: linear-gradient(to right, #f5576c, #4facfe);
}

.header-dark .header-cta .btn-primary {
  background: linear-gradient(135deg, #f5576c, #ff6a88);
  box-shadow: 0 0 20px rgba(245, 87, 108, 0.3);
}

.header-dark .header-cta .btn-primary:hover {
  box-shadow: 0 0 30px rgba(245, 87, 108, 0.5);
}

.header-dark .mobile-menu-btn {
  background: rgba(255, 255, 255, 0.08);
}

.header-dark .mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.header-dark .mobile-menu-btn svg {
  stroke: #fff;
}

.header-dark + .header .nav-mobile,
.header-dark ~ .nav-mobile {
  background: rgba(15, 12, 41, 0.95);
}

/* Dark mobile menu */
.page-home .nav-mobile {
  background: rgba(15, 12, 41, 0.97);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.page-home .nav-mobile a {
  color: rgba(255, 255, 255, 0.8);
}

.page-home .nav-mobile a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* ==========================================
   Homepage Footer
   ========================================== */
.home-footer {
  background: linear-gradient(135deg, #0f0c29 0%, #1a1145 50%, #24243e 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.home-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 87, 108, 0.4), rgba(79, 172, 254, 0.4), transparent);
}

.home-footer-top {
  padding: 4rem 0 3rem;
}

.home-footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .home-footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
  }
}

/* Brand column */
.home-footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.home-footer-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.home-footer-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.2;
}

.home-footer-tagline {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

.home-footer-desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 280px;
}

/* Social icons */
.home-footer-socials {
  display: flex;
  gap: 0.625rem;
}

.home-footer-social {
  width: 40px;
  height: 40px;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s;
}

.home-footer-social:hover {
  background: linear-gradient(135deg, #f5576c, #ff6a88);
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 87, 108, 0.3);
}

/* Columns */
.home-footer-col h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  color: #fff;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  display: inline-block;
}

.home-footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -0.375rem;
  left: 0;
  width: 1.5rem;
  height: 2px;
  background: linear-gradient(90deg, #f5576c, #4facfe);
  border-radius: 9999px;
}

.home-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.home-footer-col ul li {
  margin-bottom: 0.625rem;
}

.home-footer-col ul li a,
.home-footer-col ul li span {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.home-footer-col ul li a:hover {
  color: #fff;
  padding-left: 0.25rem;
}

/* Contact column */
.home-footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.home-footer-contact li a {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.home-footer-contact-icon {
  width: 28px;
  height: 28px;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
  transition: all 0.3s;
}

.home-footer-contact li a:hover .home-footer-contact-icon {
  background: linear-gradient(135deg, #f5576c, #ff6a88);
  color: #fff;
}

/* Bottom bar */
.home-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.5rem 0;
}

.home-footer-bottom .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

@media (min-width: 640px) {
  .home-footer-bottom .container {
    flex-direction: row;
    justify-content: space-between;
  }
}

.home-footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ==========================================
   Secondary Pages — Dark Theme
   ========================================== */

/* Dark mobile menu for all pages with header-dark */
.header-dark + .nav-mobile,
.header-dark ~ .nav-mobile {
  background: rgba(15, 12, 41, 0.97);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Fix: nav-mobile is inside header, so target via parent */
.header-dark .nav-mobile {
  background: rgba(15, 12, 41, 0.97);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.header-dark .nav-mobile a {
  color: rgba(255, 255, 255, 0.8);
}

.header-dark .nav-mobile a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* --- Dark Page Hero --- */
.dark-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f0c29 0%, #1a1145 40%, #302b63 70%, #24243e 100%);
}

.dark-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(131, 56, 236, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(245, 87, 108, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(79, 172, 254, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.dark-hero-content {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
}

@media (min-width: 1024px) {
  .dark-hero-content {
    padding: 6rem 2rem 5rem;
  }
}

.dark-hero-tag {
  display: inline-block;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.dark-hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

@media (min-width: 640px) {
  .dark-hero h1 {
    font-size: 3rem;
  }
}

.dark-hero p {
  margin-top: 1.25rem;
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  max-width: 38rem;
}

/* --- Dark CTA --- */
.dark-cta {
  position: relative;
  overflow: hidden;
  padding: 5rem 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
}

.dark-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(245, 87, 108, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 50%, rgba(79, 172, 254, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.dark-cta-inner {
  position: relative;
  z-index: 10;
  max-width: 36rem;
  margin: 0 auto;
}

.dark-cta h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
}

@media (min-width: 640px) {
  .dark-cta h2 {
    font-size: 2.25rem;
  }
}

.dark-cta p {
  margin-top: 1rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
}

.dark-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

/* --- Dark filter buttons for cours page --- */
.dark-hero .filters {
  margin-top: 2rem;
}

.dark-hero .filter-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

.dark-hero .filter-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.dark-hero .filter-btn.active {
  background: linear-gradient(135deg, #f5576c, #ff6a88);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 20px rgba(245, 87, 108, 0.3);
}

/* --- Dark subject filters --- */
.dark-subject-filters {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(214, 219, 228, 0.15);
}

.dark-subject-filters .subject-filters-header {
  color: var(--muted-foreground);
}

/* --- Contact cards dark style --- */
.contact-cards-dark {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .contact-cards-dark {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact-card-dark {
  padding: 1.75rem 1.5rem;
  border-radius: 1.25rem;
  background: var(--card);
  border: 1px solid rgba(214, 219, 228, 0.5);
  transition: all 0.4s;
  overflow: hidden;
  position: relative;
}

.contact-card-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f5576c, #ff6a88, #4facfe);
  opacity: 0;
  transition: opacity 0.4s;
}

.contact-card-dark:hover::before {
  opacity: 1;
}

.contact-card-dark:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
  border-color: transparent;
}

.contact-card-dark .card-emoji {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.contact-card-dark h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--foreground);
  margin-bottom: 0.375rem;
}

.contact-card-dark p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.contact-card-dark .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap 0.3s;
}

.contact-card-dark .card-link:hover {
  gap: 0.625rem;
}

/* --- Social card dark --- */
.social-card-dark {
  padding: 2rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(245, 87, 108, 0.05), rgba(79, 172, 254, 0.05));
  border: 1px solid rgba(214, 219, 228, 0.5);
}

.social-card-dark h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.social-card-dark p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1.25rem;
}

.social-links-row {
  display: flex;
  gap: 0.75rem;
}

.social-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  background: var(--card);
  border: 1px solid rgba(214, 219, 228, 0.5);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  transition: all 0.3s;
}

.social-link-pill:hover {
  background: linear-gradient(135deg, #f5576c, #ff6a88);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 87, 108, 0.3);
}

/* --- Events dark cards override --- */
.dark-events-section {
  background: linear-gradient(to bottom, var(--secondary), var(--background));
  padding: 3rem 0 5rem;
}

/* Featured event dark style */
.dark-featured .featured-card {
  border: 1px solid rgba(214, 219, 228, 0.3);
}

.dark-featured .featured-card:hover {
  border-color: rgba(245, 87, 108, 0.3);
}

.dark-featured .featured-date {
  background: linear-gradient(135deg, #f5576c, #ff6a88);
}

/* --- About values/cards dark hover --- */
.value-card:hover,
.team-card:hover,
.mission-card:hover {
  border-color: rgba(245, 87, 108, 0.3);
}

.value-card:hover .value-icon,
.team-card:hover .team-icon {
  background: linear-gradient(135deg, #f5576c, #ff6a88);
}

/* Logo card dark */
.logo-card-dark {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.75rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(245, 87, 108, 0.04), rgba(79, 172, 254, 0.04));
  border: 1px solid rgba(214, 219, 228, 0.5);
}

.logo-card-dark img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.logo-card-dark .name {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--foreground);
}

.logo-card-dark .subtitle {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.logo-card-dark .type {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.125rem;
}

/* Contact bottom grid */
.contact-bottom-dark {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .contact-bottom-dark {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================================
   SECONDARY PAGES — Light Theme with Images
   ========================================== */

/* --- Light Hero --- */
.light-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #f8f7ff;
}

.light-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.light-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.light-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(248, 247, 255, 0.88) 40%,
    rgba(255, 255, 255, 0.55) 100%
  );
}

@media (max-width: 768px) {
  .light-hero-bg::after {
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(248, 247, 255, 0.85) 60%,
      rgba(255, 255, 255, 0.7) 100%
    );
  }
}

.light-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 7rem 1.5rem 4rem;
}

.light-hero-content h1 {
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .light-hero-content {
    padding: 8rem 2rem 5rem;
  }
}

.light-hero-tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #667eea20, #764ba220);
  border: 1px solid rgba(102, 126, 234, 0.2);
  color: #667eea;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.light-hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: #1a1a2e;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

@media (min-width: 640px) {
  .light-hero h1 {
    font-size: 3.25rem;
  }
}

.light-hero h1 .accent {
  background: linear-gradient(135deg, #764ba2, #f5576c);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: gradientFlow 4s ease infinite;
}

.light-hero p {
  margin-top: 1.25rem;
  font-size: 1.0625rem;
  color: #555;
  line-height: 1.7;
  max-width: 38rem;
}

/* --- Light Hero Filter Buttons (cours.html) --- */
.light-hero .filters {
  margin-top: 2rem;
}

.light-hero .filter-btn {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(102, 126, 234, 0.15);
  color: #555;
  backdrop-filter: blur(4px);
}

.light-hero .filter-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(102, 126, 234, 0.3);
  color: #333;
}

.light-hero .filter-btn.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* --- Light CTA --- */
.light-cta {
  position: relative;
  overflow: hidden;
  padding: 5rem 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
}

.light-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 50%, rgba(245, 87, 108, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.light-cta-inner {
  position: relative;
  z-index: 10;
  max-width: 36rem;
  margin: 0 auto;
}

.light-cta h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
}

@media (min-width: 640px) {
  .light-cta h2 {
    font-size: 2.25rem;
  }
}

.light-cta p {
  margin-top: 1rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

.light-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.light-cta .btn-cta-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  background: #fff;
  color: #667eea;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.light-cta .btn-cta-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.light-cta .btn-cta-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.light-cta .btn-cta-outline:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* --- Light Contact Cards --- */
.light-contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .light-contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.light-contact-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1.25rem;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.light-contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.light-contact-card:hover {
  border-color: rgba(102, 126, 234, 0.3);
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.08);
  transform: translateY(-2px);
}

.light-contact-card:hover::before {
  opacity: 1;
}

.light-contact-card .card-emoji {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  display: block;
}

.light-contact-card h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
}

.light-contact-card p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.light-contact-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #667eea;
  text-decoration: none;
  transition: gap 0.2s ease;
}

.light-contact-card .card-link:hover {
  gap: 0.75rem;
}

/* --- Light Social / Bottom Section --- */
.light-contact-bottom {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .light-contact-bottom {
    grid-template-columns: 1fr 1fr;
  }
}

.light-logo-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 2rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1.25rem;
}

.light-logo-card img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

.light-logo-card .name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1a1a2e;
}

.light-logo-card .subtitle {
  font-size: 0.8125rem;
  color: #667eea;
  font-weight: 500;
}

.light-logo-card .type {
  font-size: 0.75rem;
  color: #888;
  margin-top: 0.25rem;
}

.light-social-card {
  padding: 2rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1.25rem;
}

.light-social-card h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
}

.light-social-card p {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 1rem;
}

.light-social-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #667eea10, #764ba210);
  border: 1px solid rgba(102, 126, 234, 0.15);
  color: #667eea;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.light-social-pill:hover {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  border-color: transparent;
  transform: translateY(-1px);
}

.light-social-pill svg {
  width: 16px;
  height: 16px;
}

/* --- Subject Filters (light theme) --- */
.subject-filters-light {
  padding: 2rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.subject-filters-light .subject-filters-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: #555;
  font-size: 0.875rem;
  font-weight: 500;
}

.subject-filters-light .subject-btn {
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #555;
}

.subject-filters-light .subject-btn:hover {
  border-color: rgba(102, 126, 234, 0.3);
  color: #333;
}

.subject-filters-light .subject-btn.active.math {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  border-color: transparent;
}

.subject-filters-light .subject-btn.active.francais {
  background: linear-gradient(135deg, #f093fb, #f5576c);
  color: #fff;
  border-color: transparent;
}

.subject-filters-light .subject-btn.active.sciences {
  background: linear-gradient(135deg, #43e97b, #38f9d7);
  color: #fff;
  border-color: transparent;
}

.subject-filters-light .subject-btn.active.langues {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  color: #fff;
  border-color: transparent;
}

/* --- Light header overrides for secondary pages --- */
.header-light {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* --- A propos hero split layout --- */
.about-hero-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about-hero-split {
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
  }
}

.about-hero-img {
  border-radius: 1.25rem;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Coming Soon Section (cours.html) --- */
.coming-soon-section {
  padding: 4rem 0 2rem;
}

.coming-soon {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.coming-soon-img {
  width: 100%;
  max-width: 380px;
  margin: 0 auto 2rem;
  display: block;
}

.coming-soon h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 1rem;
}

.coming-soon p {
  font-size: 1rem;
  color: #666;
  line-height: 1.7;
}

/* --- A propos — Purple/Blue color overrides --- */
.mission-badge {
  background: linear-gradient(to right, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  color: #667eea;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.mission-card svg {
  stroke: #667eea;
}

.quote-card::before {
  background: linear-gradient(to right, #667eea, #764ba2, #f5576c);
}

.quote-icon {
  color: rgba(102, 126, 234, 0.2);
}

.quote-author-avatar {
  background: linear-gradient(to right, #667eea, #764ba2) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

.value-icon {
  background: linear-gradient(to bottom right, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.value-icon svg {
  stroke: #667eea;
}

.value-card:hover {
  border-color: rgba(102, 126, 234, 0.3);
}

.value-card::before {
  background: linear-gradient(to right, #667eea, #764ba2, #f5576c);
}

.value-card:hover .value-icon {
  background: linear-gradient(to bottom right, #667eea, #764ba2);
}

.team-card:hover {
  border-color: rgba(102, 126, 234, 0.3);
}

.team-icon {
  background: linear-gradient(to bottom right, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.team-icon svg {
  stroke: #667eea;
}

.team-card:hover .team-icon {
  background: linear-gradient(to bottom right, #667eea, #764ba2);
}

.team-card .count {
  background: linear-gradient(to right, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  color: #667eea;
}
