/* ==========================================================================
   SafeHands Schools — main.css
   GressTech Ltd | Single stylesheet — all theme styles live here
   Mobile-first. BEM class naming: .sh-block__element--modifier
   ========================================================================== */

/* ==========================================================================
   1. DESIGN TOKENS (CSS Custom Properties)
   ========================================================================== */

:root {
  /* Colours */
  --color-primary:    #1B4F8A;   /* Deep Blue — header, footer, primary CTAs */
  --color-accent:     #F97316;   /* Warm Orange — buttons, highlights, hover states */
  --color-secondary:  #22C55E;   /* Fresh Green — tags, icons, success states */
  --color-tertiary:   #F59E0B;   /* Sun Yellow — badges, decorative accents */
  --color-text:       #1E293B;   /* Slate Dark — body copy */
  --color-muted:      #64748B;   /* Muted text — captions, labels */
  --color-bg:         #FFFFFF;   /* Default page background */
  --color-bg-alt:     #F0F9FF;   /* Ice Blue — alternating sections */
  --color-bg-warm:    #FFF7ED;   /* Peach Cream — CTA sections, admissions */
  --color-border:     #E2E8F0;   /* Card and divider borders */
  --color-white:      #FFFFFF;
  --color-navy:       #0A2240;   /* Deep navy — footer bg */

  /* Typography */
  --font-heading: 'Nunito', sans-serif;
  --font-body:    'Poppins', sans-serif;

  /* Font Sizes */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border Radius */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md:  0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg:  0 8px 40px rgba(0, 0, 0, 0.12);
  --shadow-btn: 0 4px 14px rgba(249, 115, 22, 0.35);

  /* Layout */
  --container-max: 1200px;
  --container-pad: var(--space-6);
  --section-py:    var(--space-20);

  /* Transitions */
  --transition-base: 250ms ease;
  --transition-fast: 150ms ease;

  /* Z-index */
  --z-header:   100;
  --z-dropdown: 200;
  --z-overlay:  300;
  --z-modal:    400;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
}

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

a:hover {
  color: var(--color-accent);
}

ul,
ol {
  list-style: none;
}

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-text);
}

h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.875rem); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p { font-size: var(--text-base); line-height: 1.7; }

/* ==========================================================================
   4. UTILITIES
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.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;
}

.section {
  padding-block: var(--section-py);
}

.section--alt {
  background-color: var(--color-bg-alt);
}

.section--warm {
  background-color: var(--color-bg-warm);
}

.section--navy {
  background-color: var(--color-navy);
  color: var(--color-white);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section__eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
  margin-bottom: var(--space-3);
}

.section__title {
  margin-bottom: var(--space-4);
}

.section__subtitle {
  font-size: var(--text-lg);
  color: var(--color-muted);
  max-width: 600px;
  margin-inline: auto;
}

/* Wysiwyg content */
.wysiwyg > * + * { margin-top: var(--space-4); }
.wysiwyg h2 { font-size: var(--text-2xl); }
.wysiwyg h3 { font-size: var(--text-xl); }
.wysiwyg a { color: var(--color-primary); text-decoration: underline; }
.wysiwyg ul, .wysiwyg ol { padding-left: var(--space-6); list-style: revert; }
.wysiwyg img { max-width: 100%; height: auto; border-radius: var(--radius-md); }

/* Accessibility */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   5. BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1;
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--transition-base),
              border-color var(--transition-base),
              color var(--transition-base),
              box-shadow var(--transition-base),
              transform var(--transition-fast);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

.btn--primary {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
  box-shadow: var(--shadow-btn);
}

.btn--primary:hover {
  background-color: #ea6c0a;
  border-color: #ea6c0a;
  color: var(--color-white);
}

.btn--secondary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.btn--secondary:hover {
  background-color: #153f6e;
  border-color: #153f6e;
  color: var(--color-white);
}

.btn--outline {
  background-color: transparent;
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn--outline:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.btn--outline-white {
  background-color: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}

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

.btn--sm {
  font-size: var(--text-sm);
  padding: 0.5rem 1.25rem;
}

.btn--lg {
  font-size: var(--text-lg);
  padding: 1rem 2.5rem;
}

/* ==========================================================================
   6. HEADER
   ========================================================================== */

.sh-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background-color: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base);
}

.sh-header.is-scrolled {
  box-shadow: var(--shadow-md);
}

.sh-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  height: 72px;
}

.sh-header__logo img {
  height: 48px;
  width: auto;
}

.sh-nav {
  display: none;
}

.sh-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.sh-nav__item a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.sh-nav__item a:hover,
.sh-nav__item.current-menu-item a {
  color: var(--color-primary);
  background-color: var(--color-bg-alt);
}

.sh-header__actions {
  display: none;
  align-items: center;
  gap: var(--space-3);
}

/* Hamburger */
.sh-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: var(--space-2);
  background: none;
  border: none;
  cursor: pointer;
}

.sh-hamburger__line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-fast);
  transform-origin: center;
}

.sh-hamburger[aria-expanded="true"] .sh-hamburger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.sh-hamburger[aria-expanded="true"] .sh-hamburger__line:nth-child(2) {
  opacity: 0;
}
.sh-hamburger[aria-expanded="true"] .sh-hamburger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav drawer */
.sh-mobile-nav {
  display: none;
  position: fixed;
  inset: 72px 0 0 0;
  background-color: var(--color-white);
  padding: var(--space-6);
  overflow-y: auto;
  z-index: var(--z-dropdown);
  border-top: 1px solid var(--color-border);
}

.sh-mobile-nav.is-open {
  display: block;
}

.sh-mobile-nav__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.sh-mobile-nav__item a {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast);
}

.sh-mobile-nav__item a:hover {
  background-color: var(--color-bg-alt);
  color: var(--color-primary);
}

@media (min-width: 1024px) {
  .sh-nav { display: block; }
  .sh-header__actions { display: flex; }
  .sh-hamburger { display: none; }
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */

.sh-footer {
  background-color: var(--color-navy);
  color: rgba(255, 255, 255, 0.8);
  padding-block: var(--space-16) var(--space-8);
}

.sh-footer__grid {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr;
}

.sh-footer__brand img {
  height: 64px;
  width: auto;
  margin-bottom: var(--space-4);
}

.sh-footer__tagline {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: var(--space-6);
}

.sh-footer__heading {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.sh-footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.sh-footer__links a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition-fast);
}

.sh-footer__links a:hover {
  color: var(--color-accent);
}

.sh-footer__contact-item {
  display: flex;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: var(--space-3);
}

.sh-footer__contact-item a {
  color: inherit;
}

.sh-footer__contact-item a:hover {
  color: var(--color-accent);
}

.sh-footer__bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  text-align: center;
}

.sh-footer__copy {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
}

@media (min-width: 768px) {
  .sh-footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
  .sh-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ==========================================================================
   8. CARDS (shared)
   ========================================================================== */

.sh-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
  display: flex;
  flex-direction: column;
}

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

.sh-card__image {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

.sh-card__body {
  padding: var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.sh-card__tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  background-color: #fff7ed;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.sh-card__title {
  font-size: var(--text-xl);
  font-weight: 800;
  line-height: 1.3;
}

.sh-card__title a {
  color: inherit;
}

.sh-card__title a:hover {
  color: var(--color-primary);
}

.sh-card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.6;
  flex: 1;
}

.sh-card__footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-sm);
  color: var(--color-muted);
}

/* ==========================================================================
   9. PAGE BANNER (inner pages)
   ========================================================================== */

.sh-page-banner {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding-block: var(--space-16) var(--space-12);
  text-align: center;
}

.sh-page-banner__title {
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.sh-breadcrumb {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
}

.sh-breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
}

.sh-breadcrumb a:hover {
  color: var(--color-white);
}

.sh-breadcrumb__sep {
  color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   10. FORMS
   ========================================================================== */

.sh-form__group {
  margin-bottom: var(--space-6);
}

.sh-form__label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.sh-form__input,
.sh-form__textarea,
.sh-form__select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
}

.sh-form__input:focus,
.sh-form__textarea:focus,
.sh-form__select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(27, 79, 138, 0.12);
}

.sh-form__textarea {
  min-height: 140px;
  resize: vertical;
}

.sh-form__message {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  margin-top: var(--space-4);
}

.sh-form__message--success {
  background-color: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.sh-form__message--error {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ==========================================================================
   11. SKIP LINK
   ========================================================================== */

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 9999;
  padding: var(--space-3) var(--space-6);
  background-color: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
  color: var(--color-white);
}

/* ==========================================================================
   12. SOCIAL ICONS
   ========================================================================== */

.sh-social {
  display: flex;
  gap: var(--space-3);
}

.sh-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  font-size: var(--text-base);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.sh-social__link:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
}

/* ==========================================================================
   13. GRID HELPERS
   ========================================================================== */

.sh-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .sh-grid--2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .sh-grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .sh-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .sh-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   14. 404 PAGE
   ========================================================================== */

.sh-404 {
  text-align: center;
  padding-block: var(--space-24);
}

.sh-404__code {
  font-size: 8rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1;
  opacity: 0.15;
  margin-bottom: var(--space-4);
}

.sh-404__title {
  margin-bottom: var(--space-4);
}

.sh-404__text {
  color: var(--color-muted);
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}

/* ==========================================================================
   15. HERO SLIDER
   ========================================================================== */

.sh-hero {
  position: relative;
  width: 100%;
  height: clamp(480px, 80vh, 720px);
  overflow: hidden;
  background-color: var(--color-navy);
}

.sh-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 800ms ease;
  display: flex;
  align-items: center;
}

.sh-hero__slide.is-active {
  opacity: 1;
  z-index: 1;
}

.sh-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.sh-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 34, 64, 0.72) 0%,
    rgba(10, 34, 64, 0.40) 100%
  );
  z-index: 1;
}

.sh-hero__content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.sh-hero__text {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.25;
  margin-bottom: var(--space-8);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.sh-hero__cta {
  display: inline-flex;
}

.sh-hero__dots {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-2);
  z-index: 3;
}

.sh-hero__dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background-color var(--transition-base), transform var(--transition-fast);
}

.sh-hero__dot[aria-current="true"] {
  background-color: var(--color-accent);
  transform: scale(1.3);
}

/* ==========================================================================
   16. STATS BAR
   ========================================================================== */

.sh-stats-bar {
  padding-block: var(--space-16);
}

.sh-stats-bar__grid {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: repeat(2, 1fr);
  text-align: center;
}

.sh-stats-bar__number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.sh-stats-bar__label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (min-width: 640px) {
  .sh-stats-bar__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .sh-stats-bar__grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* ==========================================================================
   17. WELCOME SECTION
   ========================================================================== */

.sh-welcome__inner {
  max-width: 800px;
  margin-inline: auto;
  text-align: center;
}

.sh-welcome__heading {
  margin-bottom: var(--space-6);
  color: var(--color-primary);
}

/* ==========================================================================
   18. PILLARS — WHY CHOOSE US
   ========================================================================== */

.sh-pillars__grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}

.sh-pillar {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--color-accent);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.sh-pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.sh-pillar__icon {
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-4);
}

.sh-pillar__icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sh-pillar__title {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.sh-pillar__body {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.7;
}

@media (min-width: 640px) {
  .sh-pillars__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .sh-pillars__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   19. CLASSES PREVIEW
   ========================================================================== */

.sh-classes-preview__grid {
  margin-bottom: var(--space-12);
}

.sh-classes-preview__cta,
.sh-events-preview__cta,
.sh-gallery-preview__cta {
  text-align: center;
  margin-top: var(--space-12);
}

/* ==========================================================================
   20. ADMISSIONS CTA BAND
   ========================================================================== */

.sh-admissions-cta {
  padding-block: var(--space-20);
}

.sh-admissions-cta__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  align-items: center;
  text-align: center;
}

.sh-admissions-cta__heading {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.sh-admissions-cta__body {
  font-size: var(--text-lg);
  color: var(--color-muted);
  max-width: 560px;
}

.sh-admissions-cta__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
}

@media (min-width: 1024px) {
  .sh-admissions-cta__inner {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
  }

  .sh-admissions-cta__actions {
    flex-shrink: 0;
    justify-content: flex-end;
  }
}

/* ==========================================================================
   21. EVENTS PREVIEW
   ========================================================================== */

.sh-card__meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.sh-card__meta-item {
  display: flex;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.sh-card__link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
}

.sh-card__link:hover {
  color: var(--color-accent);
}

/* ==========================================================================
   22. GALLERY PREVIEW
   ========================================================================== */

.sh-gallery-preview__grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: var(--space-6);
}

.sh-gallery-preview__item {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.sh-gallery-preview__thumb {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.sh-gallery-preview__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.sh-gallery-preview__item:hover .sh-gallery-preview__img {
  transform: scale(1.05);
}

.sh-gallery-preview__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 34, 64, 0.8) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-4);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.sh-gallery-preview__item:hover .sh-gallery-preview__overlay {
  opacity: 1;
}

.sh-gallery-preview__title {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.3;
}

.sh-gallery-preview__desc {
  display: block;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.75);
  margin-top: var(--space-1);
}

@media (min-width: 640px) {
  .sh-gallery-preview__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .sh-gallery-preview__grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* ==========================================================================
   23. TESTIMONIALS CAROUSEL
   ========================================================================== */

.sh-testimonials {
  padding-block: var(--space-20);
}

.sh-testimonials .section__header {
  margin-bottom: var(--space-12);
}

.sh-testimonial {
  height: auto;
}

.sh-testimonial__inner {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.sh-testimonial__stars {
  display: flex;
  gap: 2px;
  font-size: var(--text-lg);
}

.sh-testimonial__star {
  color: rgba(255, 255, 255, 0.25);
}

.sh-testimonial__star--filled {
  color: var(--color-tertiary);
}

.sh-testimonial__quote {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
}

.sh-testimonial__footer {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.sh-testimonial__photo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
}

.sh-testimonial__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sh-testimonial__name {
  font-style: normal;
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-white);
}

.sh-testimonial__role {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.55);
}

.sh-testimonials__pagination {
  margin-top: var(--space-8);
  text-align: center;
}

.sh-testimonials__pagination .swiper-pagination-bullet {
  background-color: rgba(255, 255, 255, 0.35);
  opacity: 1;
  width: 10px;
  height: 10px;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.sh-testimonials__pagination .swiper-pagination-bullet-active {
  background-color: var(--color-accent);
  transform: scale(1.3);
}
