/* ==========================================================================
   DAKAR LEADERS SCHOOL — DLS
   Design tokens: Senegal-flag palette (vert / jaune / rouge), Fredoka + Jost
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&family=Jost:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

:root {
  --green: #007A3D;
  --green-dark: #005C2E;
  --yellow: #FFD600;
  --yellow-soft: #FFF3B0;
  --red: #C5143E;
  --ink: #14201A;
  --ink-soft: #4B564F;
  --cream: #F8F9FA;
  --white: #FFFFFF;
  --line: #E7E2D2;

  --font-display: 'Playfair Display', serif;
  --font-body: 'Jost', sans-serif;

  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 12px;

  /* Premium Shadow System */
  --shadow-sm: 0 4px 12px rgba(20, 32, 26, 0.06);
  --shadow-md: 0 12px 32px -4px rgba(20, 32, 26, 0.12);
  --shadow-lg: 0 24px 48px -12px rgba(20, 32, 26, 0.18);
  --shadow-soft: var(--shadow-md);

  --container: 1240px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

::selection {
  background: var(--green-dark);
  color: var(--white);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;

  /* Initial state for fade-in */
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

body.page-loaded {
  opacity: 1;
}

img {
  max-width: 100%;
  display: block;
}

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
}

h3 {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: -0.02em;
}

h4 {
  font-size: 1.1rem;
  font-family: var(--font-body);
}

p {
  margin: 0 0 1.2em;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--green);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 3px;
  background: var(--yellow);
  border-radius: 2px;
}

.section {
  padding: 120px 0;
}

.section--tight {
  padding: 80px 0;
}

.section--cream {
  background: var(--cream);
}

.section--white {
  background: var(--white);
}

.section--green {
  background: var(--green);
  color: var(--white);
}

.section--green h2,
.section--green h3 {
  color: var(--white);
}

.section-head {
  max-width: 720px;
  margin: 0 0 56px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.2rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.05rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .3s cubic-bezier(0.2, 0.8, 0.2, 1);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background: linear-gradient(135deg, var(--yellow) 0%, #E6C200 100%);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  border-color: rgba(255, 214, 0, 0.5);
}

.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}

.btn-dark {
  background: var(--ink);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--green-dark);
}

/* ---------- header ---------- */
.site-header {
  position: relative;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--green-dark);
  line-height: 1.1;
}

.brand-mark {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex: none;
}

.brand-logo-img {
  height: 70px;
  width: auto;
  object-fit: contain;
  max-width: 100%;
  flex: none;
}

.footer-brand .brand-logo-img {
  height: 54px;
}

.brand small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .66rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .88rem;
  font-weight: 500;
}

.nav-links a {
  position: relative;
  padding: 8px 14px;
  color: var(--ink-soft);
  font-weight: 600;
  white-space: nowrap;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-links a:hover {
  color: var(--green-dark);
  background: rgba(0, 122, 61, 0.05);
}

/* Nav Dropdown */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown-trigger::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.2s ease;
  margin-left: 2px;
}

.nav-dropdown:hover .nav-dropdown-trigger::after {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius-md, 12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  width: 100%;
  padding: 10px 18px;
  border-radius: 0;
  font-size: 0.88rem;
  color: var(--ink);
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-dropdown-menu a:hover {
  background: rgba(0, 122, 61, 0.08);
  color: var(--green-dark);
}

/* Valeurs Fondamentales Section Grid */
.valeurs-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: 32px;
  align-items: center;
}

.valeur-card {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius-lg, 16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.valeur-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

@media (max-width: 992px) {
  .valeurs-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Animated Direction Photo Gallery */
.direction-gallery-section {
  padding: 60px 0 95px !important;
  background: var(--white);
}

.direction-gallery-item {
  border-radius: var(--radius-lg, 16px);
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.4s ease;
  cursor: pointer;
}

.direction-gallery-item:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
  filter: brightness(1.04);
}

/* Motion Services Accordion Section */
.motion-services-container {
  max-width: 960px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.motion-service-item {
  background: var(--white);
  border-radius: var(--radius-lg, 18px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.motion-service-item:hover {
  box-shadow: 0 10px 32px rgba(0, 122, 61, 0.09);
  border-color: rgba(0, 122, 61, 0.22);
}

.motion-service-item.active {
  background: linear-gradient(135deg, rgba(0, 122, 61, 0.03) 0%, rgba(255, 214, 0, 0.04) 100%);
  border-color: var(--green-dark);
  box-shadow: 0 14px 40px rgba(0, 122, 61, 0.14);
}

.motion-service-header {
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.motion-service-title-group {
  display: flex;
  align-items: center;
  gap: 18px;
}

.motion-service-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(0, 122, 61, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.motion-service-item:hover .motion-service-icon {
  transform: scale(1.1) rotate(4deg);
}

.motion-service-item.active .motion-service-icon {
  background: var(--green-dark);
  color: #fff;
}

.motion-service-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}

.motion-service-subtitle {
  margin: 2px 0 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.motion-service-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--ink);
  transition: transform 0.35s ease, background 0.3s ease, color 0.3s ease;
}

.motion-service-item.active .motion-service-toggle {
  transform: rotate(180deg);
  background: var(--green-dark);
  color: #fff;
}

.motion-service-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
  padding: 0 28px;
}

.motion-service-item.active .motion-service-body {
  max-height: 500px;
  transition: max-height 0.45s cubic-bezier(0.5, 0, 0.1, 1);
  padding: 0 28px 26px 28px;
}

.motion-service-content {
  border-top: 1px dashed rgba(0, 0, 0, 0.09);
  padding-top: 20px;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.7;
}

/* Premium Gallery Filters & Motion Grid */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.gallery-filter-btn {
  padding: 10px 22px;
  border-radius: 30px;
  border: 1px solid rgba(0, 122, 61, 0.15);
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.gallery-filter-btn:hover {
  border-color: var(--green-dark);
  color: var(--green-dark);
  transform: translateY(-2px);
}

.gallery-filter-btn.active {
  background: var(--green-dark);
  color: #ffffff;
  border-color: var(--green-dark);
  box-shadow: 0 6px 20px rgba(0, 122, 61, 0.25);
}

.gallery-grid figure {
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-grid figure.hide {
  display: none !important;
  opacity: 0;
  transform: scale(0.9);
}

.nav-links a::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--yellow);
  opacity: 0;
  transform: scale(0);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-links a.active {
  color: var(--green-dark);
  background: rgba(0, 122, 61, 0.08);
  font-weight: 700;
}

.nav-links a.active::after {
  opacity: 1;
  transform: scale(1);
}

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: all .2s ease;
}

.nav-toggle span::before {
  position: absolute;
  top: -6px;
}

.nav-toggle span::after {
  position: absolute;
  top: 6px;
}

/* ---------- hero (home) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 64px;
  background: var(--ink);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  /* Hardware Accelerated Video Rendering */
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* Dual background: micro-dot matrix pattern on top of a dark green-black gradient for contrast & sharpness masking */
  background:
    radial-gradient(rgba(0, 0, 0, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 28, 22, 0.8) 0%, rgba(16, 28, 22, 0.22) 100%);
  background-size: 3px 3px, 100% 100%;
  z-index: 1;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.7fr;
  gap: 80px;
  align-items: center;
}

.hero-eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 8px 16px 8px 8px;
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 500;
  margin-bottom: 22px;
}

.hero-eyebrow-badge .dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: .72rem;
}

.hero h1 {
  font-size: clamp(2.3rem, 4.2vw, 3.6rem);
  color: var(--white);
}

.hero h1 em {
  font-style: normal;
  color: var(--yellow);
}

.hero p.lead {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, .85);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero .btn-outline {
  border-color: var(--white);
  color: var(--white);
}

.hero .btn-outline:hover {
  background: rgba(255, 255, 255, .15);
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.hero-stats div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--yellow);
}

.hero-stats div span {
  font-size: .82rem;
  color: rgba(255, 255, 255, .7);
}

.hero-media {
  position: relative;
}

.hero-media .frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-soft);
  border: 10px solid var(--white);
}

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

.hero-media .ring {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 14px solid var(--yellow);
  bottom: -40px;
  left: -40px;
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: none;
}

@media(min-width: 720px) {
  .hero-media .ring {
    display: block;
  }
}

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

.hero-media .success-badge {
  position: absolute;
  top: -32px;
  right: -24px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 20px;
}

.hero-media .success-badge .stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-media .success-badge .stat strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--green-dark);
  line-height: 1;
}

.hero-media .success-badge .stat span {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
}

.hero-media .success-badge .divider {
  width: 1px;
  height: 36px;
  background: var(--line);
}

/* page hero (inner pages) - Premium UI/UX Design */
.page-hero {
  padding: 72px 0 60px;
  background:
    radial-gradient(800px 400px at 85% -20%, rgba(0, 122, 61, .12), transparent 70%),
    radial-gradient(600px 300px at 10% 120%, rgba(255, 214, 0, .08), transparent 60%),
    linear-gradient(180deg, #FFFFFF 0%, #F8FAF9 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--green) 0%, var(--yellow) 50%, var(--red) 100%);
}

.page-hero .crumbs {
  font-size: .85rem;
  font-weight: 500;
  color: var(--green-dark);
  margin-bottom: 18px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: rgba(0, 122, 61, 0.06);
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(0, 122, 61, 0.12);
}

.page-hero .crumbs a {
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.page-hero .crumbs a:hover {
  color: var(--green-dark);
}

.page-hero h1 {
  font-size: clamp(1.75rem, 3.1vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 1050px;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 12px;
  white-space: normal;
}

.page-hero p {
  color: var(--ink-soft);
  max-width: 780px;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ---------- cards ---------- */
.grid {
  display: grid;
  gap: 28px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all .4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 122, 61, 0.05), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

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

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 122, 61, 0.2);
}

.card .icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 24px;
}

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

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--ink);
}

.card p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin: 0;
}

/* ---------- Premium Schedule Cards ---------- */
.card.schedule-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  text-align: left;
  padding: 40px 32px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: linear-gradient(145deg, #ffffff 0%, #f9fbf9 100%);
  box-shadow:
    0 10px 40px -10px rgba(0, 0, 0, 0.04),
    inset 0 2px 2px rgba(255, 255, 255, 1);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.card.schedule-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 20px 40px -10px rgba(0, 122, 61, 0.08),
    inset 0 2px 2px rgba(255, 255, 255, 1);
  border-color: rgba(0, 122, 61, 0.1);
}

.card.schedule-card .schedule-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  font-size: 1.4rem;
  margin-bottom: auto;
  box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.06);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card.schedule-card:hover .schedule-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Specific pastel backgrounds for the schedule icons based on card position */
.card.schedule-card:nth-child(1) .schedule-icon {
  background: linear-gradient(135deg, #FFE8EB 0%, #FFD6DC 100%);
}

.card.schedule-card:nth-child(2) .schedule-icon {
  background: linear-gradient(135deg, #EBE8FF 0%, #D6DCFF 100%);
}

.card.schedule-card:nth-child(3) .schedule-icon {
  background: linear-gradient(135deg, #E8F6FF 0%, #D6EDFF 100%);
}

.card.schedule-card h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 10px 0;
  letter-spacing: -0.01em;
}

.card.schedule-card p {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Premium Feature Cards Section ---------- */
.feature-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
}

.feature-card-image {
  flex: none;
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}

.feature-card-image img,
.fafon-carousel .carousel-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center 20%;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card-icon {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  background: var(--white);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(20, 32, 26, 0.12);
  z-index: 10;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease;
}

.feature-card-icon svg {
  width: 26px;
  height: 26px;
  stroke-width: 2.2;
}

.feature-card-body {
  flex: 1;
  padding: 24px 24px 34px;
  text-align: center;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
}

.feature-card-body h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white);
  margin: 0;
}

.feature-card-body p {
  font-size: 0.94rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* Card Themes Gradients */
.feature-card--green .feature-card-body {
  background: linear-gradient(180deg, #7bb224 0%, #527a12 100%);
}

.feature-card--green .feature-card-icon svg {
  stroke: #7bb224;
}

.feature-card--green:hover {
  box-shadow: 0 20px 40px -10px rgba(123, 178, 36, 0.45);
}

.feature-card--teal .feature-card-body {
  background: linear-gradient(180deg, #0cbad7 0%, #0087a0 100%);
}

.feature-card--teal .feature-card-icon svg {
  stroke: #0cbad7;
}

.feature-card--teal:hover {
  box-shadow: 0 20px 40px -10px rgba(12, 186, 213, 0.45);
}

.feature-card--violet .feature-card-body {
  background: linear-gradient(180deg, #5b226e 0%, #3d144d 100%);
}

.feature-card--violet .feature-card-icon svg {
  stroke: #5b226e;
}

.feature-card--violet:hover {
  box-shadow: 0 20px 40px -10px rgba(91, 34, 110, 0.45);
}

.feature-card--red .feature-card-body {
  background: linear-gradient(180deg, #e33b00 0%, #af2c00 100%);
}

.feature-card--red .feature-card-icon svg {
  stroke: #e33b00;
}

.feature-card--red:hover {
  box-shadow: 0 20px 40px -10px rgba(227, 59, 0, 0.45);
}

/* Hover effects */
.feature-card:hover {
  transform: translateY(-8px);
}

.feature-card:hover .feature-card-image img {
  transform: scale(1.06);
}

.feature-card:hover .feature-card-icon {
  transform: translate(-50%, -50%) scale(1.1) rotate(6deg);
  background-color: var(--white);
  box-shadow: 0 12px 30px rgba(20, 32, 26, 0.2);
}


.value-row {
  display: flex;
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  transition: background .3s ease;
}

.value-row:hover {
  background: rgba(0, 122, 61, 0.02);
}

.value-row:last-child {
  border-bottom: 1px solid var(--line);
}

.value-row .num {
  font-family: var(--font-display);
  color: var(--yellow);
  font-size: 2rem;
  -webkit-text-stroke: 1.4px var(--green-dark);
  /* Keeping the stylized stroke */
  flex: none;
  width: 56px;
}

.value-row h4 {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.3rem;
}

.value-row p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* ---------- banner / CTA ---------- */
.banner {
  border-radius: var(--radius-lg);
  background: var(--green);
  color: var(--white);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.banner::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--yellow);
  opacity: .15;
}

.banner h3 {
  color: var(--white);
  margin-bottom: 6px;
  font-size: 1.5rem;
}

.banner p {
  color: rgba(255, 255, 255, .85);
  margin: 0;
}

/* ---------- footer ---------- */
.site-footer {
  background: linear-gradient(to bottom, var(--ink) 0%, #0a110d 100%);
  color: rgba(255, 255, 255, .78);
  padding: 80px 0 32px;
}

.site-footer h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 24px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-footer a {
  transition: color .25s ease;
}

.site-footer a:hover {
  color: var(--yellow);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

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

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

.footer-grid li {
  margin-bottom: 10px;
  font-size: .92rem;
}

.footer-brand p {
  font-size: .9rem;
  color: rgba(255, 255, 255, .6);
  max-width: 280px;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .82rem;
  color: rgba(255, 255, 255, .5);
}

.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
}

.socials a:hover {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--yellow);
}

/* ---------- gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media(max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

.gallery-grid figure {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1/1;
  cursor: zoom-in;
  position: relative;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.07);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 32, 26, .92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: min(900px, 92vw);
  max-height: 86vh;
  border-radius: 12px;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 44px;
}

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

.contact-info-card {
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.contact-info-card h3 {
  color: var(--white);
}

.contact-line {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, .18);
}

.contact-line:first-of-type {
  border-top: none;
  padding-top: 0;
}

.contact-line .ic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-weight: 700;
}

.contact-line strong {
  display: block;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--yellow-soft);
  margin-bottom: 4px;
}

.contact-line span,
.contact-line a {
  display: block;
  font-size: .95rem;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: .95rem;
  background: var(--cream);
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media(max-width: 560px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-top: 40px;
}

.map-embed iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
}

/* ---------- misc ---------- */
.flag-strip {
  display: flex;
  height: 6px;
  width: 100%;
}

.flag-strip span {
  flex: 1;
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.badge-list span {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 9px 16px;
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 500;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

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

.split img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.quote-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px;
  border: 1px solid var(--line);
  position: relative;
}

.quote-card .mark {
  font-family: var(--font-display);
  font-size: 3.4rem;
  color: var(--yellow);
  line-height: .6;
  margin-bottom: 6px;
  display: block;
}

.person {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

.person img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--yellow);
}

.person strong {
  display: block;
  font-size: .95rem;
}

.person span {
  font-size: .82rem;
  color: var(--ink-soft);
}

.timeline-item {
  display: flex;
  gap: 18px;
}

.timeline-item .tdot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green);
  margin-top: 6px;
  flex: none;
  box-shadow: 0 0 0 5px var(--yellow-soft);
}

.timeline-item .tline {
  width: 2px;
  background: var(--line);
  flex: 1;
  margin: 6px auto;
}

@media(max-width: 1140px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

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

  .hero-media {
    order: -1;
    max-width: 420px;
    margin: 0 auto;
  }

  .nav-cta .btn {
    padding: 12px 20px;
  }

  .footer-grid {
    padding-bottom: 32px;
  }
}

/* ---------- Infinite Marquee Ticker ---------- */
.marquee-container {
  overflow: hidden;
  background: var(--green-dark);
  padding: 24px 0;
  position: relative;
  display: flex;
  white-space: nowrap;
}

.marquee-content {
  display: flex;
  animation: marquee 30s linear infinite;
}

.marquee-content span {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  padding: 0 40px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 40px;
}

.marquee-content span::after {
  content: '•';
  color: var(--yellow);
}

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

  100% {
    transform: translateX(-50%);
  }
}

/* ---------- Scroll Reveal Animations ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal="hero"] {
  transform: translateY(20px);
  transition-duration: 1.2s;
}

.card[data-reveal] {
  transition-duration: 0.6s;
}

.card[data-reveal]:nth-child(2) {
  transition-delay: 0.1s;
}

.card[data-reveal]:nth-child(3) {
  transition-delay: 0.2s;
}

.card[data-reveal]:nth-child(4) {
  transition-delay: 0.3s;
}

.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--white);
  display: flex !important;
  flex-direction: column;
  padding: 0 24px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-nav.open {
  max-height: 800px;
  opacity: 1;
  visibility: visible;
  padding: 24px;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  padding: 16px 20px !important;
  margin-bottom: 8px;
  border-radius: 12px;
  background: rgba(0, 122, 61, 0.03);
  color: var(--ink) !important;
  font-weight: 600;
  font-size: 1.1rem !important;
  letter-spacing: -0.01em;
  transition: all 0.3s ease;
  transform: translateY(10px);
  opacity: 0;
  border: none;
}

.mobile-nav.open a {
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav.open a:nth-child(1) {
  transition-delay: 0.05s;
}

.mobile-nav.open a:nth-child(2) {
  transition-delay: 0.1s;
}

.mobile-nav.open a:nth-child(3) {
  transition-delay: 0.15s;
}

.mobile-nav.open a:nth-child(4) {
  transition-delay: 0.2s;
}

.mobile-nav.open a:nth-child(5) {
  transition-delay: 0.25s;
}

.mobile-nav.open a:nth-child(6) {
  transition-delay: 0.3s;
}

.mobile-nav.open a:nth-child(7) {
  transition-delay: 0.35s;
}

.mobile-nav.open a:nth-child(8) {
  transition-delay: 0.4s;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  background: var(--green);
  color: var(--white) !important;
  padding-left: 28px !important;
  box-shadow: 0 4px 12px rgba(0, 122, 61, 0.2);
}

.mobile-nav a[style*="padding-left"] {
  background: transparent;
  border-left: 3px solid var(--green);
  border-radius: 0 12px 12px 0;
  color: var(--ink-soft) !important;
  margin-left: 12px;
  font-size: 0.95rem !important;
}

.mobile-nav a[style*="padding-left"]:hover {
  background: rgba(0, 122, 61, 0.08);
  color: var(--green-dark) !important;
  border-left-width: 6px;
}

/* ---------- Floating UX Features ---------- */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 1000;
  transition: all .3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-whatsapp:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  z-index: 999;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all .4s cubic-bezier(0.16, 1, 0.3, 1);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--green-dark);
  color: var(--white);
  border-color: var(--green-dark);
  transform: translateY(-4px);
}

@media(max-width: 768px) {
  .floating-whatsapp {
    right: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;
  }

  .back-to-top {
    right: 16px;
    bottom: 84px;
    width: 44px;
    height: 44px;
  }
}

/* ---------- interclass gallery ---------- */
.interclass-img {
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: top;
  width: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  cursor: pointer;
}

.interclass-img:hover {
  transform: scale(1.08);
  /* slight pop-up effect */
  box-shadow: var(--shadow-md);
  z-index: 10;
  position: relative;
}

/* ---------- Scroll Animations ---------- */
[data-reveal] .slide-in-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0s);
  will-change: opacity, transform;
}

[data-reveal].is-visible .slide-in-right {
  opacity: 1;
  transform: translateX(0);
}

[data-reveal] .slide-in-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0s);
  will-change: opacity, transform;
}

[data-reveal].is-visible .slide-in-up {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Crossfade Slideshow ---------- */
.crossfade-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.crossfade-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  animation: crossfadeAnim 50s infinite;
}

.crossfade-img img:nth-child(1) {
  animation-delay: 0s;
}

.crossfade-img img:nth-child(2) {
  animation-delay: 5s;
}

.crossfade-img img:nth-child(3) {
  animation-delay: 10s;
}

.crossfade-img img:nth-child(4) {
  animation-delay: 15s;
}

.crossfade-img img:nth-child(5) {
  animation-delay: 20s;
}

.crossfade-img img:nth-child(6) {
  animation-delay: 25s;
}

.crossfade-img img:nth-child(7) {
  animation-delay: 30s;
}

.crossfade-img img:nth-child(8) {
  animation-delay: 35s;
}

.crossfade-img img:nth-child(9) {
  animation-delay: 40s;
}

.crossfade-img img:nth-child(10) {
  animation-delay: 45s;
}

@keyframes crossfadeAnim {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  8% {
    opacity: 1;
    transform: scale(1.02);
  }

  10% {
    opacity: 0;
    transform: scale(1.03);
  }

  98% {
    opacity: 0;
    transform: scale(1);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ---------- Animated Subject Tickers ---------- */
.programs-ticker-wrap {
  width: 100vw;
  position: relative;
  left: calc(-50vw + 50%);
  display: flex;
  flex-direction: column;
}

.programs-ticker {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: tickerAnim var(--duration, 30s) linear infinite;
}

.programs-ticker.ticker-reverse {
  animation-direction: reverse;
}

.programs-ticker:hover {
  animation-play-state: paused;
}

.subject-tag {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  padding: 10px 40px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
  cursor: pointer;
  background: transparent;
}

.subject-tag:hover {
  color: var(--yellow);
  -webkit-text-stroke: 0px transparent;
  background: rgba(255, 255, 255, 0.05);
  transform: scale(1.05);
  border-color: var(--yellow);
}

@keyframes tickerAnim {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ---------- Excellence Carousel ---------- */
.excellence-carousel,
.ndogou-carousel,
.ndack-carousel {
  width: 100%;
  margin-top: 10px;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 500px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: transparent;
}

.carousel-slides {
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 1.2s ease;
  transform: scale(1.05);
  z-index: 1;
}

.carousel-img.active {
  opacity: 1;
  z-index: 2;
  transform: scale(1);
}

/* Controls */
.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.carousel-prev {
  left: 16px;
}

.carousel-next {
  right: 16px;
}

.carousel-container:hover .carousel-prev,
.carousel-container:hover .carousel-next {
  opacity: 1;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.1);
}

/* Dots */
.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.3);
  padding: 6px 12px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.carousel-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dots .dot.active {
  background: var(--yellow);
  transform: scale(1.3);
}

/* ---------- Vacances Tabs & Affiches ---------- */
.vacances-tabs {
  width: 100%;
  margin-top: 10px;
}

.tabs-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.tab-btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: 30px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: var(--white);
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-align: center;
}

.tab-btn:hover {
  border-color: var(--green);
  color: var(--green);
  background: rgba(0, 74, 38, 0.02);
}

.tab-btn.active {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
  box-shadow: 0 4px 12px rgba(0, 74, 38, 0.15);
}

.tabs-content {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.tab-pane {
  display: none;
  opacity: 0;
  animation: tabFadeIn 0.5s ease forwards;
}

.tab-pane.active {
  display: block;
}

.affiche-img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  display: block;
  background: #fdfdfd;
  transition: transform 0.5s ease;
}

.tab-pane:hover .affiche-img {
  transform: scale(1.02);
}

@keyframes tabFadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* News Cards Hover styling */
.news-card {
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 74, 38, 0.1);
}

/* ---------- Featured News Layout ---------- */
.featured-news-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.featured-news-content {
  display: flex;
  flex-direction: column;
}

.featured-news-media {
  position: relative;
  width: 100%;
}

.fete-carousel {
  width: 100%;
}

@media(max-width: 980px) {
  .featured-news-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ---------- Tableau d'Honneur Bacheliers ---------- */
.graduates-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.graduate-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  flex: 0 1 220px;
}

@media (min-width: 1200px) {
  .graduate-card {
    flex: 0 1 calc(20% - 24px);
  }
}

@media (max-width: 1199px) and (min-width: 900px) {
  .graduate-card {
    flex: 0 1 calc(25% - 22.5px);
  }
}

.graduate-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 122, 61, 0.15);
}

.graduate-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--white);
  box-shadow: 0 8px 20px rgba(20, 32, 26, 0.08);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.graduate-card:hover .graduate-avatar {
  transform: scale(1.06);
}

.graduate-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.graduate-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.graduate-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.graduate-series {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  width: fit-content;
  align-self: center;
}

.graduate-badges {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
  flex-wrap: wrap;
}

.graduate-mention {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  background: linear-gradient(135deg, rgb(238, 200, 128) 0%, rgb(199, 158, 83) 100%);
  box-shadow: 0 4px 10px rgba(199, 158, 83, 0.25);
  width: fit-content;
  align-self: center;
}

.series--s2 {
  background: linear-gradient(135deg, #7bb224 0%, #527a12 100%);
  box-shadow: 0 4px 10px rgba(123, 178, 36, 0.25);
}

.series--l2 {
  background: linear-gradient(135deg, #0cbad7 0%, #0087a0 100%);
  box-shadow: 0 4px 10px rgba(12, 186, 213, 0.25);
}

.series--l1 {
  background: linear-gradient(135deg, #e33b00 0%, #af2c00 100%);
  box-shadow: 0 4px 10px rgba(227, 59, 0, 0.25);
}

/* ---------- Vacances Single Affiche ---------- */
.affiche-container:hover .affiche-img {
  transform: scale(1.03);
}

/* ---------- Nos Engagements Styling & Mobile Responsiveness ---------- */
.engagements-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.value-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.value-row:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 122, 61, 0.2);
}

.value-row .num {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--green);
  line-height: 1;
  flex: none;
  min-width: 34px;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  width: auto;
  height: auto;
  display: block;
  padding-top: 2px;
}

.value-row h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px 0;
}

.value-row p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.45;
}

/* Mobile Adjustments for Engagements & Bacheliers & Galerie */
@media (max-width: 768px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

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


  .crossfade-img {
    aspect-ratio: 4/3;
    max-height: 340px;
    border-radius: var(--radius-md);
  }

  .value-row {
    padding: 14px 16px;
    gap: 14px;
    border-radius: var(--radius-sm);
  }

  .value-row .num {
    font-size: 1.3rem;
    min-width: 28px;
    padding-top: 1px;
  }

  .value-row h4 {
    font-size: 1rem;
  }

  .value-row p {
    font-size: 0.88rem;
  }

  /* Bacheliers Grid Mobile Fix */
  .graduates-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 24px;
  }

  .graduate-card {
    flex: initial;
    width: 100%;
    padding: 16px 10px;
    gap: 10px;
    border-radius: var(--radius-md);
  }

  .graduate-avatar {
    width: 85px;
    height: 85px;
    border-width: 3px;
  }

  .graduate-name {
    font-size: 0.92rem;
  }

  .graduate-badges {
    gap: 4px;
    margin-top: 4px;
  }

  .graduate-series,
  .graduate-mention {
    font-size: 0.68rem;
    padding: 3px 8px;
  }

  /* Mot du Président & Directeur Général Mobile Fix */
  .quote-card {
    padding: 24px 18px;
    border-radius: var(--radius-md);
  }

  .quote-card .mark {
    font-size: 2.6rem;
    margin-bottom: 2px;
  }

  .quote-card p {
    font-size: 0.96rem;
    line-height: 1.55;
    margin-bottom: 0.9em;
  }

  .split img {
    max-height: 380px !important;
    object-fit: cover;
    object-position: top center;
  }
}

/* ---------- Cultural Video Section Styling & Sharpen Filter ---------- */
.cultural-video-wrapper {
  max-width: 920px;
  margin: 0 auto;
  position: relative;
}

.cultural-video-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 122, 61, 0.15);
  border: 4px solid var(--white);
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.cultural-video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(0, 122, 61, 0.22);
}

.cultural-video-element {
  width: 100%;
  max-height: 620px;
  display: block;
  object-fit: contain;
  background: #000;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.video-overlay-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(20, 32, 26, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 5;
  pointer-events: none;
}

.video-overlay-badge .badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 10px var(--yellow);
}

@media (max-width: 768px) {
  .cultural-video-element {
    max-height: 480px;
    object-fit: contain;
  }

  .video-overlay-badge {
    font-size: 0.76rem;
    padding: 6px 14px;
    top: 12px;
    left: 12px;
  }
}

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