html {
  scroll-behavior: smooth;
}

:root {
  --font-sans: 'Open Sans', ui-sans-serif, system-ui, sans-serif;
  --font-display: 'Open Sans', sans-serif;
  --mint-primary: #81D8D0;
  --mint-hover: #6bc4bc;
  --wa-brand-green: #25D366;
  --wa-brand-hover: #20ba5a;
  --slate-950: #000000;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-50: #f8fafc;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
}

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

body {
  font-family: var(--font-sans);
  background-color: #ffffff;
  color: var(--slate-950);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
}

.container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 768px) { .container { padding: 0 2rem; } }

.rounded-3xl { border-radius: 1.5rem; }
.rounded-swiss { border-radius: 2rem; }

/* Header Navbar Config */
.navbar {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-100);
  z-index: 100;
  padding: 0.5rem 0;
}

.nav-container { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  gap: 0.5rem;
}

/* --- Logo Styling --- */
.brand-logo { 
  height: 2.5rem;
  width: auto; 
  object-fit: contain; 
  display: block; 
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
@media (min-width: 768px) { 
  .brand-logo { 
    height: 4.5rem; 
  } 
}

/* --- Mobile-Friendly Nav Links --- */
.nav-links { 
  display: flex; 
  align-items: center; 
  gap: 0.75rem; 
  white-space: nowrap;
}

@media (max-width: 600px) {
  .nav-links {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }
}

@media (min-width: 768px) { .nav-links { gap: 1.75rem; } }
.nav-links a { 
  text-decoration: none; 
  font-size: 0.8125rem; 
  font-weight: 700; 
  color: var(--slate-600); 
  transition: color 0.2s; 
}
@media (min-width: 768px) { .nav-links a { font-size: 0.875rem; } }
.nav-links a:hover { color: var(--mint-primary); }

.nav-contact-icon-only { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  padding: 0.25rem; 
  border-radius: 50%; 
  transition: transform 0.2s, background-color 0.2s; 
}
.nav-contact-icon-only:hover { transform: scale(1.15); background-color: rgba(37, 211, 102, 0.1); }
.wa-nav-svg { width: 1.5rem; height: 1.5rem; fill: var(--wa-brand-green); display: block; }
.btn-lang { background: var(--slate-50); border: 1px solid var(--slate-200); padding: 0.35rem 0.6rem; border-radius: 0.5rem; font-weight: 700; font-size: 0.75rem; cursor: pointer; flex-shrink: 0; }

/* Hero Core Modules */
#hero {
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.75) 100%), url('images/hero-banner.png');
  background-size: cover; 
  background-position: center; 
  padding: 4rem 0; 
  display: flex; 
  align-items: center; 
  min-height: 60vh;
}
.hero-text-block { max-width: 100%; text-align: center; }
#hero h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 1rem; color: #ffffff; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
#hero p { color: var(--slate-100); font-size: 0.95rem; margin: 0 auto 2rem auto; max-width: 36rem; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.cta-row { display: flex; flex-direction: column; gap: 0.75rem; justify-content: center; }
.btn-hero-wa { background-color: var(--wa-brand-green) !important; box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3); }
.btn-hero-wa:hover { background-color: var(--wa-brand-hover) !important; }
#hero .btn-outline { color: #ffffff; border-color: rgba(255, 255, 255, 0.4); }
#hero .btn-outline:hover { background: rgba(255, 255, 255, 0.15); }

@media (min-width: 768px) {
  #hero { padding: 8rem 0; min-height: 80vh; }
  .hero-text-block { text-align: left; max-width: 42rem; }
  #hero h1 { font-size: 3.5rem; }
  #hero p { margin: 0 0 2.5rem 0; font-size: 1.125rem; }
  .cta-row { flex-direction: row; justify-content: flex-start; }
}

/* UPCOMING EVENTS SECTION */
.bg-mint-soft {
  background-color: #E2F6F3;
}
.events-header-block {
  text-align: left;
  max-width: 50rem;
  margin-bottom: 2.5rem;
}
.badge-dark {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--slate-600);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.75rem;
}
.events-main-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--slate-950);
  margin-bottom: 1rem;
}
@media (min-width: 768px) { .events-main-title { font-size: 4.5rem; } }
.events-main-desc {
  font-size: 1rem;
  color: var(--slate-700);
  line-height: 1.6;
}

/* Featured Event UI */
.featured-card-panel {
  display: grid;
  grid-template-columns: 1fr;
  background-color: #ffffff;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
  margin-bottom: 3rem;
  border-radius: 2rem;
}
@media (min-width: 768px) {
  .featured-card-panel { grid-template-columns: 340px 1fr; }
}
.featured-accent-side-panel {
  background-color: #79D4C9;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.feat-badge-lbl {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--slate-950);
  text-transform: uppercase;
}
.feat-huge-date {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--slate-950);
  margin: 1rem 0;
}
.feat-live-lbl {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-800);
}
.featured-content-body-panel {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (min-width: 768px) { .featured-content-body-panel { padding: 3rem 4rem; } }
.featured-content-body-panel h3 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--slate-950);
  margin-bottom: 0.5rem;
}
.feat-tutor-host-sub {
  font-size: 0.875rem;
  color: var(--slate-500);
  margin-bottom: 1.25rem;
}
.feat-description-copy {
  font-size: 0.9375rem;
  color: var(--slate-600);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 38rem;
}
.feat-action-buttons-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.btn-featured-dark-action {
  background-color: var(--slate-950);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  transition: opacity 0.2s;
}
.btn-featured-dark-action:hover { opacity: 0.9; }

/* All Upcoming Meta */
.all-upcoming-meta-row {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding-bottom: 1.25rem;
}
@media (min-width: 768px) {
  .all-upcoming-meta-row { flex-direction: row; justify-content: space-between; align-items: center; }
}
.all-upcoming-meta-row h3 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.filter-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip {
  background-color: #ffffff;
  border: 1px solid var(--slate-200);
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--slate-700);
  cursor: pointer;
  transition: all 0.2s;
}
.chip:hover { border-color: var(--slate-400); }
.chip.active {
  background-color: var(--slate-950);
  border-color: var(--slate-950);
  color: #ffffff;
}

/* Event List Card Wrapper */
.events-list-card-wrapper {
  background-color: #ffffff;
  border-radius: 1.5rem;
  border: 1px solid rgba(0,0,0,0.04);
  overflow: hidden;
}

.event-list-row {
  display: grid;
  grid-template-columns: 1fr;
  padding: 1.5rem;
  border-bottom: 1px solid var(--slate-100);
  align-items: center;
  gap: 1rem;
}
.event-list-row:last-child { border-bottom: none; }
@media (min-width: 768px) {
  .event-list-row { grid-template-columns: 160px 1fr auto; gap: 2rem; padding: 2rem; }
}

.event-row-date-block {
  display: flex;
  flex-direction: column;
}
.event-row-day {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--slate-950);
  line-height: 1.1;
}
.event-row-time {
  font-size: 0.75rem;
  color: var(--slate-500);
  font-weight: 600;
  margin-top: 0.25rem;
}
.category-pill-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  background-color: #CBEFEA;
  color: #2F6961;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.event-row-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--slate-950);
  margin-bottom: 0.25rem;
}
.event-row-meta-desc {
  font-size: 0.875rem;
  color: var(--slate-500);
}
.btn-rsvp-action {
  display: inline-block;
  border: 1px solid var(--slate-200);
  background-color: #ffffff;
  color: var(--slate-950);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  text-align: center;
  transition: background-color 0.2s;
  width: 100%;
}
@media (min-width: 768px) {
  .btn-rsvp-action { width: auto; }
}
.btn-rsvp-action:hover { background-color: var(--slate-50); }

/* GLOBAL ELEMENTS & CARDS GRID */
section { padding: 3.5rem 0; scroll-margin-top: 4.5rem; }
@media (min-width: 768px) { section { padding: 6.5rem 0; } }

.section-center-header { text-align: center; max-width: 36rem; margin: 0 auto 2.5rem auto; }
.section-center-header h2 { font-size: 1.75rem; font-weight: 800; margin-bottom: 0.75rem; }
@media (min-width: 768px) { .section-center-header h2 { font-size: 2.25rem; } }
.section-center-header p { font-size: 0.9375rem; color: var(--slate-500); }

.card-grid { 
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 1.5rem; 
}
@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }
}

/* Content / Curriculum Cards */
.content-card { 
  border: 1px solid var(--slate-100); 
  padding: 1.5rem; 
  background-color: #ffffff; 
  transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), 
              box-shadow 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}
@media (min-width: 768px) {
  .content-card { padding: 2rem; }
}

.content-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.card-header-accent { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.level-title { font-size: 1.2rem; font-weight: 800; color: var(--slate-950); }
.age-pill { font-size: 0.6875rem; font-weight: 800; background: rgba(129, 216, 208, 0.2); color: var(--slate-950); padding: 0.25rem 0.75rem; border-radius: 9999px; }
.content-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.75rem; }
.content-card p { font-size: 0.875rem; color: var(--slate-500); margin-bottom: 1.25rem; }
.feature-bullets { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.feature-bullets li { font-size: 0.875rem; color: var(--slate-700); font-weight: 600; display: flex; align-items: center; gap: 0.5rem; }
.feature-bullets li::before { content: "•"; color: var(--mint-primary); font-size: 1.25rem; }

/* Profile / Tutor Cards */
.profile-card { 
  border: 1px solid var(--slate-100); 
  padding: 1.5rem; 
  text-align: center; 
  background-color: #ffffff; 
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02); 
  transition: transform 0.2s, box-shadow 0.2s; 
}
@media (min-width: 768px) {
  .profile-card { padding: 2rem; }
}
.profile-card:hover { transform: translateY(-4px); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05); }
.avatar-wrapper { position: relative; width: 6.5rem; height: 6.5rem; margin: 0 auto 1.25rem auto; }
.profile-avatar { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; border: 3px solid rgba(129, 216, 208, 0.3); }
.avatar-fallback { width: 100%; height: 100%; background: var(--slate-50); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--slate-400); border: 1px dashed var(--slate-200); }
.profile-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.25rem; }
.role-label { font-size: 0.75rem; font-weight: 700; color: var(--mint-primary); display: block; margin-bottom: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.profile-card p { font-size: 0.875rem; color: var(--slate-500); line-height: 1.6; }

/* Contact Section */
#contact { 
  text-align: center; 
  padding: 5rem 0;
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.75) 100%), url('images/footer.png'); 
  background-size: cover; 
  background-position: center; 
  color: #ffffff;
}
.contact-center { max-width: 42rem; margin: 0 auto; }
#contact .badge { color: #81D8D0; }
#contact h2 { font-size: 1.75rem; font-weight: 800; margin-bottom: 1rem; letter-spacing: -0.01em; color: #ffffff; }
@media (min-width: 768px) { #contact h2 { font-size: 2.5rem; } }
#contact p { color: #f1f5f9; font-size: 0.95rem; margin-bottom: 2rem; line-height: 1.6; }

.whatsapp-brand-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem; background-color: var(--wa-brand-green); color: #ffffff; text-decoration: none; font-weight: 700; font-size: 0.95rem; padding: 0.875rem 2rem; border-radius: 9999px; box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4); transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s; width: 100%; max-width: 20rem; }
.whatsapp-brand-btn:hover { background-color: var(--wa-brand-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5); }
.wa-svg-icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }

.btn { display: inline-block; padding: 0.75rem 1.5rem; font-size: 0.875rem; font-weight: 700; border-radius: 9999px; text-decoration: none; cursor: pointer; border: none; text-align: center; transition: all 0.2s; }
.btn-primary { background: var(--mint-primary); color: #ffffff; }
.btn-primary:hover { background: var(--mint-hover); }
.btn-outline { background: transparent; border: 1px solid var(--slate-300); color: var(--slate-700); }
.btn-outline:hover { background: var(--slate-100); }
.badge { font-size: 1.6875rem; font-weight: 800; letter-spacing: 0.01em; color: var(--mint-primary); display: inline-block; margin-bottom: 0.75rem; }

/* Footer */
.footer { 
  border-top: none; 
  padding: 2.5rem 0; 
  text-align: center; 
  background-color: #81D8D0; 
  background-image: none;
}
.container-footer-flex { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.25rem; }
@media(min-width: 768px) { .container-footer-flex { flex-direction: row; justify-content: space-between; } }
.footer p { font-size: 0.8125rem; color: #0f172a; font-weight: 600; text-shadow: none; }
.payment-logo-img { max-height: 2rem; width: auto; object-fit: contain; }