:root {
  --ink: #1e2a44;
  --ink-soft: #586680;
  --paper: #f3f8ff;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --line: #d4e1f2;
  --brand: #1f5e9d;
  --brand-2: #2f8dc8;
  --brand-soft: #d9ebff;
  --accent: #ff6b57;
  --accent-2: #ffa14b;
  --mint: #cfeee1;
  --leaf: #7ec96a;
  --sun: #ffd95a;
  --berry: #e85a98;
  --sky: #67c5e8;
  --shadow-sm: 0 8px 20px rgba(27, 46, 77, 0.08);
  --shadow-md: 0 16px 34px rgba(27, 46, 77, 0.12);
  --shadow-lg: 0 24px 48px rgba(27, 46, 77, 0.16);
  --radius: 18px;

  /* Logo Color Theme */
  --primary-blue: #1f5e9d;
  --primary-red: #ff6b57;
  --primary-green: #7ec96a;

  /* Admin Colors */
  --dark-blue: #1e2a44;
  --text-gray: #586680;
  --brand-blue: #1f5e9d;
  --error-red: #ff6b57;
  --success-green: #7ec96a;
  --warning-yellow: #ffd95a;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "DM Sans", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% -8%, rgba(103, 197, 232, 0.18) 0%, transparent 38%),
    radial-gradient(circle at 100% 12%, rgba(255, 107, 87, 0.13) 0%, transparent 34%),
    radial-gradient(circle at 18% 92%, rgba(126, 201, 106, 0.16) 0%, transparent 33%),
    var(--paper);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.35;
}

body::before {
  width: 260px;
  height: 260px;
  right: -80px;
  top: 120px;
  background: #bfe1ff;
}

body::after {
  width: 240px;
  height: 240px;
  left: -90px;
  bottom: 90px;
  background: #cceee4;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

main {
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding-bottom: 3.2rem;
}

.announcement {
  text-align: center;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2b456a;
  background: linear-gradient(90deg, #fff1ba 0%, #e6f4ff 45%, #dcf6e8 100%);
  padding: 0.55rem 1rem;
}

.site-header {
  width: min(1280px, 94vw);
  margin: 1rem auto 1.5rem;
  padding: 0.72rem 0.85rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  border-radius: 24px;
  border: 1px solid rgba(212, 225, 242, 0.8);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 32px rgba(27, 46, 77, 0.06);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0.6rem;
  z-index: 20;
  transition: box-shadow 0.3s ease, transform 0.25s ease, border-color 0.3s ease;
}

.site-header:hover {
  border-color: rgba(212, 225, 242, 1);
}

.site-header.scrolled {
  box-shadow: 0 16px 48px rgba(27, 46, 77, 0.12);
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(212, 225, 242, 0.6);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0.6rem;
  z-index: 20;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.2rem;
}

.logo img {
  width: clamp(190px, 20vw, 300px);
  height: auto;
  max-height: 82px;
  border-radius: 0;
  object-fit: contain;
}

.logo span {
  display: none;
}

.menu-toggle {
  display: none;
  justify-self: end;
  border-radius: 10px;
  background: #ecf2fb;
  color: var(--ink);
  padding: 0.52rem 0.84rem;
}

.site-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.2rem;
}

.site-nav a {
  text-decoration: none;
  color: #355274;
  font-size: 0.94rem;
  font-weight: 700;
  padding: 0.56rem 0.84rem;
  border-radius: 999px;
  position: relative;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 0;
  height: 2px;
  background: var(--brand);
  transform: translateX(-50%);
  transition: width 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  background: linear-gradient(135deg, #e7f1ff, #f4edff);
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  width: 60%;
}

.header-cta,
.button,
button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.header-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  padding: 0.66rem 1.22rem;
  font-size: 0.92rem;
  box-shadow: 0 12px 24px rgba(239, 106, 91, 0.35);
  position: relative;
  overflow: hidden;
}

.header-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.header-cta:hover::before {
  left: 100%;
  box-shadow: 0 8px 18px rgba(239, 106, 91, 0.35);
}

.header-cta:hover,
.button:hover,
button:hover {
  transform: translateY(-2px);
  filter: saturate(1.08) brightness(1.05);
  box-shadow: 0 16px 32px rgba(239, 106, 91, 0.4);
  transform: translateY(-1px);
  filter: saturate(1.04);
}

.hero {
  position: relative;
  width: 100vw;
  height: 500px;
  margin-left: calc(-50vw + 50%);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-content h1 {
  margin: 0;
  font-family: "Baloo 2", "Trebuchet MS", sans-serif;
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.015em;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  display: none;
}

.eyebrow {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #2e6aa5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem;
  z-index: 3;
  position: relative;
}

.hero-actions .button-ghost {
  display: none;
}

.button {
  min-height: 44px;
  padding: 0.64rem 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button-primary,
button {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 12px 28px rgba(38, 79, 135, 0.32);
  position: relative;
  border-radius: 8px;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: none;
  cursor: pointer;
}

.button-primary:hover,
button:hover {
  box-shadow: 0 16px 36px rgba(38, 79, 135, 0.4);
  transform: translateY(-2px);
}

.button-primary:active,
button:active {
  transform: translateY(0);
  box-shadow: 0 8px 20px rgba(38, 79, 135, 0.3);
}

.button-ghost {
  color: #1f4e7e;
  background: linear-gradient(135deg, #eaf3ff, #eefaf0);
  border: 2px solid #d4e5f7;
  transition: all 0.3s ease;
}

.button-ghost:hover {
  border-color: var(--brand-2);
  background: linear-gradient(135deg, #d4e9ff, #e0f6f0);
  box-shadow: 0 8px 20px rgba(38, 79, 135, 0.15);
}

.hero-badges {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hero-badges li {
  font-size: 0.83rem;
  font-weight: 700;
  color: #174c75;
  background: linear-gradient(135deg, #d7f0ff, #e6f8ea);
  border-radius: 999px;
  padding: 0.34rem 0.66rem;
}

.hero-media {
  display: grid;
  gap: 0.8rem;
}

.hero-slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 340px;
  background: linear-gradient(135deg, #e9f4ff, #f2fff3);
  box-shadow: var(--shadow-sm);
}

.hero-slider::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(7, 24, 48, 0.28));
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

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

.hero-controls {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
}

.hero-controls button {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(30, 55, 91, 0.92);
  box-shadow: none;
  padding: 0;
}

/* Hidden elements in new hero design */
.hero-single {
  display: none;
}

.hero-media {
  display: none;
}

.hero-image {
  display: none;
}

.hero-mantra {
  font-family: "Baloo 2", "Trebuchet MS", sans-serif;
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.015em;
  margin: 0;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Schedule Table */
.schedule-table {
  display: grid;
  gap: 0.35rem;
  margin-top: 1.2rem;
}

.schedule-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0.8rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  border: 1px solid var(--line);
  border-radius: 10px;
  align-items: center;
  transition: all 0.25s ease;
}

.schedule-item:hover {
  background: linear-gradient(180deg, #fafbff, #f3f9ff);
  border-color: #b3c8e0;
  transform: translateX(4px);
}

.schedule-item strong {
  color: var(--brand);
  font-weight: 800;
  white-space: nowrap;
}

.value-strip,
.three-col,
.program-grid,
.gallery-grid {
  display: grid;
  gap: 1rem;
}

.value-strip,
.three-col {
  margin-top: 1.6rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.value-strip article,
.three-col article {
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease, border-color 0.2s ease;
  position: relative;
}

.value-strip article::before,
.three-col article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 5px;
  width: 100%;
  border-radius: var(--radius) var(--radius) 0 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.value-strip article:nth-child(3n + 1),
.three-col article:nth-child(3n + 1) {
  border-top: 1px solid var(--line);
}

.value-strip article:nth-child(3n + 1)::before,
.three-col article:nth-child(3n + 1)::before {
  background: linear-gradient(90deg, var(--brand-2), #5db8e8);
  border-top: 4px solid var(--brand-2);
}

.value-strip article:nth-child(3n + 2),
.three-col article:nth-child(3n + 2) {
  border-top: 1px solid var(--line);
}

.value-strip article:nth-child(3n + 2)::before,
.three-col article:nth-child(3n + 2)::before {
  background: linear-gradient(90deg, var(--accent), #ffb574);
  border-top: 4px solid var(--accent);
}

.value-strip article:nth-child(3n),
.three-col article:nth-child(3n) {
  border-top: 1px solid var(--line);
}

.value-strip article:nth-child(3n)::before,
.three-col article:nth-child(3n)::before {
  background: linear-gradient(90deg, var(--leaf), #a8d96f);
  border-top: 4px solid var(--leaf);
}

.value-strip article:hover,
.three-col article:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: #c4d8ed;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.value-strip h3,
.three-col h3 {
  margin-top: 0;
  margin-bottom: 0.35rem;
}

.value-strip p,
.three-col p,
.muted {
  color: var(--ink-soft);
}

.offer-bar {
  margin-top: 1.3rem;
  border-radius: var(--radius);
  border: 1px solid rgba(40, 92, 147, 0.5);
  background: linear-gradient(135deg, #22508b 0%, #2f74b7 52%, #4aa2cf 100%);
  color: #fff;
  padding: 1.4rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.offer-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.8s ease;
  pointer-events: none;
}

.offer-bar:hover::before {
  left: 100%;
  border: 1px solid #285c93;
  background: linear-gradient(135deg, #22508b 0%, #2f74b7 52%, #4aa2cf 100%);
  color: #fff;
  padding: 1.2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  box-shadow: var(--shadow-md);
}

.offer-copy h2 {
  margin: 0.3rem 0;
  font-family: "Baloo 2", "Trebuchet MS", sans-serif;
  font-size: clamp(1.2rem, 2.2vw, 2rem);
  line-height: 1;
}

.offer-copy p {
  margin: 0.32rem 0;
  color: rgba(235, 245, 255, 0.9);
}

.offer-bar .eyebrow {
  color: #ffdf95;
}

.offer-actions {
  display: grid;
  align-self: center;
  gap: 0.5rem;
}

.section,
.page-hero,
.card-form,
.info-card,
.enroll-form,
.program-card,
.gallery-item,
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.section {
  margin-top: 2.3rem;
  padding: 1.7rem;
  background: linear-gradient(180deg, #ffffff, #fcfeff);
}

.page-hero {
  margin-top: 0.55rem;
  padding: 2.15rem 1.9rem;
  background: linear-gradient(120deg, #ffffff, #f1f8ff 62%, #f2fff6);
}

.page-hero h1 {
  margin: 0.34rem 0;
  font-family: "Baloo 2", "Trebuchet MS", sans-serif;
  font-size: clamp(2rem, 4.1vw, 3rem);
  line-height: 0.96;
}

.page-hero p {
  margin-top: 0.45rem;
  color: var(--ink-soft);
  max-width: 70ch;
}

.section-heading h2 {
  margin: 0.25rem 0 0;
  font-family: "Baloo 2", "Trebuchet MS", sans-serif;
  font-size: clamp(1.45rem, 3vw, 2.3rem);
  line-height: 1;
}

.program-grid {
  margin-top: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.age-grid .age-card[data-age-group="after-schoolers"] {
  grid-column: 2 / 3;
}

.program-card {
  padding: 1rem;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.23s ease;
  transition: transform 0.23s ease, box-shadow 0.23s ease, border-color 0.23s ease;
  position: relative;
  overflow: hidden;
}

.program-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 5px;
  width: 100%;
  background: linear-gradient(90deg, #5d95d5, #61b99e, #ffc35e);
  opacity: 0.7;
}

.program-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: #b8d4ed;
}

.program-card:hover::after {
  opacity: 0.3;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, #5d95d5, #61b99e, #ffc35e);
  opacity: 0.6;
}

.program-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cfdced;
}

.program-card h3 {
  margin: 0.55rem 0 0.4rem;
}

.program-card p {
  margin: 0.45rem 0;
}

.program-pill {
  display: inline-flex;
  border-radius: 999px;
  background: linear-gradient(135deg, #e2f0ff, #def4ec);
  color: #1e5a8d;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.28rem 0.64rem;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.filter,
.age-filter {
  border-radius: 999px;
  background: #edf4fe;
  color: #2f5376;
  border: 1px solid #cfe0f4;
  padding: 0.5rem 0.86rem;
  font-weight: 700;
}

.filter.active,
.age-filter.active {
  background: linear-gradient(135deg, #2f6ba8, #3a9dcc);
  color: #fff;
  border-color: transparent;
}

.text-link {
  color: #256cb0;
  font-weight: 700;
}

.center {
  text-align: center;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.card-form,
.enroll-form,
.info-card {
  padding: 1.1rem;
}

.compact-steps {
  margin-top: 0.7rem;
  grid-template-columns: 1fr;
}

.compact-steps article {
  padding: 0.72rem 0.8rem;
}

.compact-steps h4 {
  margin: 0 0 0.25rem;
}

.split .gallery-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.89rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border-radius: 12px;
  border: 2px solid #cad8e9;
  background: linear-gradient(135deg, #fcfdff, #f9fbff);
  color: var(--ink);
  font: inherit;
  padding: 0.72rem 0.84rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #b3c8e0;
  background: linear-gradient(135deg, #ffffff, #fbfdff);
  border: 1px solid #cad8e9;
  background: #fcfdff;
  color: var(--ink);
  font: inherit;
  padding: 0.66rem 0.72rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #2f8dc8;
  box-shadow: 0 0 0 4px rgba(47, 141, 200, 0.15);
  background: #ffffff;
  border-color: #6da9df;
  box-shadow: 0 0 0 3px rgba(97, 163, 226, 0.2);
}

textarea {
  resize: vertical;
}

.card-form,
.enroll-form,
.newsletter-form {
  display: grid;
  gap: 0.75rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem;
}

.form-message {
  min-height: 1rem;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
}

.form-message.success {
  color: #0f7a3e;
}

.form-message.error,
.form-error {
  color: #b03539;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.58rem;
}

.check-list li {
  position: relative;
  padding-left: 1.35rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.68rem;
  height: 0.68rem;
  border-radius: 4px;
  background: linear-gradient(135deg, #2f6ca8, #6eb06d, #ffc659);
}

.faq-list {
  display: grid;
  gap: 0.72rem;
}

.faq-item {
  padding: 0.85rem 1rem;
  border-left: 4px solid #83aedd;
}

.faq-item:nth-child(2n) {
  border-left-color: #89c77d;
}

.faq-item:nth-child(3n) {
  border-left-color: #f09a66;
}

.faq-toggle {
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--ink);
  border-radius: 0;
  padding: 0;
  font-size: 1rem;
}

.faq-item p {
  margin: 0.6rem 0 0;
  color: var(--ink-soft);
}

.gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-item {
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  position: relative;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(31, 94, 157, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
  pointer-events: none;
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.gallery-item:hover::after {
  opacity: 1;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gallery-item:hover img {
  transform: scale(1.08);
  transition: transform 0.35s ease;
}

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

.gallery-item figcaption {
  padding: 0.65rem 0.8rem;
  font-size: 0.86rem;
  color: #385678;
  background: linear-gradient(180deg, #fafdff, #f2f9ff);
}

.info-card iframe {
  width: 100%;
  min-height: 270px;
  border: 0;
  border-radius: 12px;
  margin-top: 0.6rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(10, 20, 38, 0.84);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-inner {
  position: relative;
  max-width: min(1100px, 94vw);
  max-height: 88vh;
}

.lightbox-inner img {
  max-height: 88vh;
  border-radius: 14px;
}

.lightbox-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.55);
  box-shadow: none;
}

.site-footer {
  margin-top: 2.8rem;
  background: linear-gradient(135deg, #1b3358 0%, #245487 48%, #2e6b9f 100%);
  color: #d8e6f8;
  padding: 2.3rem 1rem 1.3rem;
}

.footer-top {
  width: min(1180px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.4rem;
}

.footer-top h3,
.footer-top h4 {
  color: #fff;
  margin-top: 0;
}

.footer-top p,
.footer-top a {
  color: #d8e6f8;
}

.newsletter-form {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  padding: 1rem;
}

.newsletter-form input {
  border-color: rgba(255, 255, 255, 0.25);
}

.footer-bottom {
  width: min(1180px, 92vw);
  margin: 1.2rem auto 0;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.23);
  color: #a9c0df;
  font-size: 0.86rem;
}

.admin-body {
  background: #f1f5fb;
}

.admin-login,
.admin-wrap {
  width: min(1120px, 94vw);
  margin: 2rem auto;
}

.admin-login {
  max-width: 460px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  display: grid;
  gap: 0.75rem;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

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

.admin-link {
  text-decoration: none;
  padding: 0.56rem 0.8rem;
  border-radius: 10px;
  background: #edf2fa;
  color: #264f87;
  font-weight: 700;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.82rem;
  margin: 1rem 0;
}

.admin-stats article,
.admin-table-section,
.media-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.admin-stats article {
  padding: 0.75rem 1rem;
}

.admin-stats h2 {
  margin: 0;
}

.admin-table-section {
  padding: 1rem;
  margin-top: 0.9rem;
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

th,
td {
  text-align: left;
  padding: 0.62rem;
  border-bottom: 1px solid #e8eef7;
  font-size: 0.9rem;
}

th {
  color: #36577e;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.media-status {
  margin: 0;
  font-weight: 700;
  color: #0f7a3e;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0.9rem;
}

.media-card {
  padding: 0.82rem;
}

.media-card h3 {
  margin-top: 0;
}

.media-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e2eaf5;
}

.media-upload-form {
  margin-top: 0.62rem;
  display: grid;
  gap: 0.55rem;
}

/* Scroll-in reveal animation */
.reveal-target {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.54s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.54s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: translateY(14px);
  transition: opacity 0.48s ease, transform 0.48s ease;
}

.reveal-target.is-inview {
  opacity: 1;
  transform: translateY(0);
}

/* Enhanced animations */
@keyframes float-in {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-in-right {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 8px 20px rgba(27, 46, 77, 0.08);
  }
  50% {
    box-shadow: 0 12px 28px rgba(27, 46, 77, 0.12);
  }
}

.animate-float {
  animation: float-in 0.6s ease-out;
}

.animate-slide {
  animation: slide-in-right 0.6s ease-out;
}

/* Premium Feature Cards */
.feature-cards {
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
  margin-top: 2.5rem;
}

.feature-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4rem;
  align-items: center;
}

.feature-card:nth-child(even) {
  direction: rtl;
}

.feature-card:nth-child(even) > * {
  direction: ltr;
}

.feature-image {
  height: 340px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  width: 100%;
}

.feature-content {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.feature-content h3 {
  font-size: 1.65rem;
  line-height: 1.25;
  color: var(--dark-blue);
  font-weight: 700;
}

.feature-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-gray);
}

.feature-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.8rem;
}

.feature-list li {
  font-size: 0.95rem;
  color: var(--text-gray);
  padding-left: 1.8rem;
  position: relative;
  line-height: 1.5;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand-blue);
  font-weight: bold;
  font-size: 1.1rem;
}

/* Testimonials Section */
.testimonials {
  background: linear-gradient(135deg, #f5f8fb 0%, #e8f0f8 100%);
  border-radius: 12px;
  padding: 3.2rem 2.4rem;
  margin-top: 4rem;
}

.testimonials .section-heading {
  margin-bottom: 2.4rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.testimonial:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.testimonial-quote {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-gray);
  font-style: italic;
  position: relative;
  padding-left: 1.2rem;
}

.testimonial-quote::before {
  content: '"';
  position: absolute;
  left: 0;
  font-size: 2rem;
  color: var(--brand-blue);
  opacity: 0.3;
  line-height: 0.8;
}

.testimonial-author {
  font-weight: 600;
  color: var(--dark-blue);
  font-size: 0.95rem;
}

.testimonial-tenure {
  font-size: 0.85rem;
  color: var(--text-gray);
}

.section-heading h2 strong {
  color: var(--brand-blue);
  font-weight: 700;
}

/* Newsletter Styles */
.newsletter-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.newsletter-item {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border-left: 5px solid var(--primary-blue);
  transition: box-shadow 0.3s ease;
}

.newsletter-item:hover {
  box-shadow: var(--shadow-md);
}

.newsletter-header {
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--line);
  padding-bottom: 1rem;
}

.newsletter-header h3 {
  color: var(--primary-blue);
  font-size: 1.5rem;
  margin: 0.5rem 0;
}

.newsletter-header .muted {
  color: var(--text-gray);
  font-size: 0.9rem;
  margin: 0.5rem 0 0 0;
}

.newsletter-content {
  color: var(--ink-soft);
  line-height: 1.8;
  font-size: 1rem;
}

.newsletter-content h4 {
  color: var(--primary-blue);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.newsletter-content ul, .newsletter-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.newsletter-content li {
  margin-bottom: 0.5rem;
}

/* Notification Badge */
.notification-badge {
  display: inline-block;
  background-color: var(--primary-red);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 0.5rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Interactive Mobile Animations */
@supports (hover: hover) {
  .feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
  }

  .testimonial:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
  }

  .three-col article:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  }

  .button:hover {
    transform: translateY(-2px);
  }
}

/* Mobile Touch Feedback */
@media (hover: none) {
  .feature-card:active {
    transform: scale(0.98);
  }

  .testimonial:active {
    transform: scale(0.98);
  }

  .three-col article:active {
    transform: scale(0.98);
  }
}

/* Admin Dashboard */
.admin-stats article {
  position: relative;
}

.admin-stats article h2 {
  color: var(--primary-blue);
  font-size: 2.5rem;
  margin: 0 0 0.5rem 0;
}

.admin-stats article p {
  color: var(--text-gray);
  margin: 0;
  font-size: 1rem;
}

/* Admin Buttons and Links */
.admin-link {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.admin-link:hover {
  background-color: rgba(31, 94, 157, 0.1);
  color: var(--dark-blue);
}

.button-primary {
  background-color: var(--primary-blue);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.button-primary:hover {
  background-color: var(--brand-2);
}

@media (max-width: 980px) {
  .site-header {
    border-radius: 18px;
    grid-template-columns: 1fr auto;
    row-gap: 0.35rem;
    align-items: center;
    padding: 0.7rem 0.75rem;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    min-height: 42px;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 8px 16px rgba(30, 55, 91, 0.12);
  }

  .site-nav {
    grid-column: 1 / -1;
    display: none;
    width: 100%;
    margin-top: 0.32rem;
    padding: 0.6rem 0.15rem 0.2rem;
    border-top: 1px solid #e0e9f6;
  }

  .site-nav.open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .site-nav a {
    text-align: center;
    width: 100%;
    padding: 0.62rem 0.55rem;
    font-size: 0.92rem;
  }

  .site-nav a::after {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .hero,
  .hero-single,
  .split,
  .offer-bar,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .value-strip,
  .three-col,
  .program-grid,
  .gallery-grid,
  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-card {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .feature-card:nth-child(even) {
    direction: ltr;
  }

  .feature-image {
    height: 280px;
  }

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

  .newsletter-item {
    padding: 1.5rem;
  }

  .newsletter-header h3 {
    font-size: 1.25rem;
  }

  .newsletter-content {
    font-size: 0.95rem;
  }
}

@media (max-width: 700px) {
  main,
  .site-header {
    width: min(100%, 95vw);
  }

  .announcement {
    font-size: 0.8rem;
    line-height: 1.3;
    padding: 0.5rem 0.75rem;
  }

  .site-header {
    margin-top: 0.7rem;
    margin-bottom: 1rem;
  }

  .logo span {
    display: none;
  }

  .logo img {
    width: clamp(160px, 50vw, 230px);
    max-height: 66px;
  }

  /* Hero Section - Mobile First */
  .hero {
    height: 420px;
    padding: 2rem 1.2rem;
    margin-left: calc(-50vw + 50%);
    width: 100vw;
  }

  .hero::before {
    background: rgba(0, 0, 0, 0.4);
  }

  .hero-content {
    padding: 0;
    width: 100%;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 8vw, 2.8rem);
    line-height: 1.15;
    margin-bottom: 1.2rem;
    font-weight: 800;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  }

  .hero-actions {
    gap: 0.6rem;
    margin-top: 1.5rem;
    flex-direction: column;
    width: 100%;
  }

  .button {
    min-height: 50px;
    padding: 0.75rem 1.5rem;
    width: 100%;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 20px rgba(38, 79, 135, 0.3);
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .button-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #2f8dc8 100%);
    color: white;
  }

  .button-primary:active {
    transform: scale(0.98);
    box-shadow: 0 4px 12px rgba(38, 79, 135, 0.4);
  }

  /* Section Padding */
  .section,
  .page-hero {
    padding: 2rem 1.2rem;
  }

  /* Section Heading */
  .section-heading {
    margin-bottom: 2rem;
    text-align: center;
  }

  .section-heading h2 {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    line-height: 1.2;
    margin: 0.5rem 0 0 0;
  }

  .eyebrow {
    font-size: 0.75rem;
    margin: 0 0 0.5rem 0;
  }

  /* Feature Cards - Better Mobile Layout */
  .feature-cards {
    gap: 1.8rem;
    margin-top: 0;
  }

  .feature-card {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    background: white;
    transition: all 0.3s ease;
  }

  .feature-card:active {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  }

  .feature-card:nth-child(even) {
    direction: ltr;
  }

  .feature-image {
    height: 220px;
    border-radius: 8px;
  }

  .feature-content h3 {
    font-size: 1.3rem;
    margin: 0.5rem 0 0.8rem 0;
    color: var(--primary-blue);
  }

  .feature-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 1rem 0;
  }

  .feature-list {
    gap: 0.6rem;
    margin: 0;
  }

  .feature-list li {
    font-size: 0.85rem;
    padding-left: 1.6rem;
  }

  /* Testimonials - Mobile Enhanced */
  .testimonials {
    padding: 2rem 1.2rem;
    margin: 2rem -1.2rem;
    width: auto;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .testimonial {
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-blue);
  }

  .testimonial:active {
    transform: scale(0.98);
  }

  .testimonial-quote {
    font-size: 0.9rem;
    padding-left: 1rem;
  }

  .testimonial-author {
    font-size: 0.9rem;
    margin-top: 1rem;
  }

  /* Three Column Layout */
  .three-col,
  .program-grid,
  .gallery-grid,
  .form-grid,
  .media-grid,
  .value-strip {
    grid-template-columns: 1fr;
  }

  .three-col article {
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  }

  .three-col h3 {
    color: var(--primary-blue);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
  }

  .three-col p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  /* Newsletter Items */
  .newsletter-item {
    padding: 1.5rem;
    border-left: 5px solid var(--primary-blue);
    border-radius: 8px;
  }

  .newsletter-header h3 {
    font-size: 1.2rem;
  }

  .newsletter-content {
    font-size: 0.9rem;
  }

  /* Hero Badges */
  .hero-badges {
    gap: 0.4rem;
  }

  .hero-badges li {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }

  .age-grid .age-card[data-age-group="after-schoolers"] {
    grid-column: auto;
  }

  /* Info Cards */
  .info-card {
    padding: 1.8rem 1.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(31, 94, 157, 0.05) 0%, rgba(126, 201, 106, 0.05) 100%);
    border-left: 5px solid var(--primary-blue);
  }

  .info-card h2 {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-top: 0;
  }

  /* Forms */
  .card-form label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--ink);
  }

  .card-form input,
  .card-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--line);
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
  }

  .card-form input:focus,
  .card-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(31, 94, 157, 0.1);
  }

  .card-form button {
    width: 100%;
    min-height: 50px;
    font-size: 1rem;
    font-weight: 700;
  }

  /* Split Layout */
  .split {
    grid-template-columns: 1fr;
  }

  .split .gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .site-nav.open {
    grid-template-columns: 1fr;
  }

  .site-nav a {
    text-align: left;
    padding-left: 0.85rem;
  }

  .logo img {
    width: clamp(150px, 52vw, 190px);
    max-height: 58px;
  }
}
