:root {
  --primary: #e76f51;
  --primary-hover: #d35a3c;
  --secondary: #2a9d8f;
  --secondary-hover: #21867a;
  --accent-yellow: #e9c46a;
  --accent-soft: #fbf5ee;
  --bg-page: #faf8f5;
  --bg-white: #ffffff;
  --text-main: #264653;
  --text-muted: #5c6f78;
  --border: #ebdcd0;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 4px rgba(38, 70, 83, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(38, 70, 83, 0.08);
}

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

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

.container {
  width: 92%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Announcement Bar */
.announcement-bar {
  background-color: var(--secondary);
  color: var(--bg-white);
  font-size: 0.85rem;
  padding: 0.5rem 0;
  font-weight: 500;
}
.bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.bar-link {
  color: var(--accent-yellow);
  text-decoration: none;
  font-weight: 600;
}

/* Navigation */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.brand-icon {
  font-size: 1.7rem;
}
.brand-text {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
  line-height: 1;
}
.brand-text small {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 1.8rem;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 600;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
}
.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  background-color: var(--primary);
  color: #fff;
}
.btn-primary {
  background-color: var(--primary);
  color: #fff;
}
.btn-primary:hover, .btn-sm:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}
.btn-secondary {
  background-color: var(--bg-white);
  color: var(--text-main);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background-color: var(--accent-soft);
}

/* Hero Section */
.hero {
  padding: 4.5rem 0 3.5rem;
  background: linear-gradient(180deg, #fff7f2 0%, var(--bg-page) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}
.pill-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: var(--accent-soft);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 1.2rem;
}
.hero h1 {
  font-size: 2.7rem;
  margin-bottom: 1.2rem;
  letter-spacing: -0.5px;
}
.hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 1.8rem;
}
.hero-cta-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.hero-stats {
  display: flex;
  gap: 2rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}
.hero-stats strong {
  display: block;
  font-size: 1.4rem;
  color: var(--secondary);
}
.hero-stats span {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.hero-card-accent {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  text-align: center;
}
.accent-badge {
  background: var(--accent-yellow);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
}
.accent-illustration {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.accent-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Sections General */
.section {
  padding: 4.5rem 0;
}
.alt-bg {
  background-color: var(--bg-white);
}
.section-head {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3rem;
}
.sub-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: 1.5px;
  margin-bottom: 0.4rem;
  display: block;
}
.section-head h2 {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}
.lead-text {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* About Cards */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
}
.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}
.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.card-accent {
  background: #fdf6ec;
  border-color: #f7dfb9;
}

/* Teacher Bio */
.teacher-profile {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: center;
  background: var(--accent-soft);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.avatar-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #dcece8;
  border: 2px dashed var(--secondary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--secondary);
  font-size: 1.2rem;
}
.teacher-role {
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}
.teacher-bio h3 {
  font-size: 1.7rem;
  margin-bottom: 0.8rem;
}
.teacher-bio p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}
.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin-top: 1rem;
}
.badge-list li {
  background: var(--bg-white);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-lg);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  border: 1px solid var(--border);
}

/* Activities Grid */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.5rem;
}
.activity-box {
  background: var(--bg-white);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  position: relative;
}
.time-tag {
  display: inline-block;
  background: #ebf5f3;
  color: var(--secondary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.8rem;
}
.activity-box h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.activity-box p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Photo Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.photo-card {
  display: flex;
  flex-direction: column;
}
.photo-placeholder-box {
  height: 200px;
  background: #f1ebd8;
  border: 2px dashed #c4b595;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  color: #7b6f57;
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.photo-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

/* Hours Section */
.hours-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  background: var(--bg-white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  align-items: center;
}
.hours-details {
  list-style: none;
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.hours-details li strong {
  color: var(--text-main);
}
.hours-card-highlight {
  background: var(--accent-soft);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  text-align: center;
}
.hours-card-highlight h3 {
  margin-bottom: 0.6rem;
}
.hours-card-highlight p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}
.card-status-badge {
  display: inline-block;
  background: #e1f5eb;
  color: #1b633b;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-lg);
}

/* Carousel / Testimonials */
.carousel-container {
  max-width: 750px;
  margin: 0 auto;
  min-height: 250px;
  position: relative;
  background: var(--bg-white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  text-align: center;
}
.testimonial-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}
.testimonial-slide.active {
  display: block;
  opacity: 1;
}
.stars {
  color: var(--accent-yellow);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.quote {
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}
.author-name {
  display: block;
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
}
.author-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #e2dcd5;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s;
}
.nav-dot.active {
  background: var(--primary);
  transform: scale(1.25);
}

/* Footer */
.footer {
  background-color: var(--text-main);
  color: #e5edf0;
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  display: block;
  margin-bottom: 0.8rem;
}
.footer-col p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #b3c5cd;
}
.footer-col h5 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 1rem;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-col ul a {
  color: #b3c5cd;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-col ul a:hover {
  color: var(--accent-yellow);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: #8da4ae;
}

/* Responsive Adjustments */
@media (max-width: 860px) {
  .hero-grid, .teacher-profile, .hours-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .nav-links {
    display: none; /* Can be hooked up to a burger menu if needed */
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero h1 {
    font-size: 2.1rem;
  }
}

/* --- Gallery Image Styling --- */
.photo-frame {
  width: 100%;
  height: 200px;              /* Consistent gallery height */
  border-radius: var(--radius-md);
  overflow: hidden;           /* Clips the image to match border radius */
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 0.6rem;
  background-color: #eee;     /* Fallback color while loading */
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;          /* Crops and centers without squishing */
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}

/* Subtle hover zoom effect */
.photo-card:hover .photo-frame img {
  transform: scale(1.04);
}

/* --- Teacher Headshot Styling --- */
.teacher-avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--secondary);
  box-shadow: var(--shadow-sm);
}

.teacher-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center; /* Keeps head/shoulders centered */
  display: block;
}