:root{
  --bg:#f5eedc;
  --surface:#ffffff;
  --border:#e4d9be;
  --text:#17302e;
  --muted:#6b6152;
  --teal:#1e4b48;
  --teal-dark:#153635;
  --teal-soft:#4f726d;
  --gold:#c9a227;
  --gold-dark:#7a5f16;
  --radius:10px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:'Work Sans', system-ui, -apple-system, sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.65;
}
h1,h2{font-family:'Lora', Georgia, serif; margin:0 0 12px; color:var(--teal); text-wrap:balance;}
a{color:var(--teal); text-decoration:none;}
img{max-width:100%; display:block;}

/* site-wide scrolling news bar, above the header on every page -- hidden
   entirely unless data/news.json has at least one item */
.news-ticker{
  background:var(--teal-dark); color:#f5eedc; overflow:hidden;
  white-space:nowrap; position:relative;
}
.news-ticker[hidden]{display:none;}
.news-ticker-track{
  display:inline-block; white-space:nowrap; padding:7px 0;
  animation:news-ticker-scroll 32s linear infinite;
}
.news-ticker:hover .news-ticker-track{animation-play-state:paused;}
.news-ticker-track span{
  display:inline-block; padding:0 3em; font-size:.82rem; font-weight:500;
}
.news-ticker-track span::before{content:'\2726'; margin-right:3em; color:#c9a227;}
@keyframes news-ticker-scroll{
  from{transform:translateX(0);}
  to{transform:translateX(-50%);}
}
@media (prefers-reduced-motion: reduce){
  .news-ticker-track{animation:none; white-space:normal;}
}

/* header */
.site-header{
  background:var(--bg);
  border-bottom:1px solid var(--border);
  position:sticky; top:0; z-index:20;
}
.header-inner{
  max-width:1100px; margin:0 auto;
  display:flex; align-items:center; justify-content:space-between;
  padding:20px 24px; gap:16px; position:relative;
}
.logo{display:flex; align-items:center; gap:12px;}
.logo-mark{width:54px; height:54px; border-radius:50%; display:block; flex-shrink:0;}
.logo-text{display:flex; flex-direction:column; align-items:center; line-height:1.15;}
.logo-title{font-family:'Lora', Georgia, serif; font-size:1.5rem; font-weight:700; color:var(--teal);}
.logo-sub{font-family:'Work Sans', system-ui, sans-serif; font-size:.62rem; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:var(--teal-soft); margin-top:2px;}

.site-nav{display:flex; align-items:center; gap:28px;}
.site-nav a{font-size:.95rem; color:var(--teal); font-weight:500;}
.site-nav a:hover{color:var(--teal-dark); text-decoration:underline;}

.nav-toggle{
  display:none; flex-direction:column; justify-content:center; gap:5px;
  background:none; border:none; cursor:pointer; padding:8px; width:38px; height:38px;
}
.nav-toggle span{width:22px; height:2px; background:var(--teal); display:block;}

/* hero */
.hero{padding:0;}
.hero-inner{
  max-width:1100px; margin:0 auto; padding:48px 24px 64px;
  display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center;
}
.hero-text h1{font-size:2.6rem; line-height:1.15;}
.hero-sub{color:var(--text); font-size:1.05rem; max-width:46ch; margin:0 0 26px;}
.hero-tags{color:var(--teal-soft); font-size:.9rem; margin:18px 0 0;}
.btn-primary{
  display:inline-block; background:var(--teal); color:#fff !important;
  padding:13px 28px; border-radius:8px; font-weight:600; font-size:.95rem;
}
.btn-primary:hover{background:var(--teal-dark);}

.hero-media{width:100%;}
.photo-placeholder{
  margin:0; background:var(--surface); border:1.5px dashed var(--border);
  border-radius:var(--radius); aspect-ratio:4/3;
  display:flex; align-items:center; justify-content:center; flex-direction:column;
  color:var(--teal-soft); gap:6px;
}
.photo-placeholder.large{aspect-ratio:5/4;}
.hero-photo{width:100%; aspect-ratio:5/4; object-fit:cover; object-position:center top; border-radius:var(--radius); display:block;}
.photo-placeholder span{font-size:1.8rem; line-height:1;}
.photo-placeholder figcaption{font-size:.78rem; text-align:center; padding:0 20px; color:var(--muted);}

/* previous events */
.teacher-intro-section{max-width:1100px; margin:0 auto; padding:8px 24px 12px;}
.teacher-intro-section h2{font-size:1.7rem; text-align:center; margin-bottom:24px;}
.events-section{max-width:1100px; margin:0 auto; padding:8px 24px 56px; text-align:center;}
.events-section h2{font-size:1.7rem;}
.sample-note{font-size:.78rem; color:var(--muted); font-style:italic; margin-top:16px;}
.link-more{font-weight:600; font-size:.92rem; display:inline-block; margin-top:8px;}

/* previous events: flip-book carousel — pages hinged on the left edge like a
   bound book; moving the mouse across the cover turns through the posters. */
.flipbook-wrap{
  display:flex; flex-direction:column; align-items:center; gap:14px;
  margin-top:32px;
}
.flipbook-hint{font-size:.78rem; color:var(--teal-soft); font-style:italic;}
.flipbook-stage{
  position:relative; width:min(280px, 72vw); aspect-ratio:3/4;
  perspective:1600px; cursor:pointer;
}
/* a little "closed book" shadow behind the stack for depth */
.flipbook-stage::after{
  content:''; position:absolute; inset:6px -6px -10px 10px; z-index:-1;
  background:rgba(23,48,46,.18); border-radius:14px; filter:blur(6px);
}
.flip-page{
  position:absolute; inset:0;
  transform-style:preserve-3d;
  transform-origin:left center;
  transform:rotateY(0deg);
  transition:transform .12s ease-out;
}
.flip-front,.flip-back{
  position:absolute; inset:0; overflow:hidden; border-radius:12px;
  backface-visibility:hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,.45) 0%, rgba(255,255,255,0) 38%, rgba(255,255,255,0) 68%, rgba(255,255,255,.14) 100%);
  border:1px solid rgba(255,255,255,.5);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.7),
    inset 0 -2px 4px rgba(21,54,53,.15),
    0 5px 14px rgba(23,48,46,.2);
}
.flip-front img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; border-radius:11px;}
.flip-back{
  transform:rotateY(180deg);
  /* a pale blush tint of the rose "Events" cover, so turned pages read as
     the inside of the same book rather than blank paper */
  background:linear-gradient(135deg, #f9eaed 0%, #f1d6dc 60%, #e9c6ce 100%);
  display:flex; align-items:center; justify-content:center;
}
/* thin gold inner frame, echoing the gold border on the cover */
.flip-back::after{
  content:''; position:absolute; inset:10px; pointer-events:none;
  border:1px solid rgba(169,119,41,.5); border-radius:6px;
}
.flip-back-mark{font-family:'Lora', Georgia, serif; font-weight:700; color:#b95369; opacity:.55; font-size:2.4rem;}
/* spine shading down the hinge edge so pages read as bound together */
.flip-page::before{
  content:''; position:absolute; left:0; top:0; bottom:0; width:16px; z-index:3;
  background:linear-gradient(to right, rgba(21,54,53,.35), transparent);
  border-radius:12px 0 0 12px; pointer-events:none;
}
.flipbook-caption{display:flex; flex-direction:column; align-items:center; gap:4px; text-align:center;}

/* title + date shown under whichever poster is on top of the flip-book */
.event-title-link{font-weight:600; font-size:.95rem; line-height:1.3; color:var(--text);}
.event-title-link:hover{color:var(--teal); text-decoration:underline;}
.event-btn-date{font-size:.8rem; color:var(--muted);}

/* all-events page */
.page-section{max-width:1100px; margin:0 auto; padding:48px 24px 64px;}
.page-section h1{font-size:2.1rem;}
.page-section .lede{color:var(--muted); margin-bottom:8px; max-width:64ch; margin-left:auto; margin-right:auto;}
.page-section .flipbook-wrap{margin-top:8px;}

/* courses.html: in-person schedule table + mobile filter, online classes note */
.page-section h2{font-size:1.4rem; margin-top:38px;}
.location-note{font-size:.85rem; color:var(--muted); max-width:640px; margin:0 0 20px;}
.location-note a{font-weight:600;}

.schedule-block{margin-top:18px; text-align:center;}

.schedule-table-wrap{display:flex; justify-content:center; overflow-x:auto; padding-bottom:4px;}
.schedule-table{border-collapse:collapse; font-size:.85rem;}
.schedule-table th,.schedule-table td{border:1px solid var(--border); padding:9px 14px; text-align:center;}
.schedule-table thead th{background:var(--surface); color:var(--teal); font-weight:700;}
.schedule-table thead th.time-col{text-align:left;}
.schedule-table th.time-col{background:var(--surface); font-weight:600; text-align:left; white-space:nowrap; color:var(--text);}
.schedule-table td.slot-open{font-weight:700; font-size:.78rem; letter-spacing:.03em;}
/* Open slots are color-coded by venue (see the venues/venueLabels in
   data/schedule.json): teal for India Society of Worcester (weekdays),
   gold for Northborough Studio (Sunday morning). The legend below the table spells out
   what each color means. */
.schedule-table td.slot-open.venue-isw{background:rgba(30,75,72,.14); color:var(--teal);}
.schedule-table td.slot-open.venue-wbs{background:rgba(201,162,39,.22); color:var(--gold-dark);}
.schedule-table td.slot-closed{color:var(--muted);}

.schedule-legend{
  display:flex; flex-wrap:wrap; justify-content:center; gap:10px 22px;
  margin-top:14px; font-size:.85rem; color:var(--muted);
}
.schedule-footnote{margin:8px 0 0; font-size:.85rem; color:var(--muted);}
.schedule-legend .legend-item{display:inline-flex; align-items:center; gap:8px;}
.schedule-legend .legend-swatch{
  width:13px; height:13px; border-radius:4px; display:inline-block; flex:none;
}
.schedule-legend .legend-swatch.venue-isw{background:var(--teal);}
.schedule-legend .legend-swatch.venue-wbs{background:var(--gold);}
.location-table{border-collapse:collapse; font-size:.9rem;}
.location-table th,.location-table td{border:1px solid var(--border); padding:10px 18px; text-align:left;}
.location-table thead th{background:var(--surface); color:var(--teal); font-weight:700;}
.location-table td a{font-weight:600;}

.schedule-mobile{display:none; max-width:420px; margin:0 auto;}
.schedule-dropdown-row{display:flex; gap:12px; margin-bottom:16px;}
.schedule-field{flex:1; display:flex; flex-direction:column; gap:6px; text-align:left;}
.schedule-field label{font-size:.8rem; font-weight:600; color:var(--text);}
.schedule-field select{
  width:100%; font-family:'Work Sans', sans-serif; font-size:.9rem; color:var(--text);
  background:var(--bg); border:1px solid var(--border); border-radius:8px; padding:10px 12px;
}
.schedule-result{
  background:var(--surface); border:1px solid var(--border); border-radius:10px;
  padding:16px; font-size:.92rem; color:var(--muted);
}
.schedule-result.is-open{color:var(--teal); font-weight:600; border-color:var(--teal-soft);}

.note-card-wrap{display:flex; justify-content:center; margin-top:16px;}
.note-card{
  width:100%; max-width:560px; background:var(--surface); border:1px solid var(--border);
  border-radius:var(--radius); padding:28px 30px; text-align:center;
  box-shadow:0 6px 18px rgba(23,48,46,.08);
}
.note-card p{margin:0; color:var(--muted); font-size:.95rem; line-height:1.6;}

/* about.html: school overview + teacher bio */
.about-lede{max-width:72ch; margin-left:0; margin-right:0;}
.about-intro{display:flex; align-items:center; gap:32px; margin-bottom:12px;}
.about-intro .about-lede{margin:0;}
.about-intro-photo{flex:0 0 min(400px, 42%); margin:0; border-radius:var(--radius); overflow:hidden;
  border:1px solid var(--border); box-shadow:0 8px 22px rgba(23,48,46,.12); background:var(--surface);}
.about-intro-photo img{width:100%; height:auto; aspect-ratio:4/3; object-fit:cover; display:block;}
.about-teacher-wrap{
  display:flex; gap:34px; align-items:flex-start;
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  padding:32px; box-shadow:0 6px 18px rgba(23,48,46,.08); margin-top:8px;
}
.about-teacher-photo{width:220px; flex-shrink:0;}
.about-teacher-photo img{
  width:100%; aspect-ratio:4/5; object-fit:cover; object-position:center top;
  border-radius:var(--radius); display:block;
}
.about-teacher-text{flex:1;}
.about-teacher-text h3{font-family:'Lora', Georgia, serif; color:var(--teal); margin:0 0 10px; font-size:1.25rem;}
.about-teacher-text p{margin:0 0 14px;}
.about-teacher-text p:last-child{margin-bottom:0;}

/* event detail page */
.back-link{font-size:.9rem; font-weight:600;}
.event-date{color:var(--muted); margin:6px 0 22px;}
.tabs{display:flex; gap:10px; border-bottom:1px solid var(--border); margin-bottom:22px;}
.tab-btn{
  font-family:'Work Sans', sans-serif; font-size:.95rem; font-weight:600;
  background:none; border:none; cursor:pointer; padding:10px 4px;
  color:var(--muted); border-bottom:2px solid transparent; margin-bottom:-1px;
}
.tab-btn.active{color:var(--teal); border-bottom-color:var(--teal);}

/* about.html: testimonials tab */
.testimonial-video-grid{display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:20px; margin-bottom:28px;}
.testimonial-video-tile{
  display:flex; flex-direction:column; padding:0; text-align:left; cursor:pointer;
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  overflow:hidden; box-shadow:0 6px 18px rgba(23,48,46,.06); font:inherit; color:inherit;
  transition:transform .15s ease, box-shadow .15s ease;
}
.testimonial-video-tile:hover,.testimonial-video-tile:focus-visible{transform:translateY(-2px); box-shadow:0 10px 24px rgba(23,48,46,.12);}
.tile-thumb{position:relative; display:block; aspect-ratio:16/9; background:#000;}
.tile-thumb img{width:100%; height:100%; object-fit:cover; display:block;}
.tile-play{
  position:absolute; inset:0; margin:auto; width:58px; height:40px; border-radius:10px;
  background:rgba(204,0,0,.9); display:flex; align-items:center; justify-content:center;
}
.tile-play::after{content:""; border-left:15px solid #fff; border-top:9px solid transparent; border-bottom:9px solid transparent; margin-left:4px;}
.tile-title{display:block; padding:10px 14px; font-weight:600; font-size:.92rem; color:var(--text);}
.video-modal{
  position:fixed; inset:0; background:rgba(15,25,24,.88); z-index:60;
  display:flex; align-items:center; justify-content:center; padding:24px;
}
.video-modal[hidden]{display:none;}
.video-modal-box{position:relative; width:min(960px, 100%);}
.video-modal-box.is-vertical{width:min(420px, 100%, calc(85vh * 9 / 16));}
.video-modal-frame{position:relative; aspect-ratio:16/9; background:#000; border-radius:8px; overflow:hidden;}
.video-modal-box.is-vertical .video-modal-frame{aspect-ratio:9/16;}
.video-modal-frame iframe,.video-modal-frame video{position:absolute; inset:0; width:100%; height:100%; border:0; background:#000;}
.video-modal-close{
  position:absolute; top:-44px; right:0; background:none; border:none;
  color:#fff; font-size:2.2rem; line-height:1; cursor:pointer;
}
.testimonial-grid{display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:20px;}
.testimonial-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  padding:22px 24px; box-shadow:0 6px 18px rgba(23,48,46,.06);
  display:flex; flex-direction:column; gap:12px;
}
.testimonial-head{display:flex; align-items:center; gap:14px;}
.testimonial-photo{width:52px; height:52px; border-radius:50%; overflow:hidden; flex:none;}
.testimonial-photo img{width:100%; height:100%; object-fit:cover; display:block;}
.testimonial-name{font-weight:700; color:var(--text); font-size:.95rem;}
.testimonial-attribution{font-size:.8rem; color:var(--muted);}
.testimonial-quote{
  font-family:'Lora', Georgia, serif; font-style:italic; color:var(--text);
  line-height:1.6; margin:0;
}
.photo-thumb-grid{display:grid; grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:14px;}
.lightbox-thumb{padding:0; border:none; background:none; cursor:zoom-in; border-radius:8px; overflow:hidden; aspect-ratio:4/3;}
.lightbox-thumb img{width:100%; height:100%; object-fit:cover;}
.video-list{display:flex; flex-direction:column; gap:18px;}
.event-video{width:100%; border-radius:8px; background:#000;}
.video-embed{position:relative; aspect-ratio:16/9; border-radius:8px; overflow:hidden; background:#000;}
.video-embed iframe{position:absolute; inset:0; width:100%; height:100%; border:0; display:block;}
.video-grid{display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:14px;}
.video-grid-item{position:relative; aspect-ratio:16/9; border-radius:8px; overflow:hidden; background:#000;}
.video-grid-item iframe,.video-grid-item video{position:absolute; inset:0; width:100%; height:100%; border:0; display:block;}
.video-grid-thumb{position:absolute; inset:0; width:100%; height:100%; padding:0; border:none; background:none; cursor:pointer;}
.video-grid-thumb img{width:100%; height:100%; object-fit:cover; display:block;}
.video-play-icon{position:absolute; inset:0; display:flex; align-items:center; justify-content:center; pointer-events:none;}
.video-play-icon svg{box-sizing:content-box; background:rgba(0,0,0,.55); border-radius:50%; padding:14px;}
.video-grid-thumb:hover .video-play-icon svg{background:rgba(0,0,0,.72);}

.lightbox{
  position:fixed; inset:0; background:rgba(15,25,24,.9);
  display:flex; align-items:center; justify-content:center; z-index:50; padding:24px;
}
.lightbox[hidden]{display:none;}
.lightbox img{max-width:100%; max-height:90vh; border-radius:6px;}
.lightbox-close{
  position:absolute; top:18px; right:24px; background:none; border:none;
  color:#fff; font-size:2rem; line-height:1; cursor:pointer;
}

/* FAQ accordion */
.faq-section{max-width:760px;}
.faq-list{margin-top:8px;}
.faq-item{border-bottom:1px dashed var(--border);}
.faq-item:last-child{border-bottom:none;}
.faq-question{
  display:flex; align-items:center; gap:12px; width:100%;
  background:none; border:none; cursor:pointer; text-align:left;
  padding:16px 4px; font-family:'Work Sans', sans-serif; font-size:1.02rem;
  font-weight:600; color:var(--text);
}
.faq-question:hover{color:var(--teal);}
.faq-toggle-icon{flex-shrink:0; color:var(--teal); transition:transform .2s ease;}
.faq-question[aria-expanded="true"] .faq-toggle-icon{transform:rotate(180deg);}
.faq-answer{padding:0 4px 18px 30px;}
.faq-answer p{margin:0 0 10px; color:var(--muted); font-size:.95rem; line-height:1.6;}
.faq-answer p:last-child{margin-bottom:0;}
.faq-answer a{font-weight:600;}

/* contact.html: enrollment/contact form page */
.contact-page-section{max-width:1100px; margin:0 auto; padding:48px 24px 64px;}
.contact-hero{max-width:640px; margin:0 auto 34px; text-align:center;}
.contact-hero h1{font-size:1.9rem;}
.contact-hero p{color:var(--muted); font-size:.95rem; margin:0;}

.contact-card-wrap{display:flex; justify-content:center;}
.contact-card{
  width:100%; max-width:460px; background:var(--surface); border:1px solid var(--border);
  border-radius:var(--radius); padding:32px 30px; box-shadow:0 6px 18px rgba(23,48,46,.08);
}

.form-field{margin-bottom:20px;}
.form-field label{display:block; font-size:.85rem; font-weight:600; margin-bottom:6px; color:var(--text);}
.form-field input[type="text"],
.form-field input[type="email"],
.form-field textarea{
  width:100%; font-family:'Work Sans', sans-serif; font-size:.95rem; color:var(--text);
  background:var(--bg); border:1px solid var(--border); border-radius:8px; padding:10px 12px;
  resize:vertical;
}
.form-field input:focus,.form-field textarea:focus{
  outline:2px solid var(--teal-soft); outline-offset:1px; border-color:var(--teal);
}
.form-field textarea{min-height:110px;}
.form-field.has-error input,.form-field.has-error textarea{border-color:#b3311c;}
.field-meta{display:flex; justify-content:space-between; gap:10px; margin-top:4px;}
.field-error{color:#b3311c; font-size:.78rem; min-height:16px;}
.field-count{color:var(--muted); font-size:.75rem; white-space:nowrap; margin-left:auto;}

.btn-submit{
  width:100%; background:var(--teal); color:#fff; border:none; border-radius:8px;
  padding:13px 20px; font-family:'Work Sans', sans-serif; font-weight:600; font-size:.95rem;
  cursor:pointer;
}
.btn-submit:hover{background:var(--teal-dark);}
.btn-submit:disabled{opacity:.7; cursor:progress;}

.form-status{margin:14px 0 0; font-size:.85rem; text-align:center; min-height:1.2em;}
.form-status.error{color:#b3311c;}

/* thank-you modal shown after a successful submit */
.modal-overlay{
  position:fixed; inset:0; background:rgba(15,25,24,.55);
  display:flex; align-items:center; justify-content:center; z-index:60; padding:20px;
}
.modal-overlay[hidden]{display:none;}
.modal-box{
  background:var(--surface); border-radius:12px; max-width:380px; width:100%;
  padding:32px 28px; text-align:center; box-shadow:0 12px 32px rgba(23,48,46,.3);
}
.modal-box h2{font-size:1.3rem; margin-bottom:10px;}
.modal-box p{color:var(--muted); font-size:.92rem; margin:0 0 22px;}
.modal-ok-btn{
  background:var(--teal); color:#fff; border:none; border-radius:8px;
  padding:10px 30px; font-weight:600; font-size:.92rem; cursor:pointer;
}
.modal-ok-btn:hover{background:var(--teal-dark);}

/* contact */
.contact-section{max-width:1100px; margin:0 auto; padding:8px 24px 56px; text-align:center;}
.contact-section h2{font-size:1.7rem;}
.contact-grid{
  display:flex; justify-content:center; flex-wrap:wrap; gap:36px;
  margin-top:24px;
}
.contact-item{display:flex; align-items:center; gap:10px; color:var(--text); font-size:.98rem;}
.contact-item svg{color:var(--teal); flex-shrink:0;}
.contact-item a{color:var(--text);}
.contact-item a:hover{color:var(--teal);}

.locations-heading{
  font-family:'Work Sans', sans-serif; font-size:1rem; font-weight:600;
  color:var(--text); margin:32px 0 14px; text-transform:uppercase; letter-spacing:.04em;
}
.location-list{
  list-style:none; margin:0 auto; padding:0; max-width:480px;
  display:flex; flex-direction:column; gap:12px; text-align:left;
}
.location-list li{display:flex; align-items:center; gap:10px;}
.location-list svg{color:var(--teal); flex-shrink:0;}
.location-list a{color:var(--text); font-size:.95rem;}
.location-list a:hover{color:var(--teal); text-decoration:underline;}

/* footer */
.site-footer{
  text-align:center; padding:26px 20px; border-top:1px solid var(--border);
  color:var(--muted); font-size:.85rem;
}
.site-footer .footer-contact{margin-top:8px;}
.site-footer .footer-contact a{color:var(--teal-soft);}

/* responsive */
@media (max-width:720px){
  .nav-toggle{display:flex;}
  .site-nav{
    position:absolute; top:100%; left:0; right:0;
    background:var(--bg); border-bottom:1px solid var(--border);
    flex-direction:column; align-items:flex-start;
    padding:18px 24px; gap:16px;
    display:none;
  }
  .site-nav.open{display:flex;}

  .logo-mark{width:42px; height:42px;}
  .logo-title{font-size:1.2rem;}
  .logo-sub{font-size:.55rem;}

  .hero-inner{grid-template-columns:1fr; text-align:center; gap:28px; padding:28px 20px 44px;}
  .hero-media{order:-1;}

  .about-teacher-wrap{flex-direction:column; align-items:center; text-align:center; padding:26px 20px;}
  .about-teacher-photo{width:180px;}
  .hero-sub{max-width:none; margin-left:auto; margin-right:auto;}
  .hero-text h1{font-size:2rem;}

  .flipbook-stage{width:min(220px, 62vw);}

  .contact-card{padding:26px 20px;}

  .contact-grid{
    flex-direction:column; align-items:flex-start; gap:16px;
    background:var(--surface); border:1px solid var(--border);
    border-radius:var(--radius); padding:20px 22px;
  }
}

/* video grids (events + testimonials): 3 per row, 2 on tablets, 1 on phones */
@media (max-width:720px){.testimonial-video-grid,.video-grid{grid-template-columns:repeat(2, minmax(0, 1fr));}}
@media (max-width:460px){.testimonial-video-grid,.video-grid{grid-template-columns:1fr;}}

/* about page intro: photo stacks above the text on phones */
@media (max-width:720px){.about-intro{flex-direction:column; align-items:stretch; gap:18px;} .about-intro-photo{flex-basis:auto;}}

/* about.html: fuller teacher bio with sub-headings and a performance list */
.about-teacher-text .teacher-role{color:var(--muted); font-size:.92rem; margin:-4px 0 14px;}
.about-teacher-text h4{font-family:'Lora', Georgia, serif; color:var(--teal); font-size:1.02rem; margin:22px 0 8px;}
.teacher-list{margin:0 0 14px; padding-left:20px;}
.teacher-list li{margin-bottom:8px;}
.teacher-list li::marker{color:var(--teal-soft);}
@media (max-width:720px){
  .about-teacher-text{text-align:left;}
  .about-teacher-text h3,.about-teacher-text .teacher-role{text-align:center;}
}
