/* -----------------------------------------------------
   Global Theme
----------------------------------------------------- */
:root {
  --brand: #8b2b58;
  --brand-dark: #6f1f44;
  --text-dark: #1f1f1f;
  --text-muted: #6b7280;
  --surface: #fffaf8;
  --radius: 14px;
}

body {
  background: var(--surface);
  color: var(--text-dark);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto;
}

/* -----------------------------------------------------
   Header
----------------------------------------------------- */
header {
  background: #ffffffcc;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #f2e4eb;
}

header a {
  transition: color .25s;
}

header a:hover {
  color: var(--brand);
}

#mobile-menu a {
  padding: .7rem 0;
  font-size: 1rem;
  border-bottom: 1px solid #f5e8ef;
}

/* -----------------------------------------------------
   Buttons
----------------------------------------------------- */
.btn-primary {
  background: var(--brand);
  color: #fff;
  padding: .7rem 1.4rem;
  border-radius: 50px;
  font-weight: 600;
  transition: background .25s, transform .25s;
}

.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
}

.btn-primary-outline {
  border: 2px solid var(--brand);
  color: var(--brand);
  padding: .6rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
  background: transparent;
  transition: all .25s;
}

.btn-primary-outline:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-2px);
}

.btn-small {
  background: var(--brand);
  color: #fff;
  font-size: .85rem;
  padding: .45rem 1rem;
  border-radius: 50px;
  transition: .25s;
}

.btn-small:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
}

/* -----------------------------------------------------
   Hero
----------------------------------------------------- */
.hero-frame img {
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

/* -----------------------------------------------------
   Program Cards
----------------------------------------------------- */
.program-card {
  border-radius: 18px;
  transition: transform .25s, box-shadow .25s;
}

.program-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 40px rgba(0,0,0,0.07);
}

/* -----------------------------------------------------
   Gallery Slider
----------------------------------------------------- */
.gallery-frame {
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.image-slide img {
  border-radius: 16px;
}

/* Slider buttons */
.slider-btn {
  background: #ffffff;
  padding: .4rem .8rem;
  border-radius: 8px;
  border: 1px solid #eee;
  transition: .2s;
}

.slider-btn:hover {
  background: var(--brand);
  color: #fff;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  border: none;
}

.slider-dot.active {
  background: var(--brand);
}

/* -----------------------------------------------------
   Why Parents Trust Us visuals
----------------------------------------------------- */
.trust-visual img {
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.05);
}

/* -----------------------------------------------------
   Testimonials
----------------------------------------------------- */
.testimonial-card {
  border-radius: 18px;
  background: #fff;
  transition: transform .25s, box-shadow .25s;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 38px rgba(0,0,0,0.08);
}

/* -----------------------------------------------------
   Resources Section
----------------------------------------------------- */
.resource-card {
  border-radius: 18px;
  transition: .25s;
  border: 1px solid #f0dfe7;
}

.resource-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 48px rgba(0,0,0,0.08);
}

.resource-card img {
  border-radius: 14px;
}

/* -----------------------------------------------------
   FAQ Accordion
----------------------------------------------------- */
#faq .faq-q {
  padding: .7rem .4rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: color .25s;
}

#faq .faq-q:hover {
  color: var(--brand);
}

#faq .sign {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e8dce6;
  font-weight: bold;
}

#faq .faq-a p {
  line-height: 1.6;
}

/* -----------------------------------------------------
   Visit Us Map
----------------------------------------------------- */
#visitus iframe {
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

/* -----------------------------------------------------
   Footer
----------------------------------------------------- */
.site-footer {
  background: var(--brand);
  color: #fff;
  padding-top: 3rem;
}

.site-footer a {
  color: #f7ddec;
  transition: .25s;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

/* -----------------------------------------------------
   WhatsApp Floating Button
----------------------------------------------------- */
.whatsapp-wrapper a {
  animation: popIn .35s ease-out;
}

@keyframes popIn {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* -----------------------------------------------------
   Modal Enhancements
----------------------------------------------------- */
#sv-contact-modal .sv-modal-enter,
#resource-modal .sv-modal-enter {
  opacity: 0;
  transform: translateY(20px);
}

#sv-contact-modal .sv-modal-show,
#resource-modal .sv-modal-show {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .28s ease, transform .28s ease;
}

#sv-contact-modal input,
#sv-contact-modal button,
#resource-modal button {
  font-size: 1rem;
}

/* -----------------------------------------------------
   Animations
----------------------------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp .8s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -----------------------------------------------------
   Mobile Responsiveness
----------------------------------------------------- */
@media (max-width: 768px) {
  .program-card {
    margin-bottom: 1rem;
  }

  .resource-card img {
    height: 120px;
  }

  .trust-visual img {
    width: 50px;
    height: 50px;
  }

  .testimonial-card {
    min-height: 200px;
  }
}





/* ---------- Upgraded Testimonial Widget (T1) ---------- */
.testimonials-widget { margin: 2.25rem 0; }
.tw-card { background: transparent; padding: 0.6rem 0; }
.tw-head { margin-bottom: 12px; }
.tw-title { margin: 0; font-size: 1.25rem; color: #0f172a; font-weight: 700; }
.tw-sub { margin: 2px 0 0; color: #6b7280; font-size: .95rem; }
.tw-badge-wrap { display:flex; align-items:center; gap:.5rem; }

/* Controls */
.tw-controls { display:flex; justify-content:flex-end; gap:.5rem; margin-bottom:8px; }
.tw-nav { background:#ffffff; border:1px solid rgba(15,23,42,0.06); padding:.45rem .6rem; border-radius:8px; cursor:pointer; font-weight:700; }

/* Track & slides */
.tw-track-wrap { overflow:hidden; }
.tw-track { display:flex; gap:12px; transition: transform .45s cubic-bezier(.2,.9,.2,1); will-change: transform; padding-bottom:6px; }

/* Single card */
.tw-slide { min-width:280px; flex:0 0 280px; box-sizing:border-box; }
.tw-slide .card { background:#fff; border-radius:12px; padding:16px; box-shadow: 0 10px 30px rgba(15,23,42,0.06); height:100%; display:flex; flex-direction:column; justify-content:space-between; }
.tw-quote { color:#111827; line-height:1.5; font-size:0.98rem; margin:0 0 12px; white-space:pre-wrap; }
.tw-author { margin-top:8px; font-weight:700; color:#0f172a; }
.tw-stars { color:#f59e0b; margin-bottom:8px; }

/* CTA on card */
.tw-card-cta { margin-top:12px; align-self:flex-start; background: #8b2b58; color:#fff; padding:8px 12px; border-radius:8px; border:0; cursor:pointer; font-weight:700; }

/* Responsive columns:
   Desktop (>=992px): show 3
   Tablet (>=768px): show 2
   Mobile: 1
*/
@media (min-width:992px) {
  .tw-slide { min-width: calc((100% - 24px) / 3); flex:0 0 calc((100% - 24px) / 3); }
}
@media (min-width:768px) and (max-width:991px) {
  .tw-slide { min-width: calc((100% - 12px) / 2); flex:0 0 calc((100% - 12px) / 2); }
}
@media (max-width:767px) {
  .tw-slide { min-width: 100%; flex:0 0 100%; }
}

/* Accessibility focus */
.tw-nav:focus, .tw-card-cta:focus { outline: 3px solid rgba(139,43,88,0.18); outline-offset:2px; }

/* Hide duplicates of google-badge if inadvertently present elsewhere - we won't create one */
.google-badge.duplicate-hidden { display: none !important; }
