:root {
  --primary: #0f766e;
  --primary-dark: #115e59;
  --primary-soft: #dcfce7;
  --secondary: #f59e0b;
  --bg: #f4f7fb;
  --panel: #ffffff;
  --panel-soft: #eef6ff;
  --text: #10233b;
  --muted: #5f7185;
  --border: #dfe8f3;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: none;
  cursor: pointer;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.top-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.75rem;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-weight: 600;
}

.main-nav a:hover,
.main-nav a.active-link {
  color: var(--primary);
}

.cta-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 700;
  transition: 0.2s ease;
}

.cta-button {
  background: var(--primary);
  color: white;
}

.cta-button:hover {
  background: var(--primary-dark);
}

.secondary-button {
  background: white;
  border: 1px solid var(--border);
  color: var(--text);
}

.hero {
  padding: 76px 0 40px;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(255,255,255,0.9));
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  align-items: center;
  gap: 32px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
}

.eyebrow.dark {
  color: var(--muted);
}

.hero-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 1.12;
}

.subtitle {
  max-width: 620px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 700;
}

.hero-stats strong {
  font-size: 1.7rem;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-visual {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 30px 10px 10px 30px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(15,118,110,0.12), rgba(245,158,11,0.12));
}

.card {
  position: relative;
  z-index: 1;
  background: var(--panel);
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.highlight-card {
  width: min(320px, 90%);
  padding: 24px 22px;
  transform: translate(-30px, 25px);
}

.pill {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.highlight-card h3 {
  margin: 18px 0 8px;
  font-size: 1.8rem;
}

.highlight-card p {
  margin: 0;
  color: var(--muted);
}

.info-card {
  width: min(260px, 80%);
  padding: 20px 18px;
  margin-left: auto;
  transform: translate(20px, -10px);
}

.mini-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.mini-row:last-child {
  border-bottom: none;
}

.section {
  padding: 90px 0;
}

.section-soft {
  background: #edf7f6;
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading.center {
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.2;
}

.about-grid,
.program-grid,
.achievement-grid {
  display: grid;
  gap: 22px;
}

.about-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-card,
.program-card,
.achievement-card,
.profile-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.about-card {
  padding: 24px 20px;
}

.about-card h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
}

.about-card p {
  margin: 0;
  color: var(--muted);
}

.profile-grid,
.program-grid {
  display: grid;
  gap: 22px;
}

.profile-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-card {
  padding: 24px 20px;
}

.profile-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.profile-card h3 {
  margin: 0 0 8px;
}

.profile-card p {
  margin: 0;
  color: var(--muted);
}

.program-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.program-card {
  padding: 24px 20px;
}

.icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  margin-bottom: 14px;
}

.icon.blue { background: rgba(37, 99, 235, 0.12); }
.icon.green { background: rgba(22, 163, 74, 0.12); }
.icon.orange { background: rgba(245, 158, 11, 0.12); }
.icon.purple { background: rgba(139, 92, 246, 0.12); }

.program-card h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.program-card p {
  margin: 0;
  color: var(--muted);
}

.agenda-list {
  display: grid;
  gap: 18px;
}

.agenda-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 22px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.date-box {
  min-width: 70px;
  padding: 10px 8px;
  text-align: center;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.date-box strong {
  display: block;
  font-size: 1.6rem;
  line-height: 1;
}

.date-box span {
  font-size: 0.8rem;
  font-weight: 700;
}

.agenda-item h3 {
  margin: 0 0 6px;
}

.agenda-item p {
  margin: 0;
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.gallery-item {
  min-height: 240px;
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  align-items: end;
  justify-content: start;
  padding: 18px;
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
}

.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.05), rgba(15,23,42,0.7));
}

.gallery-item span {
  position: relative;
  z-index: 1;
}

.gallery-one {
  background: linear-gradient(135deg, rgba(15,118,110,0.7), rgba(16,185,129,0.4)), url('https://images.unsplash.com/photo-1503676260728-1c00da094a0b?auto=format&fit=crop&w=900&q=80') center/cover no-repeat;
}

.gallery-two {
  background: linear-gradient(135deg, rgba(245,158,11,0.55), rgba(217,119,6,0.35)), url('https://images.unsplash.com/photo-1516627145497-ae6968895b74?auto=format&fit=crop&w=900&q=80') center/cover no-repeat;
}

.gallery-three {
  background: linear-gradient(135deg, rgba(59,130,246,0.56), rgba(14,116,144,0.35)), url('https://images.unsplash.com/photo-1544717305-2782549b5136?auto=format&fit=crop&w=900&q=80') center/cover no-repeat;
}

.gallery-four {
  background: linear-gradient(135deg, rgba(168,85,247,0.5), rgba(76,29,149,0.3)), url('https://images.unsplash.com/photo-1506784983877-45594efa4cbe?auto=format&fit=crop&w=900&q=80') center/cover no-repeat;
}

.achievement-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.achievement-card {
  padding: 28px 18px;
  text-align: center;
}

.teacher-grid,
.news-grid,
.testimonial-grid {
  display: grid;
  gap: 22px;
}

.teacher-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.teacher-card,
.news-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.teacher-card {
  padding: 22px 18px;
  text-align: center;
}

.teacher-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.4rem;
  color: white;
  margin: 0 auto 14px;
}

.avatar-one { background: linear-gradient(135deg, #0ea5e9, #2563eb); }
.avatar-two { background: linear-gradient(135deg, #f59e0b, #f97316); }
.avatar-three { background: linear-gradient(135deg, #14b8a6, #0f766e); }
.avatar-four { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

.teacher-card h3 {
  margin: 0 0 6px;
}

.teacher-card p {
  margin: 0;
  color: var(--muted);
}

.news-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-card {
  overflow: hidden;
}

.news-thumb {
  height: 180px;
  background-size: cover;
  background-position: center;
}

.thumb-one {
  background-image: linear-gradient(135deg, rgba(15,118,110,0.2), rgba(15,118,110,0.6)), url('https://images.unsplash.com/photo-1503676260728-1c00da094a0b?auto=format&fit=crop&w=900&q=80');
}

.thumb-two {
  background-image: linear-gradient(135deg, rgba(245,158,11,0.2), rgba(245,158,11,0.6)), url('https://images.unsplash.com/photo-1516627145497-ae6968895b74?auto=format&fit=crop&w=900&q=80');
}

.thumb-three {
  background-image: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(59,130,246,0.6)), url('https://images.unsplash.com/photo-1544717305-2782549b5136?auto=format&fit=crop&w=900&q=80');
}

.news-body {
  padding: 18px 18px 22px;
}

.news-body span {
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
}

.news-body h3 {
  margin: 10px 0 8px;
  font-size: 1.2rem;
}

.news-body p {
  margin: 0;
  color: var(--muted);
}

.news-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 16px;
  color: var(--primary-dark);
  font-weight: 700;
}

.news-link:hover {
  color: var(--primary);
}

.article-page {
  min-height: 100vh;
}

.article-main {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 84px;
}

.article-back {
  display: inline-flex;
  margin-bottom: 30px;
  color: var(--primary-dark);
  font-weight: 700;
}

.article-entry {
  padding: 0 0 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 110px;
}

.article-entry:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.article-entry time {
  color: var(--primary-dark);
  font-size: 0.9rem;
  font-weight: 700;
}

.article-entry h1,
.article-entry h2 {
  margin: 8px 0 20px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.2;
}

.article-image {
  min-height: 320px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background-position: center;
  background-size: cover;
}

.article-copy {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.85;
}

.article-copy p {
  margin: 0 0 16px;
}

.article-copy h3 {
  margin: 26px 0 8px;
  color: var(--text);
}

.article-image-one { background-image: url('https://images.unsplash.com/photo-1503676260728-1c00da094a0b?auto=format&fit=crop&w=1200&q=85'); }
.article-image-two { background-image: url('https://images.unsplash.com/photo-1516627145497-ae6968895b74?auto=format&fit=crop&w=1200&q=85'); }
.article-image-three { background-image: url('https://images.unsplash.com/photo-1544717305-2782549b5136?auto=format&fit=crop&w=1200&q=85'); }

.testimonial-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.testimonial-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 22px 20px;
}

.testimonial-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.8;
}

.person {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.person span {
  color: var(--muted);
  font-size: 0.85rem;
}

.faq-list {
  display: grid;
  gap: 18px;
}

.faq-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 20px 22px;
}

.faq-item h3 {
  margin: 0 0 8px;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
}

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.1;
  box-shadow: 0 18px 40px rgba(18, 140, 126, 0.35);
  z-index: 50;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
}

.achievement-card strong {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--primary);
  margin-bottom: 8px;
}

.achievement-card span {
  color: var(--muted);
  font-weight: 600;
}

.ppdb-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 24px;
  align-items: start;
}

.ppdb-form,
.requirement-box,
.recent-box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.ppdb-form {
  padding: 26px 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group.full-width {
  grid-column: 1 / -1;
}

.input-group label {
  font-weight: 700;
  color: var(--text);
}

.honeypot-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
}

.consent-row input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 4px;
  accent-color: var(--primary);
}

.consent-row label {
  color: var(--muted);
  font-size: 0.9rem;
}

.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  color: var(--text);
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  outline: 2px solid rgba(15, 118, 110, 0.15);
  border-color: var(--primary);
}

.submit-btn {
  margin-top: 22px;
  border: none;
}

.form-message {
  min-height: 24px;
  margin-top: 12px;
  font-weight: 700;
  color: var(--primary-dark);
}

.ppdb-sidebar {
  display: grid;
  gap: 18px;
}

.requirement-box,
.recent-box {
  padding: 22px 20px;
}

.requirement-box h3,
.recent-box h3 {
  margin-top: 0;
  margin-bottom: 14px;
}

.requirement-box ul,
.recent-box ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.9;
}

.contact-section {
  padding-top: 30px;
}

.contact-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 24px;
  padding: 30px 28px;
  color: white;
  box-shadow: var(--shadow);
}

.contact-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.contact-card,
.contact-map {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 22px 20px;
}

.contact-card h3,
.contact-map h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.contact-card p,
.contact-map p {
  margin: 0 0 8px;
  color: var(--muted);
}

.map-box {
  min-height: 160px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(15,118,110,0.12), rgba(245,158,11,0.15));
  border: 1px dashed rgba(15, 118, 110, 0.35);
  color: var(--primary-dark);
  font-weight: 700;
}

.contact-box h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.contact-info {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.admin-body {
  background: #f3f8fb;
}

.admin-main {
  padding: 40px 0 80px;
}

.admin-editor {
  margin-bottom: 24px;
}

.admin-login {
  max-width: 600px;
}

.login-form {
  display: grid;
  gap: 18px;
}

.login-form .cta-button {
  justify-self: start;
}

.editor-note {
  margin: 8px 0 0;
  color: var(--muted);
}

.editor-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.editor-actions .form-message {
  flex-basis: 100%;
  margin: 0;
}

.admin-shell {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 28px 22px;
}

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.admin-top h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.5rem);
}

.table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.admin-table th,
.admin-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-table tbody tr:hover {
  background: rgba(15, 118, 110, 0.03);
}

.delete-btn {
  background: rgba(239, 68, 68, 0.08);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.18);
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 700;
}

.empty-row {
  color: var(--muted);
  text-align: center;
}

.site-footer {
  background: #0f172a;
  color: rgba(255,255,255,0.8);
  padding: 22px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

  .hero-inner,
  .about-grid,
  .profile-grid,
  .program-grid,
  .gallery-grid,
  .teacher-grid,
  .news-grid,
  .testimonial-grid,
  .achievement-grid,
  .contact-grid,
  .contact-box {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .hero-inner {
    display: grid;
  }

  .contact-box {
    display: flex;
  }
}

@media (max-width: 700px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
    padding: 16px 0;
  }

  .hero {
    padding-top: 50px;
  }

  .about-grid,
  .program-grid,
  .achievement-grid {
    grid-template-columns: 1fr;
  }

  .agenda-item {
    flex-direction: column;
  }
}
