/* ===========================================================
   AMAcasa — Shared Stylesheet
   Palette: White #FFFFFF | Black #0A0A0A | Royal Blue #1E40FF
            Crimson #DC143C | Soft Gray #F5F5F7
   =========================================================== */

:root {
  --white: #FFFFFF;
  --black: #0A0A0A;
  --blue: #1E40FF;
  --crimson: #DC143C;
  --gray: #F5F5F7;
  --gradient-flag: linear-gradient(90deg, var(--blue) 0%, var(--crimson) 100%);
  --shadow-soft: 0 20px 50px rgba(10,10,10,0.08);
  --shadow-card: 0 10px 30px rgba(30,64,255,0.12);
  --transition: all 0.35s cubic-bezier(.25,.8,.25,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  line-height: 1.2;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================================================
   HEADER / NAVBAR
   =========================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(10,10,10,0.06);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: default;
}

.brand-pic {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gradient-flag);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
  box-shadow: 0 4px 14px rgba(30,64,255,0.25);
  overflow: hidden;
}

.brand-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.brand-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--blue);
  letter-spacing: 0.5px;
}

/* Hamburger */
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  width: 46px;
  height: 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 50%;
  transition: var(--transition);
}
.menu-toggle:hover { background: var(--gray); }

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--black);
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
  background: var(--crimson);
}
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
  background: var(--crimson);
}

/* Nav drawer */
.nav-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: var(--black);
  z-index: 999;
  padding: 110px 36px;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(.25,.8,.25,1);
  display: flex;
  flex-direction: column;
  gap: 28px;
  overflow-y: auto;
}
.nav-drawer.open { transform: translateX(0); }

.nav-drawer a {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--white);
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  width: fit-content;
}
.nav-drawer a:hover {
  border-bottom: 2px solid var(--crimson);
  color: var(--crimson);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.55);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.nav-overlay.show { opacity: 1; visibility: visible; }

/* ===========================================================
   NAVBAR - SUBMENU (DROPDOWN FILIALES)
   =========================================================== */
.nav-dropdown {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.dropdown-toggle {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 0 6px 0;
  width: fit-content;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
}

.dropdown-toggle:hover,
.dropdown-toggle.active {
  color: var(--crimson);
  border-bottom-color: var(--crimson);
}

.dropdown-toggle i {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.dropdown-toggle.active i {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  flex-direction: column;
  gap: 15px;
  padding-left: 20px;
  margin-top: 15px;
  margin-bottom: 10px;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.dropdown-menu.active {
  display: flex;
  animation: fadeInSubmenu 0.4s ease forwards;
}

.dropdown-menu a {
  font-size: 1rem;
  color: #ccc;
  font-weight: 500;
  padding-bottom: 0;
  border-bottom: none;
}

.dropdown-menu a:hover {
  color: var(--white);
}

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

/* ===========================================================
   HEADER IMAGE STRIP
   =========================================================== */
.header-image-section {
  margin-top: 74px;
  width: 100%;
  overflow: hidden;
  position: relative;
  background: var(--black);
}

.header-image-section img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  display: block;
  opacity: 0.92;
}

.header-image-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.15) 0%, rgba(10,10,10,0.55) 100%);
  pointer-events: none;
}

.header-image-caption {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 2;
}

.header-image-caption span {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 4vw, 2.6rem);
  color: var(--white);
  background: rgba(10,10,10,0.35);
  padding: 10px 28px;
  border-radius: 50px;
  backdrop-filter: blur(6px);
  border: 1px solid var(--gradient-flag);
  display: inline-block;
}

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  padding: 80px 0;
  background: var(--white);
  overflow: hidden;
}

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

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

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.92) 0%, rgba(245,245,247,0.85) 60%, rgba(30,64,255,0.06) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.eyebrow {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 18px;
  padding: 6px 18px;
  border: 1.5px solid var(--crimson);
  border-radius: 50px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  margin-bottom: 22px;
}

.hero h1 .accent-blue { color: var(--blue); }
.hero h1 .accent-crimson { color: var(--crimson); }

.hero p {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: #3a3a3a;
  max-width: 600px;
  margin-bottom: 34px;
}

/* ===========================================================
   PREMIUM TRUST BAR & AUDIENCE GRID (INDEX PAGE)
   =========================================================== */
.trust-bar {
  background: var(--blue);
  color: var(--white);
  padding: 25px 0;
  margin-top: -5px; 
  position: relative;
  z-index: 10;
}
.trust-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}
.trust-item i {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--crimson);
}
.trust-item h4 { font-size: 1.2rem; margin: 0; }
.trust-item p { font-size: 0.85rem; opacity: 0.9; margin: 0; font-family: 'Inter', sans-serif;}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  width: 100%;
}
.audience-card {
  background: var(--gray);
  border-radius: 24px;
  padding: 40px 30px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.05);
}
.audience-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-card);
  background: var(--white);
}
.audience-icon {
  width: 80px; height: 80px;
  background: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: var(--blue);
  box-shadow: var(--shadow-soft);
}

/* ===========================================================
   BUTTONS
   =========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 34px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--gradient-flag);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(30,64,255,0.28);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(220,20,60,0.32);
}

.btn-outline {
  background: transparent;
  color: var(--black);
  border: 2px solid var(--black);
}
.btn-outline:hover {
  background: var(--black);
  color: var(--white);
  transform: translateY(-3px);
}

.hero-buttons { display: flex; gap: 18px; flex-wrap: wrap; }

/* ===========================================================
   SECTION GENERAL
   =========================================================== */
section { padding: 90px 0; position: relative; }
.section-dark { background: var(--black); color: var(--white); }
.section-gray { background: var(--gray); }

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

.section-head .eyebrow { display: block; margin: 0 auto 14px; width: fit-content; }

.section-head h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 16px;
}

.section-head p { color: #555; font-size: 1.05rem; }
.section-dark .section-head p { color: #c9c9c9; }

.underline-flag {
  width: 90px;
  height: 5px;
  background: var(--gradient-flag);
  border-radius: 10px;
  margin: 18px auto 0;
}

/* ===========================================================
   SCROLL ANIMATION
   =========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }

/* ===========================================================
   ABOUT SECTION
   =========================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-visual {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4/3;
}
.about-visual img { width: 100%; height: 100%; object-fit: cover; }

.about-badge {
  position: absolute;
  bottom: 20px; left: 20px;
  background: var(--white);
  border-radius: 16px;
  padding: 16px 22px;
  box-shadow: var(--shadow-card);
  font-family: 'Poppins', sans-serif;
}
.about-badge strong {
  font-size: 2rem;
  background: var(--gradient-flag);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
}
.about-badge span { font-size: 0.85rem; color: #555; }

.about-text h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 22px; }
.about-text p { color: #444; margin-bottom: 18px; }
.about-text .underline-flag { margin: 0 0 22px; }

/* ===========================================================
   BRANCHES — 3D Cards
   =========================================================== */
.branch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 26px;
  width: 100%;
}

.branch-card {
  background: #FFFFFF !important;
  color: #0F172A !important;
  border-radius: 22px;
  padding: 36px 26px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid #E2E8F0;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-decoration: none !important;
}

.branch-card::before {
  content: "";
  position: absolute;
  top: -60%; left: -60%;
  width: 220%; height: 220%;
  background: var(--gradient-flag);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
  transform: rotate(15deg);
}

.branch-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(30, 64, 255, 0.15);
  border-color: #CBD5E1;
}

.branch-card:hover::before { opacity: 0.04; }

.branch-icon {
  position: relative;
  z-index: 1;
  width: 76px; height: 76px;
  margin: 0 auto 20px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-flag);
  box-shadow: 0 12px 26px rgba(30,64,255,0.3);
  transform: rotateX(10deg) rotateY(-10deg);
}
.branch-icon i { font-size: 2rem; color: var(--white); }

.branch-card h3,
.branch-card .branch-name-btn h3 {
  position: relative; 
  z-index: 1;
  font-size: 1.4rem !important;
  font-weight: 800 !important;
  margin-bottom: 10px !important;
  color: #0F172A !important;
  -webkit-text-fill-color: #0F172A !important;
  background: none !important;
}

.branch-card p {
  position: relative; 
  z-index: 1;
  color: #475569 !important;
  -webkit-text-fill-color: #475569 !important;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 22px;
}

.branch-call {
  position: relative; 
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: 50px;
  background: #1E40FF !important;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(30, 64, 255, 0.3);
  text-decoration: none;
  width: 100%;
}

.branch-card:hover .branch-call {
  background: #DC143C !important;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  box-shadow: 0 6px 18px rgba(220, 20, 60, 0.4);
}

/* ===========================================================
   SERVICES / LANGUAGES OVERVIEW
   =========================================================== */
.lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
  width: 100%;
}

.lang-card {
  background: var(--white);
  border-radius: 20px;
  padding: 30px 18px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border-top: 4px solid transparent;
  border-image: var(--gradient-flag);
  border-image-slice: 1;
  transition: var(--transition);
}
.lang-card:hover { transform: translateY(-8px); }

.lang-flag-icon {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--gradient-flag);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 22px rgba(30,64,255,0.25);
}
.lang-flag-icon i { font-size: 1.7rem; color: var(--white); }

.lang-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.lang-card p { font-size: 0.85rem; color: #666; }

/* Exam pills */
.exam-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 50px;
}
.exam-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--black);
  color: var(--white);
  padding: 16px 28px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  transition: var(--transition);
}
.exam-pill i { color: var(--crimson); font-size: 1.3rem; }
.exam-pill:hover {
  background: var(--gradient-flag);
  transform: translateY(-4px) scale(1.05);
}

/* ===========================================================
   LANGUAGE DETAIL CARDS (langues.html)
   =========================================================== */
.lang-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid rgba(10,10,10,0.07);
}
.lang-detail:last-of-type { border-bottom: none; }
.lang-detail.reverse { direction: rtl; }
.lang-detail.reverse > * { direction: ltr; }

.lang-detail-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.lang-detail-icon {
  width: 220px; height: 220px;
  border-radius: 32px;
  background: var(--gradient-flag);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 30px 60px rgba(30,64,255,0.25);
  transform: rotateY(-8deg) rotateX(6deg);
  transition: var(--transition);
}
.lang-detail-icon:hover { transform: rotateY(0) rotateX(0) scale(1.04); }
.lang-detail-icon i { font-size: 5rem; color: var(--white); }

.lang-detail-content .eyebrow { margin-bottom: 14px; }
.lang-detail-content h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 18px; }
.lang-detail-content p { color: #444; margin-bottom: 16px; }

.level-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.level-tag {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 50px;
  border: 1.5px solid var(--blue);
  color: var(--blue);
}
.level-tag:nth-child(even) { border-color: var(--crimson); color: var(--crimson); }

/* ===========================================================
   FORMS
   =========================================================== */
.form-section { background: var(--gray); }

.form-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 28px;
  padding: 50px;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.form-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--gradient-flag);
  border-radius: 28px 28px 0 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.form-grid .full { grid-column: 1 / -1; }

.field-group { display: flex; flex-direction: column; gap: 8px; }
.field-group label {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
}
.field-group input,
.field-group select,
.field-group textarea {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1.5px solid #ddd;
  background: var(--gray);
  transition: var(--transition);
  outline: none;
}
.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(30,64,255,0.1);
}

.form-card .btn { width: 100%; justify-content: center; margin-top: 12px; }

/* ===========================================================
   CONTACT PAGE — INFO GRID
   =========================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
}

.info-card {
  background: var(--white);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-soft);
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.info-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--gradient-flag);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 10px 22px rgba(30,64,255,0.25);
}
.info-icon i { color: var(--white); font-size: 1.4rem; }
.info-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.info-card p { color: #666; font-size: 0.95rem; margin: 0; }

.map-placeholder {
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4/3;
}
.map-placeholder iframe { width: 100%; height: 100%; border: 0; }

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.hours-table td {
  padding: 14px 22px;
  border-bottom: 1px solid var(--gray);
  font-size: 0.95rem;
}
.hours-table td:first-child { font-family: 'Poppins', sans-serif; font-weight: 700; }
.hours-table td:last-child { text-align: right; color: var(--blue); font-weight: 600; }
.hours-table tr:last-child td { border-bottom: none; }

/* ===========================================================
   FOOTER
   =========================================================== */
footer {
  background: var(--black);
  color: var(--white);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
  width: 100%;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-brand .brand-name { color: var(--white); }
.footer-col h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  margin-bottom: 18px;
  color: var(--white);
}
.footer-col p, .footer-col a {
  display: block;
  color: #aaa;
  font-size: 0.92rem;
  margin-bottom: 10px;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--crimson); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  color: #777;
  font-size: 0.85rem;
}
.footer-socials { display: flex; gap: 14px; margin-top: 16px; }
.footer-socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.footer-socials a:hover { background: var(--gradient-flag); }

/* ===========================================================
   BRANCH DETAIL CARD — clickable trigger
   =========================================================== */
.branch-card-trigger {
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  font: inherit;
  color: inherit;
}
.branch-card .branch-name-btn {
  position: relative; z-index: 1;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  width: 100%;
  text-align: center;
  padding: 0;
}
.branch-card .branch-name-btn h3 {
  transition: var(--transition);
}
.branch-card .branch-name-btn:hover h3 {
  color: var(--blue);
}
.branch-card .branch-name-btn:hover h3::after {
  width: 100%;
}

/* ===========================================================
   BRANCH DETAIL — Expandable Sections
   =========================================================== */
.branch-detail-section {
  display: none;
  background: var(--white);
}
.branch-detail-section.active {
  display: block;
}

.branch-detail-image {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

.branch-detail-wrapper {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--white);
  margin-bottom: 26px;
}

.branch-detail-body {
  padding: 40px;
}

.branch-detail-body .eyebrow { margin-bottom: 14px; }
.branch-detail-body h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 18px; }
.branch-detail-body p { color: #444; margin-bottom: 16px; }

.branch-detail-close {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 26px;
  border-radius: 50px;
  border: 2px solid var(--black);
  background: transparent;
  color: var(--black);
  cursor: pointer;
  transition: var(--transition);
  margin-top: 10px;
}
.branch-detail-close:hover {
  background: var(--black);
  color: var(--white);
}

.branch-detail-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.branch-detail-meta span {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: 50px;
  background: var(--gradient-flag);
  color: var(--white);
}

/* ===========================================================
   SOCIAL MEDIA — "Suivez-nous"
   =========================================================== */
.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.social-card {
  background: var(--white);
  border-radius: 22px;
  padding: 38px 24px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  border: 1px solid rgba(10,10,10,0.05);
}

.social-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 25px 50px rgba(30,64,255,0.22);
}

.social-icon-3d {
  width: 78px; height: 78px;
  margin: 0 auto 18px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 28px rgba(10,10,10,0.18);
  transform: rotateX(10deg) rotateY(-10deg);
  transition: var(--transition);
}
.social-card:hover .social-icon-3d {
  transform: rotateX(0) rotateY(0) scale(1.08);
}
.social-icon-3d i { font-size: 2.2rem; color: var(--white); }

.social-icon-3d.instagram { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.social-icon-3d.tiktok { background: linear-gradient(135deg,#000000,#25F4EE,#FE2C55); }
.social-icon-3d.facebook { background: linear-gradient(135deg,#1877F2,#0c4ea3); }
.social-icon-3d.youtube { background: linear-gradient(135deg,#FF0000,#a30000); }

.social-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.social-card p { color: #666; font-size: 0.85rem; margin: 0; }

/* ===========================================================
   DYNAMIC MAP TABS
   =========================================================== */
.map-tabs {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 36px;
}

.map-tab-btn {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 30px;
  border-radius: 50px;
  border: 2px solid var(--black);
  background: transparent;
  color: var(--black);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.map-tab-btn i { color: var(--crimson); }

.map-tab-btn.active {
  background: var(--gradient-flag);
  border-color: transparent;
  color: var(--white);
}
.map-tab-btn.active i { color: var(--white); }

.map-tab-btn:hover:not(.active) {
  border-color: var(--blue);
  color: var(--blue);
}

.map-panels { position: relative; }

.map-panel {
  display: none;
  animation: fadeMap 0.5s ease;
}
.map-panel.active { display: block; }

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

/* ===========================================================
   PROMO GRID
   =========================================================== */
.promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.promo-card {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  position: relative;
  aspect-ratio: 4/5;
  background: var(--gray);
  border: 1px solid rgba(10,10,10,0.05);
  transition: var(--transition);
}
.promo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(30,64,255,0.2);
}

.promo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.promo-card-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--gradient-flag);
  color: var(--white);
  text-align: center;
  padding: 30px;
}
.promo-card-fallback i { font-size: 3rem; }
.promo-card-fallback span {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
}

.promo-cta-wrap {
  text-align: center;
  margin-top: 56px;
}

/* ===========================================================
   FLOATING WHATSAPP BUTTON
   =========================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 1100;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37,211,102,0.5);
  animation: wa-pulse 2.4s infinite;
  transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float i {
  font-size: 2.2rem;
  color: #FFFFFF;
}

@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.6), 0 10px 30px rgba(37,211,102,0.5); }
  70% { box-shadow: 0 0 0 18px rgba(37,211,102,0), 0 10px 30px rgba(37,211,102,0.5); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0), 0 10px 30px rgba(37,211,102,0.5); }
}

/* ===========================================================
   RESPONSIVE — MOBILE FIRST FIXES
   =========================================================== */
@media (max-width: 992px) {
  .about-grid,
  .contact-grid,
  .lang-detail,
  .form-grid,
  .audience-grid {
    grid-template-columns: 1fr !important;
  }
  .lang-detail.reverse { direction: ltr; }
  .branch-grid { grid-template-columns: repeat(2, 1fr); }
  .lang-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .social-grid { grid-template-columns: repeat(2, 1fr); }
  .promo-grid { grid-template-columns: 1fr; }
}

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

  section { padding: 60px 0; }

  .navbar { padding: 12px 18px; }
  .brand-name { font-size: 1.1rem; }
  .brand-pic { width: 40px; height: 40px; }

  /* Force ALL flex/grid layouts to stack vertically */
  .about-grid,
  .contact-grid,
  .lang-detail,
  .lang-detail.reverse,
  .form-grid,
  .branch-grid,
  .lang-grid,
  .footer-grid,
  .social-grid,
  .promo-grid,
  .hero-buttons,
  .audience-grid {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    width: 100%;
  }

  .lang-detail.reverse { direction: ltr; }

  .about-grid > *,
  .contact-grid > *,
  .lang-detail > *,
  .form-grid > *,
  .branch-grid > *,
  .lang-grid > *,
  .footer-grid > *,
  .social-grid > *,
  .promo-grid > *,
  .audience-grid > * {
    width: 100% !important;
    max-width: 100%;
  }

  .form-grid .full { grid-column: auto; }

  .hero { min-height: auto; padding: 60px 0; text-align: left; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .hero p { font-size: 1rem; }
  .hero-buttons .btn { width: 100%; justify-content: center; }

  .header-image-section img { max-height: 220px; }
  .header-image-caption span { font-size: 1.2rem; padding: 8px 18px; }

  .section-head h2 { font-size: 1.7rem; }

  .about-visual { aspect-ratio: 16/10; }

  .lang-detail-icon { width: 150px; height: 150px; }
  .lang-detail-icon i { font-size: 3.2rem; }

  .form-card { padding: 28px 20px; }

  .exam-row { flex-direction: column; align-items: stretch; }
  .exam-pill { justify-content: center; }

  .whatsapp-float { width: 56px; height: 56px; bottom: 18px; right: 18px; }
  .whatsapp-float i { font-size: 1.9rem; }

  .nav-drawer { width: 80%; right: 0; transform: translateX(100%); }

  .promo-card { aspect-ratio: 4/3; }
  .map-tabs { flex-direction: column; align-items: stretch; }
  .map-tab-btn { justify-content: center; }
  .branch-detail-body { padding: 26px 20px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.9rem; }
  .branch-card { padding: 28px 18px; }
  .form-card { padding: 22px 14px; }
}

/* ===========================================================
   GALERIE & LIGHTBOX
   =========================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.gallery-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-soft);
  background: var(--black);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  opacity: 0.9;
}

.gallery-item:hover img {
  transform: scale(1.08);
  opacity: 0.6;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  color: var(--white);
  font-size: 2.5rem;
  text-shadow: 0 4px 10px rgba(0,0,0,0.5);
  transform: scale(0.5);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay i {
  transform: scale(1);
}

/* Modal Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(10px);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 85vh;
}

.lightbox-content img, 
.lightbox-content video {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 25px;
  right: 35px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--white);
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  background: var(--crimson);
  transform: rotate(90deg);
}

/* ===========================================================
   ESPACES & PORTAILS SECTION (HOME PAGE & MENU)
   =========================================================== */
.portals-section {
  padding: 90px 0;
  background: linear-gradient(180deg, #F8FAFC 0%, #EEF2FF 100%);
  position: relative;
  overflow: hidden;
}

.portals-header {
  text-align: center;
  margin-bottom: 56px;
}

.portals-header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--black);
  margin-bottom: 14px;
  font-weight: 800;
}

.portals-header p {
  color: #64748B;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.portals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  width: 100%;
}

.portal-card {
  background: #FFFFFF;
  border-radius: 28px;
  padding: 42px 32px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.07);
  border: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  min-height: 430px;
}

.portal-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--blue);
  transition: all 0.35s ease;
}

.portal-card.card-teacher::before {
  background: #0D9488;
}

.portal-card.card-admin::before {
  background: var(--crimson);
}

.portal-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.14);
  border-color: #CBD5E1;
}

.portal-card-icon {
  width: 80px;
  height: 80px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 26px;
  transition: transform 0.3s ease;
}

.portal-card:hover .portal-card-icon {
  transform: scale(1.08);
}

.portal-card.card-student .portal-card-icon {
  background: #EEF2FF;
  color: #4F46E5;
}

.portal-card.card-teacher .portal-card-icon {
  background: #CCFBF1;
  color: #0D9488;
}

.portal-card.card-admin .portal-card-icon {
  background: #FFE4E6;
  color: #E11D48;
}

.portal-card-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.card-student .portal-card-badge {
  background: #E0E7FF;
  color: #3730A3;
}

.card-teacher .portal-card-badge {
  background: #E6FFFA;
  color: #047857;
}

.card-admin .portal-card-badge {
  background: #FFE4E6;
  color: #9F1239;
}

.portal-card h3 {
  font-size: 1.6rem;
  color: #0F172A;
  margin-bottom: 14px;
  font-weight: 800;
}

.portal-card p {
  color: #64748B;
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 28px;
  flex-grow: 1;
}

.portal-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  border-radius: 16px;
  font-weight: 800;
  font-size: 1rem;
  color: #FFFFFF;
  transition: all 0.3s ease;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  text-decoration: none !important;
}

.card-student .portal-card-btn {
  background: #4F46E5;
}
.card-student .portal-card-btn:hover {
  background: #4338CA;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
}

.card-teacher .portal-card-btn {
  background: #0D9488;
}
.card-teacher .portal-card-btn:hover {
  background: #0F766E;
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.35);
}

.card-admin .portal-card-btn {
  background: #E11D48;
}
.card-admin .portal-card-btn:hover {
  background: #BE123C;
  box-shadow: 0 8px 20px rgba(225, 29, 72, 0.35);
}

@media (max-width: 992px) {
  .portals-grid {
    grid-template-columns: 1fr;
    max-width: 540px;
    margin: 0 auto;
  }
}
    margin: 0 auto;
  }
}

/* ===========================================================
   UPGRADED MAPS & CAMPUS FINDER STYLES
   =========================================================== */
.map-container-upgraded {
  position: relative;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.1);
  border: 1px solid rgba(226, 232, 240, 0.8);
  background: #0F172A;
}

.map-container-upgraded iframe {
  width: 100%;
  height: 480px;
  border: 0;
  display: block;
}

.map-floating-header {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
  flex-wrap: wrap;
  max-width: calc(100% - 32px);
}

.map-floating-header > * {
  pointer-events: auto;
}

.map-branch-info-pill {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.map-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.status-badge-open {
  background: #10B981;
  color: #FFFFFF;
}

.status-badge-closed {
  background: #F59E0B;
  color: #FFFFFF;
}

.map-floating-actions {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  pointer-events: none;
  flex-wrap: wrap;
  max-width: calc(100% - 32px);
}

.map-floating-actions > * {
  pointer-events: auto;
}

.map-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #FFFFFF;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
  text-decoration: none;
}

.map-action-btn:hover {
  transform: translateY(-2px);
  background: #1E40FF;
  border-color: #1E40FF;
  color: #FFFFFF;
}

.map-action-btn.btn-waze {
  background: #33CCFF;
  color: #0F172A;
  border-color: #33CCFF;
}

.map-action-btn.btn-waze:hover {
  background: #00B2FF;
  color: #FFFFFF;
}

.map-action-btn.btn-gps {
  background: #4F46E5;
  color: #FFFFFF;
  border-color: #6366F1;
}

.map-action-btn.btn-gps:hover {
  background: #4338CA;
}

/* Home Page Campus Finder */
.campus-finder-section {
  padding: 80px 0;
  background: #FFFFFF;
}

.campus-grid-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) 1fr;
  gap: 30px;
  align-items: stretch;
  width: 100%;
}

.campus-list-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.campus-select-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 2px solid #F1F5F9;
  background: #F8FAFC;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s ease;
  width: 100%;
}

.campus-select-btn:hover,
.campus-select-btn.active {
  border-color: #1E40FF;
  background: #EEF2FF;
  box-shadow: 0 10px 25px rgba(30, 64, 255, 0.1);
  transform: translateX(4px);
}

.campus-btn-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #FFFFFF;
  color: #1E40FF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  shrink: 0;
}

.campus-select-btn.active .campus-btn-icon {
  background: #1E40FF;
  color: #FFFFFF;
}

.campus-btn-details h4 {
  font-size: 1.05rem;
  color: #0F172A;
  margin: 0 0 2px 0;
}

.campus-btn-details p {
  font-size: 0.82rem;
  color: #64748B;
  margin: 0;
}

@media (max-width: 992px) {
  .campus-grid-layout {
    grid-template-columns: 1fr;
  }
  .map-container-upgraded iframe {
    height: 380px;
  }
  .map-floating-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===========================================================
   HEADER & DRAWER ACCESS BUTTONS
   =========================================================== */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: linear-gradient(135deg, #1E40FF 0%, #4338CA 100%);
  color: #FFFFFF !important;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(30, 64, 255, 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
}

.header-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 64, 255, 0.4);
  opacity: 0.95;
}

.drawer-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #DC143C 0%, #B91C1C 100%);
  color: #FFFFFF !important;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(220, 20, 60, 0.3);
  margin-top: 10px;
  text-decoration: none;
  width: 100%;
  transition: all 0.3s ease;
}

.drawer-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(220, 20, 60, 0.4);
}

@media (max-width: 576px) {
  .header-login-btn span {
    display: none;
  }
  .header-login-btn {
    padding: 8px 12px;
    border-radius: 50px;
  }
}

/* Global Overflow Safeguard */
html, body {
  max-width: 100% !important;
  overflow-x: hidden !important;
  width: 100%;
}

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

/* Plateforme ERP & Suivi - Big Screens Prominence */
@media (min-width: 1024px) {
  .portals-section {
    padding: 95px 0;
  }
  .portals-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 34px;
  }
  .portal-card {
    padding: 44px 34px;
    border-radius: 28px;
    min-height: 440px;
  }
  .portal-card-icon {
    width: 80px;
    height: 80px;
    font-size: 2.2rem;
  }
  .portal-card h3 {
    font-size: 1.6rem;
  }
  .portal-card p {
    font-size: 1.02rem;
  }
  .portal-card-btn {
    padding: 16px 24px;
    font-size: 1rem;
    border-radius: 16px;
  }
  .campus-grid-layout {
    grid-template-columns: 340px 1fr;
    gap: 32px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1340px;
  }
  .portals-grid {
    gap: 40px;
  }
}