/**
 * AMGLC - Association des Médecins Généralistes Libéraux de Constantine
 * Design System Inspired by Gainlove / Modern Non-Profit & Editorial Society
 * Features: High-contrast Serifs, Slanted Capsule Collage, Floating Organic Dots, Pill Buttons
 */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Vitalité Médicale Constantine Palette */
  --color-primary: #0A3871;
  --color-primary-dark: #072954;
  --color-primary-light: #164E8E;
  --color-primary-soft: #EBF2FB;

  --color-secondary: #0284C7;
  --color-secondary-dark: #0369A1;
  --color-secondary-soft: #E0F2FE;

  --color-tertiary: #059669;
  --color-tertiary-dark: #047857;
  --color-tertiary-soft: #ECFDF5;

  --color-neutral: #64748B;
  --color-dark: #0F172A;
  --color-body: #1E293B;
  --color-muted: #64748B;
  --color-border: #E2E8F0;
  --color-bg-light: #EDF3F8;
  --color-card-bg: #FFFFFF;
  
  /* Accents */
  --accent-amber: #0284C7;
  --accent-amber-light: #BAE6FD;
  --accent-emerald: #059669;
  --accent-emerald-light: #ECFDF5;
  --accent-blue: #0A3871;
  --accent-cyan: #0284C7;
  --accent-navy: #0A3871;

  /* Typography */
  --font-serif: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-arabic: 'Cairo', system-ui, sans-serif;

  /* Geometry & Shadows */
  --radius-pill: 9999px;
  --radius-card: 20px;
  --radius-lg: 28px;
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.10);
  --shadow-capsule: 0 20px 35px rgba(0, 0, 0, 0.14);

  --max-w: 1200px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-sans);
  background-color: #FFFFFF;
  color: var(--color-dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  position: relative;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--color-dark);
  line-height: 1.18;
}

p {
  color: var(--color-body);
  font-size: 1rem;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
}

/* Header & Floating Navigation */
.header-topbar {
  background: #F8FAFC;
  border-bottom: 1px solid var(--color-border);
  padding: 0.45rem 0;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.topbar-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.topbar-info {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--color-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

/* ==========================================================================
   Executive Modern Navbar (Clean, Uncrowded & Authoritative)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  padding: 0.75rem 0;
  box-shadow: 0 2px 14px -3px rgba(15, 23, 42, 0.05);
  transition: var(--transition);
}

.navbar-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

/* Brand / Identity */
.brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: contain;
  box-shadow: 0 2px 10px rgba(10, 56, 113, 0.12);
  border: 2px solid var(--color-secondary);
  transition: transform 0.2s ease;
}

.brand-link:hover .brand-logo {
  transform: scale(1.04);
}

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

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-acronym {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.brand-city-badge {
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border: 1px solid #BAE6FD;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.brand-fullname {
  font-size: 0.73rem;
  font-weight: 500;
  color: #64748B;
  margin-top: 2px;
  white-space: nowrap;
}

/* Main Nav Links */
.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.nav-link {
  font-size: 0.89rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  padding: 0.4rem 0;
  position: relative;
  transition: color 0.2s ease;
  white-space: nowrap;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-secondary);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Right Side Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.header-phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.header-phone-pill svg {
  color: var(--color-secondary);
}

.header-phone-pill:hover {
  background: var(--color-primary-soft);
  border-color: #BAE6FD;
  color: var(--color-primary);
}

.clean-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #F1F5F9;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
}

.lang-opt {
  color: #64748B;
  text-decoration: none;
  padding: 0.1rem 0.2rem;
  transition: color 0.2s ease;
}

.lang-opt:hover {
  color: var(--color-primary);
}

.lang-opt.active {
  color: var(--color-secondary);
  font-weight: 700;
}

.lang-divider {
  color: #CBD5E1;
  font-size: 0.65rem;
  user-select: none;
}

.admin-lock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #64748B;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  transition: all 0.2s ease;
  text-decoration: none;
  flex-shrink: 0;
}

.admin-lock-btn:hover {
  background: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
}

.btn-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: 0.86rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-pill);
  border: none;
  text-decoration: none;
  white-space: nowrap !important;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(10, 56, 113, 0.28);
  transition: all 0.25s ease;
}

.btn-header-cta:hover {
  box-shadow: 0 6px 20px rgba(10, 56, 113, 0.42);
  transform: translateY(-2px);
}

.cta-arrow-icon {
  transition: transform 0.2s ease;
}

.btn-header-cta:hover .cta-arrow-icon {
  transform: translateX(3px);
}

@media (max-width: 1200px) {
  .header-phone-pill {
    display: none;
  }
}

/* Pill Buttons (Matching Reference Design) */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.925rem;
  font-weight: 600;
  padding: 0.65rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-pill-dark {
  background: var(--color-primary);
  color: #FFFFFF;
}

.btn-pill-dark:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(10, 56, 113, 0.28);
}

.btn-pill-amber,
.btn-pill-sky {
  background: var(--color-secondary);
  color: #FFFFFF;
}

.btn-pill-amber:hover,
.btn-pill-sky:hover {
  background: var(--color-secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.32);
}

.btn-pill-emerald {
  background: var(--accent-emerald);
  color: #FFFFFF;
}

.btn-pill-emerald:hover {
  background: #047857;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.25);
}

.btn-pill-outline {
  border-color: var(--color-border);
  background: #FFFFFF;
  color: var(--color-dark);
}

.btn-pill-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

/* General Button Helpers */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.65rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(10, 56, 113, 0.25);
}

.btn-secondary {
  background: var(--color-secondary);
  color: #FFFFFF;
}

.btn-secondary:hover {
  background: var(--color-secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.28);
}

.btn-gold,
.btn-emerald {
  background: var(--color-tertiary);
  color: #FFFFFF;
}

.btn-gold:hover,
.btn-emerald:hover {
  background: var(--color-tertiary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.25);
}

.btn-outline {
  border-color: var(--color-border);
  background: #FFFFFF;
  color: var(--color-dark);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1.05rem;
}

/* Floating Decorative Dots */
.deco-dot {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.dot-orange {
  width: 16px;
  height: 16px;
  background: var(--accent-amber);
}

.dot-green {
  width: 12px;
  height: 12px;
  background: var(--accent-emerald);
}

.dot-blue {
  width: 10px;
  height: 10px;
  background: var(--accent-blue);
}

.dot-cyan {
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
}

.organic-blob-right {
  position: absolute;
  right: -50px;
  top: 15%;
  width: 120px;
  height: 200px;
  background: #FEF3C7;
  border-radius: 50% 0 0 50%;
  opacity: 0.8;
  pointer-events: none;
}

/* Hero Section (Gainlove Style) */
.hero-editorial {
  position: relative;
  background-color: #FFFFFF;
  background-image: url('../assets/images/map_bg.svg');
  background-repeat: no-repeat;
  background-position: left top;
  background-size: 650px;
  padding: 3rem 0 3.5rem;
  overflow: hidden;
}

.constantine-hero-backdrop {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-image: url('../assets/images/constantine_monument.jpg');
  background-repeat: no-repeat;
  background-position: top right;
  background-size: cover;
  opacity: 0.06;
  mask-image: radial-gradient(circle at 75% 35%, rgba(0, 0, 0, 1) 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 75% 35%, rgba(0, 0, 0, 1) 0%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.hero-editorial-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.75rem;
  align-items: center;
  position: relative;
}

.hero-editorial-left {
  position: relative;
  z-index: 2;
}

.hero-editorial-title {
  font-size: clamp(2.25rem, 3.2vw, 3.15rem);
  letter-spacing: -0.02em;
  color: var(--color-dark);
  margin-bottom: 1.15rem;
  line-height: 1.15;
}

.hero-editorial-sub {
  font-size: 1.05rem;
  color: var(--color-body);
  margin-bottom: 1.85rem;
  max-width: 520px;
  line-height: 1.65;
}

.hero-cta-row {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  flex-wrap: wrap;
}

/* ===================================================
   Signature Slanted Capsule Collage (Minimalist & Clean)
   =================================================== */
.hero-capsules-collage {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-capsule-stage {
  position: relative;
  width: 100%;
  max-width: 470px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.capsule-track {
  display: flex;
  gap: 12px;
  transform: rotate(-24deg);
  transform-origin: center center;
  position: relative;
  z-index: 2;
}

.capsule-item {
  border-radius: var(--radius-pill);
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(10, 56, 113, 0.12);
  position: relative;
  transition: transform 0.4s ease;
  background: #E5E7EB;
}

.capsule-item:hover {
  transform: scale(1.03) translateY(-4px);
}

.capsule-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Counter-rotate image so people appear upright */
  transform: rotate(24deg) scale(1.65);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.capsule-item:hover img {
  transform: rotate(24deg) scale(1.75);
}

/* Staggered Heights, Offsets & Slices of the Clean Official Photo */
.capsule-col-1 {
  width: 72px;
  height: 250px;
  margin-top: 55px;
}
.capsule-col-1 img {
  object-position: 8% 40%;
}

.capsule-col-2 {
  width: 106px;
  height: 375px;
  margin-top: -25px;
}
.capsule-col-2 img {
  object-position: 33% 36%;
}

.capsule-col-3 {
  width: 102px;
  height: 330px;
  margin-top: 25px;
}
.capsule-col-3 img {
  object-position: 65% 36%;
}

.capsule-col-4 {
  width: 80px;
  height: 250px;
  margin-top: 65px;
}
.capsule-col-4 img {
  object-position: 92% 40%;
}

.capsule-col-accent {
  width: 65px;
  height: 195px;
  margin-top: 95px;
  background: linear-gradient(145deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 12px 28px rgba(10, 56, 113, 0.22);
}

.capsule-col-accent svg {
  transform: rotate(24deg);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
}

/* ===================================================
   Section: Our Programs (Nos Missions)
   3 Rounded Cards with Curved Image Headers
   =================================================== */
.section-programs {
  padding: 5.5rem 0 5rem;
  background: #FFFFFF;
}

.section-editorial-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3.5rem;
}

.section-editorial-head h2 {
  font-size: 2.75rem;
  margin-bottom: 0.6rem;
}

.section-editorial-head p {
  font-size: 0.95rem;
  color: var(--color-muted);
  font-style: italic;
}

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

.program-card {
  background: var(--color-card-bg);
  border-radius: var(--radius-card);
  padding: 1rem 1rem 2rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.program-img-frame {
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.program-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.program-card:hover .program-img-frame img {
  transform: scale(1.05);
}

.program-card-body {
  padding: 0 1rem;
}

.program-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--color-dark);
}

.program-desc {
  font-size: 0.925rem;
  color: var(--color-body);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* ===================================================
   Section: Centered Manifesto / Welcome
   =================================================== */
.section-manifesto {
  padding: 5.5rem 0;
  background: var(--color-bg-light);
  text-align: center;
  position: relative;
}

.manifesto-inner {
  max-width: 780px;
  margin: 0 auto;
}

.eyebrow-tag {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-amber);
  display: block;
  margin-bottom: 0.75rem;
}

.manifesto-title {
  font-size: 3rem;
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.manifesto-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-body);
  margin-bottom: 2.5rem;
}

.manifesto-actions {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* ===================================================
   Section: Mot du Président (Presidential Address)
   =================================================== */
.section-president {
  padding: 5.5rem 0;
  background: var(--color-bg-light);
  position: relative;
}

.president-card {
  background: #FFFFFF;
  border-radius: var(--radius-card);
  box-shadow: 0 12px 36px rgba(10, 56, 113, 0.08);
  border: 1px solid var(--color-border);
  padding: 3rem;
  position: relative;
  overflow: hidden;
  max-width: 960px;
  margin: 0 auto;
}

.president-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 50%, var(--color-tertiary) 100%);
}

.president-card-header {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--color-border);
}

.president-portrait-wrap {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid var(--color-primary);
  box-shadow: 0 4px 16px rgba(10, 56, 113, 0.2);
}

.president-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.president-badge {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-secondary);
  margin-bottom: 0.35rem;
  display: inline-block;
}

.president-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  color: var(--color-primary);
  margin: 0;
  line-height: 1.2;
}

.president-speech {
  position: relative;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--color-body);
}

.president-quote-mark {
  font-family: var(--font-serif);
  font-size: 5rem;
  color: var(--color-primary-soft);
  position: absolute;
  top: -2rem;
  left: -1rem;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

[dir="rtl"] .president-quote-mark {
  left: auto;
  right: -1rem;
}

.president-salutation {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.president-body p {
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
  font-size: 1.025rem;
  line-height: 1.8;
}

.speech-highlight {
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

/* Compact Mot du President "Lire la suite" Toggle */
.pres-extended-content {
  display: none;
  animation: fadeInSpeech 0.35s ease;
}

@keyframes fadeInSpeech {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn-read-more-wrapper {
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
  text-align: left;
  position: relative;
  z-index: 2;
}

[dir="rtl"] .btn-read-more-wrapper {
  text-align: right;
}

.btn-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #FFFFFF;
  color: var(--color-primary);
  border: 1.5px solid var(--color-secondary);
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.08);
}

.btn-read-more:hover {
  background: var(--color-secondary);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.2);
}

/* Member Photo Frame & Fallback Monogram Avatars */
.member-photo-frame {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid #BAE6FD;
  box-shadow: 0 3px 10px rgba(10, 56, 113, 0.12);
  background: var(--color-primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.member-avatar-initials {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.04em;
}

.founder-avatar-frame {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1.5px solid var(--color-border);
  background: var(--color-primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.founder-avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.founder-avatar-initials {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--color-primary);
}

/* Founders Spotlight Card on Homepage */
.founders-spotlight-card {
  background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
  border: 1.5px solid #BAE6FD;
  border-radius: 18px;
  padding: 2.25rem 2.5rem;
  margin-top: 1rem;
  box-shadow: 0 6px 24px rgba(10, 56, 113, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.founders-spotlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #FFFFFF;
  border: 1px solid #BAE6FD;
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.president-signature-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
  gap: 1.5rem;
}

.sign-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sign-mini-portrait {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 2px solid var(--color-primary);
}

.sign-info .sign-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
}

.sign-info .sign-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0.15rem 0 0.1rem;
}

.sign-info .sign-role {
  font-size: 0.85rem;
  color: var(--color-muted);
  font-weight: 500;
}

.sign-seal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-primary-soft);
  border: 1px solid #BAE6FD;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--color-primary);
}

/* ===================================================
   Section: Bureau Exécutif & Fondateurs
   =================================================== */
.section-leadership {
  padding: 5.5rem 0;
  background: #FFFFFF;
}

.section-leadership-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section-tag-pill {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border: 1px solid rgba(10, 56, 113, 0.15);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
}

.section-leadership-head h2 {
  font-size: 2.75rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

.section-leadership-head p {
  font-size: 1rem;
  color: var(--color-muted);
  line-height: 1.6;
}

.bureau-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 4rem;
}

.bureau-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.4rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: 0 4px 16px rgba(10, 56, 113, 0.05);
  transition: var(--transition);
}

.bureau-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(10, 56, 113, 0.10);
  border-color: var(--color-secondary);
}

.bureau-card-pres {
  grid-column: span 2;
  background: linear-gradient(135deg, #FFFFFF 0%, #F0F6FD 100%);
  border: 2px solid var(--color-primary);
  box-shadow: 0 10px 28px rgba(10, 56, 113, 0.12);
  padding: 1.75rem 2rem;
}

.bureau-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.35rem;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border: 2px solid #BAE6FD;
}

.bureau-avatar-pres {
  width: 72px;
  height: 72px;
  border: 3px solid var(--color-primary);
  box-shadow: 0 4px 14px rgba(10, 56, 113, 0.22);
  object-fit: cover;
  object-position: center 20%;
}

.bureau-info {
  flex: 1;
  min-width: 0;
}

.bureau-role-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.35rem;
}

.badge-pres {
  background: var(--color-primary);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(10, 56, 113, 0.25);
}

.badge-vp {
  background: var(--color-secondary-soft);
  color: var(--color-secondary);
  border: 1px solid #BAE6FD;
}

.badge-sg {
  background: var(--color-tertiary-soft);
  color: var(--color-tertiary);
  border: 1px solid #A7F3D0;
}

.badge-tres {
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border: 1px solid #BFDBFE;
}

.badge-assesseur {
  background: #F8FAFC;
  color: var(--color-muted);
  border: 1px solid #E2E8F0;
}

.bureau-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.3;
  margin: 0;
}

.bureau-card-pres .bureau-name {
  font-size: 1.45rem;
  font-family: var(--font-serif);
  color: var(--color-primary);
}

.bureau-subtitle {
  font-size: 0.825rem;
  color: var(--color-muted);
  margin-top: 0.25rem;
}

/* Founders Section */
.founders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.85rem;
  margin-bottom: 3rem;
}

.founder-chip {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: 0 2px 6px rgba(10, 56, 113, 0.03);
  transition: var(--transition);
}

.founder-chip:hover {
  border-color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.15);
}

.founder-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.founder-info {
  flex: 1;
  min-width: 0;
}

.founder-name {
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--color-dark);
  white-space: normal;
  line-height: 1.35;
  word-break: normal;
}

.founder-role {
  font-size: 0.72rem;
  color: var(--color-muted);
  font-weight: 500;
}

/* Honorary Block */
.honorary-block {
  background: linear-gradient(135deg, #ECFDF5 0%, #E0F2FE 100%);
  border: 1.5px solid #A7F3D0;
  border-radius: var(--radius-card);
  padding: 2rem 2.25rem;
  margin-bottom: 3.5rem;
}

.honorary-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.honorary-header h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--color-primary);
  font-weight: 700;
  margin: 0;
}

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

.honorary-card {
  background: #FFFFFF;
  border: 1px solid #A7F3D0;
  border-radius: 12px;
  padding: 1.1rem 1.35rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  box-shadow: 0 3px 12px rgba(10, 56, 113, 0.05);
}

.honorary-avatar {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.honorary-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
}

.honorary-role {
  font-size: 0.8rem;
  color: var(--color-tertiary);
  font-weight: 600;
}

/* Scientific Committee Announcement Banner */
.scientific-committee-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #FFFFFF;
  border-radius: var(--radius-card);
  padding: 2.75rem 3rem;
  box-shadow: 0 16px 36px rgba(10, 56, 113, 0.22);
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2.5rem;
  align-items: center;
  margin-top: 1rem;
}

.sc-tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: rgba(2, 132, 199, 0.25);
  border: 1px solid rgba(2, 132, 199, 0.5);
  color: #BAE6FD;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
}

.scientific-committee-banner h3 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: #FFFFFF;
  margin-bottom: 0.75rem;
}

.scientific-committee-banner p {
  color: #CBD5E1;
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

.sc-pills-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sc-pill {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #FFFFFF;
}

/* ===================================================
   Section: Overlapping Circular Montage (1er Congrès)
   =================================================== */
.section-circular-spotlight {
  padding: 4.5rem 0 5rem;
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
  position: relative;
  overflow: hidden;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 4rem;
  align-items: center;
}

.circle-montage-stage {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 420px;
  margin: 0 auto;
}

.circle-main {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  position: absolute;
  top: 20px;
  left: 40px;
  border: 4px solid #FFFFFF;
}

.circle-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.circle-small-1 {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  position: absolute;
  bottom: 10px;
  right: 15px;
  border: 4px solid #FFFFFF;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 3;
}

.circle-small-1 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.circle-small-2 {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  overflow: hidden;
  position: absolute;
  bottom: 40px;
  left: 0;
  border: 3px solid #FFFFFF;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  z-index: 3;
}

.circle-small-2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight-content h2 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
}

.spotlight-date-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border: 1px solid #BAE6FD;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.25rem;
}

/* Congress Countdown inside Spotlight */
.countdown-pill-strip {
  display: flex;
  gap: 0.75rem;
  margin: 1.75rem 0;
}

.countdown-pill-item {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  text-align: center;
  min-width: 68px;
}

.countdown-pill-num {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--color-dark);
}

.countdown-pill-label {
  font-size: 0.675rem;
  text-transform: uppercase;
  color: var(--color-muted);
  font-weight: 600;
  margin-top: 0.2rem;
}

/* ===================================================
   Section: Tabbed Features
   =================================================== */
.section-tabbed {
  padding: 5.5rem 0;
  background: var(--color-bg-light);
}

.tabbed-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.tab-nav-bar {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.75rem;
}

.tab-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-muted);
  position: relative;
  padding-bottom: 0.5rem;
}

.tab-nav-item.active {
  color: var(--accent-amber);
}

.tab-nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -0.85rem;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-amber);
}

.tab-nav-icon {
  font-size: 1.25rem;
}

.tabbed-image-box {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  height: 400px;
}

.tabbed-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===================================================
   Site Footer (Executive Institutional Design)
   =================================================== */
.site-footer {
  background: radial-gradient(140% 120% at 50% 0%, #0A1C36 0%, #050E1C 100%);
  color: #94A3B8;
  padding: 5rem 0 2rem;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--color-secondary) 50%, transparent 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 0.9fr 1.35fr;
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.footer-col-contact {
  min-width: 0;
}

.footer-brand h4 {
  color: #FFFFFF;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  font-weight: 700;
  font-family: var(--font-serif);
}

.footer-brand p {
  color: #94A3B8;
  font-size: 0.88rem;
  line-height: 1.65;
}

.footer-links-col h5 {
  color: #F8FAFC;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.footer-links-col h5::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 14px;
  border-radius: 2px;
  background: var(--color-secondary);
  flex-shrink: 0;
}

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

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

.footer-links-col a {
  color: #94A3B8;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links-col a:hover {
  color: #38BDF8;
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: #CBD5E1;
  margin-bottom: 0.65rem;
}

.footer-contact-item svg {
  color: #38BDF8;
  flex-shrink: 0;
}

.footer-contact-item a {
  color: #E2E8F0;
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.footer-contact-item a:hover {
  color: #38BDF8;
  text-decoration: underline;
}

.footer-badge-box {
  background: rgba(10, 30, 60, 0.55);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  margin-top: 1.25rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.825rem;
  color: #64748B;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Form & Registration Shared Styles */
.registration-container {
  max-width: 860px;
  margin: 3rem auto 5rem;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 3rem;
}

.step-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  position: relative;
}

.step-indicator::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--color-border);
  z-index: 1;
}

.step-node {
  position: relative;
  z-index: 2;
  text-align: center;
  flex: 1;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid var(--color-border);
  color: var(--color-muted);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
  transition: var(--transition);
}

.step-node.active .step-circle {
  border-color: var(--color-dark);
  background: var(--color-dark);
  color: #FFFFFF;
}

.step-node.completed .step-circle {
  border-color: var(--accent-emerald);
  background: var(--accent-emerald);
  color: #FFFFFF;
}

.step-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-muted);
}

.step-node.active .step-label {
  color: var(--color-dark);
}

/* Form Controls */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.4rem;
}

.form-control, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--color-dark);
  background-color: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  transition: var(--transition);
}

.form-control:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--color-dark);
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
}

.category-picker-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.category-radio-card {
  border: 2px solid var(--color-border);
  border-radius: 12px;
  padding: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.category-radio-card:hover {
  border-color: var(--accent-amber);
  background: #FFFBEB;
}

.category-radio-card.selected {
  border-color: var(--color-dark);
  background: #F9FAFB;
}

/* =====================================================
   RESPONSIVE DESIGN SYSTEM & MOBILE DRAWER (UI/UX PRO MAX)
   ===================================================== */

/* Standalone Mobile Drawer Defaults */
.mobile-drawer {
  display: none;
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

body.mobile-nav-active .mobile-nav-overlay {
  opacity: 1;
  pointer-events: auto;
}

.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  background: #F8FAFC;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  color: var(--color-dark);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.mobile-toggle:hover {
  background: var(--color-primary-soft);
  border-color: #BAE6FD;
  color: var(--color-primary);
}

/* Tablet & Mobile Breakpoint (<= 992px) */
@media (max-width: 992px) {
  .hero-editorial {
    padding: 2.5rem 0 3rem;
  }

  .hero-editorial-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .hero-editorial-title {
    font-size: clamp(2rem, 5.5vw, 2.75rem);
    margin-left: auto;
    margin-right: auto;
    max-width: 680px;
  }

  .hero-editorial-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-row {
    justify-content: center;
  }

  .hero-capsule-stage {
    height: 310px;
    max-width: 400px;
    margin: 0 auto;
    overflow: hidden;
  }

  .hero-capsule-stage .capsule-track {
    transform: rotate(-24deg) scale(0.78);
    transform-origin: center center;
  }

  .programs-grid,
  .spotlight-grid,
  .tabbed-grid,
  .congress-main-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }

  /* Responsive Bureau Exécutif & Founders Grid */
  .bureau-grid {
    grid-template-columns: 1fr !important;
    gap: 1.15rem !important;
  }

  .bureau-card-pres {
    grid-column: span 1 !important;
  }

  .bureau-card {
    padding: 1.25rem 1.15rem !important;
    gap: 1rem !important;
  }

  .founders-grid {
    grid-template-columns: 1fr !important;
  }

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

  /* Hide Desktop Nav Menu */
  .nav-menu {
    display: none !important;
  }

  /* Show Mobile Toggle */
  .mobile-toggle {
    display: inline-flex !important;
  }

  /* Off-Canvas Mobile Navigation Drawer (Top Stacking Context) */
  .mobile-drawer {
    display: flex !important;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 86%;
    max-width: 350px;
    height: 100vh;
    background: #FFFFFF;
    z-index: 9999;
    box-shadow: -10px 0 40px rgba(15, 23, 42, 0.25);
    flex-direction: column;
    padding: 1.5rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
  }

  body.mobile-nav-active .mobile-drawer {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  [dir="rtl"] .mobile-drawer {
    right: auto;
    left: 0;
    transform: translateX(-100%);
    box-shadow: 10px 0 40px rgba(15, 23, 42, 0.25);
  }

  [dir="rtl"] body.mobile-nav-active .mobile-drawer {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  /* Drawer Header */
  .mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--color-border);
  }

  .drawer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .drawer-logo {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--color-secondary);
  }

  .drawer-brand strong {
    display: block;
    font-size: 0.95rem;
    color: var(--color-primary);
    font-family: var(--font-serif);
    line-height: 1.1;
  }

  .drawer-brand small {
    display: block;
    font-size: 0.72rem;
    color: var(--color-muted);
  }

  .mobile-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: #F1F5F9;
    color: #475569;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .mobile-close-btn:hover {
    background: #E2E8F0;
    color: var(--color-dark);
  }

  /* Drawer Navigation Links */
  .mobile-drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
  }

  .drawer-nav-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-dark);
    text-decoration: none;
    min-height: 48px;
    transition: all 0.2s ease;
  }

  .drawer-nav-link:hover,
  .drawer-nav-link.active {
    background: var(--color-primary-soft);
    color: var(--color-primary);
  }

  .drawer-icon {
    font-size: 1.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
  }

  .mobile-drawer-footer {
    display: block;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
  }

  .btn-drawer-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: #FFFFFF !important;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(10, 56, 113, 0.25);
    margin-bottom: 1.25rem;
  }

  .drawer-contact-info {
    font-size: 0.78rem;
    color: var(--color-muted);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }
}

/* Smartphone Breakpoint (<= 768px) */
@media (max-width: 768px) {
  /* Prevent horizontal scroll */
  body, html {
    overflow-x: hidden !important;
    position: relative;
  }

  /* Topbar minimalism */
  .topbar-info {
    display: none !important;
  }

  .topbar-flex {
    justify-content: space-between;
    width: 100%;
  }

  .header-phone-pill {
    padding: 0.25rem 0.6rem;
    font-size: 0.72rem;
  }

  /* Header brand compactness */
  .brand-fullname {
    display: none !important;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .brand-acronym {
    font-size: 1.25rem;
  }

  .brand-city-badge {
    font-size: 0.64rem;
    padding: 0.1rem 0.4rem;
  }

  .btn-header-cta {
    padding: 0.45rem 0.85rem;
    font-size: 0.78rem;
  }

  /* Form Inputs (16px avoids iOS auto-zoom) */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="password"],
  input[type="number"],
  input[type="date"],
  select,
  textarea {
    font-size: 16px !important;
    min-height: 48px;
  }

  textarea {
    min-height: 100px;
  }

  /* Two column form rows stack to 1 column */
  .grid-2-col,
  .form-row-2,
  .form-row-3,
  .category-picker-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  /* Registration Card padding on mobile */
  .wizard-card {
    padding: 1.5rem 1rem !important;
  }

  /* Stepper on mobile */
  .wizard-stepper {
    flex-direction: row;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
  }

  .wizard-step-label {
    font-size: 0.68rem;
    text-align: center;
  }

  .wizard-step-circle {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }

  /* Hero Capsule Stage & Content containment on mobile */
  .hero-editorial {
    padding: 2.25rem 0 2.5rem;
    overflow: hidden;
  }

  .hero-editorial-left {
    text-align: center;
    padding: 0 0.25rem;
  }

  .hero-editorial-title {
    font-size: clamp(1.8rem, 6.2vw, 2.25rem);
    line-height: 1.2;
    margin-bottom: 0.85rem;
  }

  .hero-editorial-sub {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  /* Buttons on mobile */
  .hero-cta-row {
    flex-direction: column;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    gap: 0.75rem;
  }

  .hero-cta-row .btn-pill {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 0.8rem 1.25rem;
    font-size: 0.92rem;
    box-sizing: border-box;
    white-space: normal;
  }

  .hero-capsules-collage {
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    margin-top: 1rem;
  }

  .hero-capsule-stage {
    height: 220px;
    width: 300px;
    max-width: 100%;
    overflow: hidden;
    margin: 0 auto;
  }

  .hero-capsule-stage .capsule-track {
    transform: rotate(-24deg) scale(0.58);
    transform-origin: center center;
  }

  /* Spotlight Section on Mobile */
  .section-circular-spotlight {
    padding: 3.25rem 0 3.75rem;
  }

  .spotlight-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem;
    text-align: center;
  }

  .circle-montage-stage {
    width: 270px;
    height: 260px;
    margin: 0 auto;
  }

  .circle-main {
    width: 200px;
    height: 200px;
    top: 15px;
    left: 20px;
  }

  .circle-small-1 {
    width: 84px;
    height: 84px;
    bottom: 10px;
    right: 15px;
  }

  .circle-small-2 {
    width: 58px;
    height: 58px;
    bottom: 25px;
    left: 0;
  }

  .spotlight-content h2 {
    font-size: 1.85rem;
    line-height: 1.25;
  }

  .countdown-pill-strip {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin: 1.5rem 0;
  }

  .countdown-pill-item {
    flex: 1;
    max-width: 75px;
    min-width: 55px;
    padding: 0.6rem 0.35rem;
  }

  .countdown-pill-num {
    font-size: 1.35rem;
  }

  .countdown-pill-label {
    font-size: 0.62rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem 1rem !important;
  }

  .badge-credential-card {
    padding: 1.5rem 1.15rem !important;
  }

  .badge-top-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1rem !important;
  }

  .founders-spotlight-card {
    padding: 1.5rem 1.15rem !important;
    gap: 1.25rem !important;
  }
}

/* Small Smartphone Breakpoint (<= 480px) */
@media (max-width: 480px) {
  .hero-editorial-title {
    font-size: 1.65rem;
    line-height: 1.22;
  }

  .hero-capsule-stage {
    height: 190px;
    width: 260px;
  }

  .hero-capsule-stage .capsule-track {
    transform: rotate(-24deg) scale(0.50);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .btn-header-cta {
    display: none; /* In tiny viewports, CTA is prominent inside mobile drawer */
  }

  .congress-countdown {
    gap: 0.35rem !important;
  }

  .congress-countdown-unit {
    padding: 0.5rem 0.2rem !important;
  }

  .countdown-num {
    font-size: 1.3rem !important;
  }

  .countdown-lbl {
    font-size: 0.6rem !important;
    letter-spacing: 0 !important;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* =====================================================
   REGISTRATION WIZARD (3-STEP DYNAMIC ENGINE)
   ===================================================== */
.wizard-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin-bottom: 2.5rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.wizard-stepper::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 40px;
  right: 40px;
  height: 3px;
  background: #E2E8F0;
  z-index: 1;
}

.wizard-step-item {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  background: transparent;
}

.wizard-step-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid #CBD5E1;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(10, 56, 113, 0.06);
}

.wizard-step-item.active .wizard-step-circle {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(10, 56, 113, 0.18);
  transform: scale(1.05);
}

.wizard-step-item.completed .wizard-step-circle {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #FFFFFF;
}

.wizard-step-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748B;
  text-align: center;
  max-width: 150px;
  line-height: 1.25;
}

.wizard-step-item.active .wizard-step-label {
  color: var(--color-primary);
}

.wizard-step-item.completed .wizard-step-label {
  color: var(--color-accent);
}

/* Category Choice Cards in Step 2 */
.category-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.category-choice-card {
  border: 2px solid var(--color-border);
  background: #FFFFFF;
  border-radius: 14px;
  padding: 1.25rem 1.15rem;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-choice-card:hover {
  border-color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.1);
}

.category-choice-card.selected {
  border-color: var(--color-primary);
  background: linear-gradient(180deg, #F0F7FF 0%, #FFFFFF 100%);
  box-shadow: 0 0 0 2px var(--color-primary), 0 10px 24px rgba(10, 56, 113, 0.12);
}

.category-choice-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.category-choice-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  line-height: 1.3;
}

.category-choice-desc {
  font-size: 0.8rem;
  color: var(--color-muted);
  line-height: 1.45;
  margin-bottom: 0.9rem;
}

.category-choice-fee {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-primary);
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.category-choice-fee span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-muted);
}

/* Upload Dropzone Box */
.dropzone-box {
  border: 2px dashed #CBD5E1;
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  background: #F8FAFC;
  transition: all 0.25s ease;
  cursor: pointer;
  position: relative;
}

.dropzone-box:hover, .dropzone-box.dragover {
  border-color: var(--color-secondary);
  background: #F0F9FF;
}

.dropzone-box input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 5;
}

.dropzone-icon {
  width: 38px;
  height: 38px;
  margin: 0 auto 0.6rem;
  color: var(--color-secondary);
}

.dropzone-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.2rem;
}

.dropzone-sub {
  font-size: 0.75rem;
  color: var(--color-muted);
}

.dropzone-preview {
  margin-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #FFFFFF;
  border: 1px solid #BAE6FD;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--color-primary-dark);
  font-weight: 600;
}

/* Payment Modern Card Styles */
.pay-portal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

@media (max-width: 820px) {
  .pay-portal-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .pay-portal-card {
    padding: 1.5rem 1.15rem;
  }
}

.pay-portal-card {
  background: #FFFFFF;
  border: 2px solid var(--color-border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(10, 56, 113, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.pay-portal-card:hover {
  border-color: var(--color-secondary);
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.12);
}

/* ==========================================================================
   AMGLC Executive Preloader & Page Load Animation
   ========================================================================== */
.amglc-preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), 
              visibility 0.45s ease,
              transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.amglc-preloader.preloader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.03);
}

.preloader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 380px;
  padding: 1.5rem;
}

.preloader-emblem-wrap {
  position: relative;
  width: 90px;
  height: 90px;
  margin-bottom: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-spinner-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 3px solid rgba(2, 132, 199, 0.12);
  border-top-color: var(--color-primary);
  border-right-color: var(--color-secondary);
  border-bottom-color: var(--color-tertiary);
  animation: amglcSpin 1s cubic-bezier(0.4, 0.1, 0.4, 0.9) infinite;
}

.preloader-pulse-glow {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.22) 0%, rgba(10, 56, 113, 0) 70%);
  animation: amglcPulseGlow 1.8s ease-in-out infinite alternate;
}

.preloader-logo {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: contain;
  box-shadow: 0 4px 20px rgba(10, 56, 113, 0.18);
  position: relative;
  z-index: 2;
  animation: amglcLogoBreathe 1.8s ease-in-out infinite alternate;
}

.preloader-brand-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.preloader-brand-title span {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-secondary);
  background: var(--color-primary-soft);
  border: 1px solid #BAE6FD;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  letter-spacing: 0.05em;
  margin-left: 0.35rem;
  vertical-align: middle;
}

.preloader-brand-sub {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}

.preloader-progress-track {
  width: 170px;
  height: 4px;
  background: #E2E8F0;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.preloader-progress-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 50%, var(--color-tertiary) 100%);
  border-radius: 4px;
  animation: amglcProgressRun 1.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes amglcSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes amglcPulseGlow {
  0% { opacity: 0.25; transform: scale(0.92); }
  100% { opacity: 0.85; transform: scale(1.15); }
}

@keyframes amglcLogoBreathe {
  0% { transform: scale(0.97); }
  100% { transform: scale(1.03); }
}

@keyframes amglcProgressRun {
  0% { width: 0%; }
  30% { width: 45%; }
  65% { width: 80%; }
  90% { width: 95%; }
  100% { width: 100%; }
}

/* ==========================================================================
   Page Entrance & Scroll Reveal Animations (Makes the site feel alive)
   ========================================================================== */
.fade-in-up {
  opacity: 0;
  transform: translateY(22px);
  animation: amglcFadeInUp 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }
.delay-4 { animation-delay: 0.32s; }
.delay-5 { animation-delay: 0.40s; }

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

/* Scroll Reveal Classes (Safe default visibility) */
.reveal-on-scroll {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Gentle Capsule Interaction */
.capsule-item {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.capsule-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 36px rgba(10, 56, 113, 0.18);
}

/* ===================================================
   Congress Thematic Carousel (Single Moving Bar)
   Continuous Auto-Scroll + Mouse Drag & Controls
   =================================================== */
.themes-carousel-section {
  padding: 5rem 0 4rem;
  background: #FFFFFF;
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.themes-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.themes-drag-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: #64748B;
  font-weight: 600;
  background: #F8FAFC;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  border: 1px solid #E2E8F0;
}

.themes-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.themes-nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-carousel-nav {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  color: #0A3871;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(10, 56, 113, 0.05);
}

.btn-carousel-nav:hover {
  background: #0A3871;
  color: #FFFFFF;
  border-color: #0A3871;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(10, 56, 113, 0.15);
}

.btn-carousel-toggle {
  height: 38px;
  padding: 0 0.9rem;
  border-radius: 9999px;
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-carousel-toggle:hover {
  border-color: #0A3871;
  color: #0A3871;
}

/* Continuous Horizontal Track Viewport */
.themes-track-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 0.5rem 0 1.5rem;
}

.themes-track-viewport::before,
.themes-track-viewport::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}

.themes-track-viewport::before {
  left: 0;
  background: linear-gradient(90deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%);
}

.themes-track-viewport::after {
  right: 0;
  background: linear-gradient(270deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%);
}

.themes-scroll-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: auto;
  cursor: grab;
  user-select: none;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.75rem 1.5rem 1.75rem;
}

.themes-scroll-track::-webkit-scrollbar {
  display: none;
}

.themes-scroll-track.is-dragging {
  cursor: grabbing;
}

/* Single Thematic Card (Image 2 Aesthetic) */
.theme-carousel-card {
  flex: 0 0 330px;
  width: 330px;
  min-width: 330px;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 22px;
  padding: 2rem 1.65rem;
  box-shadow: 0 4px 18px rgba(10, 56, 113, 0.04);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.theme-carousel-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-accent, #0284C7);
  border-radius: 22px 22px 0 0;
}

.theme-carousel-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(10, 56, 113, 0.1);
  border-color: #CBD5E1;
}

.theme-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.theme-card-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 2px 8px rgba(10, 56, 113, 0.04);
}

.theme-card-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
}

.theme-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  font-family: var(--font-serif);
  line-height: 1.35;
  margin: 0 0 0.65rem;
  min-height: 3.2rem;
}

.theme-card-chef {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0284C7;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.theme-card-desc {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

