:root {
  --red: #d81f26;
  --red-dark: #a3141a;
  --yellow: #ffce00;
  --yellow-dark: #e0ac00;
  --black: #1c1512;
  --white: #ffffff;
  --cream: #fff6e0;
  --text: #241d1a;
  --muted: #6f6259;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(28, 21, 18, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 3px solid var(--black);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  max-width: 1140px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 58px;
  width: auto;
}

.brand-text strong {
  display: block;
  font-family: "Poppins", "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--black);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.brand-text span {
  display: block;
  font-family: "Poppins", "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.3px;
}

.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
}

.nav-links a {
  font-weight: 600;
  color: var(--black);
  padding: 8px 4px;
  position: relative;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--red);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 3px;
  background: var(--yellow);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--black);
  cursor: pointer;
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: 3px solid var(--black);
  }
  .nav-links.open {
    max-height: 500px;
  }
  .nav-links a {
    padding: 16px 24px;
    width: 100%;
    border-top: 1px solid #eee;
  }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white);
  padding: 70px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -130px;
  width: 340px;
  height: 340px;
  background: var(--yellow);
  opacity: 0.22;
  border-radius: 50%;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.hero-text { flex: 1 1 420px; }

.hero-logo {
  flex: 0 0 auto;
  width: 280px;
}

.hero-logo img {
  width: 100%;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

.hero-logo.placeholder {
  width: 220px;
  height: 220px;
  background: var(--yellow);
  border: 5px solid var(--black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  font-weight: 800;
  font-size: 1.4rem;
  text-align: center;
  padding: 20px;
}

.hero h1 {
  font-size: 2.4rem;
  margin: 0 0 12px;
  line-height: 1.25;
  color: var(--white);
}

.hero p {
  font-size: 1.05rem;
  color: #ffe4c7;
  max-width: 540px;
  margin-bottom: 28px;
}

.hero .btn-outline {
  border-color: var(--white);
  color: var(--white);
}

.hero .btn-outline:hover {
  background: rgba(255,255,255,0.15);
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-red {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(216, 31, 38, 0.4);
}

.btn-red:hover { background: var(--red-dark); }

.btn-yellow {
  background: var(--yellow);
  color: var(--black);
  border: 2px solid var(--black);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.btn-yellow:hover { background: var(--yellow-dark); }

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
  margin-left: 12px;
}

.btn-outline:hover { background: rgba(255,255,255,0.15); }

.btn-outline-black {
  background: transparent;
  border: 2px solid var(--black);
  color: var(--black);
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 700;
  cursor: pointer;
}

.btn-outline-black:hover { background: var(--black); color: var(--white); }

/* Stats strip */
.stats {
  background: var(--white);
  margin-top: -50px;
  position: relative;
  z-index: 2;
}

.stats .container {
  display: flex;
  background: linear-gradient(135deg, var(--black) 0%, #000000 100%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}

.stat {
  flex: 1 1 200px;
  text-align: center;
  padding: 28px 16px;
  border-right: 1px solid rgba(255,255,255,0.15);
}

.stat:last-child { border-right: none; }

.stat .num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--yellow);
}

.stat .label {
  font-size: 0.85rem;
  color: #e8e0d6;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Section generic */
.section {
  padding: 70px 0;
}

.section-grey { background: var(--cream); }

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 44px;
}

.section-head .tag {
  display: inline-block;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 1.5px;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-head h2 {
  color: var(--black);
  font-size: 1.9rem;
  margin: 0 0 10px;
}

.section-head p {
  color: var(--muted);
}

/* Overview / about cards */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-grid p {
  color: var(--muted);
  margin-bottom: 16px;
}

.about-points {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.about-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 600;
  color: var(--black);
}

.about-points li::before {
  content: "\2713";
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
  border-top: 6px solid var(--yellow);
}

.about-card img {
  width: 130px;
  margin: 0 auto 18px;
}

.about-card h3 {
  color: var(--black);
  text-align: center;
  margin-top: 0;
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* Cards grid generic */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  border-top: 4px solid var(--yellow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(28,21,18,0.18);
}

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.card h3 {
  color: var(--black);
  margin: 0 0 8px;
}

.card p { color: var(--muted); margin: 0; }

.card .card-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--red);
  font-weight: 700;
  font-size: 0.9rem;
}

/* Track tabs (Classes page) */
.level-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.level-tab {
  padding: 10px 22px;
  border-radius: 24px;
  border: 2px solid var(--red);
  color: var(--red);
  font-weight: 700;
  background: var(--white);
  cursor: pointer;
}

.level-tab.active,
.level-tab:hover {
  background: var(--red);
  color: var(--white);
}

.level-panel { display: none; }
.level-panel.active { display: block; }

.track-intro {
  max-width: 760px;
  margin: 0 auto 30px;
  text-align: center;
  color: var(--muted);
}

.track-meta {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.track-meta span {
  background: var(--cream);
  color: var(--black);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 7px 16px;
  border-radius: 20px;
  border: 1px solid #f0dca0;
}

.schedule-table-wrap {
  max-width: 820px;
  margin: 0 auto 30px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.schedule-table th {
  background: var(--black);
  color: var(--white);
  padding: 12px 18px;
  font-weight: 700;
  font-size: 0.9rem;
}

.schedule-table td {
  padding: 12px 18px;
  border-bottom: 1px solid #f1ece2;
  color: var(--text);
}

.schedule-table tr:nth-child(even) td {
  background: var(--cream);
}

.schedule-table td:nth-child(2) {
  color: var(--red-dark);
  font-weight: 600;
}

.curriculum-block {
  max-width: 820px;
  margin: 0 auto;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 26px 30px;
  border-left: 6px solid var(--red);
}

.curriculum-block h4 {
  margin: 0 0 14px;
  color: var(--black);
}

.curriculum-block ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.curriculum-block ul li strong { color: var(--text); }

.hybrid-note {
  max-width: 820px;
  margin: 24px auto 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
}

/* Program / workshop cards */
.program-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  margin-bottom: 26px;
  border-left: 6px solid var(--yellow);
}

.program-card .program-tag {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 4px 12px;
  border-radius: 14px;
  margin-bottom: 12px;
}

.program-card h3 {
  color: var(--black);
  margin: 0 0 6px;
}

.program-card .program-meta {
  color: var(--red-dark);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.program-card p {
  color: var(--muted);
  margin: 0 0 10px;
}

.program-card ul {
  color: var(--muted);
  margin: 10px 0 0;
  padding-left: 20px;
}

/* Placeholder note */
.placeholder-note {
  background: #fff7e0;
  border: 1px dashed var(--yellow-dark);
  color: #7a5b00;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 30px;
}

/* About / founder page */
.founder-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 44px;
  align-items: start;
}

@media (max-width: 860px) {
  .founder-grid { grid-template-columns: 1fr; }
}

.founder-photo {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow);
  font-size: 3.5rem;
  font-weight: 800;
}

.founder-text p { color: var(--muted); margin-bottom: 16px; }

.pantun {
  background: var(--cream);
  border-left: 6px solid var(--yellow);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 26px 0;
  font-style: italic;
  color: var(--black);
  line-height: 1.8;
}

.credibility-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.credibility-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text);
}

.credibility-list li::before {
  content: "\2605";
  color: var(--yellow-dark);
  flex: 0 0 auto;
}

/* Tutor cards */
.tutor-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
}

.tutor-photo {
  height: 170px;
  background: linear-gradient(135deg, var(--black), #000);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow);
  font-size: 2.6rem;
  font-weight: 800;
}

.tutor-card .info { padding: 22px; }

.tutor-card h3 {
  color: var(--black);
  margin: 0 0 4px;
}

.tutor-card .subject {
  color: var(--red);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.tutor-card p.bio {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.gallery-item {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--cream), #ffeab0);
  border: 2px dashed var(--yellow-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #8a6a00;
  text-align: center;
  padding: 16px;
}

.gallery-item .icon { font-size: 2rem; }
.gallery-item .label { font-weight: 700; font-size: 0.9rem; }

/* Bookstore */
.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .book-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 460px) {
  .book-grid { grid-template-columns: 1fr; max-width: 320px; }
}

.book-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.book-cover {
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow);
  font-weight: 800;
  font-size: 0.85rem;
  text-align: center;
  padding: 12px;
}

.book-card .info {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.book-card h3 {
  color: var(--black);
  margin: 0 0 6px;
  font-size: 0.92rem;
  line-height: 1.3;
}

.book-card p {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
  flex: 1;
  margin: 0 0 8px;
}

.book-price {
  color: var(--red-dark);
  font-weight: 800;
  font-size: 0.92rem;
  margin: 0 0 10px;
}

.book-card .btn {
  padding: 8px 14px;
  font-size: 0.78rem;
  border-radius: 20px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
}

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

.contact-info-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}

.contact-info-card h3 {
  color: var(--black);
  margin-top: 0;
}

.contact-line {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.contact-line .ic {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.contact-line strong { display: block; color: var(--black); }
.contact-line span, .contact-line a { color: var(--muted); }

.map-frame {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}

.contact-form h3 { color: var(--black); margin-top: 0; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; }
}

.contact-form label {
  display: block;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #e3d9c4;
  border-radius: 8px;
  margin-bottom: 18px;
  font-family: inherit;
  font-size: 0.95rem;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--red);
}

.enroll-message {
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 18px;
  font-weight: 600;
  font-size: 0.9rem;
}

.enroll-message.success {
  background: #e7f6ec;
  color: #1d7a3d;
  border: 1px solid #b6e3c4;
}

.enroll-message.error {
  background: #fdeceb;
  color: #b3231e;
  border: 1px solid #f3c2bf;
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--black), #000000);
  color: var(--white);
  text-align: center;
  padding: 56px 0;
}

.cta-band h2 { margin: 0 0 10px; font-size: 1.8rem; color: var(--yellow); }
.cta-band p { color: #e8e0d6; margin-bottom: 26px; }
.cta-band .btn-outline { border-color: var(--white); color: var(--white); }

/* Footer */
.site-footer {
  background: var(--black);
  color: #cfc4b8;
  padding: 50px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-grid h4 {
  color: var(--yellow);
  margin-top: 0;
  margin-bottom: 16px;
}

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.footer-brand img { height: 60px; }
.footer-brand strong { color: var(--white); font-size: 1.1rem; }

.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul li a:hover { color: var(--white); }

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--white);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.social-icon svg {
  width: 19px;
  height: 19px;
}

.social-icon:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.social-icon.whatsapp { background: #25D366; }
.social-icon.instagram { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social-icon.google { background: var(--white); }
.social-icon.google svg { width: 20px; height: 20px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 18px;
  text-align: center;
  font-size: 0.85rem;
  color: #9c9086;
}

/* Page hero (sub-pages) */
.page-hero {
  background: linear-gradient(135deg, var(--black), #000000);
  color: var(--white);
  padding: 50px 0;
  text-align: center;
}

.page-hero h1 { margin: 0 0 8px; font-size: 2.1rem; color: var(--yellow); }
.page-hero p { color: #e8e0d6; margin: 0; }

/* Back to landing page */
.back-to-landing {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 200;
}

.back-to-landing a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  color: var(--black);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.back-to-landing a:hover {
  background: var(--black);
  color: var(--white);
  transform: translateY(-1px);
}
