/* === reset.css === */
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
a{color:inherit;text-decoration:none}
ul,ol{list-style:none}
img{max-width:100%;height:auto;display:block}
button{font:inherit;cursor:pointer}


/* === tokens.css === */
:root {
  --black: #070808;
  --dark: #0e0f10;
  --card: #141516;
  --card-h: #1a1b1d;
  --border: #1e2022;
  --border-h: #2a2c2f;
  --g1: #3a7d44;
  --g2: #4a9e56;
  --g3: #5cb868;
  --gg: rgba(74,158,86,.12);
  --w: #f2f2f4;
  --wd: #dddde0;
  --gr: #9198a1;
  --gl: #b0b5bc;
  --red: #d94452;
  --amber: #e8a831;
  --blue: #4a7fff;
  --pink: #e85d9c;
  --ff-d: 'Oswald', sans-serif;
  --ff-b: 'Source Sans 3', sans-serif;
  --ff-m: 'JetBrains Mono', monospace;
  --r: 12px;
  --rl: 20px;
  --max: 1200px;
  --px: clamp(1.25rem, 5vw, 5rem);
  /* Focus ring */
  --focus-ring: var(--g3);
  color-scheme: dark;
}


/* === typography.css === */
body {
  background: var(--black);
  color: var(--w);
  font-family: var(--ff-b);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Faded football pitch outline */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 105 68'%3E%3Crect x='.5' y='.5' width='104' height='67' fill='none' stroke='%233a7d44' stroke-width='.4'/%3E%3Cline x1='52.5' y1='.5' x2='52.5' y2='67.5' stroke='%233a7d44' stroke-width='.4'/%3E%3Ccircle cx='52.5' cy='34' r='9.15' fill='none' stroke='%233a7d44' stroke-width='.4'/%3E%3Ccircle cx='52.5' cy='34' r='.4' fill='%233a7d44'/%3E%3Crect x='.5' y='13.85' width='16.5' height='40.3' fill='none' stroke='%233a7d44' stroke-width='.4'/%3E%3Crect x='88' y='13.85' width='16.5' height='40.3' fill='none' stroke='%233a7d44' stroke-width='.4'/%3E%3Crect x='.5' y='24.85' width='5.5' height='18.3' fill='none' stroke='%233a7d44' stroke-width='.4'/%3E%3Crect x='99' y='24.85' width='5.5' height='18.3' fill='none' stroke='%233a7d44' stroke-width='.4'/%3E%3Ccircle cx='11' cy='34' r='.4' fill='%233a7d44'/%3E%3Ccircle cx='94' cy='34' r='.4' fill='%233a7d44'/%3E%3Cpath d='M16.5 27.2A9.15 9.15 0 0 1 16.5 40.8' fill='none' stroke='%233a7d44' stroke-width='.4'/%3E%3Cpath d='M88 27.2A9.15 9.15 0 0 0 88 40.8' fill='none' stroke='%233a7d44' stroke-width='.4'/%3E%3C/svg%3E");
  background-size: min(90vw, 900px) auto;
  background-repeat: no-repeat;
  background-position: center center;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

/* Noise texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.02'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1200;
}

::selection {
  background: var(--g1);
  color: #fff;
}

::-webkit-scrollbar { width: 5px }
::-webkit-scrollbar-track { background: var(--black) }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px }
::-webkit-scrollbar-thumb:hover { background: var(--g1) }

/* Section headings */
.eyebrow {
  font-family: var(--ff-m);
  font-size: 11px;
  font-weight: 500;
  color: var(--g3);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--g1);
}

.sec-title {
  font-family: var(--ff-d);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: .75rem;
}

.sec-sub {
  font-size: 1.05rem;
  color: var(--gl);
  max-width: 560px;
  line-height: 1.7;
  font-weight: 300;
}

.green { color: var(--g3) }


/* === layout.css === */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
}

section {
  padding: clamp(4rem, 9vh, 7rem) var(--px);
}

section .wrap {
  max-width: var(--max);
}

.divider {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  height: 1px;
  background: var(--border);
}

/* Button styles */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  font-family: var(--ff-b);
  font-weight: 600;
  font-size: 14px;
  border-radius: 10px;
  transition: background .3s cubic-bezier(.22,1,.36,1), color .3s cubic-bezier(.22,1,.36,1), border-color .3s cubic-bezier(.22,1,.36,1), transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s cubic-bezier(.22,1,.36,1);
  cursor: pointer;
  border: none;
}

.btn-fill {
  background: var(--g1);
  color: #fff;
}

.btn-fill:hover {
  background: var(--g2);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(58,125,68,.3);
}

.btn-ghost {
  background: transparent;
  color: var(--w);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--g1);
  color: var(--g3);
  transform: translateY(-2px);
}

.btn-fill:active {
  transform: scale(.97);
  box-shadow: 0 2px 8px rgba(58,125,68,.2);
}

.btn-ghost:active {
  transform: scale(.97);
}

/* About section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  margin-top: 2.5rem;
}

.about-text p {
  font-size: 1rem;
  color: var(--gl);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 1rem;
}

.about-text .hl {
  color: var(--w);
  font-weight: 500;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 1.5rem;
}

.about-feat {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  background: rgba(58,125,68,.04);
  border: 1px solid rgba(58,125,68,.08);
  border-radius: 10px;
}

.about-feat-dot {
  width: 7px;
  height: 7px;
  background: var(--g1);
  border-radius: 2px;
  margin-top: 5px;
  flex-shrink: 0;
}

.about-feat span {
  font-size: .85rem;
  color: var(--gl);
  line-height: 1.4;
}

/* About numbers */
.about-numbers {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-num-card {
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r);
  padding: 1.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: .35s;
}

.about-num-card:hover {
  border-color: transparent;
  background: transparent;
}

.about-num-card:hover .about-num-val {
  color: var(--g3);
}

.about-num-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 18px;
}

.about-num-icon.g { background: rgba(58,125,68,.1); color: var(--g3) }
.about-num-icon.b { background: rgba(74,127,255,.1); color: var(--blue) }
.about-num-icon.a { background: rgba(232,168,49,.1); color: var(--amber) }
.about-num-icon.r { background: rgba(217,68,82,.1); color: var(--red) }

.about-num-val {
  font-family: var(--ff-d);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1;
}

.about-num-label {
  font-size: .82rem;
  color: var(--gr);
  margin-top: 2px;
}

/* Reach / Global section */
.reach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.rc {
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r);
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: .35s;
}

.rc:hover { border-color: transparent }

.rc:hover .rc-region { color: var(--g3) }
.rc-emoji { font-size: 2rem; margin-bottom: .6rem }

.rc-region {
  font-family: var(--ff-d);
  font-size: 1.3rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: .3rem;
}

.rc-countries {
  font-size: .85rem;
  color: var(--gr);
  line-height: 1.5;
}

/* Mid-page CTA */
.mid-cta {
  padding: clamp(2rem, 5vh, 3.5rem) var(--px);
}

.mid-cta-inner {
  max-width: var(--max);
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.mid-cta-title {
  font-family: var(--ff-d);
  font-size: 1.3rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: .25rem;
}

.mid-cta-sub {
  font-size: .9rem;
  color: var(--gr);
  margin: 0;
}

.mid-cta-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

@media (max-width: 700px) {
  .mid-cta-inner {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }
  .mid-cta-actions { justify-content: center }
}

/* CTA section */
.cta {
  text-align: center;
  padding: clamp(5rem, 12vh, 9rem) var(--px);
  position: relative;
}

.cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 500px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(58,125,68,.05), transparent 60%);
  pointer-events: none;
}

.cta-title {
  font-family: var(--ff-d);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 600;
  text-transform: uppercase;
  line-height: .95;
  margin-bottom: 1rem;
  position: relative;
}

.cta-sub {
  font-size: 1.05rem;
  color: var(--gl);
  max-width: 440px;
  margin: 0 auto 2rem;
  line-height: 1.7;
  font-weight: 300;
  position: relative;
}

.cta-buttons {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Conference section */
.conf-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.conf-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color .4s cubic-bezier(.22,1,.36,1), background .4s cubic-bezier(.22,1,.36,1), transform .4s cubic-bezier(.22,1,.36,1);
}

.conf-card:hover {
  border-color: var(--border-h);
  background: var(--card-h);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,.2);
}

.conf-badge {
  font-family: var(--ff-m);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(58,125,68,.12);
  color: var(--g3);
  align-self: flex-start;
  margin-bottom: 1rem;
}

.conf-title {
  font-family: var(--ff-d);
  font-size: 1.35rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .3px;
  line-height: 1.15;
  margin-bottom: .4rem;
}

.conf-tag {
  font-family: var(--ff-m);
  font-size: 11px;
  color: var(--gr);
  letter-spacing: .5px;
  margin-bottom: .75rem;
}

.conf-desc {
  font-size: .88rem;
  color: var(--gr);
  line-height: 1.6;
  flex-grow: 1;
}

.conf-foot {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.conf-link {
  font-size: .85rem;
  font-weight: 600;
  color: var(--gr);
}

.conf-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--gr);
  font-size: 12px;
  transition: .3s;
  flex-shrink: 0;
}

.conf-card:hover .conf-arrow {
  background: var(--g1);
  border-color: var(--g1);
  color: #fff;
}

@media (max-width: 700px) {
  .conf-grid { grid-template-columns: 1fr }
}

/* Testimonials */
.test-header {
  position: relative;
  margin-bottom: .5rem;
}

.test-header-deco {
  font-family: var(--ff-d);
  font-size: clamp(6rem, 10vw, 9rem);
  font-weight: 700;
  color: var(--g1);
  opacity: .08;
  line-height: .8;
  position: absolute;
  top: -.5rem;
  left: -.25rem;
  pointer-events: none;
  user-select: none;
}

.test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.test-grid--single {
  grid-template-columns: minmax(0, 520px);
  justify-content: center;
}

.tc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: border-color .35s cubic-bezier(.22,1,.36,1), background .35s cubic-bezier(.22,1,.36,1), transform .35s cubic-bezier(.22,1,.36,1);
}

.tc:hover {
  border-color: var(--border-h);
  background: var(--card-h);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,.2);
}

.tc-top {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
}

.tc-avatar {
  width: 88px;
  height: 88px;
  border-radius: 16px;
  flex-shrink: 0;
  object-fit: cover;
  object-position: top;
}

.tc-meta {
  flex-grow: 1;
  min-width: 0;
}

.tc-mark {
  font-family: var(--ff-d);
  font-size: 2.5rem;
  color: var(--g1);
  opacity: .15;
  line-height: 1;
  flex-shrink: 0;
  align-self: flex-start;
}

.tc-text {
  font-size: .92rem;
  color: var(--gl);
  line-height: 1.7;
  font-style: italic;
  flex-grow: 1;
}

.tc-author { font-weight: 600; font-size: .88rem }
.tc-role { font-size: .78rem; color: var(--gr); margin-top: 2px }

/* Content page styles */
.page-header {
  padding: calc(68px + 3rem) var(--px) 2rem;
}

.page-content {
  padding: 2rem var(--px) 4rem;
}

.page-content .wrap {
  max-width: var(--max);
}

.page-content p {
  font-size: 1rem;
  color: var(--gl);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 1rem;
}

/* Detail page */
.detail-header {
  padding: calc(68px + 3rem) var(--px) 2rem;
}

.detail-content {
  padding: 0 var(--px) 4rem;
}

.detail-content .wrap {
  max-width: var(--max);
}

.detail-section {
  margin-bottom: 2.5rem;
}

.detail-section h3 {
  font-family: var(--ff-d);
  font-size: 1.2rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  color: var(--w);
}

.detail-section ul {
  padding-left: 0;
}

.detail-section li {
  font-size: .95rem;
  color: var(--gl);
  line-height: 1.7;
  padding: .35rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.detail-section li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .75rem;
  width: 6px;
  height: 6px;
  background: var(--g1);
  border-radius: 2px;
}

.detail-section p {
  font-size: .95rem;
  color: var(--gl);
  line-height: 1.75;
  margin-bottom: .75rem;
}

/* Info grid for course details */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 1rem;
}

.info-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.25rem;
}

.info-label {
  font-family: var(--ff-m);
  font-size: 10px;
  color: var(--gr);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: .4rem;
}

.info-value {
  font-size: .95rem;
  color: var(--w);
  line-height: 1.4;
}

/* Level badge */
.level-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-m);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.level-badge.l1 { background: rgba(58,125,68,.12); color: var(--g3) }
.level-badge.l2 { background: rgba(232,168,49,.12); color: var(--amber) }
.level-badge.l3, .level-badge.l4 { background: rgba(217,68,82,.12); color: var(--red) }
.level-badge.l5 { background: rgba(74,127,255,.12); color: var(--blue) }
.level-badge.sp { background: rgba(232,93,156,.12); color: var(--pink) }

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .88rem;
  color: var(--gr);
  margin-bottom: 1.5rem;
  transition: .25s;
}

.back-link:hover { color: var(--g3) }

/* Teachers / Board grid */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 1.5rem;
}

.person-card {
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: .35s;
}

.person-card:hover {
  border-color: transparent;
  background: transparent;
  transform: scale(1.05);
}

.person-card:hover .person-name {
  color: var(--g3);
}

a.person-card--link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.person-card--link:focus-visible {
  outline: 2px solid var(--g3);
  outline-offset: 4px;
  border-radius: var(--r);
}

.person-photo {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  object-fit: cover;
  margin: 0 auto .75rem;
  display: block;
}

.person-avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(58,125,68,.1);
  color: var(--g3);
  font-family: var(--ff-d);
  font-size: 1.1rem;
  font-weight: 600;
  display: grid;
  place-items: center;
  margin: 0 auto .75rem;
}

.person-name {
  font-family: var(--ff-d);
  font-size: .95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .3px;
}

/* Course teacher grid (inside course detail info section) */
.course-teachers {
  padding-top: .25rem;
}

.course-teachers-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: .75rem;
}

.course-teacher {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 80px;
  transition: .3s;
}

.course-teacher:hover {
  transform: scale(1.06);
}

.course-teacher:hover .course-teacher-name {
  color: var(--g3);
}

a.course-teacher--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.course-teacher--link:focus-visible {
  outline: 2px solid var(--g3);
  outline-offset: 4px;
  border-radius: 8px;
}

.course-teacher-photo {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  object-fit: cover;
  display: block;
  margin-bottom: .5rem;
}

.course-teacher-name {
  font-family: var(--ff-d);
  font-size: .78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .3px;
  line-height: 1.2;
  max-width: 90px;
  transition: color .3s;
}

/* Coming soon placeholder */
.coming-soon {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 4rem 2rem;
  text-align: center;
  margin-top: 2rem;
}

.coming-soon-title {
  font-family: var(--ff-d);
  font-size: 1.5rem;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: .5rem;
}

.coming-soon-text {
  font-size: .95rem;
  color: var(--gr);
  line-height: 1.6;
}

/* Events page */
.event-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 2rem 1.75rem;
  margin-bottom: 1.25rem;
  transition: .35s;
}

.event-card:hover {
  border-color: var(--border-h);
  background: var(--card-h);
}

/* ===========================================================
   Event card — unified "feature" layout
   Photo or dual-logo panel on the left, editorial column on the right.
   =========================================================== */
.event-card.ec-feature {
  position: relative; padding: 0 !important; overflow: hidden;
  display: grid; grid-template-columns: 11rem 1fr;
  min-height: 16rem;
}
.ec-feature-side {
  position: relative;
  background-size: cover; background-position: center;
}
.ec-feature-side::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(13,17,23,.35);
}
.ec-feature-side.ec-logos {
  background: linear-gradient(135deg, #0d1117 0%, #08291a 100%);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 1.5rem;
  padding: 1.5rem 1rem;
}
.ec-feature-side.ec-logos::after { display: none; }
.ec-feature-side.ec-logos img {
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .94;
}
/* Wide wordmark logo (Matchplan, ~5:1) — sized by height so its width matches the square crest's footprint */
.ec-feature-side.ec-logos img:nth-child(1) {
  height: 1.6rem;
  max-width: 90%;
}
/* Square crest (DSHS Köln, ~1:1) — sized by width so it visually balances the wide logo above */
.ec-feature-side.ec-logos img:nth-child(2) {
  height: 4.5rem;
  max-width: 75%;
}
.ec-feature-body {
  padding: 2rem;
  display: flex; flex-direction: column; justify-content: center;
  border-left: 1px solid var(--border);
}
.ec-feature-tag {
  font-family: var(--ff-m, monospace);
  font-size: .72rem; letter-spacing: .25em; text-transform: uppercase;
  color: var(--g3, #00d27a); margin-bottom: .75rem;
}
@media (max-width: 720px) {
  .event-card.ec-feature { grid-template-columns: 1fr; min-height: 0; }
  .ec-feature-side { height: 12rem; }
  .ec-feature-body { border-left: none; border-top: 1px solid var(--border); }
}

.event-title {
  font-family: var(--ff-d);
  font-size: 1.4rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: .75rem;
}

.event-content {
  font-size: .92rem;
  color: var(--gl);
  line-height: 1.7;
}

.event-content p {
  margin-bottom: .75rem;
}

.event-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .88rem;
  color: var(--g3);
  margin-top: .75rem;
  transition: .25s;
}

.event-link:hover { opacity: .8 }

/* Internship detail */
.internship-content {
  font-size: .95rem;
  color: var(--gl);
  line-height: 1.75;
}

.internship-content p {
  margin-bottom: 1rem;
}

/* 404 page */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.error-code {
  font-family: var(--ff-d);
  font-size: 8rem;
  font-weight: 600;
  color: var(--g1);
  line-height: 1;
  opacity: .3;
}

.error-title {
  font-family: var(--ff-d);
  font-size: 2rem;
  font-weight: 600;
  text-transform: uppercase;
  margin: 1rem 0 .5rem;
}

.error-text {
  color: var(--gr);
  margin-bottom: 2rem;
}

/* Info grid wide item (for teachers spanning full width) */
.info-item-wide {
  grid-column: 1 / -1;
}

/* Detail text (course/internship descriptions) */
.detail-text {
  font-size: .95rem;
  color: var(--gl);
  line-height: 1.75;
}

.detail-text p {
  margin-bottom: 1rem;
}

.detail-text .detail-section-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--w);
  margin: 2rem 0 .75rem;
  letter-spacing: .01em;
}

.detail-text .detail-section-heading:first-child {
  margin-top: 0;
}

.detail-text ul {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.detail-text ul li {
  margin-bottom: .35rem;
}

/* Detail CTA bar */
.detail-cta {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.detail-cta-inner {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.detail-cta-title {
  font-family: var(--ff-d);
  font-size: 1.3rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: .25rem;
}

.detail-cta-text {
  font-size: .9rem;
  color: var(--gr);
  margin: 0;
}

/* Section divider heading style */
.section-divider-heading {
  font-family: var(--ff-d);
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gl);
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
  margin-top: 3rem;
}

/* Internship card improvements */
.internship-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: .75rem;
}

.internship-meta-tag {
  font-family: var(--ff-m);
  font-size: 10px;
  color: var(--gr);
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: .5px;
}

/* Events page improvements */
.event-badge {
  display: inline-block;
  font-family: var(--ff-m);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: .75rem;
}

.event-badge.conference {
  background: rgba(58,125,68,.12);
  color: var(--g3);
}

.event-badge.masterclass {
  background: rgba(232,168,49,.12);
  color: var(--amber);
}

/* About page improvements */
.about-overview-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 2.5rem 2rem;
  margin-bottom: 2rem;
}

.about-overview-card p {
  font-size: 1rem;
  color: var(--gl);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-overview-card p:last-child {
  margin-bottom: 0;
}

/* Contact page */
.contact-email-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 2rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.contact-email-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(58,125,68,.1);
  color: var(--g3);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-email-label {
  font-family: var(--ff-d);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: .25rem;
}

.contact-email-addr {
  font-family: var(--ff-m);
  font-size: .95rem;
  color: var(--g3);
  transition: opacity .25s;
}

.contact-email-addr:hover { opacity: .8 }

.contact-email-note {
  font-size: .82rem;
  color: var(--gr);
  margin-top: .35rem;
  margin-bottom: 0;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  transition: border-color .35s cubic-bezier(.22,1,.36,1), background .35s cubic-bezier(.22,1,.36,1), transform .35s cubic-bezier(.22,1,.36,1);
}

.social-card:hover {
  border-color: var(--border-h);
  background: var(--card-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,.15);
}

.social-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
}

/* Platform-specific icon colors */
.social-card:nth-child(1) .social-card-icon { background: #0A66C2 }  /* LinkedIn */
.social-card:nth-child(2) .social-card-icon { background: #1877F2 }  /* Facebook */
.social-card:nth-child(3) .social-card-icon { background: #000; border: 1px solid var(--border) }  /* X English */
.social-card:nth-child(4) .social-card-icon { background: #000; border: 1px solid var(--border) }  /* X Arabic */
.social-card:nth-child(5) .social-card-icon { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) }  /* Instagram */
.social-card:nth-child(6) .social-card-icon { background: #000; border: 1px solid var(--border) }  /* TikTok */

.social-card-body {
  flex-grow: 1;
  min-width: 0;
}

.social-card-name {
  font-family: var(--ff-d);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .3px;
  line-height: 1.2;
}

.social-card-handle {
  font-family: var(--ff-m);
  font-size: .75rem;
  color: var(--gr);
  margin-top: .2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.social-card-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--gr);
  font-size: 12px;
  transition: background .3s, border-color .3s, color .3s;
  flex-shrink: 0;
}

.social-card:hover .social-card-arrow {
  background: var(--g1);
  border-color: var(--g1);
  color: #fff;
}

@media (max-width: 768px) {
  .social-grid { grid-template-columns: 1fr }
  .contact-email-card { flex-direction: column; text-align: center }
}

/* Blog article meta */
.blog-meta {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-top: .75rem;
  font-family: var(--ff-m);
  font-size: 12px;
  color: var(--gr);
  letter-spacing: .5px;
}

.blog-body { max-width: 720px; }

.bc-author { display: inline-flex; align-items: center; gap: 6px; }
.bc-author-avatar {
  width: 20px; height: 20px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-block;
  vertical-align: middle;
}
.blog-author { display: inline-flex; align-items: center; gap: 8px; }
.blog-author-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--bd);
}

.blog-body figure { margin: 28px 0; }
.blog-body figure img,
.blog-body figure video,
.blog-body > img,
.blog-body > video {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 0 auto;
}
.blog-body video { background: #000; width: 100%; }
.blog-body figcaption {
  font-size: .9rem;
  color: var(--gr);
  margin-top: 8px;
  text-align: center;
  line-height: 1.5;
}
.blog-body h2,
.blog-body h3 {
  margin: 36px 0 12px;
  color: var(--w);
  font-weight: 700;
  letter-spacing: -.01em;
}
.blog-body h2 { font-size: 1.5rem; }
.blog-body h3 { font-size: 1.2rem; }
.blog-body strong { color: var(--w); }
.blog-body em { color: var(--gl); }
.blog-body ul,
.blog-body ol { margin: 16px 0 16px 24px; padding: 0; }
.blog-body li { margin: 6px 0; line-height: 1.7; }
.blog-body hr {
  border: 0;
  border-top: 1px solid var(--bd);
  margin: 32px 0;
}

@media (max-width: 480px) {
  .info-grid { grid-template-columns: 1fr }
}


/* === nav.css === */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  background: rgba(7,8,8,.8);
  border-bottom: 1px solid rgba(255,255,255,.03);
  transition: background .4s;
}

nav.scrolled {
  background: rgba(7,8,8,.95);
}

.nav-inner {
  width: 100%;
  max-width: var(--max);
  padding: 0 var(--px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.nav-logo-t {
  font-family: var(--ff-d);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-links a {
  color: var(--gl);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .3px;
  padding: 10px 16px;
  border-radius: 6px;
  transition: .25s;
}

.nav-links a:hover {
  color: var(--w);
  background: rgba(255,255,255,.04);
}

.nav-links a.active {
  color: var(--w);
}

.nav-links .nav-cta {
  margin-left: 8px;
  padding: 9px 20px;
  background: var(--g1);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  transition: background .3s, transform .3s, box-shadow .3s;
}

.nav-links .nav-cta:hover {
  background: var(--g2);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(58,125,68,.3);
}

.mob-tog {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.mob-tog span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--w);
  margin: 5px 0;
  border-radius: 1px;
  transition: .3s;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(7,8,8,.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 999;
  padding: 2rem var(--px);
  display: flex;
  flex-direction: column;
  gap: 0;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
}

.mobile-menu.open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-menu a {
  display: block;
  padding: 1rem 0;
  font-family: var(--ff-d);
  font-size: 1.3rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gl);
  border-bottom: 1px solid var(--border);
  transition: .25s;
}

.mobile-menu a:hover {
  color: var(--g3);
}

.mobile-menu .nav-cta {
  display: inline-flex;
  margin-top: 1rem;
  text-align: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .nav-links { display: none }
  .mob-tog { display: block }
}


/* === hero.css === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at center, transparent 99px, rgba(58,125,68,.04) 100px, rgba(58,125,68,.04) 101px, transparent 102px),
    linear-gradient(0deg, transparent 399px, rgba(58,125,68,.04) 400px, rgba(58,125,68,.04) 401px, transparent 402px),
    linear-gradient(90deg, transparent 399px, rgba(58,125,68,.04) 400px, rgba(58,125,68,.04) 401px, transparent 402px);
  mask-image: radial-gradient(ellipse 55% 50% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 55% 50% at 50% 50%, black, transparent);
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(58,125,68,.06), transparent 65%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  background: rgba(58,125,68,.08);
  border: 1px solid rgba(58,125,68,.18);
  border-radius: 100px;
  font-family: var(--ff-m);
  font-size: 11px;
  color: var(--g3);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 2rem;
  width: fit-content;
  animation: fadeUp .7s ease both;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--g3);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

.hero-title {
  font-family: var(--ff-d);
  font-size: clamp(3.5rem, 7.5vw, 6.5rem);
  font-weight: 600;
  line-height: .93;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeUp .7s ease .1s both;
}

.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--gl);
  max-width: 480px;
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 2rem;
  animation: fadeUp .7s ease .2s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp .7s ease .3s both;
}

/* Hero right: stat cards */
.hero-right {
  animation: fadeUp .7s ease .4s both;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hero-stat-card {
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r);
  padding: 1.5rem;
  transition: all .35s;
}

.hero-stat-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.hero-stat-card:hover {
  border-color: rgba(58,125,68,.25);
  background: rgba(58,125,68,.04);
}

.hero-stat-num {
  font-family: var(--ff-d);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--g3);
  line-height: 1;
}

.hero-stat-label {
  font-family: var(--ff-m);
  font-size: 10px;
  color: var(--gr);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 6px;
}

.hero-stat-card.wide {
  grid-column: span 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-stat-bar {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-left: 1.5rem;
  overflow: hidden;
}

.hero-stat-bar-fill {
  height: 100%;
  background: var(--g1);
  border-radius: 2px;
  transform-origin: left;
  animation: grow 2s ease 1s both;
}

/* Ticker */
.ticker {
  background: var(--g1);
  padding: 13px 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  animation: scroll 35s linear infinite;
}

.ticker-item {
  font-family: var(--ff-d);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #fff;
  padding: 0 2rem;
  display: inline-flex;
  align-items: center;
  gap: 2rem;
}

.ticker-item .d {
  width: 4px;
  height: 4px;
  background: rgba(255,255,255,.5);
  transform: rotate(45deg);
}

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem }
  .hero-right { max-width: 500px }
}

@media (max-width: 768px) {
  .hero-stats-grid { grid-template-columns: 1fr 1fr }
  .hero-stat-card.wide { grid-column: span 2; flex-direction: column; align-items: flex-start; gap: 8px }
  .hero-stat-bar { margin-left: 0; width: 100% }
}

@media (max-width: 480px) {
  .hero-stats-grid { grid-template-columns: 1fr }
  .hero-stat-card.wide { grid-column: span 1 }
  .hero-stat-card { padding: 1rem }
}


/* === cards.css === */
/* Course detail cards */
.courses-detail { margin-top: 3rem }

.courses-detail-heading {
  font-family: var(--ff-d);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gl);
  margin-bottom: 1.25rem;
}

.courses-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1rem;
}

.cc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 1.75rem 1.5rem;
  transition: border-color .4s cubic-bezier(.22,1,.36,1), background .4s cubic-bezier(.22,1,.36,1), transform .4s cubic-bezier(.22,1,.36,1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.cc:hover {
  border-color: var(--border-h);
  background: var(--card-h);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,.2);
}

.cc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.cc-level {
  font-family: var(--ff-m);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 6px;
}

.cc-level.l1 { background: rgba(58,125,68,.12); color: var(--g3) }
.cc-level.l2 { background: rgba(232,168,49,.12); color: var(--amber) }
.cc-level.l3, .cc-level.l4 { background: rgba(217,68,82,.12); color: var(--red) }
.cc-level.l5 { background: rgba(74,127,255,.12); color: var(--blue) }
.cc-level.sp { background: rgba(232,93,156,.12); color: var(--pink) }

.cc-dur {
  font-family: var(--ff-m);
  font-size: 10px;
  color: var(--gr);
}

.cc-title {
  font-family: var(--ff-d);
  font-size: 1.35rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .3px;
  margin-bottom: .6rem;
  line-height: 1.15;
}

.cc-desc {
  font-size: .88rem;
  color: var(--gr);
  line-height: 1.6;
  flex-grow: 1;
}

.cc-foot {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.cc-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cc-tag {
  font-size: 11px;
  color: var(--gr);
  display: flex;
  align-items: center;
  gap: 4px;
}

.cc-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--gr);
  font-size: 12px;
  transition: .3s;
  flex-shrink: 0;
}

.cc:hover .cc-arrow {
  background: var(--g1);
  border-color: var(--g1);
  color: #fff;
}

/* Blog cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 1.5rem;
}

.bc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  overflow: hidden;
  transition: border-color .4s cubic-bezier(.22,1,.36,1), background .4s cubic-bezier(.22,1,.36,1), transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s cubic-bezier(.22,1,.36,1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.bc:hover {
  border-color: var(--border-h);
  background: var(--card-h);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,.3);
}

.bc-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.bc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.22,1,.36,1);
}

.bc:hover .bc-img img {
  transform: scale(1.05);
}

.bc-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.bc-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .75rem;
}

/* Blog hero image (detail page) */
.blog-hero {
  margin-bottom: 2rem;
  border-radius: var(--rl);
  overflow: hidden;
  aspect-ratio: 21 / 9;
}

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

@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr }
  .blog-hero { aspect-ratio: 16 / 9 }
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color .4s cubic-bezier(.22,1,.36,1), background .4s cubic-bezier(.22,1,.36,1), transform .4s cubic-bezier(.22,1,.36,1);
}

.service-card:hover {
  border-color: var(--border-h);
  background: var(--card-h);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,.2);
}

.service-title {
  font-family: var(--ff-d);
  font-size: 1.35rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .3px;
  margin-bottom: .6rem;
  line-height: 1.15;
}

.service-desc {
  font-size: .88rem;
  color: var(--gr);
  line-height: 1.6;
  flex-grow: 1;
}

.service-foot {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.service-link {
  font-size: .85rem;
  font-weight: 600;
  color: var(--gr);
}

.service-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--gr);
  font-size: 12px;
  transition: .3s;
  flex-shrink: 0;
}

.service-card:hover .service-arrow {
  background: var(--g1);
  border-color: var(--g1);
  color: #fff;
}

@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr }
}

/* Partners */
.partners-section { margin-top: 3rem }

.partners-label {
  font-family: var(--ff-d);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gl);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
}

.pc {
  background: transparent;
  border: none;
  padding: .75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .3s ease;
}

.pc:hover {
  transform: scale(1.08);
}

/* Fixed-size container so all logos occupy the same visual space */
.pc-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Club crests: square-ish, use height constraint */
.pc--club .pc-logo-wrap {
  width: 80px;
  height: 80px;
}

.pc--club .pc-logo {
  max-width: 80px;
  max-height: 80px;
}

/*
  Tech/industry logos: match apparent height across logos.
  Use a fixed height and let width flex — be aware of transparent
  padding baked into PNGs (crop padding before deploying).
*/
.pc--tech .pc-logo-wrap {
  height: 28px;
}

.pc--tech .pc-logo {
  height: 28px;
  width: auto;
  max-width: none;
}

/* Peak Analysis Co. — vertical logo needs more height to match visual weight */
.pc--tech .pc-logo[alt="Peak Analysis Co."] {
  height: 52px;
}

/* GBE Expert Hub — prominent display size */
.pc--tech .pc-logo[alt="GBE Expert Hub"] {
  height: 80px;
}

.pc-logo {
  display: block;
  object-fit: contain;
  opacity: .8;
  transition: opacity .3s ease;
}

.pc:hover .pc-logo {
  opacity: 1;
}

.pc-name {
  font-family: var(--ff-d);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--gr);
  margin-top: .6rem;
  transition: color .3s ease;
}

.pc:hover .pc-name {
  color: var(--w);
}

@media (max-width: 768px) {
  .courses-cards { grid-template-columns: 1fr }
  .partners-grid { gap: 2rem }
}

@media (max-width: 480px) {
  .blog-grid { grid-template-columns: 1fr }
  .partners-grid { gap: 1.5rem }
  .cc { padding: 1.25rem 1rem }
  .pc--club .pc-logo-wrap { width: 64px; height: 64px }
  .pc--club .pc-logo { max-width: 64px; max-height: 64px }
  .pc--tech .pc-logo-wrap { height: 22px }
  .pc--tech .pc-logo { height: 22px }
}


/* === pathway.css === */
/* Course Pathway */
.pathway-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2.5rem;
  margin-top: 2.5rem;
  align-items: start;
}

.pathway-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pathway-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pathway-node {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--ff-d);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  transition: .3s;
}

.pathway-node:hover { transform: scale(1.08) }

.pathway-node.g { background: var(--g1); box-shadow: 0 4px 16px rgba(58,125,68,.25) }
.pathway-node.am { background: var(--amber); box-shadow: 0 4px 16px rgba(232,168,49,.25) }
.pathway-node.rd { background: var(--red); box-shadow: 0 4px 16px rgba(217,68,82,.25) }
.pathway-node.bl { background: var(--blue); box-shadow: 0 4px 16px rgba(74,127,255,.25) }

.pathway-info {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1rem 1.25rem;
  transition: .35s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.pathway-info:hover {
  border-color: var(--border-h);
  background: var(--card-h);
}

.pathway-info-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.pathway-info-title {
  font-family: var(--ff-d);
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.pathway-info-dur {
  font-family: var(--ff-m);
  font-size: 10px;
  color: var(--gr);
  letter-spacing: .5px;
}

.pathway-info-desc {
  font-size: .82rem;
  color: var(--gr);
  line-height: 1.5;
}

.pathway-connector {
  width: 2px;
  height: 20px;
  background: var(--border);
  margin-left: 27px;
}

/* Standalone panel */
.standalone-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.standalone-heading {
  font-family: var(--ff-d);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gl);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.standalone-heading::before {
  content: '';
  width: 14px;
  height: 1px;
  background: var(--pink);
}

.standalone-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 1.75rem 1.5rem;
  transition: .4s cubic-bezier(.22,1,.36,1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
}

.standalone-card:hover {
  border-color: var(--border-h);
  background: var(--card-h);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,.2);
}

.standalone-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--pink);
  opacity: 0;
  transition: .3s;
}

.standalone-card:hover::before { opacity: 1 }

.standalone-badge {
  font-family: var(--ff-m);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--pink);
  background: rgba(232,93,156,.1);
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 10px;
}

.standalone-title {
  font-family: var(--ff-d);
  font-size: 1.3rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.standalone-desc {
  font-size: .85rem;
  color: var(--gr);
  line-height: 1.55;
  margin-bottom: 12px;
}

.standalone-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.standalone-tag {
  font-family: var(--ff-m);
  font-size: 10px;
  color: var(--gr);
  letter-spacing: .3px;
}

@media (max-width: 1024px) {
  .pathway-layout { grid-template-columns: 1fr }
}


/* === footer.css === */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem var(--px) 1.5rem;
}

footer .wrap { max-width: var(--max) }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: .75rem;
}

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

.footer-brand-name {
  font-family: var(--ff-d);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.footer-desc {
  font-size: .82rem;
  color: var(--gr);
  line-height: 1.6;
  max-width: 280px;
}

.footer-col-h {
  font-family: var(--ff-d);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--wd);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.footer-links a {
  color: var(--gr);
  font-size: .82rem;
  padding: 4px 0;
  transition: .25s;
}

.footer-links a:hover { color: var(--g3) }

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 1.25rem;
}

.footer-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--gl);
  background: rgba(255,255,255,.04);
  transition: transform .25s cubic-bezier(.22,1,.36,1),
              background .25s cubic-bezier(.22,1,.36,1),
              border-color .25s cubic-bezier(.22,1,.36,1),
              color .25s cubic-bezier(.22,1,.36,1),
              box-shadow .25s cubic-bezier(.22,1,.36,1);
}

.footer-social-btn:hover {
  transform: translateY(-3px);
  color: #fff;
}

.footer-social--linkedin:hover {
  background: #0A66C2;
  border-color: #0A66C2;
  box-shadow: 0 4px 16px rgba(10,102,194,.35);
}

.footer-social--facebook:hover {
  background: #1877F2;
  border-color: #1877F2;
  box-shadow: 0 4px 16px rgba(24,119,242,.35);
}

.footer-social--x-english:hover,
.footer-social--x-arabic:hover {
  background: #fff;
  border-color: #fff;
  color: #000;
  box-shadow: 0 4px 16px rgba(255,255,255,.2);
}

.footer-social--instagram:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border-color: #dc2743;
  box-shadow: 0 4px 16px rgba(220,39,67,.35);
}

.footer-social--tiktok:hover {
  background: #ff0050;
  border-color: #ff0050;
  box-shadow: 0 4px 16px rgba(255,0,80,.35);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  font-size: .75rem;
  color: var(--gr);
}

.footer-bottom a {
  color: var(--gr);
  transition: .25s;
}

.footer-bottom a:hover { color: var(--g3) }

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

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center }
}

@media (max-width: 480px) {
  .footer-socials { flex-wrap: wrap; justify-content: center }
}


/* === utilities.css === */
/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px) }
  to { opacity: 1; transform: translateY(0) }
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(92,184,104,.4) }
  50% { opacity: .6; box-shadow: 0 0 0 4px rgba(92,184,104,0) }
}

@keyframes grow {
  from { transform: scaleX(0) }
}

@keyframes scroll {
  to { transform: translateX(-50%) }
}

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

/* Scroll reveal */
.rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}

.rv.vis {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr }
  .conf-card { grid-template-columns: 1fr }
  .conf-visual { min-height: 280px }
  .test-grid { grid-template-columns: repeat(2, 1fr) }
}

@media (max-width: 768px) {
  .reach-grid, .test-grid { grid-template-columns: 1fr }
  .about-features { grid-template-columns: 1fr }
  .test-header-deco { font-size: 5rem }
}

/* Visually hidden (for a11y) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Skip navigation link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 1100;
  padding: .75rem 1.5rem;
  background: var(--g1);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--r);
  text-decoration: none;
}

.skip-link:focus {
  top: .5rem;
}

/* Focus visible — keyboard accessibility (WCAG 2.4.7) */
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Utility classes */
.text-center { text-align: center; }
.justify-center { justify-content: center; }
.mb-lg { margin-bottom: 2.5rem; }
.mt-xl { margin-top: 3rem; }

/* Respect reduced motion preference (WCAG 2.3.3) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .rv {
    opacity: 1;
    transform: none;
  }
}


/* === forms.css === */
/* =========================================================
   forms.css — Dark-theme application form styles
   Uses design tokens from tokens.css
   ========================================================= */

/* Info bar — quick chips (cost / duration / language) */
.form-info-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 2rem;
}

.form-info-chip {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: .75rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 120px;
}

.form-info-label {
  font-family: var(--ff-m);
  font-size: 10px;
  color: var(--gr);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.form-info-value {
  font-size: .9rem;
  color: var(--w);
  line-height: 1.35;
}

/* Form card container */
.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 2rem 2rem 2.5rem;
}

/* 2-column responsive grid */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
}

/* Single field wrapper */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group--wide {
  grid-column: 1 / -1;
}

/* Label */
.form-label {
  font-family: var(--ff-m);
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.form-req {
  color: var(--red);
  margin-left: 2px;
}

/* Shared input/select/textarea styles */
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: var(--ff-b);
  font-size: .92rem;
  color: var(--w);
  transition: border-color .25s, box-shadow .25s;
  outline: none;
  -webkit-appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gr);
  opacity: .55;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--g3);
  box-shadow: 0 0 0 3px rgba(92, 184, 104, .15);
}

/* Select arrow */
.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%239198a1' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-select option {
  background: var(--dark);
  color: var(--w);
}

/* Textarea */
.form-textarea {
  resize: vertical;
  min-height: 80px;
}

/* ── Helper note ── */
.form-note {
  font-size: .78rem;
  color: var(--gr);
  opacity: .7;
  line-height: 1.4;
}

/* ── Inline field error message ── */
.form-error-msg {
  font-size: .78rem;
  color: var(--red);
  min-height: 0;
  transition: min-height .2s;
}

.form-error-msg:empty {
  display: none;
}

/* Invalid state on inputs */
.form-input.invalid,
.form-select.invalid,
.form-textarea.invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(217, 68, 82, .12);
}

/* ── Radio button group ── */
.form-radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-radio-group.invalid .form-radio-mark {
  border-color: var(--red);
}

.form-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--dark);
  transition: border-color .2s, background .2s;
}

.form-radio:hover {
  border-color: var(--border-h);
  background: var(--card-h);
}

.form-radio input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.form-radio-mark {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-h);
  transition: border-color .2s, background .2s;
  position: relative;
}

.form-radio input:checked + .form-radio-mark {
  border-color: var(--g3);
  background: var(--g3);
}

.form-radio input:checked + .form-radio-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dark);
  transform: translate(-50%, -50%);
}

.form-radio input:focus-visible + .form-radio-mark {
  box-shadow: 0 0 0 3px rgba(92, 184, 104, .3);
}

.form-radio input:checked ~ .form-radio-text {
  color: var(--w);
}

.form-radio-text {
  font-size: .9rem;
  color: var(--gl);
  line-height: 1.3;
}

/* ── Checkbox group ── */
.form-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-checkbox-group.invalid .form-checkbox-mark {
  border-color: var(--red);
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--dark);
  transition: border-color .2s, background .2s;
}

.form-checkbox:hover {
  border-color: var(--border-h);
  background: var(--card-h);
}

.form-checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.form-checkbox-mark {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 4px;
  border: 2px solid var(--border-h);
  transition: border-color .2s, background .2s;
  position: relative;
}

.form-checkbox input:checked + .form-checkbox-mark {
  border-color: var(--g3);
  background: var(--g3);
}

.form-checkbox input:checked + .form-checkbox-mark::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 9px;
  border: solid var(--dark);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form-checkbox input:focus-visible + .form-checkbox-mark {
  box-shadow: 0 0 0 3px rgba(92, 184, 104, .3);
}

.form-checkbox input:checked ~ .form-checkbox-text {
  color: var(--w);
}

.form-checkbox-text {
  font-size: .9rem;
  color: var(--gl);
  line-height: 1.3;
}

/* ── Linear scale (1–N horizontal radio row) ── */
.form-scale {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-scale.invalid .form-scale-bubble {
  border-color: var(--red);
}

.form-scale-labels {
  display: flex;
  justify-content: space-between;
  padding: 0 4px;
}

.form-scale-label {
  font-size: .75rem;
  color: var(--gr);
  text-transform: uppercase;
  letter-spacing: .5px;
  font-family: var(--ff-m);
}

.form-scale-options {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.form-scale-option {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form-scale-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.form-scale-bubble {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border-h);
  background: var(--dark);
  display: grid;
  place-items: center;
  font-size: .9rem;
  font-weight: 600;
  color: var(--gl);
  transition: border-color .2s, background .2s, color .2s, transform .15s;
}

.form-scale-option:hover .form-scale-bubble {
  border-color: var(--g2);
  transform: scale(1.08);
}

.form-scale-option input:checked + .form-scale-bubble {
  border-color: var(--g3);
  background: var(--g3);
  color: var(--dark);
}

.form-scale-option input:focus-visible + .form-scale-bubble {
  box-shadow: 0 0 0 3px rgba(92, 184, 104, .3);
}

/* ── File upload ── */
.form-file-area {
  position: relative;
}

.form-file-area.invalid .form-file-label {
  border-color: var(--red);
}

.form-file-input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  overflow: hidden;
}

.form-file-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 20px;
  border: 2px dashed var(--border-h);
  border-radius: 8px;
  background: var(--dark);
  cursor: pointer;
  text-align: center;
  color: var(--gr);
  transition: border-color .25s, background .25s;
}

.form-file-label:hover,
.form-file-label.dragover {
  border-color: var(--g3);
  background: rgba(92, 184, 104, .04);
}

.form-file-label svg {
  opacity: .5;
}

.form-file-text {
  font-size: .85rem;
}

.form-file-chosen {
  font-size: .82rem;
  color: var(--g3);
  word-break: break-all;
}

.form-file-chosen:empty {
  display: none;
}

/* ── Consent checkbox ── */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--dark);
  transition: border-color .2s;
}

.form-consent:hover {
  border-color: var(--border-h);
}

.form-consent.invalid {
  border-color: var(--red);
}

.form-consent input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.form-consent-mark {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 1px;
  border-radius: 4px;
  border: 2px solid var(--border-h);
  transition: border-color .2s, background .2s;
  position: relative;
}

.form-consent input:checked + .form-consent-mark {
  border-color: var(--g3);
  background: var(--g3);
}

.form-consent input:checked + .form-consent-mark::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 5px;
  width: 6px;
  height: 10px;
  border: solid var(--dark);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form-consent input:focus-visible + .form-consent-mark {
  box-shadow: 0 0 0 3px rgba(92, 184, 104, .3);
}

.form-consent-text {
  font-size: .85rem;
  color: var(--gl);
  line-height: 1.55;
}

.form-consent-text a {
  color: var(--g3);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Error banner ── */
.form-error-banner {
  background: rgba(217, 68, 82, .08);
  border: 1px solid rgba(217, 68, 82, .25);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-size: .88rem;
  color: var(--red);
  margin-top: 1.25rem;
}

.form-error-banner a {
  color: var(--red);
  text-decoration: underline;
}

/* ── Submit button ── */
.form-submit {
  margin-top: 1.5rem;
  width: 100%;
  justify-content: center;
  font-size: 15px;
  padding: 16px 30px;
}

.form-submit:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── Success card ── */
.form-success {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 3rem 2rem;
  text-align: center;
}

.form-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(58, 125, 68, .12);
  color: var(--g3);
  font-size: 1.75rem;
  display: grid;
  place-items: center;
  margin: 0 auto 1.25rem;
}

.form-success-title {
  font-family: var(--ff-d);
  font-size: 1.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: .75rem;
}

.form-success-text {
  font-size: .95rem;
  color: var(--gl);
  line-height: 1.75;
  max-width: 480px;
  margin: 0 auto;
}

.form-success-text a {
  color: var(--g3);
}

/* ── Newsletter ── */

/* Header icon — green circle with send icon */
.nl-header-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(58, 125, 68, .12);
  color: var(--g3);
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
  box-shadow: 0 0 24px rgba(58, 125, 68, .15);
}

/* Lock icon on login card */
.nl-lock-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(58, 125, 68, .08);
  color: var(--gr);
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
}

/* Section divider within composer */
.nl-section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.nl-section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.nl-section-label {
  font-family: var(--ff-m);
  font-size: 10px;
  font-weight: 600;
  color: var(--g3);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Recipient count badge */
.nl-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(58, 125, 68, .1);
  border: 1px solid rgba(58, 125, 68, .2);
  border-radius: 20px;
  padding: 3px 12px;
  font-family: var(--ff-m);
  font-size: 11px;
  font-weight: 600;
  color: var(--g3);
  letter-spacing: .5px;
}

/* Progress bar animated stripe while sending */
.nl-progress-fill.sending {
  background: repeating-linear-gradient(
    -45deg,
    var(--g3),
    var(--g3) 8px,
    rgba(58, 125, 68, .5) 8px,
    rgba(58, 125, 68, .5) 16px
  );
  background-size: 22.6px 100%;
  animation: nl-stripe .6s linear infinite;
}

@keyframes nl-stripe {
  0% { background-position: 0 0; }
  100% { background-position: 22.6px 0; }
}

.nl-login-row {
  display: flex;
  gap: 10px;
}

.nl-login-row .form-input {
  flex: 1;
}

.nl-login-row .btn {
  white-space: nowrap;
}

.nl-recipients-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.nl-csv-btn {
  font-size: 13px;
  padding: 6px 14px;
  cursor: pointer;
}

/* ── Attachment dropzone ─────────────────────────────── */
.nl-attach-dropzone {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--w);
  font-family: var(--ff-m);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .3s cubic-bezier(.22,1,.36,1), color .3s cubic-bezier(.22,1,.36,1), transform .3s cubic-bezier(.22,1,.36,1);
  width: auto;
  max-width: 100%;
}
.nl-attach-dropzone:hover {
  border-color: var(--g1);
  color: var(--g3);
  transform: translateY(-2px);
}
.nl-attach-dropzone:hover .nl-attach-icon { color: var(--g3); }
.nl-attach-dropzone:active { transform: scale(.97); }
.nl-attach-icon {
  flex-shrink: 0;
  color: var(--gl);
  transition: color .3s cubic-bezier(.22,1,.36,1);
}
.nl-attach-label { font-size: 13px; }
.nl-attach-hint {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--gl);
  margin-top: 6px;
  padding-left: 2px;
  letter-spacing: 0;
  text-transform: none;
  opacity: .75;
}
.nl-attachment-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}
.nl-attachment-list:empty { margin-top: 0; }
.nl-attachment-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--surface-2, #161B22);
  border: 1px solid var(--border, #30363D);
  border-radius: 6px;
  font-size: 13px;
}
.nl-attachment-row .nl-attachment-icon {
  color: var(--text-muted, #8B949E);
  flex-shrink: 0;
}
.nl-attachment-row .nl-attachment-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text, #fff);
}
.nl-attachment-row .nl-attachment-size {
  color: var(--text-muted, #8B949E);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.nl-attachment-remove {
  background: none;
  border: none;
  color: var(--text-muted, #8B949E);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color .15s ease, background .15s ease;
}
.nl-attachment-remove:hover {
  color: #FF6B6B;
  background: rgba(255,107,107,0.1);
}
.nl-attachment-total {
  font-size: 12px;
  color: var(--text-muted, #8B949E);
  padding-left: 2px;
  margin-top: 2px;
}
@media (max-width: 560px) {
  .nl-attach-dropzone { flex-wrap: wrap; }
  .nl-attach-hint { margin-left: 0; flex-basis: 100%; text-align: left; }
}

.nl-actions {
  display: flex;
  gap: 10px;
  margin-top: 1.5rem;
}

.nl-actions .btn {
  flex: 1;
  justify-content: center;
  padding: 14px 24px;
  font-size: 15px;
}

.nl-preview-frame {
  width: 100%;
  height: 480px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0D1117;
}

.nl-progress-bar {
  width: 100%;
  height: 8px;
  background: var(--dark);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.nl-progress-fill {
  height: 100%;
  background: var(--g3);
  border-radius: 4px;
  width: 0%;
  transition: width .3s ease;
}

.nl-report-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 1rem;
}

.nl-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.nl-stat-value {
  font-family: var(--ff-d);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--g3);
}

.nl-stat-value--red {
  color: var(--red);
}

.nl-stat-label {
  font-family: var(--ff-m);
  font-size: 11px;
  color: var(--gr);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ── Newsletter History ── */

.nl-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nl-history-item {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}

.nl-history-item:hover {
  border-color: var(--border-h);
  background: var(--card-h);
}

.nl-history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.nl-history-date {
  font-family: var(--ff-m);
  font-size: 11px;
  color: var(--gr);
  letter-spacing: .5px;
  text-transform: uppercase;
}

.nl-history-subject {
  font-size: .92rem;
  font-weight: 500;
  color: var(--w);
  line-height: 1.35;
  margin-bottom: 2px;
}

.nl-history-from {
  font-size: .78rem;
  color: var(--gr);
  margin-bottom: 4px;
}

.nl-history-stats-row {
  display: flex;
  gap: 10px;
  font-family: var(--ff-m);
  font-size: 11px;
  letter-spacing: .5px;
}

.nl-history-sent {
  color: var(--g3);
}

.nl-history-failed {
  color: var(--red);
}

.nl-history-row-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nl-history-delete {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: none;
  color: var(--gr);
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity .2s, color .2s, background .2s, border-color .2s, transform .15s;
  flex-shrink: 0;
}

.nl-history-item:hover .nl-history-delete {
  opacity: 1;
}

.nl-history-delete:hover {
  color: var(--red);
  background: rgba(217, 68, 82, .1);
  border-color: rgba(217, 68, 82, .25);
  transform: scale(1.1);
}

.nl-history-delete:active {
  transform: scale(.95);
}

.nl-history-delete:disabled {
  opacity: .3 !important;
  cursor: not-allowed;
  transform: none;
}

/* Fade-out animation on delete */
.nl-history-item--removing {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity .3s, transform .3s;
}

.nl-history-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.nl-history-email {
  display: inline-block;
  background: rgba(58, 125, 68, .08);
  border: 1px solid rgba(58, 125, 68, .15);
  border-radius: 14px;
  padding: 3px 10px;
  font-size: .75rem;
  font-family: var(--ff-m);
  color: var(--gl);
}

.nl-history-email--failed {
  background: rgba(217, 68, 82, .08);
  border-color: rgba(217, 68, 82, .2);
  color: var(--red);
}

/* Error message shown during SSE send progress */
.nl-progress-error {
  color: var(--red);
  font-size: .75rem;
  margin-top: 4px;
  opacity: .9;
  word-break: break-word;
}

/* Resend failed button in history items */
.nl-resend-btn {
  margin-left: auto;
  padding: 3px 10px;
  font-family: var(--ff-m);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
  color: var(--red);
  background: rgba(217, 68, 82, .08);
  border: 1px solid rgba(217, 68, 82, .2);
  border-radius: 14px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}

.nl-resend-btn:hover {
  background: rgba(217, 68, 82, .15);
  border-color: rgba(217, 68, 82, .35);
}

.nl-resend-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

/* ── Newsletter Tabs ── */
.nl-tabs[hidden] { display: none; }
.nl-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.nl-tab {
  padding: 10px 20px;
  font-family: var(--ff-m);
  font-size: 13px;
  font-weight: 600;
  color: var(--gr);
  letter-spacing: .5px;
  text-transform: uppercase;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color .25s, border-color .25s;
}

.nl-tab:hover {
  color: var(--gl);
}

.nl-tab--active {
  color: var(--g3);
  border-bottom-color: var(--g3);
}

.nl-tab-count {
  font-size: 11px;
  opacity: .7;
}

.nl-tab-panel[hidden] {
  display: none;
}

/* ── Email domain autocomplete ── */
.email-suggest {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
  max-height: 200px;
  overflow-y: auto;
}

.email-suggest[hidden] { display: none; }

.email-suggest-item {
  padding: 10px 14px;
  font-size: .88rem;
  color: var(--gl);
  cursor: pointer;
  transition: background .15s, color .15s;
}

.email-suggest-item:hover,
.email-suggest-item.active {
  background: rgba(45, 138, 62, .12);
  color: var(--w);
}

/* ── Word count ── */
.form-word-count {
  font-family: var(--ff-m);
  font-size: .75rem;
  color: var(--gr);
  text-align: right;
  letter-spacing: .5px;
}

.form-word-count.over-limit {
  color: var(--red);
  font-weight: 600;
}

/* ── Formatting Toolbar ── */
.nl-toolbar {
  display: flex;
  gap: 2px;
  padding: 4px;
  background: var(--dark);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
}

.nl-toolbar + .form-textarea {
  border-radius: 0 0 8px 8px;
}

.nl-tb-btn {
  width: 32px;
  height: 28px;
  border: none;
  border-radius: 4px;
  background: none;
  color: var(--gl);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 13px;
  transition: background .15s, color .15s;
}

.nl-tb-btn:hover {
  background: rgba(45, 138, 62, .15);
  color: var(--g3);
}

.nl-tb-sep {
  width: 1px;
  background: var(--border);
  margin: 4px 4px;
}

/* ── Templates ── */
.nl-template-bar {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.btn--sm {
  padding: 5px 12px !important;
  font-size: 12px !important;
}

.nl-tpl-dropdown {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 1.25rem;
  max-height: 320px;
  overflow-y: auto;
  animation: nl-tpl-slide .2s ease;
}

.nl-tpl-dropdown[hidden] { display: none; }

@keyframes nl-tpl-slide {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.nl-tpl-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px 10px;
  border-bottom: 1px solid var(--border);
}

.nl-tpl-header-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(45, 138, 62, .1);
  color: var(--g3);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.nl-tpl-header-text {
  font-family: var(--ff-m);
  font-size: 11px;
  font-weight: 600;
  color: var(--gr);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nl-tpl-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(48, 54, 61, .3);
  cursor: pointer;
  transition: background .2s, border-color .2s;
}

.nl-tpl-item:last-child { border-bottom: none; }

.nl-tpl-item:hover {
  background: rgba(45, 138, 62, .08);
}

.nl-tpl-item:active {
  background: rgba(45, 138, 62, .14);
}

.nl-tpl-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--gr);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: border-color .2s, color .2s, background .2s;
}

.nl-tpl-item:hover .nl-tpl-item-icon {
  border-color: rgba(45, 138, 62, .3);
  color: var(--g3);
  background: rgba(45, 138, 62, .06);
}

.nl-tpl-item-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.nl-tpl-name {
  font-size: .88rem;
  font-weight: 600;
  color: var(--w);
  transition: color .15s;
}

.nl-tpl-item:hover .nl-tpl-name {
  color: var(--g3);
}

.nl-tpl-subject {
  font-size: .75rem;
  color: var(--gr);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nl-tpl-delete {
  width: 28px;
  height: 28px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: none;
  color: var(--gr);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity .2s, color .15s, background .15s, border-color .15s;
}

.nl-tpl-item:hover .nl-tpl-delete {
  opacity: 1;
}

.nl-tpl-delete:hover {
  color: var(--red);
  background: rgba(217, 68, 82, .1);
  border-color: rgba(217, 68, 82, .2);
}

/* Loading state for template items */
.nl-tpl-item.loading {
  opacity: .6;
  pointer-events: none;
}

.nl-tpl-item.loading .nl-tpl-item-icon {
  animation: pulse .8s infinite;
}

/* Loaded flash feedback */
@keyframes nl-tpl-loaded {
  0% { background: rgba(45, 138, 62, .25); }
  100% { background: transparent; }
}

.nl-tpl-loaded-flash {
  animation: nl-tpl-loaded .6s ease;
}

/* Save template toast */
.nl-tpl-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(60px);
  background: var(--g3);
  color: var(--dark);
  padding: 10px 20px;
  border-radius: 8px;
  font-family: var(--ff-m);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  z-index: 9999;
  opacity: 0;
  transition: opacity .25s, transform .25s;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
}

.nl-tpl-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Schedule Picker ── */
.nl-schedule-picker {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.nl-schedule-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.nl-schedule-actions {
  display: flex;
  gap: 8px;
}

/* Scheduled badge */
.nl-sched-badge {
  font-family: var(--ff-m);
  font-size: 11px;
  font-weight: 600;
  color: var(--g3);
  letter-spacing: .5px;
  text-transform: uppercase;
}

.nl-sched-cancel-btn {
  padding: 3px 10px;
  font-family: var(--ff-m);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
  color: var(--red);
  background: rgba(217, 68, 82, .08);
  border: 1px solid rgba(217, 68, 82, .2);
  border-radius: 14px;
  cursor: pointer;
  transition: background .2s;
}

.nl-sched-cancel-btn:hover {
  background: rgba(217, 68, 82, .15);
}

.nl-sched-cancel-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .nl-schedule-row { grid-template-columns: 1fr; }
  .nl-template-bar { flex-wrap: wrap; }
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-card {
    padding: 1.5rem 1.25rem 2rem;
  }

  .form-info-bar {
    flex-direction: column;
  }

  .form-info-chip {
    min-width: 0;
  }

  /* Scale bubbles smaller on mobile */
  .form-scale-bubble {
    width: 42px;
    height: 42px;
    font-size: .82rem;
  }

  .form-scale-options {
    gap: 6px;
  }

  .nl-tab { padding: 10px 14px; font-size: 12px; }
  .nl-history-delete { opacity: .5; }

  /* Radio/checkbox items tighter */
  .form-radio,
  .form-checkbox {
    padding: 10px 14px;
  }
}

/* =========================================================
   Multi-step wizard
   ========================================================= */

/* Hide native submit; the wizard "Continue" on the last step triggers it. */
.form-submit-hidden { display: none !important; }

.form-wizard {
  /* Slightly tighter top padding because the stepper provides its own breathing room */
  padding-top: 1.75rem;
}

/* ── Stepper bar ── */
.form-stepper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
  margin: 0 0 2.25rem;
  padding: 0 .25rem;
}

.form-stepper-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}

.form-stepper-circle {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--dark);
  border: 2px solid var(--border);
  color: var(--gr);
  font-family: var(--ff-m);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background-color .25s, border-color .25s, color .25s, box-shadow .25s, transform .25s;
}

.form-stepper-num,
.form-stepper-check {
  transition: opacity .2s;
}

.form-stepper-check {
  position: absolute;
  color: var(--dark);
  opacity: 0;
}

.form-stepper-label {
  margin-top: .55rem;
  font-family: var(--ff-m);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gr);
  line-height: 1.3;
  transition: color .25s;
  max-width: 110px;
}

.form-stepper-connector {
  position: absolute;
  top: 15px;
  left: calc(50% + 20px);
  right: calc(-50% + 20px);
  height: 2px;
  background: var(--border);
  z-index: 1;
  overflow: hidden;
}

.form-stepper-connector-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--g3);
  transition: width .35s ease;
}

/* Current step */
.form-stepper-item.is-current .form-stepper-circle {
  border-color: var(--g3);
  color: var(--w);
  box-shadow: 0 0 0 4px rgba(92, 184, 104, .18);
}

.form-stepper-item.is-current .form-stepper-label {
  color: var(--w);
}

/* Completed step */
.form-stepper-item.is-done .form-stepper-circle {
  background: var(--g3);
  border-color: var(--g3);
  color: var(--dark);
}

.form-stepper-item.is-done .form-stepper-num { opacity: 0; }
.form-stepper-item.is-done .form-stepper-check { opacity: 1; }

.form-stepper-item.is-done .form-stepper-label {
  color: var(--gl);
}

.form-stepper-item.is-done .form-stepper-connector .form-stepper-connector-fill {
  width: 100%;
}

/* ── Steps ── */
.form-step {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.form-step[hidden] { display: none; }

.form-step.is-active {
  animation: form-step-in .28s ease both;
}

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

.form-step-heading {
  display: block;
  margin: 0 0 1.5rem;
  padding: 0;
  outline: none;
}

.form-step-eyebrow {
  display: block;
  font-family: var(--ff-m);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--g3);
  margin-bottom: .35rem;
}

.form-step-title {
  display: block;
  font-family: var(--ff-b);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--w);
  letter-spacing: -.01em;
  line-height: 1.25;
}

.form-step-heading:focus-visible {
  /* Move ring onto the title text only — fieldset legends don't accept rings cleanly */
  outline: 2px solid var(--g3);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ── Wizard nav ── */
.form-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.form-nav-back {
  font-size: 14px;
  padding: 12px 22px;
}

.form-nav-next {
  font-size: 15px;
  padding: 14px 28px;
  margin-left: auto;
}

.form-nav-next:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Mobile: collapse stepper labels, stack nav */
@media (max-width: 640px) {
  .form-stepper {
    margin-bottom: 1.75rem;
  }

  .form-stepper-label {
    display: none;
  }

  .form-stepper-connector {
    top: 15px;
  }

  .form-step-title {
    font-size: 1.2rem;
  }

  .form-nav {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: .75rem;
  }

  .form-nav-back,
  .form-nav-next {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }
}

/* Honor reduced motion */
@media (prefers-reduced-motion: reduce) {
  .form-step.is-active { animation: none; }
  .form-stepper-circle,
  .form-stepper-connector-fill,
  .form-stepper-label { transition: none; }
}



/* === gallery.css === */
/* ── Gallery ── */

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.gallery-filter {
  background: var(--card);
  color: var(--gl);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: .5rem 1.25rem;
  font-family: var(--ff-b);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
}

.gallery-filter:hover {
  border-color: var(--border-h);
  color: var(--w);
}

.gallery-filter.active {
  background: var(--g1);
  border-color: var(--g1);
  color: var(--w);
}

/* Category sections */
.gallery-category {
  margin-bottom: 3rem;
}

.gallery-category[hidden] {
  display: none;
}

.gallery-cat-title {
  font-family: var(--ff-d);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--w);
  margin-bottom: .25rem;
}

.gallery-cat-sub {
  font-size: .95rem;
  color: var(--gr);
  margin-bottom: 1.25rem;
}

/* Image grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background: var(--card);
}

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

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.45) 0%, transparent 50%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}

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

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}

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

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--r);
  object-fit: contain;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .6);
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--w);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
  z-index: 10000;
}

.lightbox-close:hover {
  background: var(--card-h);
}

.lightbox-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gl);
  font-size: .9rem;
  text-align: center;
  max-width: 600px;
  padding: .5rem 1rem;
  background: rgba(14, 15, 16, .8);
  border-radius: var(--r);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--w);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
  z-index: 10000;
}

.lightbox-nav:hover {
  background: var(--card-h);
}

.lightbox-prev {
  left: 1.25rem;
}

.lightbox-next {
  right: 1.25rem;
}

/* Responsive */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .lightbox-nav {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .lightbox-prev { left: .5rem; }
  .lightbox-next { right: .5rem; }
}

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

  .gallery-filters {
    gap: .375rem;
  }

  .gallery-filter {
    padding: .4rem 1rem;
    font-size: .8rem;
  }
}


/* === admin.css === */
/* =========================================================
   admin.css — Admin dashboard styles (dark theme)
   ========================================================= */

/* ── Tab bar ── */
.admin-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-tab {
  padding: 10px 16px;
  font-family: var(--ff-m);
  font-size: 12px;
  font-weight: 600;
  color: var(--gr);
  letter-spacing: .3px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color .25s, border-color .25s;
  white-space: nowrap;
}

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

.admin-tab--active {
  color: var(--g3);
  border-bottom-color: var(--g3);
}

.admin-tab-count {
  font-size: 10px;
  opacity: .6;
  margin-left: 4px;
}

/* ── Table wrapper ── */
.admin-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--dark);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
  white-space: nowrap;
  user-select: text;
  -webkit-user-select: text;
}

.admin-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--card);
  font-family: var(--ff-m);
  font-size: 10px;
  font-weight: 600;
  color: var(--gr);
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.admin-table td {
  padding: 8px 12px;
  color: var(--gl);
  border-bottom: 1px solid rgba(48, 54, 61, .4);
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-table tbody tr:nth-child(even) {
  background: rgba(22, 27, 34, .4);
}

/* No row hover — cell-level selection only (Excel-like) */

/* Tracking columns hidden by default */
.admin-table .col-tracking { display: none; }
.admin-table.show-tracking .col-tracking { display: table-cell; }

/* ── Toolbar ── */
.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.admin-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-btn {
  padding: 6px 14px;
  font-family: var(--ff-m);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--gl);
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}

.admin-btn:hover {
  background: var(--card-h);
  border-color: var(--border-h);
  color: var(--w);
}

.admin-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.admin-btn--green {
  background: rgba(45, 138, 62, .1);
  border-color: rgba(45, 138, 62, .25);
  color: var(--g3);
}

.admin-btn--green:hover {
  background: rgba(45, 138, 62, .18);
  border-color: rgba(45, 138, 62, .4);
}

.admin-page-size-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-m);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
  color: var(--gr);
  text-transform: uppercase;
}

select.admin-btn {
  padding: 6px 8px;
  appearance: auto;
  -webkit-appearance: auto;
}

/* ── Pagination ── */
.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.admin-page-info {
  font-family: var(--ff-m);
  font-size: 11px;
  color: var(--gr);
  letter-spacing: .5px;
}

/* ── Loading / Empty ── */
.admin-loading,
.admin-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--gr);
  font-size: .88rem;
}

/* ── Row copied toast ── */
.admin-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--g3);
  color: var(--dark);
  padding: 10px 20px;
  border-radius: 8px;
  font-family: var(--ff-m);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s;
  pointer-events: none;
}

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

/* ── Cell / column selection (Excel-like) ── */

/* Headers */
.admin-table th {
  cursor: pointer;
  transition: color .15s, background .15s;
}
.admin-table th:hover {
  color: var(--g3);
  background: rgba(45, 138, 62, .10);
}
.admin-table th.col-header-active {
  color: #fff;
  background: rgba(45, 138, 62, .35);
}

/* Cells */
.admin-table td {
  cursor: cell;
  position: relative;
}

/* Cell hover — subtle highlight on individual cell only */
.admin-table td:hover {
  background: rgba(45, 138, 62, .06) !important;
}

/* Selected cell — Excel blue-ish but in green to match theme */
.admin-table td.col-selected {
  background: rgba(45, 138, 62, .20) !important;
  color: #fff;
}

/* Border on selected cells — use box-shadow to simulate Excel border
   We draw all 4 sides, then hide shared edges via neighbor rules */
.admin-table td.col-selected {
  box-shadow: inset 0 0 0 1.5px rgba(45, 138, 62, .6);
}

/* Last selected cell gets a thicker border (like Excel active cell) */
.admin-table td.col-selected.sel-last {
  box-shadow: inset 0 0 0 2px var(--g3);
  z-index: 1;
}

/* Selection count floating badge */
.admin-sel-badge {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(60px);
  background: #161b22;
  border: 1px solid rgba(45, 138, 62, .4);
  color: var(--gl);
  padding: 7px 16px;
  border-radius: 20px;
  font-family: var(--ff-m);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3px;
  z-index: 9998;
  opacity: 0;
  transition: opacity .2s, transform .2s;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 24px rgba(0,0,0,.5);
}
.admin-sel-badge.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.admin-sel-badge .sel-count {
  color: var(--g3);
  font-weight: 700;
}
.admin-sel-badge .sel-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  background: rgba(45, 138, 62, .2);
  border-radius: 4px;
  color: var(--g3);
}

/* Dragging state */
.admin-table.is-dragging {
  user-select: none;
  -webkit-user-select: none;
}
.admin-table.is-dragging td:hover {
  background: rgba(45, 138, 62, .12) !important;
}

/* ── Delete button (hidden by default — enable via .admin-table.show-delete) ── */
.admin-delete-btn, .admin-table th:first-child, .admin-table td:first-child {
  display: none;
}
.admin-table.show-delete .admin-delete-btn,
.admin-table.show-delete th:first-child,
.admin-table.show-delete td:first-child {
  display: table-cell;
}
.admin-table.show-delete .admin-delete-btn {
  display: inline-flex;
}
.admin-delete-btn {
  background: none;
  border: 1px solid rgba(255, 107, 107, .25);
  color: #ff6b6b;
  font-size: 16px;
  font-weight: 700;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, border-color .15s;
  line-height: 1;
}
.admin-delete-btn:hover {
  background: rgba(255, 107, 107, .15);
  border-color: #ff6b6b;
}

/* ── Delete confirmation overlay ── */
.admin-confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.admin-confirm-dialog {
  background: #161b22;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 32px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .5);
}
.admin-confirm-icon { margin-bottom: 12px; }
.admin-confirm-title {
  font-family: var(--ff-m);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
}
.admin-confirm-msg {
  font-family: var(--ff-m);
  font-size: 13px;
  color: var(--gl);
  margin: 0 0 4px;
}
.admin-confirm-warn {
  font-family: var(--ff-m);
  font-size: 12px;
  color: #ff6b6b;
  margin: 0 0 20px;
  font-weight: 600;
}
.admin-confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.admin-btn--danger {
  background: #ff6b6b !important;
  color: #fff !important;
  border-color: #ff6b6b !important;
}
.admin-btn--danger:hover {
  background: #e85555 !important;
}

/* =========================================================
   Analytics dashboard styles
   ========================================================= */

/* ── Summary cards grid ── */
.analytics-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 1.5rem;
}

.analytics-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
}

.analytics-card-value {
  font-family: var(--ff-m);
  font-size: 26px;
  font-weight: 700;
  color: var(--g3);
  line-height: 1.2;
  word-break: break-word;
}

.analytics-card-label {
  font-family: var(--ff-m);
  font-size: 10px;
  color: var(--gr);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: 4px;
}

.analytics-card-sub {
  font-family: var(--ff-m);
  font-size: 11px;
  color: var(--gl);
  margin-top: 2px;
  opacity: .7;
}

/* ── Filter bar ── */
.analytics-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.analytics-filter-label {
  font-family: var(--ff-m);
  font-size: 11px;
  color: var(--gr);
  letter-spacing: .3px;
}

.analytics-filters select,
.analytics-filters input[type="date"] {
  font-family: var(--ff-m);
  font-size: 12px;
  padding: 6px 12px;
  background: var(--card);
  color: var(--gl);
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: none;
  transition: border-color .2s;
}

.analytics-filters select:focus,
.analytics-filters input[type="date"]:focus {
  border-color: var(--g3);
}

/* Date input icon color fix for dark theme */
.analytics-filters input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(.7);
}

/* ── Breakdown section ── */
.analytics-breakdown {
  margin-bottom: 1.5rem;
}

.analytics-breakdown .admin-table {
  max-width: 700px;
}

.analytics-breakdown .admin-table th,
.analytics-breakdown .admin-table td {
  cursor: default;
}

/* Override admin delete-column hiding — analytics tables have no delete column */
.analytics-breakdown .admin-table th:first-child,
.analytics-breakdown .admin-table td:first-child {
  display: table-cell;
}

/* Tab description text */
.analytics-tab-desc {
  font-family: var(--ff-m);
  font-size: 12px;
  color: var(--gr);
  line-height: 1.5;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: rgba(22, 27, 34, .5);
  border-left: 2px solid var(--g3);
  border-radius: 0 4px 4px 0;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .admin-tab { padding: 8px 10px; font-size: 11px; }
  .admin-table { font-size: .75rem; }
  .admin-table th, .admin-table td { padding: 6px 8px; }
  .analytics-cards { grid-template-columns: repeat(2, 1fr); }
  .analytics-card-value { font-size: 20px; }
  .analytics-filters { gap: 8px; }
}
