/* =========================================================
   Sunflower Kindergarten — Stylesheet
   Edit the variables below to recolor / restyle the site.
   ========================================================= */

:root {
  /* --- Brand colors --- */
  --sun:      #ffc233;   /* warm yellow */
  --sun-dark: #f0a500;
  --coral:    #ef476f;   /* accent pink */
  --mint:     #06d6a0;   /* accent green */
  --sky:      #2ec5e8;   /* accent blue */
  --ink:      #2a2440;   /* dark text */
  --cream:    #fff8ec;   /* page background */
  --white:    #ffffff;
  --muted:    #7d7795;

  /* --- Type --- */
  --font-display: 'Fredoka', sans-serif;
  --font-body:    'Nunito', sans-serif;

  /* --- Misc --- */
  --radius:   28px;
  --radius-sm: 16px;
  --shadow:   0 18px 40px -18px rgba(42, 36, 64, 0.35);
  --maxw:     1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 30px;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 12px 24px -10px var(--coral);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -10px var(--coral); }
.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--ink);
}
.btn-ghost:hover { transform: translateY(-3px); background: var(--ink); color: var(--white); }
.btn-block { width: 100%; text-align: center; }

/* ---------- Eyebrow + section heads ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sun-dark);
  background: rgba(255, 194, 51, .2);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section { padding: 96px 0; }
.section-head { max-width: 620px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 248, 236, .96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(42, 36, 64, .07);
  box-shadow: 0 2px 16px -4px rgba(42, 36, 64, .10);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 24px; min-height: 72px;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark {
  height: 52px;
  width: auto;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
}
.logo-text-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.1;
  color: var(--ink);
}
.logo-name--footer {
  color: var(--white);
}
.logo-sub {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .65rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.logo-sub--footer {
  color: #9b95b3;
}
.logo-text-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.logo-text-img {
  height: 28px;
  width: auto;
  object-fit: contain;
  display: block;
}
.logo-text-img--footer {
  filter: none;
  height: 28px;
}
.logo-sub {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .65rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.logo-sub--footer {
  color: #9b95b3;
}
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  font-family: var(--font-display); font-weight: 500;
  font-size: 1rem; transition: color .2s; color: var(--ink);
}
.main-nav a:not(.nav-cta):hover { color: var(--coral); }
.nav-cta {
  background: var(--sun); color: var(--ink);
  padding: 10px 22px; border-radius: 999px; font-weight: 700;
  box-shadow: 0 8px 18px -8px var(--sun-dark);
  transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -8px var(--sun-dark); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 26px; height: 3px; border-radius: 3px;
  background: var(--ink); margin: 5px 0; transition: .3s;
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 70px 0 140px; overflow: hidden; }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(10px); opacity: .5; z-index: 0; }
.blob-1 { width: 360px; height: 360px; background: var(--sun); top: -120px; right: -80px; }
.blob-2 { width: 280px; height: 280px; background: var(--mint); bottom: 40px; left: -120px; }
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 50px; align-items: center;
}
.hero-text h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.1rem);
  margin: 8px 0 18px;
}
.hero-text h1 em { color: var(--coral); font-style: normal; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 480px; }
.hero-buttons { display: flex; gap: 16px; margin: 28px 0 36px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-display); font-size: 1.8rem; color: var(--ink); }
.hero-stats span { font-size: .88rem; color: var(--muted); }

/* Hero art */
.hero-art { position: relative; height: 420px; }
.hero-circle {
  position: absolute; inset: 0; margin: auto;
  width: 320px; height: 320px; border-radius: 50%;
  background: linear-gradient(140deg, var(--sun), var(--sun-dark));
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
}
.hero-emoji { font-size: 9rem; animation: bob 4s ease-in-out infinite; }
.hero-card {
  position: absolute; width: 84px; height: 84px;
  background: var(--white); border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; box-shadow: var(--shadow);
}
.card-sun  { top: 10px;  left: 6px;   animation: float 5s ease-in-out infinite; }
.card-art  { bottom: 36px; left: 18px; animation: float 6s ease-in-out infinite .6s; }
.card-book { top: 40px;  right: 0;     animation: float 5.5s ease-in-out infinite 1.2s; }

@keyframes bob   { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-16px)} }
@keyframes float { 0%,100%{transform:translateY(0) rotate(-4deg)} 50%{transform:translateY(-14px) rotate(4deg)} }

.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; }
.hero-wave svg { width: 100%; height: 120px; }
.hero-wave path { fill: var(--white); }

/* ---------- Programs ---------- */
.programs { background: var(--white); }
.program-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.program-card {
  background: var(--cream); border-radius: var(--radius);
  padding: 34px 26px; text-align: center;
  border: 2px solid transparent;
  transition: transform .25s ease, border-color .25s ease;
}
.program-card:hover { transform: translateY(-10px); border-color: var(--sun); }
.program-icon {
  width: 76px; height: 76px; margin: 0 auto 18px;
  border-radius: 22px; background: var(--c, var(--sun));
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
}
.program-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.ages {
  font-family: var(--font-display); font-weight: 600;
  color: var(--coral); font-size: .9rem; margin-bottom: 10px;
}
.program-card p:last-child { color: var(--muted); font-size: .95rem; }

/* ---------- About ---------- */
.about-grid {
  display: grid; grid-template-columns: .95fr 1.05fr;
  gap: 60px; align-items: center;
}
.about-art { position: relative; height: 420px; }
.about-photo {
  position: absolute; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; box-shadow: var(--shadow);
}
.photo-a { width: 230px; height: 280px; background: var(--sky);  top: 0; left: 0; }
.photo-b { width: 190px; height: 190px; background: var(--coral); top: 30px; right: 10px; }
.photo-c { width: 210px; height: 200px; background: var(--mint);  bottom: 0; right: 60px; }
.about-badge {
  position: absolute; bottom: 20px; left: 0;
  background: var(--white); border-radius: var(--radius-sm);
  padding: 16px 22px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.about-badge strong { font-family: var(--font-display); font-size: 1.7rem; color: var(--sun-dark); }
.about-badge span { font-size: .82rem; color: var(--muted); }
.about-text h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 16px; }
.about-text > p { color: var(--muted); margin-bottom: 22px; }
.feature-list { list-style: none; margin-bottom: 28px; }
.feature-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 0; font-weight: 600;
}
.feature-list span {
  width: 26px; height: 26px; flex-shrink: 0;
  background: var(--mint); color: var(--white);
  border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: .8rem;
}

/* ---------- Teachers / Services ---------- */
.teachers { background: var(--white); }
.teacher-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; row-gap: 20px; }
.teacher-card {
  background: var(--cream); border-radius: var(--radius-sm);
  padding: 22px 16px; text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.teacher-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.teacher-avatar {
  width: 68px; height: 68px; margin: 0 auto 12px;
  border-radius: 50%; background: var(--c, var(--sun));
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}
.teacher-card h3 { font-size: 1rem; margin-bottom: 2px; }
.role {
  font-family: var(--font-display); font-weight: 600;
  color: var(--sky); font-size: .78rem; margin: 3px 0 8px;
}
.teacher-card p:last-child { color: var(--muted); font-size: .85rem; line-height: 1.5; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 200px; gap: 20px;
}
.gallery-item {
  border-radius: var(--radius); position: relative;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.6rem; overflow: hidden; cursor: pointer;
  transition: transform .25s ease;
}
.gallery-item:hover { transform: scale(1.03); }
.gallery-item span {
  position: absolute; bottom: 14px; left: 16px;
  font-family: var(--font-display); font-weight: 600;
  font-size: 1rem; color: var(--white);
  background: rgba(42, 36, 64, .55); padding: 5px 14px; border-radius: 999px;
}
.g1 { background: linear-gradient(140deg, #ffd166, #f0a500); }
.g2 { background: linear-gradient(140deg, #06d6a0, #048a68); }
.g3 { background: linear-gradient(140deg, #ef476f, #c42b50); }
.g4 { background: linear-gradient(140deg, #2ec5e8, #1a93b0); }
.g5 { background: linear-gradient(140deg, #b388ff, #7c4dff); }
.g6 { background: linear-gradient(140deg, #ff9e6d, #ff6f3c); }
.g1 { grid-row: span 1; } .g2 { grid-row: span 1; }
.g3 { grid-column: span 1; grid-row: span 1; }

/* ---------- Testimonials ---------- */
.voices { background: var(--white); }
.voice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.voice-card {
  background: var(--cream); border-radius: var(--radius);
  padding: 32px 28px; position: relative;
}
.voice-card::before {
  content: "\201C"; font-family: var(--font-display);
  font-size: 5rem; color: var(--sun);
  position: absolute; top: 4px; right: 22px; line-height: 1;
}
.voice-card p { font-style: italic; margin-bottom: 22px; }
.voice-card footer { display: flex; align-items: center; gap: 12px; }
.voice-dot {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--c, var(--sun)); color: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.voice-card footer span:last-child { display: flex; flex-direction: column; font-size: .85rem; color: var(--muted); }
.voice-card footer strong { font-family: var(--font-display); color: var(--ink); font-size: 1rem; }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(160deg, var(--sun) 0%, var(--sun-dark) 100%); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 50px; align-items: start;
}
.contact-info .eyebrow { background: rgba(255,255,255,.35); color: var(--ink); }
.contact-info h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 14px; }
.contact-info > p { margin-bottom: 26px; }
.contact-list { list-style: none; }
.contact-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 0; font-weight: 600;
}
.contact-list span { font-size: 1.3rem; }
.contact-form {
  background: var(--white); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow);
}
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label {
  display: block; font-family: var(--font-display);
  font-weight: 600; font-size: .9rem; margin-bottom: 6px;
}
.field label small { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem;
  padding: 12px 16px; border: 2px solid #ece6da;
  border-radius: var(--radius-sm); background: var(--cream);
  transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--sun);
}
.field textarea { resize: vertical; }
.form-note {
  margin-top: 14px; text-align: center;
  font-weight: 700; color: var(--mint);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d8d3e6; padding: 64px 0 26px; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px; margin-bottom: 40px;
}
.footer-brand { display: flex; flex-direction: column; }
.footer-brand .logo {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.footer-brand .logo-mark {
  height: 48px; width: auto; object-fit: contain;
  border-radius: 50%; flex-shrink: 0;
}
.footer-brand .logo-text { color: var(--white); }
.footer-brand .logo-text small { color: #9b95b3; }
.footer-brand p { font-size: .92rem; max-width: 260px; color: #d8d3e6; }
.footer-col h4 {
  color: var(--white); font-size: 1.05rem; margin-bottom: 14px;
}
.footer-col a, .footer-col p { display: block; font-size: .92rem; padding: 4px 0; }
.footer-col a:hover { color: var(--sun); }
.socials { display: flex; gap: 12px; font-size: 1.5rem; }
.social-link { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: inherit; text-decoration: none; opacity: .8; transition: opacity .2s; }
.social-link:hover { opacity: 1; color: var(--sun); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1);
  font-size: .85rem; color: #9b95b3;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .program-grid, .teacher-grid { grid-template-columns: repeat(2, 1fr); }
  .voice-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); flex-direction: column;
    gap: 0; padding: 12px 24px 24px;
    border-bottom: 2px solid rgba(42,36,64,.08);
    transform: translateY(-150%); transition: transform .35s ease;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { width: 100%; padding: 12px 0; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-grid { gap: 24px; }
  .hero-art, .about-art { height: 280px; margin-top: 10px; }
  .hero-circle { width: 220px; height: 220px; }
  .hero-emoji { font-size: 6rem; }
  .hero-card { width: 60px; height: 60px; font-size: 1.7rem; border-radius: 16px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .section { padding: 64px 0; }
  .program-grid, .teacher-grid, .gallery-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
  .hero-art { height: 240px; }
  .hero-circle { width: 180px; height: 180px; }
  .hero-emoji { font-size: 5rem; }
  .hero-card { width: 52px; height: 52px; font-size: 1.4rem; border-radius: 14px; }
}

/* ===== PRINCIPAL SECTION ===== */
.principal-section { background: var(--cream); }
.principal-card {
  display: flex;
  align-items: center;
  gap: 48px;
  background: #fff;
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
}
.principal-photo-wrap {
  flex-shrink: 0;
}
.principal-photo {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--sun);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.principal-content h2 {
  font-size: 2rem;
  margin: 8px 0 4px;
  color: var(--ink);
}
.principal-role {
  font-size: 1rem;
  color: var(--sky);
  font-weight: 600;
  margin-bottom: 16px;
}
.principal-bio {
  font-size: 1rem;
  color: #555;
  line-height: 1.7;
  max-width: 560px;
}
@media (max-width: 640px) {
  .principal-card {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
    gap: 24px;
  }
  .principal-bio { max-width: 100%; }
}

/* ===== PRINCIPAL IN ABOUT SECTION ===== */
.about-art { position: relative; display: flex; justify-content: center; align-items: center; }
.principal-photo {
  width: 100%;
  max-width: 340px;
  height: 400px;
  object-fit: cover;
  object-position: top;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,.13);
}
.principal-badge {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 16px;
  padding: 12px 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  text-align: center;
  white-space: nowrap;
}
.principal-badge strong { display: block; font-size: 1rem; color: var(--ink); }
.principal-badge span { font-size: .85rem; color: var(--sky); font-weight: 600; }

/* ===== PRINCIPAL CARD LEFT ===== */
.principal-card-left {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 320px;
}
.principal-photo-small {
  width: 120px;
  height: 120px;
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
  border: 4px solid var(--sun);
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.principal-info { text-align: center; }
.principal-info strong { display: block; font-size: 1.1rem; color: var(--ink); margin-bottom: 2px; }
.principal-info span { font-size: .85rem; color: var(--sky); font-weight: 600; display: block; margin-bottom: 10px; }
.principal-info p { font-size: .88rem; color: #666; line-height: 1.6; }

/* ===== PRINCIPAL CARD OVERRIDE ===== */
.principal-card-left {
  background: #fff;
  border-radius: 24px;
  padding: 0;
  box-shadow: 0 8px 32px rgba(0,0,0,.10);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  max-width: 360px;
  overflow: hidden;
}
.principal-photo-small {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: top;
  border-radius: 0;
  border: none;
  box-shadow: none;
}
.principal-info {
  padding: 20px 24px 24px;
  text-align: left;
}
.principal-info strong {
  font-size: 1.2rem;
}
.principal-info p {
  font-size: .9rem;
  margin-top: 8px;
}

/* ===== PRINCIPAL CIRCULAR PHOTO ===== */
.principal-card-left {
  padding-top: 32px;
  align-items: center;
}
.principal-photo-small {
  width: 160px;
  height: 160px;
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
  border: 5px solid var(--sun);
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.principal-info { text-align: center; }

.principal-info p { text-align: center; }

/* ===== MOBILE FIX — PRINCIPAL CARD ===== */
@media (max-width: 820px) {
  .principal-card-left { max-width: 100%; width: 100%; }
  .about-art { justify-content: center; height: auto !important; }
  .principal-photo-small {
    width: 110px;
    height: 110px;
  }
  .principal-info p { text-align: left; font-size: .85rem; }
  .principal-card-left { padding-top: 20px; }
}

/* ===== GALLERY SECTION ===== */
.gallery {
  background: linear-gradient(160deg, #fff8ec 0%, #e8f8f4 60%, #fce8ee 100%);
  position: relative;
  overflow: hidden;
}
.gallery::before {
  content: '';
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,194,51,.22) 0%, transparent 70%);
  top: -140px; right: -100px;
  pointer-events: none;
}
.gallery::after {
  content: '';
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6,214,160,.18) 0%, transparent 70%);
  bottom: -80px; left: -80px;
  pointer-events: none;
}
.gallery .section-head h2 em { color: var(--coral); font-style: normal; }

/* ===== MEDIA SCROLL GALLERY ===== */
.media-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 12px 4px 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  position: relative;
  z-index: 1;
}
.media-scroll::-webkit-scrollbar { height: 8px; }
.media-scroll::-webkit-scrollbar-track {
  background: rgba(255,255,255,.6);
  border-radius: 999px;
}
.media-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--sun), var(--coral));
  border-radius: 999px;
}

.media-item {
  flex-shrink: 0;
  width: 300px;
  height: 220px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  scroll-snap-align: start;
  background: #111;
  box-shadow: 0 8px 28px -8px rgba(42,36,64,.28);
  transition: transform .25s ease, box-shadow .25s ease;
  border: 3px solid var(--white);
}
.media-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px -10px rgba(42,36,64,.38);
}
/* Rotating colorful top accent per card */
.media-item:nth-child(4n+1) { border-top: 4px solid var(--sun); }
.media-item:nth-child(4n+2) { border-top: 4px solid var(--mint); }
.media-item:nth-child(4n+3) { border-top: 4px solid var(--coral); }
.media-item:nth-child(4n+4) { border-top: 4px solid var(--sky); }

.media-item video,
.media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.25);
  transition: background .2s;
}
.media-play::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 11px 0 11px 20px;
  border-color: transparent transparent transparent #ffffff;
  margin-left: 4px; /* optical centering */
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.3));
  transition: transform .2s;
}
/* White circle behind the triangle */
.media-play::before {
  content: '';
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  border: 2px solid rgba(255,255,255,.7);
  transition: transform .2s, background .2s;
}
.media-item:hover .media-play { background: rgba(0,0,0,.4); }
.media-item:hover .media-play::before {
  background: rgba(255,255,255,.35);
  transform: scale(1.1);
}
.media-item:hover .media-play::after { transform: scale(1.15); }


/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox-content video,
.lightbox-content img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  outline: none;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}
