/* ============================================================
   APPRENDRE — French Coaching Website
   Palette: Navy #1a2744 | Cream #f8f4ed | Gold #c9a84c
   Fonts: Playfair Display (headings) | Lato (body)
   ============================================================ */

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

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

:root {
  --navy:  #1a2744;
  --cream: #f8f4ed;
  --gold:  #c9a84c;
  --navy-light: #263660;
  --gold-light: #e2c078;
  --text-dark: #1a1a2e;
  --text-mid:  #4a4a6a;
  --text-light: #8888a0;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(26,39,68,.08);
  --shadow-md: 0 6px 24px rgba(26,39,68,.12);
  --shadow-lg: 0 12px 48px rgba(26,39,68,.18);
  --radius: 10px;
  --transition: .25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--cream);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
  color: var(--navy);
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Utility ── */
.section-label {
  font-family: 'Lato', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .5rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 560px;
}

.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

.divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 1rem 0 1.5rem;
}
.text-center .divider { margin: 1rem auto 1.5rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 2rem;
  min-height: 44px;
  border-radius: 4px;
  font-family: 'Lato', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .05em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ── Navigation ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--navy);
  padding: 0;
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-lg); }

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--cream) !important;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: .55rem;
}
.navbar-brand span { color: var(--gold); }

.navbar-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.hero-logo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.35);
}

@media (max-width: 480px) {
  .hero-logo { width: 56px; height: 56px; }
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.navbar-links a {
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .05em;
  color: rgba(248,244,237,.75);
  text-transform: uppercase;
  transition: color var(--transition);
}
.navbar-links a:hover,
.navbar-links a.active { color: var(--gold); }

.navbar-cta { margin-left: 1rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  transition: all var(--transition);
}

/* Hamburger → X when menu is open */
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ── */
.hero {
  padding: 140px 0 100px;
  background-color: #1a2744;
  background-image: linear-gradient(135deg, #1a2744 0%, #0f1a3d 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 70% 50%, rgba(201,168,76,.1) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.hero-text .section-label { font-size: .8rem; }

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  color: #ffffff;
  margin-bottom: 1.25rem;
}
.hero-title em { color: var(--gold); font-style: italic; }

.hero-description {
  font-size: 1.1rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(201,168,76,.2);
}
.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: .8rem;
  color: rgba(248,244,237,.6);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-top: .25rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(201,168,76,.25);
  border-radius: 16px;
  padding: 2.5rem;
  backdrop-filter: blur(10px);
  max-width: 380px;
  width: 100%;
}

.hero-card-flag {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-card h3 {
  color: var(--cream);
  font-size: 1.25rem;
  margin-bottom: .5rem;
}

.hero-card p {
  color: rgba(248,244,237,.65);
  font-size: .9rem;
  margin-bottom: 1.5rem;
}

.level-badges {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.level-badge {
  padding: .3rem .75rem;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
}
.level-badge.a1, .level-badge.a2 {
  background: rgba(201,168,76,.15);
  color: var(--gold);
  border: 1px solid rgba(201,168,76,.3);
}
.level-badge.b1, .level-badge.b2 {
  background: rgba(255,255,255,.08);
  color: rgba(248,244,237,.8);
  border: 1px solid rgba(255,255,255,.15);
}
.level-badge.c1, .level-badge.c2 {
  background: rgba(26,39,68,.5);
  color: rgba(248,244,237,.6);
  border: 1px solid rgba(255,255,255,.1);
}

/* ── Sections ── */
section { padding: 80px 0; }
section:nth-child(even) { background: var(--white); }

/* ── Features ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--cream);
  border: 1px solid rgba(26,39,68,.06);
  transition: all var(--transition);
}
section:nth-child(even) .feature-card { background: var(--cream); }

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201,168,76,.3);
}

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

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: .5rem;
}

.feature-card p {
  font-size: .9rem;
  color: var(--text-mid);
}

/* ── Course Cards ── */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
  margin-top: 3rem;
}

.course-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.course-card-image {
  height: 180px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
}

.course-level-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--gold);
  color: var(--navy);
  font-size: .7rem;
  font-weight: 700;
  padding: .25rem .65rem;
  border-radius: 20px;
  letter-spacing: .05em;
}

.course-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: .5rem;
}

.course-card-body p {
  font-size: .875rem;
  color: var(--text-mid);
  margin-bottom: 1rem;
  flex: 1;
}

.course-meta {
  display: flex;
  gap: 1rem;
  font-size: .8rem;
  color: var(--text-light);
  margin-bottom: 1.25rem;
}
.course-meta span { display: flex; align-items: center; gap: .3rem; }

.course-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(26,39,68,.06);
}

.course-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--navy);
}
.course-price span {
  font-family: 'Lato', sans-serif;
  font-size: .75rem;
  color: var(--text-light);
  font-weight: 400;
}

/* ── Filter Bar ── */
.filter-bar {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: .5rem 1.25rem;
  min-height: 44px;
  border-radius: 25px;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid rgba(26,39,68,.12);
  background: transparent;
  color: var(--text-mid);
  transition: all var(--transition);
  font-family: 'Lato', sans-serif;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

/* ── Testimonials ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 2rem;
  border-left: 4px solid var(--gold);
  transition: all var(--transition);
}

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

.testimonial-text {
  font-style: italic;
  color: var(--text-mid);
  margin-bottom: 1.25rem;
  font-size: .95rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.author-name {
  font-weight: 700;
  font-size: .9rem;
  color: var(--navy);
}
.author-level {
  font-size: .78rem;
  color: var(--text-light);
}

.stars { color: var(--gold); font-size: .85rem; margin-bottom: .75rem; }

/* ── About / CTA Section ── */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, #0f1a3d 100%) !important;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(201,168,76,.08) 0%, transparent 60%);
}
.cta-section .container { position: relative; }
.cta-section .section-title { color: var(--cream); }
.cta-section .section-subtitle { color: rgba(248,244,237,.7); max-width: 540px; margin: 0 auto 2rem; }

/* ── Contact Page ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  margin-top: 3rem;
}

.contact-info h3 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.contact-detail {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}
.contact-detail-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: .1rem;
}
.contact-detail-text strong { display: block; font-size: .85rem; color: var(--navy); }
.contact-detail-text span { font-size: .875rem; color: var(--text-mid); }

/* ── Forms ── */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

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

.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .4rem;
  letter-spacing: .03em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 2px solid rgba(26,39,68,.1);
  border-radius: 6px;
  font-family: 'Lato', sans-serif;
  font-size: .95rem;
  color: var(--text-dark);
  background: var(--cream);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: var(--white);
}

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

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

/* ── Admin Panel ── */
.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: var(--navy);
  padding: 0;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  width: 260px;
  overflow-y: auto;
  z-index: 100;
}

.admin-sidebar-logo {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid rgba(201,168,76,.15);
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--cream);
  font-style: italic;
}
.admin-sidebar-logo span { color: var(--gold); }

.admin-nav { padding: 1.5rem 0; }

.admin-nav-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(248,244,237,.35);
  padding: 1rem 1.75rem .5rem;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1.75rem;
  color: rgba(248,244,237,.65);
  font-size: .9rem;
  font-weight: 400;
  transition: all var(--transition);
}
.admin-nav a:hover,
.admin-nav a.active {
  background: rgba(201,168,76,.1);
  color: var(--gold);
  border-right: 3px solid var(--gold);
}
.admin-nav a .nav-icon { font-size: 1.1rem; flex-shrink: 0; }

.admin-main {
  margin-left: 260px;
  background: #f0ede8;
  min-height: 100vh;
}

.admin-topbar {
  background: var(--white);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-topbar h1 {
  font-size: 1.35rem;
}

.admin-topbar-actions { display: flex; align-items: center; gap: 1rem; }

.admin-content { padding: 2rem; }

.admin-section {
  display: none;
}
.admin-section.active { display: block; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.stat-card-icon.navy { background: rgba(26,39,68,.08); }
.stat-card-icon.gold  { background: rgba(201,168,76,.12); }
.stat-card-icon.green { background: rgba(34,197,94,.1); }
.stat-card-icon.blue  { background: rgba(59,130,246,.1); }

.stat-card-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  color: var(--navy);
  line-height: 1;
}
.stat-card-label {
  font-size: .8rem;
  color: var(--text-light);
  margin-top: .2rem;
}

.data-table-wrapper {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.data-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(26,39,68,.06);
}

.data-table-header h3 { font-size: 1.05rem; }

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-light);
  padding: .75rem 1.5rem;
  text-align: left;
  background: rgba(26,39,68,.02);
  border-bottom: 1px solid rgba(26,39,68,.06);
}

tbody td {
  padding: 1rem 1.5rem;
  font-size: .9rem;
  color: var(--text-mid);
  border-bottom: 1px solid rgba(26,39,68,.04);
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(201,168,76,.04); }

.badge {
  display: inline-block;
  padding: .2rem .65rem;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
}
.badge-active   { background: rgba(34,197,94,.12); color: #15803d; }
.badge-inactive { background: rgba(239,68,68,.1);  color: #b91c1c; }
.badge-draft    { background: rgba(234,179,8,.1);   color: #92400e; }

.action-btns { display: flex; gap: .5rem; }
.action-btn {
  padding: .3rem .65rem;
  font-size: .75rem;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid transparent;
  font-weight: 700;
  transition: all var(--transition);
}
.action-btn-edit   { background: rgba(26,39,68,.07); color: var(--navy); border-color: rgba(26,39,68,.1); }
.action-btn-delete { background: rgba(239,68,68,.08); color: #b91c1c;    border-color: rgba(239,68,68,.15); }
.action-btn-edit:hover   { background: var(--navy); color: var(--white); }
.action-btn-delete:hover { background: #b91c1c; color: var(--white); }

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,15,30,.65);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--white);
  border-radius: 12px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(26,39,68,.08);
}
.modal-header h3 { font-size: 1.2rem; }
.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  line-height: 1;
  padding: 0;
}
.modal-close:hover { color: var(--navy); }

.modal-body { padding: 2rem; }
.modal-footer {
  padding: 1.25rem 2rem;
  border-top: 1px solid rgba(26,39,68,.08);
  display: flex;
  justify-content: flex-end;
  gap: .75rem;
}

/* ── Toast ── */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.toast {
  background: var(--navy);
  color: var(--cream);
  padding: .875rem 1.25rem;
  border-radius: 8px;
  font-size: .875rem;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--gold);
  animation: slideIn .3s ease;
  max-width: 320px;
}
.toast.success { border-left-color: #22c55e; }
.toast.error   { border-left-color: #ef4444; }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ── Page Hero (inner pages) ── */
.page-hero {
  background-color: #1a2744;
  background-image: linear-gradient(135deg, #1a2744 0%, #0f1a3d 100%);
  padding: 120px 0 60px;
  text-align: center;
}
.page-hero h1 { color: #ffffff; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .75rem; }
.page-hero p  { color: rgba(255,255,255,.75); font-size: 1.05rem; max-width: 540px; margin: 0 auto; }

/* ── Footer ── */
.footer {
  background: #0f1a3d;
  color: rgba(248,244,237,.65);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--cream);
  font-style: italic;
  margin-bottom: 1rem;
  display: block;
}
.footer-brand span { color: var(--gold); }
.footer-tagline {
  font-size: .875rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.footer-heading {
  font-family: 'Lato', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-links li { margin-bottom: .5rem; }
.footer-links a {
  color: rgba(248,244,237,.55);
  font-size: .875rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold); }

.social-links {
  display: flex;
  gap: .75rem;
  margin-top: .5rem;
}
.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(248,244,237,.55) !important;
  font-size: .85rem;
  transition: all var(--transition);
}
.social-link:hover {
  border-color: var(--gold);
  color: var(--gold) !important;
  transform: translateY(-2px);
}

.footer-bottom {
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
  color: rgba(248,244,237,.35);
}

/* ── Hero centered variant (homepage) ── */
.hero-centered-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-centered-content .hero-description {
  max-width: 560px;
  margin-bottom: 2rem;
}

/* ── About Us ── */
.about-text {
  max-width: 820px;
  margin: 2rem auto 0;
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.85;
}

/* ── Competency cards ── */
.competencies-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.competency-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  background: var(--navy);
  transition: all var(--transition);
}

.competency-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.competency-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.competency-card h3 {
  color: var(--cream);
  font-size: 1.1rem;
  font-weight: 600;
}

/* ── Homepage ongoing-preview card accent ── */
.ongoing-preview-card { border-top: 4px solid var(--gold); }
.ongoing-preview-card .course-card-footer { justify-content: flex-end; }

/* ── Why 3-col override ── */
.why-3col {
  grid-template-columns: repeat(3, 1fr);
}

/* ── Footer 3-col ── */
.footer-grid-3col {
  grid-template-columns: 1.5fr 1fr 1fr;
}

/* ── Responsive ── */
@media (max-width: 992px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-description { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { margin-top: 2rem; }

  .competencies-grid { grid-template-columns: repeat(2, 1fr); }
  .why-3col { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid-3col { grid-template-columns: 1fr 1fr; }

  .contact-grid { grid-template-columns: 1fr; }

  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { transform: translateX(-100%); transition: transform var(--transition); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
}

@media (max-width: 768px) {
  .navbar-links {
    display: none; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--navy);
    padding: .5rem 0; gap: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
  }
  .navbar-links.open { display: flex; }
  /* Each nav link is a full-width tap target ≥ 44px */
  .navbar-links a {
    padding: .875rem 2rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,.05);
  }
  .navbar-links li:last-child a { border-bottom: none; }
  .navbar-cta { display: none; }
  .hamburger { display: flex; }

  .competencies-grid { grid-template-columns: repeat(2, 1fr); }
  .why-3col { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid-3col { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }

  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  /* Tighter section padding saves screen space */
  section { padding: 60px 0; }
  .page-hero { padding: 96px 0 48px; }

  /* Force single column on course grids */
  .courses-grid { grid-template-columns: 1fr; margin-top: 2rem; }

  /* Competency cards: 2-up fits on 375px */
  .competencies-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .competency-card { padding: 1.5rem 1rem; }

  /* Footer stacks */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid-3col { grid-template-columns: 1fr; }

  /* Long email/phone doesn't break layout */
  .footer-links a,
  .footer-links span { overflow-wrap: break-word; word-break: break-word; }

  /* Hero */
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .hero { padding: 100px 0 60px; }

  /* About text a touch smaller to breathe */
  .about-text { font-size: 1rem; }
}
