:root{
  --buttonblue:#3eb7f8;
  --basicblue:#3399e8;   /* headings */
  --bluetext:#00477d;    /* titles */
  --accentyellow:#fcb738;
  --offwhite:#f9f9f9;
  --darkgray:#333;
  --almostblack:#222;

  /* app colors (available for chips/badges) */
  --perf:#cb6ce6; --part:#5ce1e6; --pers:#ffbd59; --prac:#c8f983; --prof:#ff94cf;
  --lvl1:#ffe600; --lvl2:#c9f76f; --lvl3:#40bd00; --lvl4:#00b8a9; --lvl5:#0096ff;
  --lvl6:#aa66cc; --lvl7:#ea00ff; --lvl8:#ff7bac; --lvl9:#ff4c4c; --lvl10:#ff9900;
  --lvl11:#a9744f; --lvl12:#222222;
}

html { scroll-behavior: smooth; }

/* ========== Base ========== */
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Inter,Helvetica,Arial,sans-serif;
  line-height:1.6;
  font-size:18px;
  color:var(--almostblack);
  /* change the filename to your actual page bg */
  background:
    url('images/background2.png') center top / cover no-repeat fixed,
    var(--offwhite);
}
a{color:var(--basicblue);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;height:auto;display:block}
.wrap{max-width:1200px;margin:0 auto;padding:0 20px}

/* text roles */
h1,h2,h4,h5{color:var(--basicblue);margin:.2rem 0 .5rem;font-size:clamp(1.5rem,4vw,2.4rem)}
h3{color:var(--bluetext);margin:.2rem 0 .5rem;font-size:clamp(1.5rem,4vw,2.4rem)}
.title{color:var(--bluetext)}
p,li,figcaption{color:var(--almostblack)}
.sub{color:var(--darkgray)}
/* Page background toggles (use on pages you want white) */
.page-white { 
  background:#fff !important; 
  background-image:none !important; 
}


/* ========== Buttons / CTAs ========== */
.button,.cta{
  display:inline-flex;align-items:center;gap:.5rem;
  background:var(--buttonblue);color:#fff;border:0;
  padding:12px 20px;border-radius:999px;font-weight:800;text-decoration:none;
  box-shadow:0 6px 16px rgba(62,183,248,.35);
  transition:transform .06s ease, box-shadow .2s ease;
}
.button:hover,.cta:hover{transform:translateY(-1px)}
.cta.ghost{background:#fff;color:var(--bluetext);border:2px solid var(--buttonblue)}

/* ========== Header / Priority+ Nav ========== */
.site-header{
  position:sticky;top:0;z-index:1000;
  background:rgba(255,255,255,.82);
  backdrop-filter:saturate(160%) blur(10px);
  -webkit-backdrop-filter:saturate(160%) blur(10px);
  box-shadow:0 2px 10px rgba(0,0,0,.06);
}
.nav{display:flex;align-items:center;gap:20px}

/* Logo stays proportional — never squished */
.brand img{
  display:block;width:auto;max-width:none;
  height:clamp(56px,8vw,88px);
  object-fit:contain;
}

.menu{
  list-style:none;margin:0 0 0 auto;padding:0;
  display:flex;align-items:center;gap:16px;white-space:nowrap;
  flex:1 1 auto;min-width:0;
}
.menu>li{flex:0 0 auto}
.menu>li>a{
  display:inline-block;padding:10px 12px;border-radius:8px;font-weight:700;
  color:var(--basicblue);
  transition:background .2s ease,color .2s ease;
}
.menu>li>a:hover{background:rgba(51,153,232,.12)}

/* “More” bucket (populated by JS when items overflow) */
.more{position:relative;display:none}
.more-btn{
  border:0;background:transparent;color:var(--basicblue);
  padding:10px 12px;border-radius:8px;font-weight:800;cursor:pointer;
}
.more-btn:hover,.more-btn:focus{background:rgba(51,153,232,.12)}
.more-menu{
  position:absolute;right:0;top:100%;min-width:200px;display:none;
  margin:8px 0 0;padding:6px 0;list-style:none;background:#fff;
  border:1px solid rgba(0,0,0,.08);border-radius:10px;
  box-shadow:0 12px 24px rgba(0,0,0,.12);z-index:1001;
}
.more-menu a{display:block;padding:10px 14px;color:var(--basicblue);text-decoration:none}
.more-menu a:hover{background:rgba(51,153,232,.12)}

/* ========== Hero ========== */
.hero{min-height:70vh;display:flex;align-items:center}
/* ensure the hero grid is neat on desktop */
.hero-inner{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 28px;
}
/* mobile: stack + center the block; keep card readable */
@media (max-width: 980px){
  .hero-inner{
    grid-template-columns: 1fr;
    justify-items: center;    /* centers the column */
    text-align: center;       /* centers the H1 */
  }
  .hero-copy{ margin-inline: auto; }
  .hero-card{
    margin-inline: auto;      /* center the card */
    max-width: 540px;         /* comfy measure */
    text-align: left;         /* keep text left inside the card */
  }
  .hero-graphics{ order: 2; } /* image under the text */
}
@media (max-width:900px){.hero-inner{grid-template-columns:1fr}}
/* smaller cap + nicer wrapping for the H1 */
.hero .title{
  font-size: clamp(32px, 2.6vw + 8px, 56px);  /* <= smaller on wide screens */
  line-height: 1.1;
  letter-spacing: .2px;
  margin: 0 0 .6rem;
  text-wrap: balance;                          /* smarter line breaks */
}
.hero .lead{font-size:1.125rem;max-width:56ch}
.cta-row{display:flex;gap:14px;flex-wrap:wrap;margin-top:16px}
.hero-graphics{display:flex;justify-content:center}
.hero-graphics img{max-width:460px;filter:drop-shadow(0 10px 24px rgba(0,0,0,.15))}

/* ========== Sections / Bands ========== */
.section{padding:56px 0}
.section-head{text-align:center;margin-bottom:24px}
.section-head .sub{margin-top:6px}

/* White bands to “block” the page background where needed */
.white-block{background:#fff;box-shadow:0 1px 0 rgba(0,0,0,.03) inset,0 -1px 0 rgba(0,0,0,.03) inset}
.white-block .wrap{padding-top:0;padding-bottom:0}

/* ========== Grids / Cards (Programs etc.) ========== */
.card-grid{display:grid;gap:18px;grid-template-columns:repeat(6,1fr)}
@media (max-width:1100px){.card-grid{grid-template-columns:repeat(3,1fr)}}
@media (max-width:680px){.card-grid{grid-template-columns:repeat(2,1fr)}}

/* Split layout used on Why/Perform/Festival/Achievement */
.split{display:grid;gap:32px;grid-template-columns:1.1fr .9fr;align-items:center}
@media (max-width:900px){.split{grid-template-columns:1fr}}
.media-card{border-radius:20px;overflow:hidden;box-shadow:0 10px 24px rgba(0,0,0,.18)}
.media-card img{width:100%;height:auto}

/* ========== Contact + Circular Map ========== */
.contact-grid{display:grid;gap:24px;grid-template-columns:1fr 1fr;align-items:center}
@media (max-width:900px){.contact-grid{grid-template-columns:1fr}}
.map-wrap{
  position:relative;aspect-ratio:1/1;max-width:460px;margin:0 auto;
  border-radius:50%;overflow:hidden;box-shadow:0 14px 28px rgba(0,0,0,.18);
}
.map-wrap iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.map-wrap .map-link{position:absolute;inset:0;z-index:2}

/* ========== Festival Section (no-band; img right) ========== */
.no-bg{background:none}


.festival-copy h2{margin:0 0 .4rem}
.festival-list{
  list-style:none;margin:.5rem 0 1.2rem;padding:0;
}
.festival-list li{
  position:relative;padding-left:1.25rem;margin:.28rem 0;color:var(--almostblack);
}
.festival-list li::before{
  content:"•";
  color:var(--basicblue);font-weight:900;
  position:absolute;left:0;top:0;
}

/* ========== Footer ========== */
.site-foot{background:var(--bluetext);color:#fff;padding:18px;text-align:center}


/* Achievement: header + colorful level stripe */
.achv-head{ text-align:center; }
.achv-copy{ max-width:78ch; margin:12px auto 0; }

/* Thin rainbow bar that echoes your leaderboard colors */
.achv-stripe{
  height:14px; border-radius:999px; margin:10px auto 16px; max-width:720px;
  box-shadow:0 6px 14px rgba(0,0,0,.10);
  background:
    linear-gradient(90deg,
      var(--lvl1)   0%   8.33%,
      var(--lvl2)   8.33% 16.66%,
      var(--lvl3)   16.66% 25%,
      var(--lvl4)   25%  33.33%,
      var(--lvl5)   33.33% 41.66%,
      var(--lvl6)   41.66% 50%,
      var(--lvl7)   50%  58.33%,
      var(--lvl8)   58.33% 66.66%,
      var(--lvl9)   66.66% 75%,
      var(--lvl10)  75%  83.33%,
      var(--lvl11)  83.33% 91.66%,
      var(--lvl12)  91.66% 100%
    );
}

/* Wristband chips (Level 1–12) */
/* Achievement badge strip (uses your PNGs) */
:root { --badge-h: 75px; }  /* tweak: 40px or 44px if you want larger */


/* Responsive tweak */
@media (max-width: 700px){ :root { --badge-h: 32px; } }
@media (min-width: 1200px){ :root { --badge-h: 44px; } }

/* keep copy column from getting super wide */
.hero-copy{ max-width: 640px; }

/* Card around body text */
.hero-card{
  background:#fff;               /* switch to solid white */
  border:1px solid #eef3f8;
  border-radius:16px;
  padding:16px 18px;
  box-shadow:0 12px 26px rgba(0,0,0,.12);
  margin-top:10px;               /* space under the H1 */
}

/* Shaded “frosted” option (use class: hero-card frosted) */
.hero-card.frosted{
  background:rgba(255,255,255,.88);
  border-color:rgba(255,255,255,.55);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
  backdrop-filter: saturate(140%) blur(6px);
}

/* Buttons row inside card */
.hero-card .cta-row{ margin-top:12px; }

/* PERFORMANCES — final, no overlap */


/* tighten on small screens but stay two columns (no stacking) */
@media (max-width: 700px){
  #performances .perform-grid{
    grid-template-columns: minmax(140px, 40vw) minmax(0, 1fr);
    gap: 18px;
  }
}
/* PERFORMANCES — final, scoped, no overlap */
#performances .perform-grid{
  display:grid;
  align-items:start;
  gap:28px;
  grid-template-areas:"art copy";
  grid-template-columns: minmax(160px, 28vw) minmax(0, 1fr);
}
#performances .perform-grid > *{ min-width:0; }        /* allow shrink */
#performances .perform-art{
  grid-area:art;
  background:#fff;
  border:1px solid #eef3f8;
  border-radius:16px;
  box-shadow:0 12px 24px rgba(0,0,0,.10);
  overflow:hidden;
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  justify-self:start;
  align-self:start;
  z-index:1;
}
#performances .perform-art img{
  display:block;
  width:100%;
  height:auto;
  object-fit:contain;
  max-height:min(var(--perform-art-max,520px),60vh);
}
#performances .perform-copy{
  grid-area:copy;
  position:relative;   /* sit above the card’s shadow */
  z-index:2;
}
@media (max-width:700px){
  #performances .perform-grid{
    grid-template-columns:minmax(140px,40vw) minmax(0,1fr);
    gap:18px;
  }
}


/* === Performances — surgical hotfix (image LEFT, shrinks, no overlap) === */
#performances > .wrap{
  display: grid;
  align-items: start;
  gap: clamp(16px, 3vw, 28px);
  grid-template-columns: minmax(150px, 28vw) minmax(0, 1fr); /* art shrinks, text flexes */
}

/* make both columns allowed to shrink (prevents crowding/overflow) */
#performances > .wrap > *{ min-width: 0; }

/* the figure card on the LEFT */
#performances > .wrap > figure{
  margin: 0;
  width: 100%;               /* fill the left track (beats old shrink-wrap rules) */
  max-width: 100%;
  box-sizing: border-box;
  justify-self: start;
  align-self: start;
  background: #fff;
  border: 1px solid #eef3f8;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(0,0,0,.10);
  overflow: hidden;
}

/* image scales down smoothly inside the card */
#performances > .wrap > figure img{
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: min(var(--perform-art-max, 520px), 60vh); /* safe even if var not set */
}

/* copy stays on the RIGHT and above the card shadow */
#performances > .wrap > div{
  position: relative;
  z-index: 2;
}

@media (max-width:700px){
  #performances > .wrap{
    grid-template-columns: minmax(130px, 40vw) minmax(0, 1fr);
    gap: 18px;
  }
}

/* ===== Programs cards: image on top, buttons below (no overlay) ===== */
#programs .card-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
  gap:22px;
}

/* Card shell */
.prog-card{
  display:flex;
  flex-direction:column;        /* stack img then info row */
  background:#fff;
  border:1px solid #eef3f8;
  border-radius:20px;
  box-shadow:0 10px 24px rgba(0,0,0,.08);
  overflow:hidden;
}

/* Image area: consistent height without distortion */
.prog-card img{
  width:100%;
  aspect-ratio: 4 / 3;          /* uniform card height */
  object-fit: contain;           /* show full art (no crop). Use 'cover' if you prefer crop-fill */
  background: #f7fbff;          /* subtle backdrop behind PNG transparency */
  display:block;
}

/* Info row under the image */
.prog-card .prog-info{
  position:static !important;   /* override any previous overlay styles */
  inset:auto !important;
  background:#fff;
  padding:14px 16px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

/* Badge + button styles (adjust to taste) */
.prog-card .badge{
  background:var(--bluetext);
  color:#fff;
  font-weight:800;
  padding:10px 14px;
  border-radius:999px;
  white-space:nowrap;
}

.prog-card .learn{
  background:var(--buttonblue);
  color:#fff;
  text-decoration:none;
  font-weight:800;
  padding:10px 14px;
  border-radius:999px;
  box-shadow:0 8px 18px rgba(62,183,248,.35);
}
.prog-card .learn:hover{ text-decoration:none; transform:translateY(-1px) }
/* --- Programs: put the bottom shade behind the content --- */
.prog-card{
  position: relative;
  background: #fff;
  overflow: hidden;
}

/* kill any old overlays that might be sitting on top */
.prog-card::after,
/* gentle bottom gradient BEHIND everything */
.prog-card::before{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height:60%;                         /* how tall the shade rises */
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,.06) 55%,
    rgba(0,0,0,.10) 100%
  );
  pointer-events:none;
  z-index:0;                          /* sits under the card contents */
}

/* make sure the image + info row render above the gradient */
.prog-card > *{
  position: relative;
  z-index: 1;
}

/* keep the image area clean */
.prog-card img{
  width:100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;                 /* use 'cover' if you want crop-fill */
  background:#f7fbff;
  display:block;
}

/* info row stays solid white so the shade never tints text/buttons */
.prog-card .prog-info{
  background:#fff;
}

/* Programs – show a soft shade ABOVE the image, BELOW the buttons */
#programs .prog-card::before{ display:none !important; }   /* kill the behind-image attempt */
#programs .prog-card::after{
  display:block !important;         /* override the earlier 'display:none !important' */
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height:45%;                       /* how far the shade rises */
  background:linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,.06) 50%,
    rgba(0,0,0,.12) 100%
  );
  pointer-events:none;
  z-index:1;                        /* sits above the image, below the info row */
}

/* layer order: image (0) < shade (1) < info row (2) */
#programs .prog-card img{ position:relative; z-index:0; }
#programs .prog-card .prog-info{ position:relative; z-index:2; background:#fff; }

/* Programs: gradient INSIDE the white button bar, under the content */
#programs .prog-card::before,
#programs .prog-card::after{ display:none !important; } /* kill previous card overlays */

#programs .prog-card .prog-info{
  position: relative;
  background: #fff;                /* the white bar */
  overflow: hidden;                 /* keep the gradient clipped to rounded corners */
}

#programs .prog-card .prog-info::before{
  content:"";
  position:absolute;
  inset:0;                          /* cover the whole white bar */
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,.06) 55%,
    rgba(0,0,0,.12) 100%
  );
  pointer-events:none;
  z-index:0;                        /* sits under the badge/button */
}

/* ensure badge + button are above the gradient */
#programs .prog-card .prog-info > *{
  position: relative;
  z-index: 1;
}

/* Nudge strips together on wide screens so they visually touch */
@media (min-width: 720px) {
  .wristbands li + li { margin-left: -8px; } /* tweak -8px to perfectly remove the seam */
}

/* hero spacing polish */
.hero { padding: clamp(16px, 4vw, 32px) 0; }
.hero-inner { row-gap: 20px; }
@media (max-width: 980px){
  .hero .lead { max-width: 60ch; margin-inline: auto; }
  .hero-graphics { margin-top: 8px; }
}

.team-layout {
  display: flex;
  align-items: flex-start;   /* align top of image and text */
  gap: 20px;                 /* space between image and text */
  margin-bottom: 2rem;
  flex-wrap: wrap;           /* allow stacking on small screens */
}
.teachers-image img {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .team-layout {
    flex-direction: column;
  }
}
/* 1) Teacher image: white card with rounded corners (matches other cards) */
.teachers-image.white-bg {
 background: rgba(255, 255, 255, 0.8); /* same as text box */  border: 1px solid #eef3f8;
 backdrop-filter: blur(6px);            /* keep the frosted glass effect */
 border-radius: 16px;          /* match your .media-card */
  box-shadow: 0 12px 24px rgba(0,0,0,.10);
  overflow: hidden;             /* keeps PNG edges clean in the radius */
  padding: 10px;
  flex: 0 0 auto;            /* don't shrink */
}

/* 3) Auto-apply frosted box to copy in transparent sections */
#why .split > div,
.team-text.frosted-bg {
  /* apply the same frosted style without changing HTML */
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 16px;
  -webkit-backdrop-filter: saturate(140%) blur(6px);
  backdrop-filter: saturate(140%) blur(6px);
  box-shadow: 0 12px 24px rgba(0,0,0,.08);
  padding: 20px;
  flex: 1;
}

/* (optional) keep inner spacing tidy under headers */
#why .split > div .section-head,
.festival-copy .section-head,
.team-text .section-head { margin-top: 0; }

.hero-graphics .mic-graphic {
  background: #fff;
  border-radius: 20px; /* match other images */
  padding: 1rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  max-width: 350px; /* reduce size */
}
#why.split {
  grid-template-columns: 1fr 1fr; /* even split instead of 1.1fr .9fr */
}
#why .media-card img {
  max-width: 500px; /* increase size */
}
/* ===== Modal ===== */
.modal { position: fixed; inset: 0; display: none; z-index: 2000; }
.modal__backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,.45);
  backdrop-filter: blur(3px);
}
.modal__dialog{
  position: relative; max-width: 680px; margin: 6vh auto; padding: 18px;
  background: #fff; border: 1px solid #eef3f8; border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,.22);
}
.modal__close{
  position:absolute; top:8px; right:10px; border:0; background:transparent;
  font-size: 28px; line-height: 1; color: var(--bluetext); cursor: pointer;
}

/* Form layout */
#info-form label{ display:block; font-weight:700; color:var(--bluetext); margin:8px 0 6px; }
#info-form input, #info-form textarea{
  width:100%; padding:10px 12px; border-radius:10px; border:1px solid #dfe7f0; font:inherit;
  box-shadow: 0 2px 6px rgba(0,0,0,.04) inset;
}
#info-form input:focus, #info-form textarea:focus{ outline:2px solid rgba(51,153,232,.25); border-color: var(--basicblue); }

.form-row{ margin-bottom:8px; }
.form-grid{
  display:grid; grid-template-columns: 1fr 1fr; gap:12px; margin-bottom:8px;
}
@media (max-width:700px){ .form-grid{ grid-template-columns: 1fr; } }
/* Allow modal to scroll on small screens */
.modal {
  overflow-y: auto;            /* page scroll inside modal */
  padding: 20px;               /* space so content isn't flush with edges */
}

.modal__dialog {
  max-height: 90vh;            /* never taller than viewport */
  overflow-y: auto;            /* scroll the form if needed */
  margin: auto;                /* center vertically */
}

@media (max-height: 600px) {
  .modal__dialog {
    max-height: 85vh;          /* smaller screens get a bit more breathing room */
  }
}
/* Contact v2 layout */
.contact-grid.v2 {
  display: grid;
  grid-template-columns: 420px 1fr;   /* left column fixed-ish, right fills */
  gap: 32px;
  align-items: start;
}

@media (max-width: 980px){
  .contact-grid.v2 { grid-template-columns: 1fr; }
}

/* Info list with circular icons */
.info-list{
  list-style: none; margin: 14px 0 18px; padding: 0; display: grid; gap: 18px;
}
.info-list li{
  display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 14px;
}
.icon{
  width: 64px; height: 64px; border-radius: 50%;
  display: inline-block; background: var(--buttonblue);
  box-shadow: 0 8px 18px rgba(62,183,248,.30);
  position: relative;
}
.icon::before{
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 34px; height: 34px; background-size: contain; background-repeat: no-repeat; background-position: center;
  filter: brightness(0) invert(1); /* white glyph */
}

/* Simple emoji-style glyphs (swap to SVGs later if you like) */
.icon.phone::before { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23fff"><path d="M6.6 2.5h3.1c.5 0 .9.4 1 .9l.5 3.5c.1.5-.1 1-.5 1.3l-1.8 1.4a14 14 0 0 0 6.1 6.1l1.4-1.8c.3-.4.8-.6 1.3-.5l3.5.5c.5.1.9.5.9 1v3.1c0 .6-.5 1.1-1.1 1.1C13.1 22 2 10.9 2 3.6c0-.6.5-1.1 1.1-1.1Z"/></svg>'); }
.icon.mail::before  { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23fff"><path d="M2 6.5A2.5 2.5 0 0 1 4.5 4h15A2.5 2.5 0 0 1 22 6.5v11A2.5 2.5 0 0 1 19.5 20h-15A2.5 2.5 0 0 1 2 17.5v-11Zm2.1-.5 7.4 5.1c.3.2.7.2 1 0L20 6h-15.9Z"/></svg>'); }
.icon.pin::before   { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23fff"><path d="M12 2a7 7 0 0 1 7 7c0 5.25-7 13-7 13S5 14.25 5 9a7 7 0 0 1 7-7Zm0 9.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z"/></svg>'); }

.info-text a{ color: var(--almostblack); font-weight: 700; }
.info-text a:hover{ color: var(--basicblue); text-decoration: underline; }

/* Map with rounded corners like other sections */
.map-wrap.rounded {
  position: relative;
  width: 100%;
  border-radius: 12px; /* adjust to match your other sections/images */
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.map-wrap.rounded iframe,
.map-wrap.rounded .map-link {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* Big Red Centered CTA */
.cta-final {
  text-align: center;
  margin-top: 30px;
}

.big-red-btn {
  font-size: 1.6rem;
  padding: 18px 42px;
  border-radius: 50px;
  border: 3px solid var(--accentred, #d93025); /* fallback red */
  background: var(--accentred, #d93025);
  color: #fff;
  font-weight: bold;
  text-transform: uppercase;
  display: inline-block;
  box-shadow: 0 6px 14px rgba(0,0,0,.2);
  transition: all 0.25s ease;
}

.big-red-btn:hover {
  background: transparent;
  color: var(--accentred, #d93025);
  transform: scale(1.05);
}

/* Make group cards bigger */
.groups-grid {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); /* bigger min size */
  gap: 2rem; /* give them more breathing room */
}

/* ===== GROUPS: grid + card fixes ===== */

/* Force 3 columns on large screens so 5 items lay out as 3 + 2 */
@media (min-width: 1100px){
  #groups .groups-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

/* Comfortable columns on medium/small screens */
@media (max-width: 1099px){
  #groups .groups-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.6rem;
  }
}
@media (max-width: 680px){
  #groups .groups-grid{
    grid-template-columns: 1fr;
  }
}

/* Make sure the info row in group cards is NOT absolutely positioned */
#groups .group-card .prog-info{
  position: static !important;
  inset: auto !important;
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Slightly larger group cards than lessons */
#groups .group-card{
  min-height: 270px;   /* a touch taller than 250px */
  padding: 1.75rem 1.5rem;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(0,0,0,.16);
}

/* White → color gradients (already using) — ensure diagonals feel soft */
#groups .group-card.ave{
  background: linear-gradient(135deg, #ffffff 18%, var(--basicblue) 100%);
}
#groups .group-card.girls{
  background: linear-gradient(135deg, #ffffff 18%, #e0459c 100%);
}
#groups .group-card.rock{
  background: linear-gradient(135deg, #ffffff 18%, #ff512f 100%);
}
#groups .group-card.toolbox{
  background: linear-gradient(135deg, #ffffff 18%, #1dd1a1 100%);
}
#groups .group-card.adventures{
  background: linear-gradient(135deg, #ffffff 18%, var(--accentyellow) 100%);
}

/* Groups: make the class label (badge) match Private Lessons */
#groups .group-card .badge{
  background: var(--bluetext) !important; /* same deep blue as lessons */
  color: #fff;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 999px;
}

/* Make both card types positionable */
#programs .prog-card,
#groups .group-card{
  position: relative;
  overflow: hidden;
}

/* Title at top-left (use the existing .badge element, but no bubble) */
#programs .prog-card .badge,
#groups .group-card .badge{
  position: absolute;
  top: 16px;
  left: 18px;
  background: transparent !important;   /* remove bubble */
  color: var(--bluetext);               /* studio heading color */
  font-weight: 800;
  font-size: 1.25rem;                   /* bump title size */
  line-height: 1.2;
  padding: 0;                           /* no pill padding */
  border-radius: 0;                     /* no pill radius */
  box-shadow: none;
  text-shadow: 0 1px 0 rgba(255,255,255,0.6); /* subtle readability on gradients */
  pointer-events: none;                 /* clicks go through */
}

/* Center the Learn button at the bottom */
#programs .prog-card .learn,
#groups .group-card .learn{
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: inline-block;
  /* Keep the same look as your lesson buttons */
  background: var(--buttonblue);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(0,0,0,.15);
  transition: background .2s ease, transform .15s ease;
}

#programs .prog-card .learn:hover,
#groups .group-card .learn:hover{
  background: var(--basicblue);
  transform: translateX(-50%) translateY(-1px);
}

/* Worship Band gradient (white → rich indigo/blue) */
#groups .group-card.worship{
  background: linear-gradient(135deg, #ffffff 18%, #6f7cf6 100%);
}

/* Optional: ensure worship icon scales nicely inside the card */
#groups .group-card.worship img{
  width: 100%;
  max-height: calc(100% - 88px); /* leaves room for the Learn button */
  object-fit: contain;
  display: block;
}

/* Ensure the inner container doesn't fight our absolute positioning */
#programs .prog-card .prog-info,
#groups .group-card .prog-info{
  position: static !important;
  inset: auto !important;
  background: transparent !important;
  padding: 0;
  display: block;
}


/* --- 2) Unify Learn buttons (no underline + same hover everywhere) --- */
#programs .prog-card .learn,
#groups .group-card .learn{
  text-decoration: none;
  background: var(--buttonblue);
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
  padding: 12px 22px;
  box-shadow: 0 8px 18px rgba(0,0,0,.15);
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}

/* If your buttons are centered absolutely, keep the center translate in hover */
#programs .prog-card .learn:hover,
#groups .group-card .learn:hover{
  text-decoration: none;                  /* kill underline */
  background: var(--basicblue);           /* darker shade */
  transform: translateX(-50%) scale(1.04) translateY(-1px);
  box-shadow: 0 12px 24px rgba(0,0,0,.18);
}

/* If any specific button is NOT centered absolutely, use this alternative hover:
   .learn:hover { transform: scale(1.04) translateY(-1px); } 
   (leave off the translateX(-50%)) */
/* ===== 1) Make ONLY the button react on hover (Lessons + Groups) ===== */

/* Card: keep same shadow on hover (no bounce, no extra highlight) */
#programs .prog-card,
#groups .group-card {
  transition: box-shadow .2s ease;
}

#programs .prog-card:hover,
#groups .group-card:hover {
  transform: none !important;
  /* match the base shadow so there's no visual change on hover */
  box-shadow: 0 10px 24px rgba(0,0,0,.08) !important;
}

/* Button: same bounce/shade everywhere (already centered if you used it) */
#programs .prog-card .learn,
#groups .group-card .learn{
  text-decoration: none;
  background: var(--buttonblue);
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
  padding: 12px 22px;
  box-shadow: 0 8px 18px rgba(0,0,0,.15);
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}
#programs .prog-card .learn:hover,
#groups .group-card .learn:hover{
  text-decoration: none;
  background: var(--basicblue);
  transform: translateX(-50%) scale(1.04) translateY(-1px); /* keep -50% if centered */
  box-shadow: 0 12px 24px rgba(0,0,0,.18);
}

/* Wristbands grid: 3 across on desktop, 2 on tablet, 1 on mobile */
.wristbands{
  display:grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  justify-items: center;  /* center each image in its cell */
  align-items: center;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
@media (max-width: 900px){
  .wristbands{ grid-template-columns: repeat(2, 1fr);
     justify-items: center !important;   /* center horizontally */
 }
}
@media (max-width: 560px){
  .wristbands{ grid-template-columns: 1fr;
   justify-items: center !important;   /* center horizontally */ }
}

/* Make each PNG scale to its grid cell */
.wristbands li{ margin:0; padding:0; line-height:0; }
.wristbands img{ width:100%; height:auto; display:block; max-width:520px; }

/* Keep Learn buttons on one line (Lessons + Groups) */
#programs .prog-card .learn,
#groups   .group-card .learn{
  white-space: nowrap;
  min-width: max-content;   /* button grows just enough for its text */
  padding: 12px 22px;       /* keep your current look */
}
/* WHY section: make the image fill its white card, no overhang */
#why .media-card{ overflow:hidden; } /* already true globally, keep it here */
#why .media-card img{
  width: 100% !important;     /* fill card width */
  max-width: none !important; /* remove the 500px cap */
  height: auto !important;
  display: block;
}

/* LEVEL BADGES — grid, centered at all sizes */
.wristbands{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  justify-items: center;   /* center each badge */
  align-items: center;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  max-width: 1100px;       /* prevents badges from stretching edge-to-edge */
}
@media (max-width: 900px){
  .wristbands{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .wristbands{ grid-template-columns: 1fr; }
}
.wristbands li{ margin:0; padding:0; line-height:0; }
.wristbands img{ width:100%; height:auto; display:block; max-width:420px; }

/* Buttons never wrap; size to content */
#programs .prog-card .learn,
#groups   .group-card .learn{
  white-space: nowrap;
  min-width: max-content;
}

/* WHY section image should fill the frame; no overhang */
#why .media-card{ overflow: hidden; }
#why .media-card img{
  width: 100% !important;
  max-width: none !important;   /* overrides the 500px cap */
  height: auto !important;
  display: block;
}

/* Make the art itself be responsive inside the capped column */
#festival .festival-art img{
  width: 100% !important;
  height: auto !important;
  display: block !important;
}
/* Instruments heading under teacher name */
.team-text h4.instruments{
  margin-top: .25em;
  margin-bottom: .75em;
  font-weight: 600;
  color: var(--basicblue);
}

/* Bio section headings (smaller than h4 but still distinct) */
.team-text h5{
  margin-top: 1em;
  margin-bottom: 0.5em;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--bluetext);
}

/* === HEADER / MORE DROPDOWN FIX === */
.menu {
  display: flex;
  align-items: center;
  gap: 14px;
  /* Important: prevent wrapping so overflow items get moved into "More" */
  flex-wrap: nowrap;
}
.menu > li { white-space: nowrap; }
.menu > li.more { position: relative; }

/* Button looks like a link; accessible and clickable */
.more-btn {
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
  padding: 0;
  color: inherit;
}

/* Hidden by default; JS toggles `show` */
.more-menu {
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 220px;
  margin-top: 6px;
  padding: 8px 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  display: none;            /* hidden until .show is added */
  z-index: 1000;            /* keep above page content */
  list-style: none;
}
.more-menu.show {           /* JS adds this */
  display: block;
}

.more-menu > li > a {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: #00477d;
}
.more-menu > li > a:hover {
  background: rgba(0,0,0,.06);
}
/* === TEAM: keep the teacher image larger on wide screens === */
.teachers-image.white-bg{
  /* give the image column its own lane that doesn’t shrink tiny */
  flex: 0 0 clamp(260px, 28vw, 420px);
}

.teachers-image.white-bg img{
  width: 100%;
  height: auto;
  border-radius: 16px;
  /* stop the old 220px cap from making it tiny on big screens */
  max-width: none !important;
}
/* === FESTIVAL: image never taller than the text column === */
#festival .festival-art img{
  max-height: var(--festival-art-img-max, 520px);
  width: 100%;
  height: auto;
  object-fit: contain;
}
/* === FINAL OVERRIDES — Festival layout tidy (no stretch, top‑aligned) === */
#festival .wrap.festival-grid{
  display: grid !important;
  grid-template-columns: minmax(320px,1fr) minmax(320px,520px) !important; /* text | image */
  align-items: start !important;   /* line up at the top */
  gap: clamp(16px,3vw,32px) !important;
}

#festival .festival-copy{ max-width: 640px; }

#festival .festival-art{
  justify-self: end;
  width: 100%;
  max-width: 520px;
  background:#fff;
  border:1px solid #eef3f8;
  border-radius:20px;
  box-shadow:0 12px 24px rgba(0,0,0,.10);
  overflow:hidden; /* keep rounded corners */
}

#festival .festival-art img{
  display:block;
  width:100% !important;
  height:auto !important;
  object-fit:contain;
  /* 👇 keeps the art no taller than the text box (computed by index.js) */
  max-height: var(--festival-art-img-max, 520px) !important;
}

/* stack only on smaller screens */
@media (max-width: 900px){
  #festival .wrap.festival-grid{ grid-template-columns:1fr !important; }
  #festival .festival-art{ justify-self:center; max-width:min(92vw,520px); }
}
/* === FINAL OVERRIDES — Team image sizing (no crop, responsive clamp) === */
#team .teachers-image.white-bg{
  flex: 0 0 auto;
  max-width: clamp(260px, 32vw, 420px); /* big on desktop, not tiny */
  padding: 12px;
  border-radius: 16px;
  overflow: hidden;                     /* keep rounded corner mask */
}

#team .teachers-image.white-bg img{
  width: 100% !important;               /* fill the white card */
  height: auto !important;
  max-width: none !important;           /* prevent the 220px cap from shrinking it */
  object-fit: contain;                  /* absolutely no cropping */
}

@media (max-width: 980px){
  #team .teachers-image.white-bg{ max-width: 360px; margin-inline: auto; }
}
/* === Frosted card utility (applies to Festival text box too) === */
.frosted-bg{
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 16px;
  -webkit-backdrop-filter: saturate(140%) blur(6px);
  backdrop-filter: saturate(140%) blur(6px);
  box-shadow: 0 12px 24px rgba(0,0,0,.08);
  padding: 20px;
}
/* === Festival art: square card, centered art, no side gutters === */
#festival .festival-art{
  /* keep your existing look, but make it square and a bit narrower */
  aspect-ratio: 1 / 1;
  max-width: min(460px, var(--festival-art-img-max, 520px));
  padding: 14px;                   /* breathing room inside the square */
  display: flex;                   /* center the img inside */
  align-items: center;
  justify-content: center;
}

#festival .festival-art img{
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;             /* full graphic, no crop */
  max-height: 100% !important;     /* follow the square, not the text height */
}

/* === Festival: keep side-by-side until small phones === */
#festival .wrap.festival-grid{
  /* allow both columns to fit on tablets, too */
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 520px) !important;
}

@media (max-width: 700px){
  /* only stack on small screens */
  #festival .wrap.festival-grid{ grid-template-columns: 1fr !important; }
}
.is-hidden { display: none !important; }
/* ===== Signup page helpers (append-only) ===== */
.card{
  background:#fff; border:1px solid #eef3f8; border-radius:16px;
  padding:20px; box-shadow:0 10px 24px rgba(0,0,0,.08);
}

.btn-secondary{
  display:inline-flex; align-items:center; gap:.5rem;
  background:#fff; color:var(--bluetext);
  border:2px solid var(--basicblue);
  padding:10px 14px; border-radius:12px; font-weight:700; text-decoration:none;
}
.btn-secondary:hover{ background:rgba(51,153,232,.08); text-decoration:none; }

.helper{
  display:flex; align-items:center; gap:10px;
  padding:12px 14px; border-radius:12px;
  background:#fff; border:1px dashed rgba(0,0,0,.12);
  color:var(--darkgray);
}

.dot{
  width:8px; height:8px; border-radius:50%;
  background:var(--accentyellow);
  display:inline-block; animation:pulse 1.2s ease-in-out infinite;
}
.dot:nth-child(2){ animation-delay:.15s; }
.dot:nth-child(3){ animation-delay:.30s; }
@keyframes pulse{ 0%,80%,100%{opacity:.2} 40%{opacity:1} }

/* ===== Modals ===== */
.modal{ position:fixed; inset:0; display:none; align-items:center; justify-content:center;
  background:rgba(0,0,0,.45); z-index:1000; padding:20px }
.modal.is-open{ display:flex }
.modal__box{ background:#fff; border:1px solid #eef3f8; border-radius:16px;
  box-shadow:0 10px 24px rgba(0,0,0,.18); max-width:860px; width:100%; padding:18px }
.modal__title{ margin:0 0 6px; color:var(--bluetext) }
.modal__intro{ margin:0 0 12px; color:#55636f }
.modal__frame{ height:60vh; border:1px solid #e9eef3; border-radius:12px; overflow:hidden; background:#fff }
.modal__frame iframe{ width:100%; height:100%; border:0 }
.modal__actions{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:12px; flex-wrap:wrap }
.modal__buttons{ display:flex; gap:10px; align-items:center; justify-content:flex-end; flex-wrap:wrap }
.agree{ display:flex; align-items:center; gap:8px; font-weight:600; color:#344455 }
/* ==== Request Info modal: scrolling fixes ==== */
.modal {
  /* allow page to scroll inside the modal on small screens */
  overflow-y: auto;
  padding: 20px;
}

.modal__box {
  /* keep it within the viewport and allow internal scrolling */
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* keep rounded corners while inner parts scroll */
}

.modal__frame {
  /* this is the widget container */
  flex: 1 1 auto;
  min-height: 320px;                 /* gives it some space on short screens */
  max-height: calc(92vh - 180px);    /* header + buttons area */
  overflow: auto;                    /* <- enables scrolling inside the form */
  -webkit-overflow-scrolling: touch; /* smoother iOS scrolling */
}

@media (max-height: 600px){
  .modal__box { max-height: 85vh; }
  .modal__frame { max-height: calc(85vh - 180px); }
}
/* === Instrument note on signup page === */
.instrument-note {
  margin: 10px 0 6px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e7eef6;
  background: #f8fbff;
  color: var(--bluetext);
  font-weight: 600;
}

/* === Instrument info / infographic card === */
.instrument-info {
  margin: 20px 0 6px;
  padding: 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #eef3f8;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  text-align: center;
}
.instrument-info img {
  max-width: 180px;
  margin: 0 auto 12px;
  display: block;
}
.instrument-info-text {
  color: var(--almostblack);
  font-size: 1.05rem;
  line-height: 1.55;
}

/* === Home page hierarchy refresh === */
:root{
  --section-pad-y: clamp(72px, 10vw, 108px);
}

.section{
  padding: var(--section-pad-y) 0;
}

#contact{
  padding-top: calc(var(--section-pad-y) + 24px);
}

.text-link{
  color: var(--bluetext);
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover{
  text-decoration: underline;
}

#programs .prog-card{
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

#programs .prog-card:hover{
  box-shadow: 0 14px 28px rgba(0,0,0,.12) !important;
}

#programs .prog-card .badge{
  position: static;
  color: var(--bluetext);
  text-shadow: none;
}

#programs .prog-card .prog-info{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 18px;
}

#programs .details-link{
  color: var(--basicblue);
  font-weight: 700;
}

#why .split > div{
  background: rgba(255,255,255,.9);
  border-color: rgba(238,243,248,.85);
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
}

#why .sub li{
  margin-bottom: 10px;
}

#achievement .achv-head{
  max-width: 840px;
  margin: 0 auto 10px;
}

#achievement .wristbands{
  display: flex !important;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 0 10px;
  margin: 0 auto;
}

#achievement .wristbands li{
  flex: 0 0 clamp(170px, 26vw, 260px);
}

#achievement .wristbands img{
  max-width: 100%;
}

.achv-links{
  text-align: center;
  margin-top: 8px;
}

.festival-lite .festival-copy{
  padding: 16px;
  background: rgba(255,255,255,.86);
}

.festival-lite .festival-art{
  max-width: 420px;
}

.contact-help{
  margin-top: 8px;
  color: var(--darkgray);
}

/* === Teaser bands (home) === */
.teaser-band{
  padding: clamp(36px, 5vw, 56px) 0;
}

.teaser-inner{
  max-width: 960px;
  background: rgba(255,255,255,.9);
  border: 1px solid #e8eef5;
  border-radius: 16px;
  padding: clamp(18px, 3vw, 28px);
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
}

.teaser-inner h2{
  margin-top: 0;
  margin-bottom: 6px;
}

.teaser-list{
  margin: 10px 0 12px;
  padding-left: 20px;
}

.teaser-list li{
  margin-bottom: 4px;
}

/* === Dedicated program pages === */
.program-page .hero{
  min-height: 0;
  padding: clamp(28px, 4vw, 46px) 0 clamp(22px, 3vw, 34px);
}

.program-page .hero-card{
  max-width: 860px;
  margin: 0 auto;
}

.program-page .page-cta-row{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.program-page .feature-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.program-page .feature-grid article{
  background: #fff;
  border: 1px solid #e8eef5;
  border-radius: 14px;
  padding: 14px;
}

.program-page .level-showcase{
  margin-top: 22px;
}

.program-page .level-showcase .wristbands{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.program-page .shot-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.program-page .shot-grid img{
  width: 100%;
  border-radius: 12px;
  border: 1px solid #e8eef5;
  background: #fff;
}

.program-page .section-card{
  background: #fff;
  border: 1px solid #e8eef5;
  border-radius: 16px;
  padding: clamp(16px, 2.4vw, 22px);
  box-shadow: 0 8px 16px rgba(0,0,0,.06);
}

@media (max-width: 900px){
  .program-page .feature-grid,
  .program-page .shot-grid,
  .program-page .level-showcase .wristbands{
    grid-template-columns: 1fr;
  }
}

/* === Home cleanup: calmer hierarchy === */
.home-page{
  background: #f5f7fa !important;
  background-image: none !important;
}

.home-page .hero{
  background:
    url('images/background2.png') center top / cover no-repeat;
  padding: clamp(28px, 5vw, 56px) 0;
}

.home-page .hero-graphics .mic-graphic{
  max-width: 300px;
}

.home-page #why,
.home-page #program-highlights,
.home-page #performances,
.home-page #contact{
  background-image: none !important;
}

.home-page .section{
  padding: clamp(56px, 8vw, 84px) 0;
}

.home-page #programs .card-grid{
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.home-page #programs .prog-card{
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,.07);
  background: #fff;
  border: 1px solid #dbe7f3;
}

.home-page #programs .prog-card::before,
.home-page #programs .prog-card::after,
.home-page #programs .prog-info::before{
  display: none !important;
}

.home-page #programs .prog-card img{
  aspect-ratio: 5 / 4;
  width: 78%;
  margin: 10px auto 0;
  background: transparent;
}

.home-page #programs .prog-info{
  padding: 10px 12px 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
}

.home-page #programs .details-link{
  font-size: 1rem;
}

.home-page #programs .card-arrow{
  color: var(--basicblue);
  font-weight: 900;
  font-size: 1.35rem;
  line-height: 1;
}

.home-page .why-simple{
  max-width: 920px;
  background: linear-gradient(180deg, #ffffff 0%, #eef8ff 100%);
  border: 1px solid #dbeaf7;
  border-radius: 16px;
  padding: clamp(18px, 2.5vw, 26px);
  box-shadow: 0 6px 16px rgba(0,0,0,.05);
}

.home-page .why-simple h2{
  margin-top: 0;
}

.home-page .why-simple ul{
  margin-bottom: 0;
}

.home-page .section-title{
  margin: 0 0 14px;
  text-align: left;
}

.home-page .why-grid{
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 20px;
  align-items: center;
}

.home-page .why-mini-art{
  margin: 0;
  background: #fff;
  border: 1px solid #dce7f2;
  border-radius: 14px;
  padding: 10px;
}

.home-page .why-mini-art img{
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.home-page .program-row{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.home-page .mini-program-card{
  background: #fff;
  border: 1px solid #e4ebf3;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
}

.home-page .mini-program-card:nth-child(1){
  border-top: 5px solid #3eb7f8;
}

.home-page .mini-program-card:nth-child(2){
  border-top: 5px solid #fcb738;
}

.home-page .mini-program-card h3{
  margin-top: 0;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
}

.home-page .mini-program-card .teaser-list{
  margin-top: 8px;
  margin-bottom: 10px;
}

.home-page .performances-simple{
  max-width: 920px;
  box-shadow: none;
  border: 1px solid #e4ebf3;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.home-page .performances-simple h2{
  margin-top: 0;
}

@media (max-width: 900px){
  .home-page .program-row{
    grid-template-columns: 1fr;
  }
  .home-page .why-grid{
    grid-template-columns: 1fr;
  }
}

/* === Mobile Baseline (Phase 1B) === */
html, body{
  max-width: 100%;
  overflow-x: hidden;
}

img{
  max-width: 100%;
  height: auto;
}

.nav{
  flex-wrap: wrap;
}

.menu{
  flex-wrap: wrap;
  gap: 10px;
}

.brand img{
  max-width: 160px;
  height: auto;
}

@media (max-width: 800px){
  .card-grid,
  .program-row,
  .feature-grid{
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px){
  .wrap{
    padding-left: 16px;
    padding-right: 16px;
  }

  .cta,
  .btn-secondary,
  .big-red-btn{
    min-height: 44px;
  }

  .menu a{
    padding: 10px 12px;
    display: inline-block;
  }

  .modal__box{
    width: calc(100% - 24px);
    max-height: 90vh;
    overflow: auto;
  }

  .modal__frame iframe{
    height: 55vh;
  }
}

/* =========================
   Mobile Baseline + Overflow Fix
   Phase 1B
   ========================= */

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Make all media obey container width */
img, svg, video, canvas {
  max-width: 100%;
  height: auto;
}

/* Common overflow culprits */
* {
  box-sizing: border-box;
}

/* DEBUG: outline everything to find the offender quickly.
   To use: add class="debug-overflow" on <body> temporarily. */
.debug-overflow * {
  outline: 1px solid rgba(255, 0, 0, 0.18);
}
.debug-overflow {
  background-image:
    linear-gradient(to right, rgba(255,0,0,0.08), rgba(255,0,0,0.08)),
    linear-gradient(to right, transparent 0, transparent 100%);
  background-size: 1px 1px, 100% 100%;
}

@media (max-width: 480px) {
  .wrap { padding-left: 16px !important; padding-right: 16px !important; }
}

/* Header / Nav: allow wrapping without forcing width */
.nav { flex-wrap: wrap; }
.menu { flex-wrap: wrap; }

/* Prevent any grid from forcing a minimum width */
.card-grid,
.feature-grid,
.program-row,
.why-grid,
.contact-grid,
.shot-grid,
.split {
  min-width: 0;
}

/* If any card is using fixed widths, ensure it can shrink */
.prog-card,
.mini-program-card,
.card,
.section-card,
.hero-card {
  min-width: 0;
}

/* Iframes/maps are frequent overflow sources */
iframe {
  max-width: 100%;
}

/* Modal fit on small screens */
@media (max-width: 480px) {
  .modal__box {
    width: calc(100% - 24px) !important;
    max-height: 90vh;
    overflow: auto;
  }
  .modal__frame iframe {
    width: 100% !important;
    height: 55vh;
  }
}

/* Prevent long words/URLs from blowing layout */
body, p, li, a, button {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Targeted common offenders */
.map-wrap, .map-wrap iframe { width: 100%; max-width: 100%; }
.hero-graphics img, .mic-graphic { max-width: 100%; height: auto; }
@media (max-width: 800px) { .card-grid { grid-template-columns: 1fr !important; } }

/* =========================
   Phase 2: Summer announce band + Home simplification helpers
   ========================= */

.announce-band{
  background: linear-gradient(90deg, rgba(62,183,248,.18), rgba(252,183,56,.18));
  border-top: 1px solid rgba(0,0,0,.06);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.announce-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding-top:14px;
  padding-bottom:14px;
}
.announce-copy strong{
  display:block;
  font-size:1.05rem;
  color: var(--bluetext, #1f4e79);
}
.announce-sub{
  display:block;
  margin-top:2px;
  color: var(--darkgray, #555);
  font-size:.95rem;
}
.announce-actions .cta{
  white-space:nowrap;
}

/* Compact “we teach” line */
.we-teach{
  margin-top:10px;
  margin-bottom:14px;
  color: var(--darkgray, #555);
}

/* Mini link row */
.mini-links{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-top:10px;
}

/* Mobile: stack announce band */
@media (max-width: 700px){
  .announce-inner{ flex-direction:column; align-items:flex-start; }
  .announce-actions{ width:100%; }
  .announce-actions .cta{ width:100%; text-align:center; }
}

.program-cards{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}

.pricing-callout{
  background: linear-gradient(180deg, #fff, #f7fbff);
}

@media (max-width: 800px){
  .program-cards{
    grid-template-columns:1fr;
  }
}

/* =========================
   Phase 3: Home clarity + community warmth
   ========================= */

.home-page .hero{
  background: url("images/background5.png") center/cover no-repeat;
  min-height: auto;
  padding: clamp(92px, 14vw, 150px) 0;
}

.home-page .hero::before,
.home-page .hero::after,
.home-page .hero-graphics,
.home-page .mic-graphic,
.home-page .staff-lines,
.home-page .floating-notes{
  display: none !important;
}

.home-page .hero-inner{
  grid-template-columns: 1fr;
}

.home-page .hero-copy{
  max-width: 760px;
}

.home-page .hero .title{
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 18px;
}

.home-page .hero-card{
  border-radius: 10px;
  box-shadow: none;
  border: 1px solid rgba(21, 54, 89, 0.12);
}

.home-page .hero .cta-row{
  margin-top: 18px;
}

.home-page .section{
  padding: clamp(74px, 10vw, 116px) 0;
}

.home-page #lessons,
.home-page #programs,
.home-page #contact{
  background: #ffffff;
}

.home-page #why{
  background: rgba(62, 183, 248, 0.06);
}

.home-page .section-card{
  border-radius: 10px;
  box-shadow: none;
  border: 1px solid #e6edf5;
}

.home-page .lessons-lite{
  max-width: 920px;
}

.home-page .lessons-lite .sub{
  margin-bottom: 16px;
}

.home-page .we-teach{
  margin-top: 0;
  margin-bottom: 24px;
  line-height: 1.8;
}

.home-page .phase3-why{
  max-width: 650px;
}

.home-page .phase3-why ul{
  margin-top: 18px;
}

.home-page .phase3-why li{
  margin-bottom: 14px;
  line-height: 1.55;
}

.home-page .programs-lite{
  max-width: 820px;
}

.home-page .mini-links{
  display: block;
}

.home-page .contact-simple p{
  margin: 8px 0;
}

.home-page .cta-band{
  background: #0b5da8;
  color: #ffffff;
  padding: 56px 0;
}

.home-page .cta-band-inner{
  text-align: center;
}

.home-page .cta-band h2{
  color: #ffffff;
  margin: 0 0 16px;
}

.home-page .cta-band .cta{
  display: inline-block;
}

.home-page .site-foot{
  text-align: center;
}

.home-page .site-foot a{
  color: inherit;
}

@media (max-width: 700px){
  .home-page .hero{
    padding: 88px 0 72px;
  }

  .home-page .hero .title{
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .home-page .section-card{
    padding: 18px;
  }
}

/* =========================
   Phase 4: Conversion Optimization (Home)
   ========================= */

.home-page .nav{
  align-items: center;
}

.home-page .utility-link{
  font-size: 0.9rem;
  font-weight: 600;
  color: #1f4e79;
  white-space: nowrap;
}

.home-page .nav-book-btn,
.home-page .cta.filled{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0b5da8;
  color: #ffffff;
  border: 1px solid #0b5da8;
  border-radius: 8px;
  padding: 14px 24px;
  font-weight: 800;
  text-decoration: none;
  line-height: 1.1;
  box-shadow: none;
  transition: background-color .18s ease, border-color .18s ease;
}

.home-page .nav-book-btn:hover,
.home-page .cta.filled:hover{
  background: #094c89;
  border-color: #094c89;
  text-decoration: none;
  transform: none;
}

.home-page .hero{
  padding: clamp(104px, 15vw, 164px) 0;
}

.home-page .pretitle{
  margin: 0 0 10px;
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 700;
  color: #063f70;
}

.home-page .hero .title{
  margin-bottom: 14px;
}

.home-page .hero-card,
.home-page .hero-card.frosted{
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(8, 45, 79, 0.14);
  border-radius: 8px;
  padding: 18px;
  box-shadow: none;
}

.home-page .hero .lead{
  max-width: 700px;
}

.home-page .trust-strip{
  margin: 14px 0 2px;
  font-size: 0.9rem;
  color: #234b70;
  text-align: center;
}

.home-page .section{
  padding: clamp(82px, 10vw, 122px) 0;
}

.home-page .section-card{
  border-radius: 8px;
  box-shadow: none;
}

.home-page .section-card p,
.home-page .section-card .sub{
  max-width: 700px;
}

.home-page #why{
  background: rgba(62, 183, 248, 0.06);
}

.home-page .phase3-why li{
  margin-bottom: 16px;
}

.home-page .objection-copy{
  max-width: 760px;
}

.home-page .programs-lite{
  max-width: 760px;
}

.home-page .announce-band{
  background: #ffffff;
  border-top: 1px solid rgba(0,0,0,.06);
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.home-page .announce-inner{
  padding-top: 12px;
  padding-bottom: 12px;
}

.home-page .cta-band{
  background: #0b5da8;
}

.home-page .cta-band .cta-note{
  margin: 10px 0 0;
  color: rgba(255,255,255,0.92);
  font-size: 0.95rem;
}

@media (max-width: 980px){
  .home-page .utility-link,
  .home-page .nav-book-btn{
    margin-top: 4px;
  }
}

@media (max-width: 680px){
  .home-page .utility-link{
    order: 3;
  }

  .home-page .nav-book-btn{
    order: 4;
    width: 100%;
    text-align: center;
  }

  .home-page .trust-strip{
    text-align: left;
    line-height: 1.5;
  }
}

/* =========================
   Phase 4B: Full-width Summer banner
   ========================= */

.summer-banner {
  width: 100%;
  background: linear-gradient(to right, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05));
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.summer-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.summer-text {
  font-size: 15px;
  color: #1a1a1a;
}

.summer-link {
  font-weight: 600;
  text-decoration: none;
  color: #0d4f8b;
}

.summer-link:hover {
  text-decoration: underline;
}

/* =========================
   Shared Cohesion Tokens + Utilities
   ========================= */
:root {
  --container-max: 1100px;
  --pad-x: 20px;
  --section-y: 80px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
  --blue: #0b5da8;
  --blue-ink: #00477d;
  --tint-blue: rgba(13,79,139,0.06);
  --tint-yellow: rgba(255,215,0,0.10);
}

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

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

.section--tint-blue {
  background: var(--tint-blue);
}

.section--tint-yellow {
  background: var(--tint-yellow);
}

.card {
  background: #fff;
  border: 1px solid #e4ebf3;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--blue);
  color: #fff;
  border: 1px solid var(--blue);
  border-radius: 8px;
  padding: 14px 24px;
  font-weight: 800;
  text-decoration: none;
  line-height: 1.1;
  transition: background-color .18s ease, border-color .18s ease;
}

.btn-primary:hover {
  background: #094c89;
  border-color: #094c89;
  text-decoration: none;
}

.btn-secondary,
.btn-link {
  color: var(--blue-ink);
  font-weight: 600;
  text-decoration: none;
}

.btn-secondary:hover,
.btn-link:hover {
  text-decoration: underline;
}

.cta-band {
  width: 100%;
  background: var(--blue);
  color: #fff;
}

.cta-band .container,
.cta-band-inner {
  text-align: center;
}

.cta-band h2 {
  color: #fff;
  margin: 0 0 14px;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--blue);
  border-color: #fff;
}

.cta-band .btn-primary:hover {
  background: #eef6ff;
  border-color: #eef6ff;
}

@media (max-width: 480px) {
  .container {
    padding-inline: 16px;
  }
}

/* Teachers page background */
.team-page {
  background:
    url('images/baclground4.png') center top / cover no-repeat fixed,
    var(--offwhite);
}
