/* ==========================================================================
   Smart Little Brains -- Design System
   One consistent palette/typography/components used across every page.
   ========================================================================== */

/* ---- Design tokens ---- */
:root {
  /* Brand colors */
  --slb-green: #8DC63F;
  --slb-green-dark: #6FA82F;
  --slb-orange: #F5A623;
  --slb-pink: #D6368F;
  --slb-teal: #3FBFA0;
  --slb-red: #C0394B;
  --slb-dark: #2B2B2B;
  --slb-cream: #FBFAF6;
  --slb-white: #FFFFFF;

  /* Text */
  --slb-text: #333333;
  --slb-text-light: #6E6E6E;
  --slb-border: #E7E3D8;

  /* Typography */
  --font-heading: 'Baloo 2', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4.5rem;

  /* Misc */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow: 0 6px 24px rgba(43, 43, 43, 0.08);
  --shadow-hover: 0 12px 32px rgba(43, 43, 43, 0.14);
  --container-width: 1180px;
  --header-height: 80px;
}

/* ---- Reset ---- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--slb-text);
  background: var(--slb-cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--slb-green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

ul { margin: 0; padding: 0; }
li { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--slb-dark);
  line-height: 1.2;
  margin: 0 0 var(--space-sm);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 var(--space-sm); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--slb-green);
  color: var(--slb-dark);
  padding: 0.5rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

/* ---- Layout helpers ---- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
}

.section--alt {
  background: var(--slb-white);
}

.section--dark {
  background: var(--slb-dark);
  color: #f0f0f0;
}
.section--dark h2, .section--dark h3 { color: var(--slb-white); }
.section--footer {
  background: var(--slb-dark);
  color: #d8d8d8;
  padding-bottom: 0;
}
.section--footer h2, .section--footer h3 { color: var(--slb-white); }
.section--footer p { color: #d8d8d8; }

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-lg);
}

.section-header__eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--slb-green-dark);
  margin-bottom: var(--space-xs);
}

.section-header__underline {
  width: 64px;
  height: 5px;
  border-radius: var(--radius-pill);
  background: var(--slb-orange);
  margin: var(--space-sm) auto 0;
}

.text-center { text-align: center; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  text-decoration: none;
}
.btn svg {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }

.btn--primary {
  background: var(--slb-green);
  color: var(--slb-dark);
}
.btn--primary:hover {
  background: var(--slb-green-dark);
  color: var(--slb-white);
  box-shadow: var(--shadow-hover);
}

.btn--accent {
  background: var(--slb-orange);
  color: var(--slb-white);
}
.btn--accent:hover {
  background: #d98e0f;
  box-shadow: var(--shadow-hover);
}

.btn--outline {
  background: transparent;
  border-color: var(--slb-white);
  color: var(--slb-white);
}
.btn--outline:hover {
  background: var(--slb-white);
  color: var(--slb-dark);
}

.btn--whatsapp {
  background: #25D366;
  color: var(--slb-white);
}
.btn--whatsapp:hover { background: #1ebd59; box-shadow: var(--shadow-hover); }

.btn--block { width: 100%; justify-content: center; }

/* ---- Header / Navigation ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--slb-white);
  box-shadow: 0 2px 12px rgba(43, 43, 43, 0.06);
}

.nav-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--slb-dark);
}
.logo:hover { text-decoration: none; }
.logo__icon { width: 48px; height: 48px; flex-shrink: 0; }
.logo__text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.15;
  color: var(--slb-dark);
}
.logo__text small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slb-green-dark);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--slb-dark);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-menu > li > a,
.nav-menu > li > button.nav-link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--slb-dark);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 0.1rem;
}
.nav-menu > li > a:hover,
.nav-menu > li > button.nav-link:hover,
.nav-menu > li.is-open > button.nav-link {
  color: var(--slb-green-dark);
  text-decoration: none;
}

.nav-menu .caret {
  width: 10px; height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform 0.15s ease;
}
.nav-menu li.is-open .caret { transform: rotate(225deg); margin-top: 3px; }

.nav-item--has-dropdown { position: relative; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--slb-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover);
  min-width: 220px;
  padding: 0.5rem;
  z-index: 600;
}
.nav-item--has-dropdown.is-open .dropdown-menu { display: block; }

@media (min-width: 861px) {
  .nav-item--has-dropdown:hover .dropdown-menu,
  .nav-item--has-dropdown:focus-within .dropdown-menu {
    display: block;
  }
}

.dropdown-menu li a {
  display: block;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--slb-text);
  white-space: nowrap;
}
.dropdown-menu li a:hover {
  background: var(--slb-cream);
  color: var(--slb-green-dark);
  text-decoration: none;
}

/* Active page highlight */
.nav-menu > li > a[aria-current="page"],
.nav-menu > li > button.nav-link[aria-current="true"] {
  color: var(--slb-green-dark);
  background: rgba(141, 198, 63, 0.18);
  border-radius: var(--radius-pill);
}
.dropdown-menu li a[aria-current="page"] {
  background: var(--slb-cream);
  color: var(--slb-green-dark);
  font-weight: 600;
}

.nav-cta { margin-left: var(--space-xs); }
.nav-menu .nav-cta > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--slb-orange);
  color: var(--slb-white);
  padding: 0.55rem 1.3rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
}
.nav-menu .nav-cta > a:hover {
  background: #d98e0f;
  color: var(--slb-white);
  text-decoration: none;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--slb-white);
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
}
.hero__slide.is-active {
  opacity: 1;
}
.hero__slide:nth-child(1) {
  background-image: url('../images/gallery/fun-with-parents.jpg'), linear-gradient(135deg, var(--slb-teal), var(--slb-green-dark));
}
.hero__slide:nth-child(2) {
  background-image: url('../images/gallery/slb-activity-1.jpg'), linear-gradient(135deg, var(--slb-orange), var(--slb-red));
}
.hero__slide:nth-child(3) {
  background-image: url('../images/gallery/arts-fair-fun.jpg'), linear-gradient(135deg, var(--slb-green-dark), var(--slb-teal));
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(43, 43, 43, 0.78) 0%, rgba(43, 43, 43, 0.6) 60%, rgba(43, 43, 43, 0.5) 100%),
    linear-gradient(135deg, rgba(43, 43, 43, 0.5) 0%, rgba(43, 43, 43, 0.35) 100%);
}

.hero .container {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
  padding: var(--space-xl) var(--space-md);
}
.hero h1 {
  color: var(--slb-white);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}
.hero p.lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 600px;
  margin: 0 auto var(--space-md);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}
.hero .hero-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-md);
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide { transition: none; }
}

.hero--page {
  background: var(--slb-cream);
  padding: var(--space-lg) 0;
  text-align: center;
  position: relative;
}
.hero--page::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--slb-red), var(--slb-orange), var(--slb-green), var(--slb-teal), var(--slb-pink));
}
.hero--page h1 { color: var(--slb-dark); margin-bottom: 0.4rem; }
.hero--page p { color: var(--slb-text-light); max-width: 620px; margin: 0 auto; }

/* ---- Cards / grids ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
}

.card {
  background: var(--slb-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: var(--space-sm);
  color: var(--slb-white);
}
.card__icon svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.card__icon--green { background: var(--slb-green); color: var(--slb-dark); }
.card__icon--orange { background: var(--slb-orange); }
.card__icon--pink { background: var(--slb-pink); }
.card__icon--teal { background: var(--slb-teal); }
.card__icon--red { background: var(--slb-red); }

.card__title { margin-bottom: 0.4rem; }
.card__text { color: var(--slb-text-light); margin-bottom: 0; }

.card--link { display: block; }
.card--link:hover { text-decoration: none; }
.card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--slb-green-dark);
  margin-top: var(--space-sm);
}

/* ---- Placeholder images (until real photos are supplied) ---- */
.placeholder-img {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  color: var(--slb-white);
  text-align: center;
  padding: var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 600;
}
.placeholder-img svg { width: 38px; height: 38px; opacity: 0.85; }
.placeholder-img span {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.78rem;
  opacity: 0.85;
  word-break: break-word;
}
.placeholder-img--square { aspect-ratio: 1 / 1; }
.placeholder-img--wide { aspect-ratio: 16 / 9; }
.placeholder-img--tall { aspect-ratio: 3 / 4; }

.placeholder-img--green  { background: linear-gradient(135deg, var(--slb-green), var(--slb-green-dark)); }
.placeholder-img--orange { background: linear-gradient(135deg, var(--slb-orange), #c97f0f); }
.placeholder-img--pink   { background: linear-gradient(135deg, var(--slb-pink), #9c2570); }
.placeholder-img--teal   { background: linear-gradient(135deg, var(--slb-teal), #2f9c83); }
.placeholder-img--red    { background: linear-gradient(135deg, var(--slb-red), #962a39); }

/* ---- Gallery ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-sm);
}
.gallery-grid--hidden-extra .gallery-extra {
  display: none;
  grid-column: 1 / -1;
}
.gallery-grid--hidden-extra.is-expanded .gallery-extra {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-sm);
}

/* ---- Badges ---- */
.badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  color: var(--slb-white);
}
.badge--green { background: var(--slb-green-dark); }
.badge--orange { background: var(--slb-orange); }
.badge--pink { background: var(--slb-pink); }
.badge--teal { background: var(--slb-teal); }
.badge--red { background: var(--slb-red); }

/* ---- Testimonials ---- */
.testimonial-card {
  background: var(--slb-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-md);
  position: relative;
}
.testimonial-card__quote {
  font-style: italic;
  color: var(--slb-text);
  margin-bottom: var(--space-sm);
}
.testimonial-card__author {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--slb-green-dark);
  display: block;
}
.testimonial-card__source {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--slb-text-muted);
  margin-top: 0.4rem;
  opacity: 0.65;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.testimonial-card__source:hover { opacity: 1; }

/* ---- Expandable review / achievement cards ---- */
.review-hidden,
.achievement-hidden { display: none; }
#reviews-extra.is-expanded .review-hidden,
#achievements-extra.is-expanded .achievement-hidden { display: block; }

/* ---- Logo / partner grid ---- */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-md);
  align-items: center;
}
.logo-grid__item {
  background: var(--slb-white);
  border: 1px solid var(--slb-border);
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--slb-text-light);
}
.logo-grid__item img { max-height: 56px; max-width: 100%; width: auto; object-fit: contain; }
.card__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: var(--radius); margin-bottom: var(--space-sm); }

/* ---- Info / detail blocks ---- */
.info-card {
  background: var(--slb-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-md);
}
.info-list { display: flex; flex-direction: column; gap: var(--space-sm); }
.info-list__item { display: flex; gap: 0.8rem; align-items: flex-start; }
.info-list__icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--slb-cream);
  color: var(--slb-green-dark);
  display: flex; align-items: center; justify-content: center;
}
.info-list__icon svg { width: 20px; height: 20px; }

.map-frame {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  border-radius: var(--radius);
}

/* ---- Forms ---- */
.form-group { margin-bottom: var(--space-sm); }
.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--slb-border);
  border-radius: var(--radius-sm);
  background: var(--slb-white);
  color: var(--slb-text);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--slb-green);
  outline-offset: 1px;
}

.form-note {
  font-size: 0.85rem;
  color: var(--slb-text-light);
}
.form-success {
  background: #eaf7e3;
  border: 1px solid var(--slb-green);
  color: #3c5e1e;
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
  margin-bottom: var(--space-md);
}

/* ---- Classroom illustration ---- */
.classroom-illustration {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}

/* ---- Two column layout ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

/* ---- Prose content (privacy policy, etc.) ---- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: var(--space-lg); font-size: 1.6rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--space-md); }
.prose p { color: var(--slb-text); }
.prose ul, .prose ol { margin: 0 0 var(--space-sm); padding-left: 1.4rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { list-style: inherit; margin-bottom: 0.4rem; }
.prose a { text-decoration: underline; }
.prose code {
  background: var(--slb-cream);
  border: 1px solid var(--slb-border);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  font-size: 0.85em;
}

.cookie-table-wrap {
  overflow-x: auto;
  margin: 0 0 var(--space-md);
  border: 1px solid var(--slb-border);
  border-radius: var(--radius-sm);
}
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.cookie-table th,
.cookie-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--slb-border);
}
.cookie-table th {
  background: var(--slb-cream);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--slb-dark);
  white-space: nowrap;
}
.cookie-table tr:last-child td { border-bottom: none; }
.cookie-table caption {
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--slb-green-dark);
  padding: 0.6rem 0.9rem;
  background: var(--slb-white);
  border-bottom: 1px solid var(--slb-border);
}

/* ---- Footer ---- */
.site-footer {
  background: var(--slb-dark);
  color: #d8d8d8;
  padding-top: var(--space-xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid h4 {
  color: var(--slb-white);
  font-size: 1rem;
  margin-bottom: var(--space-sm);
}
.footer-about .logo__text,
.footer-about .logo__text small { color: var(--slb-white); }
.footer-about .logo__text small { color: var(--slb-green); }
.footer-about p { color: #b8b8b8; margin-top: var(--space-sm); }

.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: #d8d8d8; }
.footer-links a:hover { color: var(--slb-green); text-decoration: none; }

.footer-contact li { margin-bottom: 0.5rem; color: #d8d8d8; font-size: 0.95rem; }
.footer-contact a { color: #d8d8d8; }
.footer-contact a:hover { color: var(--slb-green); text-decoration: none; }

.social-links { display: flex; gap: 0.6rem; margin-top: var(--space-sm); }
.social-links a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--slb-white);
  transition: background 0.15s ease;
}
.social-links a:hover { background: var(--slb-green); color: var(--slb-dark); text-decoration: none; }
.social-links svg { width: 18px; height: 18px; }

.footer-bottom {
  padding: var(--space-md) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #9b9b9b;
}
.footer-bottom a { color: #9b9b9b; }
.footer-bottom a:hover { color: var(--slb-green); text-decoration: none; }
.footer-credit {
  color: var(--slb-teal);
  font-weight: 600;
  text-decoration: none;
}
.footer-credit:hover {
  color: var(--slb-green);
  text-decoration: underline;
}
.footer-legal { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.footer-legal button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: #9b9b9b;
  cursor: pointer;
}
.footer-legal button:hover { color: var(--slb-green); }

/* ---- Cookie bar ---- */
.cookie-bar {
  position: fixed;
  left: var(--space-md);
  right: var(--space-md);
  bottom: var(--space-md);
  max-width: 640px;
  margin: 0 auto;
  background: var(--slb-dark);
  color: var(--slb-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  padding: var(--space-sm) var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  z-index: 1000;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  pointer-events: none;
}
.cookie-bar.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-bar p { margin: 0; font-size: 0.88rem; flex: 1 1 280px; color: #d8d8d8; }
.cookie-bar a { color: var(--slb-orange); text-decoration: underline; }
.cookie-bar__actions { display: flex; gap: var(--space-xs); flex-shrink: 0; flex-wrap: wrap; }
.cookie-bar .btn { flex-shrink: 0; padding: 0.6rem 1.4rem; font-size: 0.9rem; }

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}
.lightbox[hidden] { display: none; }
.lightbox__content {
  max-width: 860px;
  width: 100%;
  position: relative;
}
.lightbox__img {
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  border-radius: var(--radius) var(--radius) 0 0;
  display: block;
}
.lightbox__placeholder {
  width: 100%;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #222;
  color: #999;
  border-radius: var(--radius) var(--radius) 0 0;
  font-family: var(--font-heading);
  font-size: 0.9rem;
}
.lightbox__caption {
  background: rgba(0, 0, 0, 0.82);
  color: var(--slb-white);
  padding: 0.8rem 1.2rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
  min-height: 48px;
}
.lightbox__close {
  position: fixed;
  top: var(--space-md);
  right: var(--space-md);
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: var(--slb-white);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  line-height: 1;
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox__prev,
.lightbox__next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: var(--slb-white);
  font-size: 1.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  line-height: 1;
}
.lightbox__prev { left: var(--space-md); }
.lightbox__next { right: var(--space-md); }
.lightbox__prev:hover,
.lightbox__next:hover { background: rgba(255, 255, 255, 0.22); }

/* ---- Clickable gallery items ---- */
.gallery-item {
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.gallery-item:focus-visible { outline: 3px solid var(--slb-green); outline-offset: 2px; }
.gallery-item .placeholder-img { transition: transform 0.22s ease; }
.gallery-item:hover .placeholder-img { transform: scale(1.04); }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform 0.22s ease; }
.gallery-item:hover img { transform: scale(1.04); }

/* ---- Google review cards ---- */
.review-card {
  background: var(--slb-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.review-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.2rem;
}
.review-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.review-card__avatar--initials {
  background: var(--slb-teal);
  color: var(--slb-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
}
.review-card__name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--slb-dark);
  display: block;
}
.review-stars {
  color: var(--slb-orange);
  font-size: 1rem;
  letter-spacing: 0.05em;
}
.review-card__text {
  color: var(--slb-text);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.65;
  flex: 1;
  margin: 0;
}
.review-card__time {
  font-size: 0.8rem;
  color: var(--slb-text-light);
  margin-top: auto;
}
.review-powered {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--slb-text-light);
  margin-top: var(--space-xs);
}
.review-powered svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ---- Floating WhatsApp button ---- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  z-index: 990;
  color: var(--slb-white);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
  color: var(--slb-white);
  text-decoration: none;
}
.whatsapp-float svg { width: 32px; height: 32px; }

.whatsapp-float__tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--slb-dark);
  color: var(--slb-white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.82rem;
  white-space: nowrap;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.whatsapp-float__tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--slb-dark);
}
.whatsapp-float:hover .whatsapp-float__tooltip { opacity: 1; }

/* ---- Badge outline variant ---- */
.badge--outline {
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: var(--slb-white);
}

/* ---- Hero footnote ---- */
.hero-footnote {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  font-style: italic;
  margin: var(--space-xs) 0 0;
}

/* ---- Dark & outline-dark buttons ---- */
.btn--dark {
  background: var(--slb-dark);
  color: var(--slb-white);
}
.btn--dark:hover {
  background: #111;
  box-shadow: var(--shadow-hover);
}

.btn--outline-dark {
  background: transparent;
  border-color: var(--slb-dark);
  color: var(--slb-dark);
}
.btn--outline-dark:hover {
  background: var(--slb-dark);
  color: var(--slb-white);
}

/* ---- Soft/tinted icon variants (rounded square) ---- */
.card__icon--sq { border-radius: var(--radius-sm); }

.card__icon--teal-soft { background: rgba(63, 191, 160, 0.14); color: var(--slb-teal); }
.card__icon--orange-soft { background: rgba(245, 166, 35, 0.14); color: var(--slb-orange); }
.card__icon--blue-soft { background: rgba(76, 110, 245, 0.14); color: #4C6EF5; }

/* ---- Card CTA color variants ---- */
.card__cta--orange { color: var(--slb-orange); }
.card__cta--blue { color: #4C6EF5; }

/* ---- Light placeholder (classroom photo slot) ---- */
.placeholder-img--light {
  background: #e8f8f5;
  color: var(--slb-text-light);
  border: 1px solid #c5ede5;
}
.placeholder-img--light svg { display: none; }

/* ---- Impact pills (dark section) ---- */
.impact-pills {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.5rem;
  margin: var(--space-md) auto var(--space-lg);
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}
.impact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}
.impact-divider {
  color: rgba(255, 255, 255, 0.25);
  margin: 0 1rem;
  font-weight: 300;
}
.impact-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.impact-dot--orange { background: var(--slb-orange); }
.impact-dot--green { background: var(--slb-green); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--slb-white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .site-header.nav-open .nav-menu { max-height: 80vh; overflow-y: auto; }

  .nav-menu > li { width: 100%; border-top: 1px solid var(--slb-border); }
  .nav-menu > li > a,
  .nav-menu > li > button.nav-link {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    justify-content: space-between;
  }

  .nav-menu > li > a[aria-current="page"],
  .nav-menu > li > button.nav-link[aria-current="true"] {
    border-radius: 0;
    border-left: 4px solid var(--slb-green);
    padding-left: calc(var(--space-md) - 4px);
  }

  .nav-item--has-dropdown .dropdown-menu {
    display: none;
    position: static;
    transform: none;
    box-shadow: none;
    min-width: 0;
    padding: 0 var(--space-md) var(--space-sm);
  }
  .nav-item--has-dropdown.is-open .dropdown-menu { display: block; }

  .nav-cta { margin: var(--space-sm) var(--space-md); }

  .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ---- Hero actions standalone (outside hero, e.g. about CTA section) ---- */
.hero-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: center;
}

/* ---- Testimonial stars ---- */
.testimonial-card__stars {
  color: var(--slb-orange);
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

/* ---- Banking details box ---- */
.banking-box {
  background: var(--slb-white);
  border: 1px solid var(--slb-border);
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: var(--space-md);
}
.banking-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.banking-table th,
.banking-table td {
  text-align: left;
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid var(--slb-border);
  vertical-align: top;
}
.banking-table th {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--slb-dark);
  background: var(--slb-cream);
  width: 38%;
  white-space: nowrap;
}
.banking-table td { color: var(--slb-text); }
.banking-table tr:last-child th,
.banking-table tr:last-child td { border-bottom: none; }

/* ---- NPO compliance note ---- */
.npo-compliance-note {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: rgba(63, 191, 160, 0.1);
  border: 1px solid rgba(63, 191, 160, 0.35);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  margin-top: var(--space-sm);
}
.npo-compliance-note svg {
  flex-shrink: 0;
  color: var(--slb-teal);
  margin-top: 2px;
}
.npo-compliance-note p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--slb-text);
  line-height: 1.6;
}

/* ---- Donation amount display ---- */
.donation-amount {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--slb-green-dark);
  margin-bottom: 0.25rem;
  line-height: 1;
}

/* ---- Contact page layout ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--space-xl);
  align-items: start;
}
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin: var(--space-md) 0 0;
  padding: 0;
}
.contact-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--slb-text);
  font-size: 0.95rem;
}
.contact-list svg { flex-shrink: 0; color: var(--slb-green-dark); margin-top: 2px; }
.contact-list a { color: var(--slb-green-dark); }
.contact-form-wrap {
  background: var(--slb-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-lg);
}

/* ---- Map embed ---- */
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* ---- FAQ accordion ---- */
.faq-list { display: flex; flex-direction: column; gap: 0; max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--slb-border);
}
.faq-item summary {
  padding: var(--space-sm) 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--slb-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--slb-green-dark);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 0 var(--space-sm); color: var(--slb-text-light); margin: 0; }
@media (max-width: 640px) {
  .faq-item summary { font-size: 0.95rem; gap: 0.75rem; }
  .faq-item summary::after { font-size: 1.2rem; }
}

/* ---- Form error state ---- */
.form-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
  margin-top: var(--space-sm);
}

/* ---- Partner cards ---- */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
}
.partner-card {
  background: var(--slb-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-md);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.partner-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.partner-card__logo {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--slb-white);
  border: 1px solid var(--slb-border);
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
  margin-bottom: var(--space-sm);
}
.partner-card__logo img {
  max-height: 68px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}
.staff-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius);
  display: block;
  margin-bottom: var(--space-sm);
}
.partner-card__name {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--slb-dark);
  margin: var(--space-sm) 0 0.3rem;
  font-size: 1.05rem;
}
.partner-card__text { color: var(--slb-text-light); font-size: 0.9rem; margin: 0; }
.placeholder-img--logo { aspect-ratio: 3 / 1.2; border-radius: var(--radius-sm); font-size: 0.78rem; font-weight: 600; gap: 0.4rem; }
.placeholder-img--logo svg { width: 32px; height: 32px; opacity: 1; }

/* ---- Staff card text hierarchy ---- */
.staff-name {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--slb-green-dark);
  font-size: 1.1rem;
  margin: var(--space-sm) 0 0.25rem;
}
.staff-title {
  font-weight: 600;
  color: var(--slb-dark);
  font-size: 0.9rem;
  margin: 0 0 0.2rem;
}
.staff-languages {
  color: var(--slb-text-light);
  font-size: 0.85rem;
  margin: 0;
}

/* ---- 4-column card grid (auto-fit) ---- */
.card-grid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* ---- Fixed 4-column grid ---- */
.card-grid--4col { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---- Achievement photo (portrait crop for scholar certificate photos) ---- */
.achievement-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: var(--radius);
  margin-bottom: var(--space-sm);
}

/* ---- Achievement stats ---- */
.achievement-stat {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 3.5rem;
  color: var(--slb-green-dark);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.achievement-stat span { font-size: 2rem; }

/* ---- Legal document styling ---- */
.legal-doc { padding: var(--space-md) 0; }
.legal-doc h2 {
  margin-top: var(--space-lg);
  font-size: 1.4rem;
  color: var(--slb-dark);
  border-bottom: 2px solid var(--slb-border);
  padding-bottom: 0.5rem;
}
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc p { color: var(--slb-text); }
.legal-doc ul {
  padding-left: 1.4rem;
  margin-bottom: var(--space-sm);
}
.legal-doc ul li { list-style: disc; margin-bottom: 0.35rem; color: var(--slb-text); }
.legal-doc a { text-decoration: underline; }
.legal-date {
  margin-top: var(--space-lg);
  font-size: 0.85rem;
  color: var(--slb-text-light);
  border-top: 1px solid var(--slb-border);
  padding-top: var(--space-sm);
}

/* ---- Placeholder blue variant ---- */
.placeholder-img--blue { background: linear-gradient(135deg, #4C6EF5, #364fc7); }

/* ---- Lightbox image wrap ---- */
.lightbox__img-wrap { width: 100%; min-height: 200px; }

/* ==========================================================================
   Responsive additions for new components
   ========================================================================== */
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .card-grid--4 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .card-grid--4col { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hero { min-height: 420px; }
  .card-grid--4col { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: var(--space-md); }
  .achievement-stat { font-size: 2.6rem; }
  .donation-amount { font-size: 2.2rem; }
  .banking-table th { width: auto; }
}

/* ---- Card carousel ---- */
.card-carousel { position: relative; }
.card-carousel__viewport { overflow: hidden; }
.card-carousel__track {
  display: flex;
  align-items: stretch;
  transition: transform 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.card-carousel__slide {
  flex: 0 0 25%;
  min-width: 0;
  box-sizing: border-box;
  padding: 0 0.5rem;
  display: flex;
  flex-direction: column;
}
.card-carousel__slide .testimonial-card,
.card-carousel__slide .card,
.card-carousel__slide .logo-grid__item { flex: 1; }
.card-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}
.card-carousel__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--slb-green-dark);
  background: transparent;
  color: var(--slb-green-dark);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.card-carousel__btn:hover:not(:disabled) { background: var(--slb-green-dark); color: #fff; }
.card-carousel__btn:disabled { opacity: 0.3; cursor: default; }
.card-carousel__dots { display: flex; gap: 6px; align-items: center; }
.card-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--slb-border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.card-carousel__dot.is-active { background: var(--slb-green-dark); transform: scale(1.4); }
@media (max-width: 860px) {
  .card-carousel__slide { flex-basis: 50%; }
}
@media (max-width: 480px) {
  .card-carousel__slide { flex-basis: 100%; }
}

/* ---- PayFast payment options ---- */
.payment-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
  margin-top: var(--space-md);
}
@media (max-width: 800px) {
  .payment-options-grid { grid-template-columns: 1fr; }
}
.payment-option__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--slb-dark);
  margin-bottom: var(--space-sm);
}
.payfast-amounts {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.payfast-amounts form { width: 100%; }
.btn--payfast {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1.25rem;
  background: #1A9DD9;
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  text-align: center;
}
.btn--payfast:hover { background: #1580B2; }
.payfast-custom {
  margin-top: var(--space-sm);
  border-top: 1px solid var(--slb-border);
  padding-top: var(--space-sm);
}
.payfast-custom p {
  font-size: 0.875rem;
  color: var(--slb-text-light);
  margin-bottom: 0.5rem;
}
.payfast-custom__row {
  display: flex;
  gap: 0.5rem;
}
.payfast-custom__row input[type="number"],
.payfast-inline-grid input[type="text"],
.payfast-inline-grid input[type="number"] {
  padding: 0.65rem 0.75rem;
  border: 1.5px solid var(--slb-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--slb-text);
  background: #fff;
  min-width: 0;
  width: 100%;
}
.payfast-custom__row input[type="number"]:focus,
.payfast-inline-grid input:focus {
  outline: none;
  border-color: #00b0cc;
  box-shadow: 0 0 0 3px rgba(0,176,204,0.15);
}
.payfast-trust {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: var(--space-sm);
  font-size: 0.8rem;
  color: var(--slb-text-light);
}
/* PayFast quick-donate row (index dark section) */
.payfast-quick {
  margin-top: var(--space-md);
}
.payfast-quick__label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.payfast-quick__btns {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.payfast-quick__btns form { display: contents; }
.btn--payfast--sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  width: auto;
  border-radius: var(--radius-sm);
}

/* Pay-master inline PayFast form */
.payfast-inline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: var(--space-sm);
  align-items: end;
}
.payfast-inline-grid label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--slb-text);
}
.payfast-inline-grid .btn--payfast { width: auto; white-space: nowrap; }
@media (max-width: 640px) {
  .payfast-inline-grid { grid-template-columns: 1fr; }
  .payfast-inline-grid .btn--payfast { width: 100%; }
}
