/* =========================================================
   NiceSchool - Landing Page
   Handwritten CSS, offline-safe (no CDN, no external fonts)
   ========================================================= */

/* ---------- Variables ---------- */
:root {
  --green: #059652;
  --green-dark: #047a43;
  --green-darker: #036036;
  --green-tint: #d7efe2;
  --green-tint-soft: #eaf7f0;

  --ink: #2c384e;
  --ink-soft: #4b5c74;
  --muted: #7b8794;
  --near-black: #22282b;
  --black: #0b0d0c;

  --bg: #ffffff;
  --bg-alt: #f0f4f3;
  --card: #ffffff;
  --line: #e4e9e8;

  --red: #e14a3b;
  --orange: #e88a1a;
  --blue: #2b6fd1;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(20, 40, 30, .06);
  --shadow: 0 6px 24px rgba(20, 40, 30, .08);
  --shadow-lg: 0 14px 44px rgba(20, 40, 30, .12);

  --header-h: 88px;
  --container: 1280px;

  --font: "Poppins", "Century Gothic", "URW Gothic", "Questrial", "Futura",
          "Trebuchet MS", "Segoe UI", -apple-system, BlinkMacSystemFont,
          "Helvetica Neue", Arial, sans-serif;
  --font-script: "Segoe Script", "Bradley Hand", "Brush Script MT",
                 "Snell Roundhand", cursive;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  overflow-x: hidden;
}
img, video, svg { max-width: 100%; display: block; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; color: var(--ink); line-height: 1.2; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--green); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--green-dark); }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.text-green { color: var(--green); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 700; font-size: 15px; letter-spacing: .2px;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-glass { background: rgba(20, 24, 22, .55); color: #fff; }
.btn-glass:hover { background: rgba(20, 24, 22, .8); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: #fff; color: var(--green); border-color: var(--green); }
.btn-ghost:hover { background: var(--green-tint-soft); color: var(--green-dark); }
.btn-pill { border-radius: var(--radius-pill); padding: 12px 26px; }
.btn-lg { padding: 16px 40px; font-size: 16px; }

/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 700; letter-spacing: .4px;
  white-space: nowrap;
}
.badge-green { background: var(--green); color: #fff; }
.badge-academic { background: #e2edfb; color: var(--blue); }
.badge-sports { background: var(--green-tint); color: var(--green-dark); }
.badge-arts { background: #fbe3e0; color: var(--red); }
.badge-community { background: #fdefdb; color: var(--orange); }

/* ---------- Section frame ---------- */
.section { padding: 90px 0; background: var(--bg-alt); }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 {
  position: relative; display: inline-block;
  font-size: 38px; font-weight: 700; color: var(--ink); margin-bottom: 10px;
}
.section-title h2::before,
.section-title h2::after {
  content: ""; position: absolute; top: 50%;
  width: 48px; height: 2px; background: var(--green);
}
.section-title h2::before { left: -66px; }
.section-title h2::after { right: -66px; }
.section-title p { color: var(--ink-soft); margin: 0; font-size: 16px; }

/* ---------- Icon circle ---------- */
.icon-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--green-tint); color: var(--green);
  flex-shrink: 0;
}

/* ---------- Photo placeholders (local, CSS only) ---------- */
.ph { background-color: #cfd8d5; background-size: cover; background-position: center; position: relative; }
.ph-campus   { background-image: linear-gradient(140deg, #e6dfe2 0%, #cdbfc4 45%, #b6a9ad 100%); }
.ph-class    { background-image: linear-gradient(140deg, #dfe6e2 0%, #a9c3b6 50%, #7fa694 100%); }
.ph-pencil   { background-image: linear-gradient(140deg, #efe6d5 0%, #d8c39a 55%, #b39a6b 100%); }
.ph-supplies { background-image: linear-gradient(140deg, #f3e2c3 0%, #d8b177 50%, #a9752f 100%); }
.ph-books    { background-image: linear-gradient(140deg, #f1efe8 0%, #d5cfc0 50%, #a89e88 100%); }
.ph-kids     { background-image: linear-gradient(140deg, #e8eef2 0%, #c3d2dc 50%, #94a9b8 100%); }
.ph-leaf     { background-image: linear-gradient(140deg, #e5eedf 0%, #b6cfa6 50%, #7d9f6b 100%); }
.ph-ruler    { background-image: linear-gradient(140deg, #f0ecdf 0%, #d5cbaa 50%, #a89a72 100%); }
.ph-group    { background-image: linear-gradient(150deg, #dfe7ea 0%, #aebfc4 45%, #6c8189 100%); }
.ph-office   { background-image: linear-gradient(140deg, #e4eaf0 0%, #b9c7d6 50%, #8a9cb0 100%); }
.ph-lounge   { background-image: linear-gradient(140deg, #ece4f1 0%, #c6b2d3 50%, #8e7aa3 100%); }
.ph-library  { background-image: linear-gradient(140deg, #eef1f2 0%, #cbd4d6 50%, #9aa7ab 100%); }
.ph-a1 { background-image: linear-gradient(135deg, #f2ddd4, #d3a692); }
.ph-a2 { background-image: linear-gradient(135deg, #d7e0ee, #94a7c6); }
.ph-a3 { background-image: linear-gradient(135deg, #f0e3e8, #c9a4b3); }
.ph-a4 { background-image: linear-gradient(135deg, #dcecdf, #93bb9f); }
.ph-a5 { background-image: linear-gradient(135deg, #f4ecd6, #d3bd85); }
.ph-a6 { background-image: linear-gradient(135deg, #dbe6ec, #9db4c2); }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: fixed; inset: 0 0 auto 0;
  z-index: 1000;
  background: transparent;
  transition: background-color .4s ease, box-shadow .4s ease, padding .3s ease;
}
.header.scrolled {
  background: var(--near-black);
  box-shadow: 0 2px 20px rgba(0, 0, 0, .28);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: var(--header-h);
}

.logo { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border: 1px solid transparent; border-radius: var(--radius-sm); transition: border-color .3s ease; }
.logo:hover { border-color: rgba(255, 255, 255, .75); }
.logo-icon { color: var(--green); display: inline-flex; }
.logo-text { font-size: 28px; font-weight: 700; color: #fff; letter-spacing: -.3px; line-height: 1; }

/* Nav */
.navmenu > ul { display: flex; align-items: center; gap: 4px; }
.navmenu > ul > li { position: relative; }
.navmenu > ul > li > a {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 10px 14px;
  color: rgba(255, 255, 255, .88);
  font-size: 16px; font-weight: 500;
  white-space: nowrap;
}
.navmenu > ul > li > a:hover,
.navmenu > ul > li > a.active,
.navmenu > ul > li.open > a { color: var(--green); }
.caret { display: inline-flex; transition: transform .25s ease; }
.navmenu li.open > a > .caret { transform: rotate(180deg); }

/* Dropdown panels */
.navmenu ul ul {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 200px;
  background: #fff;
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  padding: 10px 0;
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  z-index: 10;
}
.navmenu li.open > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.navmenu ul ul li { position: relative; }
.navmenu ul ul a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 22px;
  color: var(--ink); font-size: 15px; font-weight: 400;
  white-space: nowrap;
}
.navmenu ul ul a:hover { color: var(--green); }
.navmenu ul ul ul { top: 4px; left: 100%; }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none; border: 0; color: #fff; padding: 6px;
}
.nav-toggle .i-close { display: none; }
body.nav-open .nav-toggle .i-open { display: none; }
body.nav-open .nav-toggle .i-close { display: block; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 40px) 0 120px;
  overflow: hidden;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(8, 14, 11, .82) 0%, rgba(8, 14, 11, .58) 55%, rgba(8, 14, 11, .5) 100%);
}
.hero-container { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px; align-items: center;
}
.hero-copy h1 {
  color: #fff;
  font-size: 58px; font-weight: 700; line-height: 1.12;
  letter-spacing: -1px;
  margin-bottom: 26px;
}
.hero-copy p {
  color: rgba(255, 255, 255, .86);
  font-size: 18px; line-height: 1.72;
  max-width: 640px; margin-bottom: 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* Why Choose Us panel */
.hero-panel {
  background: rgba(16, 20, 18, .42);
  border-radius: var(--radius-lg);
  padding: 40px 44px 44px;
  text-align: center;
  backdrop-filter: blur(2px);
}
.panel-title { color: #fff; font-size: 32px; font-weight: 700; margin: 0 0 12px; }
.panel-underline { display: inline-block; width: 72px; height: 3px; background: var(--green); margin-bottom: 34px; }
.stat-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 26px 30px; text-align: left;
}
.stat { display: flex; align-items: center; gap: 15px; }
.stat-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 10px; background: var(--green); color: #fff;
}
.stat-num { color: #fff; font-size: 25px; font-weight: 700; line-height: 1.15; }
.stat-label { color: rgba(255, 255, 255, .78); font-size: 14px; line-height: 1.35; }

/* Green events strip */
.hero-strip {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
  background: var(--green);
  padding: 16px 0;
}
.strip-inner {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 18px 56px;
}
.strip-item { display: flex; align-items: center; gap: 12px; }
.date-pill {
  background: #fff; color: var(--ink);
  font-size: 12px; font-weight: 700; letter-spacing: .4px;
  padding: 5px 11px; border-radius: 4px;
  white-space: nowrap;
}
.strip-name { color: #fff; font-size: 16px; font-weight: 500; white-space: nowrap; }
.btn-register {
  border: 1px solid rgba(255, 255, 255, .6);
  color: #fff; background: rgba(255, 255, 255, .12);
  font-size: 13px; padding: 5px 13px; border-radius: 4px;
  transition: background-color .25s ease;
}
.btn-register:hover { background: rgba(255, 255, 255, .3); color: #fff; }

/* =========================================================
   ABOUT
   ========================================================= */
.about { background: var(--bg-alt); padding-top: 100px; }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 70px; align-items: center;
}
.about-title { font-size: 42px; line-height: 1.22; margin-bottom: 22px; }
.about-lead { font-size: 16px; color: var(--ink-soft); max-width: 620px; margin-bottom: 34px; }

.about-stats { display: flex; flex-wrap: wrap; gap: 22px; margin-bottom: 34px; }
.about-stat {
  background: #fff;
  border-bottom: 3px solid var(--green);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  padding: 20px 26px 16px;
  min-width: 112px;
}
.as-num { font-size: 30px; font-weight: 700; color: var(--ink); line-height: 1.1; }
.as-label { font-size: 12px; letter-spacing: 1.2px; color: var(--muted); font-weight: 500; }

.about-divider { border: 0; border-top: 1px solid var(--line); margin: 0 0 26px; max-width: 640px; }
.signature-row { display: flex; align-items: center; gap: 28px; }
.signature { font-family: var(--font-script); font-size: 26px; color: var(--ink); transform: rotate(-4deg); display: inline-block; }
.signature-meta { display: flex; flex-direction: column; line-height: 1.5; }
.signature-meta strong { color: var(--ink); font-size: 15px; }
.signature-meta span { color: var(--muted); font-size: 14px; }

/* Overlapping photos */
.about-media { position: relative; min-height: 500px; }
.photo { border-radius: var(--radius); box-shadow: var(--shadow); }
.photo-back { position: absolute; top: 0; left: 0; width: 78%; height: 340px; }
.photo-front { position: absolute; bottom: 0; right: 0; width: 82%; height: 340px; box-shadow: var(--shadow-lg); }

/* Mission / Vision / Values */
.mvv-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 30px; margin-top: 80px;
}
.mvv-card {
  background: #fff; border-radius: var(--radius);
  padding: 36px 34px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.mvv-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.mvv-card h3 { font-size: 22px; margin: 28px 0 12px; }
.mvv-card p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* =========================================================
   FEATURED PROGRAMS
   ========================================================= */
.filters {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px; margin-bottom: 46px;
}
.filter {
  border: 0; background: #e2e8e6; color: var(--ink);
  padding: 11px 26px; border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 600;
  transition: background-color .25s ease, color .25s ease;
}
.filter:hover { background: #d3dcd9; }
.filter.active { background: var(--green); color: #fff; }

.program-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px; }
.program-card {
  display: grid; grid-template-columns: 210px 1fr;
  background: #fff; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.program-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.program-card.hidden { display: none; }
.pc-media { min-height: 240px; }
.pc-body { padding: 26px 28px 28px; }
.pc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.pc-head h3 { font-size: 21px; margin: 0; }
.pc-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 16px; }
.pc-meta li { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--green); }
.pc-body p { font-size: 15px; color: var(--ink-soft); margin-bottom: 18px; }

.link-more {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 15px; color: var(--green);
}
.link-more svg { transition: transform .25s ease; }
.link-more:hover svg { transform: translateX(4px); }
.link-light { color: #fff; }
.link-light:hover { color: #fff; }

/* =========================================================
   STUDENTS LIFE
   ========================================================= */
.sl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: stretch; }
.sl-feature {
  position: relative; border-radius: var(--radius);
  overflow: hidden; min-height: 640px;
}
.sl-feature-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10, 16, 13, .78) 0%, rgba(10, 16, 13, .18) 45%, transparent 70%);
}
.sl-feature-copy { position: absolute; left: 28px; right: 28px; bottom: 26px; }
.sl-feature-copy h3 { color: #fff; font-size: 30px; margin-bottom: 8px; }

.sl-side { display: flex; flex-direction: column; justify-content: center; gap: 30px; }
.sl-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.sl-card {
  background: #fff; border-radius: var(--radius);
  padding: 30px 28px 26px; box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.sl-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.sl-card h3 { font-size: 20px; font-weight: 600; margin: 22px 0 10px; }
.sl-card p { font-size: 15px; margin: 0; color: var(--ink-soft); }
.sl-cta { display: flex; }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.tst-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 40px; align-items: start; }
.tst-card {
  position: relative;
  background: #fff; border-radius: var(--radius);
  padding: 40px 34px 30px;
  box-shadow: var(--shadow-sm);
  margin-top: 24px;
}
.tst-card.tinted { background: var(--green-tint-soft); }
.tst-card.offset { margin-top: 72px; }
.quote-bubble {
  position: absolute; top: -24px; left: 30px;
  width: 48px; height: 48px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--green);
  box-shadow: var(--shadow-sm);
}
.tst-card.tinted .quote-bubble { background: var(--green-tint); }
.tst-text { font-size: 16px; color: var(--ink-soft); margin-bottom: 22px; }
.tst-person { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.tst-card.tinted .tst-person { border-top-color: #cfe4d8; }
.avatar { width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; display: block; }
.tst-person strong { display: block; color: var(--ink); font-size: 18px; font-weight: 600; }
.tst-person span { color: var(--muted); font-size: 14px; }

/* =========================================================
   EXCELLENCE / STATS
   ========================================================= */
.exc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.exc-copy h2 { font-size: 40px; line-height: 1.22; margin-bottom: 22px; }
.exc-copy p { font-size: 16px; margin-bottom: 30px; }
.exc-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.exc-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.exc-stat {
  background: #fff; border-radius: var(--radius);
  padding: 36px 24px; text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.exc-stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.exc-icon { display: inline-flex; color: var(--green); margin-bottom: 16px; }
.exc-num { font-size: 40px; font-weight: 700; color: var(--ink); line-height: 1.1; margin-bottom: 4px; }
.exc-label { font-size: 15px; font-weight: 600; color: var(--ink); }

.exc-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 70px; }
.feature-card {
  position: relative; border-radius: var(--radius);
  overflow: hidden; min-height: 260px;
  display: flex; align-items: flex-end;
}
.fc-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10, 16, 13, .8) 0%, rgba(10, 16, 13, .25) 55%, transparent 80%);
}
.fc-copy { position: relative; padding: 26px 26px 24px; }
.fc-copy h3 { color: #fff; font-size: 24px; margin-bottom: 8px; }
.fc-copy p { color: rgba(255, 255, 255, .88); font-size: 15px; margin: 0; }

/* =========================================================
   RECENT NEWS
   ========================================================= */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.news-card {
  background: #fff; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.nc-media { height: 240px; }
.nc-body { padding: 22px 26px 26px; }
.nc-cat { display: block; color: var(--muted); font-size: 15px; margin-bottom: 8px; }
.nc-body h3 { font-size: 21px; line-height: 1.35; margin-bottom: 20px; }
.nc-body h3 a { color: var(--ink); }
.nc-body h3 a:hover { color: var(--green); }
.nc-author { display: flex; align-items: center; gap: 13px; }
.nc-author .avatar { width: 42px; height: 42px; }
.nc-author strong { display: block; color: var(--ink); font-size: 15px; }
.nc-author span { color: var(--muted); font-size: 14px; }

/* =========================================================
   EVENTS
   ========================================================= */
.events-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-bottom: 46px; }
.select-wrap { position: relative; width: 100%; max-width: 420px; }
.select-wrap select {
  width: 100%;
  appearance: none; -webkit-appearance: none;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 15px 46px 15px 20px;
  font-family: inherit; font-size: 16px; color: var(--ink);
  cursor: pointer;
}
.select-wrap select:focus { outline: 2px solid var(--green-tint); border-color: var(--green); }
.select-wrap svg { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--ink); pointer-events: none; }

.events-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px; }
.event-card {
  display: grid; grid-template-columns: 100px 1fr;
  background: #fff; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.event-card.hidden { display: none; }
.ev-date {
  background: var(--green); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 20px 8px;
}
.ev-m { font-size: 14px; font-weight: 700; letter-spacing: 1px; }
.ev-d { font-size: 38px; font-weight: 700; line-height: 1.05; }
.ev-y { font-size: 14px; opacity: .9; }
.ev-body { padding: 26px 28px 28px; }
.ev-body h3 { font-size: 23px; margin: 14px 0 10px; }
.ev-body p { font-size: 15px; margin-bottom: 16px; }
.ev-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 22px; }
.ev-meta li { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--ink-soft); }
.ev-meta li svg { color: var(--green); }
.ev-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.events-cta { display: flex; justify-content: center; margin-top: 56px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--black); color: rgba(255, 255, 255, .78); padding: 70px 0 26px; font-size: 15px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.9fr 1fr 1fr 1.15fr 1fr;
  gap: 40px;
}
.footer-brand { color: #fff; font-size: 30px; margin-bottom: 26px; }
.footer-address { margin-bottom: 18px; line-height: 1.7; }
.footer-contact { margin-bottom: 6px; }
.footer-contact strong { color: #fff; }
.socials { display: flex; gap: 14px; margin-top: 26px; }
.socials a {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .28);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  transition: background-color .25s ease, border-color .25s ease;
}
.socials a:hover { background: var(--green); border-color: var(--green); color: #fff; }

.footer-links h4 { color: #fff; font-size: 17px; margin-bottom: 20px; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { color: rgba(255, 255, 255, .74); }
.footer-links a:hover { color: var(--green); }

.footer-bottom {
  margin-top: 46px; padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  text-align: center; font-size: 14px;
}
.footer-bottom p { margin: 0 0 4px; }
.footer-bottom strong { color: #fff; }
.footer-bottom .designed { color: rgba(255, 255, 255, .6); }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 999;
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--green); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease, background-color .25s ease;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--green-dark); color: #fff; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1200px) {
  .hero-copy h1 { font-size: 48px; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 1100px) {
  .navmenu > ul > li > a { padding: 10px 10px; font-size: 15px; }
  .hero-grid { grid-template-columns: 1fr; gap: 46px; }
  .hero-panel { max-width: 620px; }
  .about-grid, .exc-grid, .sl-grid { grid-template-columns: 1fr; gap: 50px; }
  .sl-feature { min-height: 420px; }
  .tst-grid { grid-template-columns: repeat(2, 1fr); }
  .tst-card.offset { margin-top: 24px; }
}

@media (max-width: 992px) {
  /* mobile nav */
  .nav-toggle { display: inline-flex; }
  .navmenu {
    position: fixed; inset: var(--header-h) 0 0 0;
    background: var(--near-black);
    padding: 20px 24px 60px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .35s ease;
  }
  body.nav-open .navmenu { transform: translateX(0); }
  body.nav-open { overflow: hidden; }
  body.nav-open .header { background: var(--near-black); }
  .navmenu > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .navmenu > ul > li > a { padding: 13px 6px; font-size: 17px; justify-content: space-between; }
  .navmenu ul ul {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: transparent; box-shadow: none;
    max-height: 0; overflow: hidden; padding: 0;
    transition: max-height .35s ease;
  }
  .navmenu li.open > ul { max-height: 520px; padding: 4px 0 8px; }
  .navmenu ul ul a { color: rgba(255, 255, 255, .78); padding: 10px 20px; }
  .navmenu ul ul a:hover { color: var(--green); }

  .section { padding: 70px 0; }
  .section-title h2 { font-size: 32px; }
  .section-title h2::before, .section-title h2::after { display: none; }
  .program-grid, .events-grid, .exc-stats { grid-template-columns: 1fr; }
  .mvv-grid, .news-grid, .exc-features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero { padding-bottom: 200px; }
  .hero-copy h1 { font-size: 38px; }
  .hero-copy p { font-size: 16px; }
  .hero-panel { padding: 30px 24px 34px; }
  .stat-grid { grid-template-columns: 1fr; gap: 20px; }
  .strip-inner { justify-content: flex-start; gap: 14px 28px; }
  .strip-name { white-space: normal; }
  .about-title, .exc-copy h2 { font-size: 30px; }
  .about-media { min-height: 400px; }
  .photo-back, .photo-front { height: 250px; }
  .program-card { grid-template-columns: 1fr; }
  .pc-media { min-height: 190px; }
  .sl-cards, .tst-grid { grid-template-columns: 1fr; }
  .event-card { grid-template-columns: 82px 1fr; }
  .ev-d { font-size: 30px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .logo-text { font-size: 23px; }
  .hero-copy h1 { font-size: 31px; }
  .btn { padding: 12px 22px; font-size: 14px; }
  .about-stats { gap: 14px; }
  .about-stat { padding: 16px 18px 13px; min-width: 96px; }
  .as-num { font-size: 24px; }
  .ev-actions { flex-direction: column; align-items: stretch; }
}

/* =========================================================
   =========================================================
   CI LAYER - sekolahku.web.id theme 2
   Everything above this line is a byte-faithful copy of
   original/assets/css/style.css. Everything below is the
   CodeIgniter integration layer and re-uses ONLY the design
   tokens declared in :root at the top of this file.
   =========================================================
   ========================================================= */

/* ---------------------------------------------------------
   1. GUARD BLOCK
   bootstrap-4.min.css, sm-core.css and sm-clean.css are all
   loaded BEFORE this file, so we only have to re-assert the
   handful of declarations they would otherwise win.
   --------------------------------------------------------- */

/* Bootstrap reboot re-asserts font/line-height/colour on body. */
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  text-align: left;
}

/* Bootstrap ships .container max-widths per breakpoint (540 -> 1140px)
   at the same specificity as ours. Re-declare so the 1280px design
   container always wins, at every breakpoint. */
.container,
.container-fluid {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 24px;
  padding-left: 24px;
}
.container { max-width: var(--container); }
.container-fluid { max-width: none; }
@media (min-width: 576px) { .container { max-width: var(--container); } }
@media (min-width: 768px) { .container { max-width: var(--container); } }
@media (min-width: 992px) { .container { max-width: var(--container); } }
@media (min-width: 1200px) { .container { max-width: var(--container); } }

/* The design nav is NOT a Bootstrap navbar and NOT a smartmenus menu.
   Should either sheet ever match it, strip the visuals back out. */
.navmenu,
.navmenu ul,
.navmenu li {
  background: none;
  border: 0;
  box-shadow: none;
}
.navmenu ul ul { background: #fff; box-shadow: var(--shadow-lg); }
.navmenu.navbar,
.navmenu .navbar-nav { padding: 0; margin: 0; }
.navmenu.sm,
.navmenu .sm,
.navmenu.sm-clean,
.navmenu .sm-clean { line-height: inherit; }
.navmenu a.has-submenu,
.navmenu span.sub-arrow { display: none !important; }
.header .navbar-toggler { border: 0; }

/* Bootstrap sets ul{padding-left:2rem}; the design reset kills it.
   Restore real list rendering inside editor-generated content only. */
.ci-prose ul,
.ci-prose ol { margin: 0 0 1rem; padding-left: 1.4rem; }
.ci-prose ul { list-style: disc; }
.ci-prose ol { list-style: decimal; }
.ci-prose li { margin-bottom: .35rem; }

/* Bootstrap .btn line-height/border-radius vs the design .btn. */
.btn { line-height: 1.2; text-decoration: none; }
.btn:focus, .btn.focus { outline: 0; box-shadow: 0 0 0 3px var(--green-tint); }
.btn:not(:disabled):not(.disabled) { cursor: pointer; }

/* FontAwesome glyphs must keep their own family. */
.fa { font-family: FontAwesome !important; }

/* Magnific popup sits above the fixed header. */
.mfp-bg, .mfp-wrap { z-index: 100000; }


/* ---------------------------------------------------------
   2. PAGE SHELL
   --------------------------------------------------------- */

/* Inner (non-home) pages have no hero, so the fixed header needs a
   solid background from the first pixel and the content needs to
   clear it. */
.header.header-solid {
  background: var(--near-black);
  box-shadow: 0 2px 20px rgba(0, 0, 0, .28);
}

.header-actions { display: inline-flex; align-items: center; gap: 6px; }
.header-search {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, .28);
  background: transparent; color: rgba(255, 255, 255, .88);
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.header-search:hover { background: var(--green); border-color: var(--green); color: #fff; }

/* The content section used by every inner page. */
.ci-page {
  background: var(--bg-alt);
  padding: calc(var(--header-h) + 46px) 0 84px;
  min-height: 70vh;
}
.ci-page > .container > .row { align-items: flex-start; }

/* Section heading used by every CI partial (<h5 class="page-title">). */
.page-title {
  position: relative;
  font-size: 22px; font-weight: 700; line-height: 1.25;
  color: var(--ink);
  padding: 0 0 14px;
  margin: 0 0 22px;
  border-bottom: 1px solid var(--line);
  text-transform: none;
}
.page-title::after {
  content: "";
  position: absolute; left: 0; bottom: -1px;
  width: 62px; height: 3px;
  background: var(--green);
  border-radius: var(--radius-pill);
}
.footer .page-title { color: #fff; border-bottom-color: rgba(255, 255, 255, .14); }

/* Small / block button variants the CI screens need but the
   original landing page never used. */
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-xs { padding: 6px 12px; font-size: 12px; gap: 6px; }
.btn-block { display: flex; width: 100%; }
.btn-group .btn { border-radius: 0; }
.btn-group .btn:first-child { border-top-left-radius: var(--radius-sm); border-bottom-left-radius: var(--radius-sm); }
.btn-group .btn:last-child { border-top-right-radius: var(--radius-sm); border-bottom-right-radius: var(--radius-sm); }
.btn-group .btn:hover { transform: none; }


/* ---------------------------------------------------------
   3. CARDS
   --------------------------------------------------------- */
.ci-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.ci-card:hover { box-shadow: var(--shadow); }
.ci-card-media { position: relative; overflow: hidden; background: var(--bg-alt); }
.ci-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ci-card-body { padding: 22px 26px; }
.ci-card-footer {
  padding: 14px 26px;
  border-top: 1px solid var(--line);
  background: var(--green-tint-soft);
}
.ci-card-title { font-size: 19px; line-height: 1.35; margin: 0 0 10px; }
.ci-card-title a { color: var(--ink); }
.ci-card-title a:hover { color: var(--green); }
.ci-card-text { font-size: 15px; color: var(--ink-soft); margin: 0 0 12px; }
.ci-card-meta {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 10px 16px;
  font-size: 13px; color: var(--muted);
}

/* Horizontal post card (latest posts, related posts, search hits). */
.ci-post-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.ci-post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ci-post-media { position: relative; height: 100%; min-height: 180px; background: var(--bg-alt); }
.ci-post-media img { width: 100%; height: 100%; min-height: 180px; object-fit: cover; }
.ci-post-body { padding: 22px 26px; }
.ci-post-title { font-size: 19px; line-height: 1.35; margin: 0 0 10px; }
.ci-post-title a { color: var(--ink); }
.ci-post-title a:hover { color: var(--green); }
.ci-post-text { font-size: 15px; color: var(--ink-soft); margin: 0 0 14px; }
.ci-post-meta {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 8px 16px;
}
.ci-post-meta small { font-size: 13px; color: var(--muted); }

/* Green date pill overlaid on a post thumbnail. */
.ci-date-block {
  position: absolute; top: 14px; left: 14px;
  display: flex; flex-direction: column; align-items: center;
  min-width: 56px; padding: 8px 6px;
  border-radius: var(--radius-sm);
  background: var(--green); color: #fff;
  box-shadow: var(--shadow-sm);
  line-height: 1.05;
}
.ci-date-d { font-size: 22px; font-weight: 700; }
.ci-date-m { font-size: 11px; font-weight: 700; letter-spacing: 1px; }
.ci-date-y { font-size: 11px; opacity: .85; }

/* Album / gallery card. */
.ci-album-card { display: flex; flex-direction: column; height: 100%; }
.ci-album-card .ci-card-media { aspect-ratio: 16 / 10; }
.ci-album-card .ci-card-body { flex: 1 1 auto; }

/* Video embed card. */
.ci-video-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.ci-video-card .embed-responsive { border-radius: var(--radius); overflow: hidden; }

/* Directory card (students / employees / alumni). */
.ci-profile-card {
  display: block; height: 100%;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.ci-profile-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ci-profile-card > .row { height: 100%; }
.ci-profile-card img { width: 100%; height: 100%; object-fit: cover; min-height: 170px; }
.ci-profile-body { padding: 18px 22px; }
.ci-profile-body dl { margin: 0; }
.ci-profile-body dt { font-size: 13px; font-weight: 600; color: var(--muted); padding-bottom: 4px; }
.ci-profile-body dd { font-size: 14px; color: var(--ink); margin-bottom: 4px; padding-bottom: 4px; }

/* Advert / banner image in the sidebar. */
.ci-banner { border-radius: var(--radius); box-shadow: var(--shadow-sm); }


/* ---------------------------------------------------------
   4. SIDEBAR WIDGETS
   --------------------------------------------------------- */
.sidebar { font-size: 15px; }
.ci-widget {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.ci-widget-media { background: var(--bg-alt); }
.ci-widget-media img { width: 100%; height: 260px; object-fit: cover; }
.ci-widget-body { padding: 22px 24px 18px; }
.ci-widget-footer {
  padding: 13px 24px;
  border-top: 1px solid var(--line);
  background: var(--green-tint-soft);
}
.ci-widget-name { font-size: 17px; margin: 0 0 2px; color: var(--ink); }
.ci-widget-role { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.ci-widget-text { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* Link / archive / most-commented lists. */
.ci-list {
  display: flex; flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--card);
}
.ci-list-item {
  display: block;
  padding: 13px 20px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: background-color .25s ease, color .25s ease, padding-left .25s ease;
}
.ci-list-item:last-child { border-bottom: 0; }
.ci-list-item:hover { background: var(--green-tint-soft); color: var(--green-dark); padding-left: 26px; }
.ci-list-title { font-size: 15px; font-weight: 600; color: var(--ink); margin: 0 0 4px; }
.ci-list-item:hover .ci-list-title { color: var(--green-dark); }
.ci-list-meta { font-size: 12px; color: var(--muted); }
.ci-count {
  display: inline-block; min-width: 30px; text-align: center;
  padding: 3px 9px; border-radius: var(--radius-pill);
  background: var(--green-tint); color: var(--green-dark);
  font-size: 12px; font-weight: 700;
}

/* Polling widget. */
.ci-poll-question { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.ci-form-check { padding-left: 26px; margin-bottom: 9px; }
.ci-form-check .form-check-label { font-size: 14px; color: var(--ink-soft); cursor: pointer; }
.ci-form-check .form-check-input { margin-top: .35rem; }

/* Subscribe widget. */
.ci-subscribe { padding: 16px 18px; }
.ci-subscribe .input-group { flex-wrap: nowrap; }
.ci-subscribe .ci-input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.ci-subscribe .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; }


/* ---------------------------------------------------------
   5. FORMS
   contact, admission (multi-step), alumni, search,
   polling, subscribe.
   --------------------------------------------------------- */
.ci-form-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.ci-form-body { padding: 26px 30px; }
.ci-form-footer {
  padding: 18px 30px;
  border-top: 1px solid var(--line);
  background: var(--green-tint-soft);
}

.form-group { border-radius: var(--radius-sm); transition: background-color .25s ease; }
.form-group:hover { background-color: var(--green-tint-soft); }
.control-label {
  font-size: 14px; font-weight: 600; color: var(--ink);
  padding-top: 9px; margin-bottom: 4px;
}
.control-label span { color: var(--red) !important; }

.ci-input,
.form-control,
.custom-select,
.select-wrap select {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  height: auto;
  font-family: inherit; font-size: 14px; line-height: 1.45;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ci-input:focus,
.form-control:focus,
.custom-select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-tint);
  outline: 0;
}
.ci-input::placeholder,
.form-control::placeholder { color: var(--muted); }
.ci-input[readonly],
.form-control[readonly] { background: var(--bg-alt); }
textarea.ci-input, textarea.form-control { min-height: 110px; }
.custom-select { padding-right: 34px; }

.form-text { font-size: 12px; color: var(--muted); margin-top: 5px; }
.text-muted { color: var(--muted) !important; }

.input-group .ci-input,
.input-group .form-control {
  border-top-right-radius: 0; border-bottom-right-radius: 0;
}
.input-group-append .btn,
.input-group-append .ci-addon {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 15px;
  border: 1px solid var(--line); border-left: 0;
  border-top-right-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
  background: var(--bg-alt); color: var(--ink);
}
.input-group-append .ci-addon:hover { background: var(--green-tint); }

/* Multi-step admission form: each fieldset block. */
.ci-step { margin-bottom: 26px; }
.ci-step-title {
  display: flex; align-items: center; gap: 12px;
  font-size: 17px; font-weight: 700; color: var(--ink);
  margin: 0 0 4px;
}
.ci-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--green); color: #fff;
  font-size: 14px; font-weight: 700;
}

/* Google-maps embed on the contact page. */
.ci-map {
  position: relative; text-align: right;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--card);
}
.ci-map-canvas { overflow: hidden; background: none !important; line-height: 0; }
.ci-map-canvas iframe { width: 100%; min-height: 320px; border: 0; display: block; }


/* ---------------------------------------------------------
   6. TABLES (downloads / files)
   --------------------------------------------------------- */
.ci-table-wrap {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}
.ci-table { width: 100%; margin: 0; border-collapse: collapse; font-size: 14px; }
.ci-table thead th {
  background: var(--green);
  color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .6px;
  text-transform: uppercase;
  padding: 14px 16px;
  border: 0;
  white-space: nowrap;
}
.ci-table tbody td {
  padding: 13px 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  vertical-align: middle;
}
.ci-table tbody tr:nth-child(odd) { background: var(--green-tint-soft); }
.ci-table tbody tr:hover { background: var(--green-tint); }
.ci-table a { color: var(--green); font-weight: 700; }


/* ---------------------------------------------------------
   7. PAGINATION / "LOAD MORE"
   --------------------------------------------------------- */
.ci-more {
  display: flex; justify-content: center;
  width: 100%; margin: 30px 0 10px;
}
.ci-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 30px; }
.ci-pagination a, .ci-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: var(--radius-sm);
  background: #fff; color: var(--ink);
  box-shadow: var(--shadow-sm);
  font-size: 14px; font-weight: 600;
}
.ci-pagination a:hover { background: var(--green-tint); color: var(--green-dark); }
.ci-pagination .current { background: var(--green); color: #fff; }


/* ---------------------------------------------------------
   8. SINGLE POST + COMMENTS
   --------------------------------------------------------- */
.ci-single { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.ci-single-media img { width: 100%; max-height: 460px; object-fit: cover; }
.ci-single-body { padding: 32px 36px 26px; }
.ci-single-title { font-size: 32px; line-height: 1.25; margin: 0 0 18px; }
.ci-single-footer {
  padding: 15px 36px;
  border-top: 1px solid var(--line);
  background: var(--green-tint-soft);
  font-size: 13px; color: var(--muted);
}
.ci-prose { font-size: 16px; color: var(--ink-soft); }
.ci-prose img { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: 12px 0; }
.ci-prose h1, .ci-prose h2, .ci-prose h3,
.ci-prose h4, .ci-prose h5, .ci-prose h6 { margin-top: 1.2em; }
.ci-prose a { color: var(--green); font-weight: 600; }
.ci-prose table { width: 100%; margin-bottom: 1rem; }
.ci-prose blockquote {
  margin: 0 0 1rem; padding: 14px 22px;
  border-left: 3px solid var(--green);
  background: var(--green-tint-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.ci-comment {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.ci-comment-body { padding: 20px 24px 14px; font-size: 15px; color: var(--ink-soft); }
.ci-comment-body p { margin: 0; }
.ci-comment-footer {
  padding: 11px 24px;
  border-top: 1px solid var(--line);
  background: var(--green-tint-soft);
  font-size: 13px; color: var(--muted);
}
.ci-comment-reply { margin-left: 42px; border-left: 3px solid var(--green); }


/* ---------------------------------------------------------
   9. SEARCH RESULTS / OPENING SPEECH / EMPTY STATE
   --------------------------------------------------------- */
.ci-speech { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.ci-speech-body { padding: 30px 34px; }

.ci-empty {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 46px 30px;
  text-align: center;
  color: var(--muted);
}
.ci-empty .icon-circle { margin-bottom: 16px; }


/* ---------------------------------------------------------
   10. IMAGE SLIDER (get_image_sliders) - homepage only
   Bootstrap's carousel JS drives it, so the .carousel /
   .carousel-item / .carousel-indicators hooks stay intact.
   --------------------------------------------------------- */
.ci-slider { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--near-black); }
.ci-slider .carousel-item img { width: 100%; max-height: 560px; object-fit: cover; }
.ci-slider .carousel-caption {
  right: 0; left: 0; bottom: 0; padding: 60px 40px 26px;
  text-align: left;
  background: linear-gradient(to top, rgba(10, 16, 13, .82) 0%, rgba(10, 16, 13, 0) 100%);
}
.ci-slider .carousel-caption p { color: #fff; font-size: 17px; margin: 0; }
.ci-slider .carousel-indicators { margin-bottom: 14px; }
.ci-slider .carousel-indicators li {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255, 255, 255, .55); border: 0;
}
.ci-slider .carousel-indicators .active { background: var(--green); }


/* ---------------------------------------------------------
   11. FOOTER ADDITIONS (tags, PPDB, social icons)
   --------------------------------------------------------- */
.footer-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-tags a {
  display: inline-block;
  padding: 6px 13px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--radius-pill);
  color: rgba(255, 255, 255, .78);
  font-size: 12px; text-transform: uppercase; letter-spacing: .3px;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.footer-tags a:hover { background: var(--green); border-color: var(--green); color: #fff; }

.footer-ppdb { margin-top: 6px; }
.footer-ppdb .btn { width: 100%; }
.footer-note { font-size: 13px; color: rgba(255, 255, 255, .6); margin-top: 10px; }
.footer .socials a.facebook:hover  { background: #3b5998; border-color: #3b5998; }
.footer .socials a.twitter:hover   { background: #1da1f2; border-color: #1da1f2; }
.footer .socials a.instagram:hover { background: #c13584; border-color: #c13584; }
.footer .socials a.youtube:hover   { background: #ef4e17; border-color: #ef4e17; }
.footer-links .footer-contact { margin-bottom: 8px; }
.footer-links .footer-contact strong { color: #fff; }


/* ---------------------------------------------------------
   12. FULLSCREEN SEARCH OVERLAY (#search_form)
   Same markup + same input[type="search_form"] hook as
   theme 1, so frontend.min.js keeps toggling .open.
   --------------------------------------------------------- */
#search_form {
  z-index: 100001;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(11, 13, 12, .94);
  transition: all .5s ease-in-out;
  transform: translate(0px, -100%) scale(0, 0);
  opacity: 0;
}
#search_form.open {
  transform: translate(0px, 0px) scale(1, 1);
  opacity: 1;
}
#search_form input[type="search_form"] {
  position: absolute;
  top: 50%;
  width: 100%;
  color: #fff;
  background: transparent;
  font-family: var(--font);
  font-size: 48px;
  font-weight: 300;
  text-align: center;
  border: 0;
  border-bottom: 2px solid rgba(255, 255, 255, .18);
  margin: -51px auto 0;
  padding: 0 30px 14px;
  outline: none;
}
#search_form input[type="search_form"]::placeholder { color: rgba(255, 255, 255, .45); }
#search_form .btn {
  position: absolute;
  top: 50%; left: 50%;
  margin-top: 72px;
  transform: translateX(-50%);
  background: var(--green); color: #fff; border-color: var(--green);
}
#search_form .btn:hover { background: var(--green-dark); border-color: var(--green-dark); transform: translateX(-50%) translateY(-2px); }
@media (max-width: 768px) {
  #search_form input[type="search_form"] { font-size: 26px; }
}


/* ---------------------------------------------------------
   13. TOASTR
   --------------------------------------------------------- */
#toast-container > div {
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  opacity: 1;
}
.toast { background-color: var(--near-black); font-family: var(--font); }
.toast-success { background-color: var(--green); }
.toast-error   { background-color: var(--red); }
.toast-info    { background-color: var(--blue); }
.toast-warning { background-color: var(--orange); }
.toast-title, .toast-message { text-align: left; }
.toast-title { font-weight: 700; }


/* ---------------------------------------------------------
   14. DEEP DROPDOWN FALLBACK
   recursive_list() can emit menu levels deeper than the ones
   main.js tags with .dropdown, so give levels 3+ a pure-CSS
   hover open on desktop.
   --------------------------------------------------------- */
@media (min-width: 993px) {
  .navmenu ul ul li:hover > ul {
    opacity: 1; visibility: visible; transform: translateY(0);
  }
}
@media (max-width: 992px) {
  .navmenu ul ul ul { padding-left: 14px; }
  .navmenu li.open > ul ul { max-height: 520px; }
}


/* ---------------------------------------------------------
   15. RESPONSIVE TWEAKS FOR THE CI SCREENS
   --------------------------------------------------------- */
@media (max-width: 992px) {
  .ci-page { padding-top: calc(var(--header-h) + 28px); }
  .ci-single-body { padding: 26px 24px 20px; }
  .ci-single-title { font-size: 26px; }
  .ci-single-footer { padding: 14px 24px; }
  .sidebar { margin-top: 34px; }
}
@media (max-width: 768px) {
  .ci-form-body { padding: 20px 18px; }
  .ci-form-footer { padding: 16px 18px; }
  .ci-card-body, .ci-post-body { padding: 18px 20px; }
  .ci-card-footer { padding: 13px 20px; }
  .control-label { padding-top: 0; }
  .ci-post-media img { min-height: 200px; }
  .ci-comment-reply { margin-left: 16px; }
}


/* ---------------------------------------------------------
   16. DATA-DRIVEN VARIANTS OF THE ORIGINAL COMPONENTS
   The landing page used CSS gradient placeholders (.ph-*);
   the CI theme feeds real images into the same boxes.
   --------------------------------------------------------- */

/* Logo: school logo image + (often long) school name. */
.logo-icon img { width: 44px; height: 44px; object-fit: contain; display: block; }
.logo-text {
  font-size: 21px; line-height: 1.15;
  max-width: 300px;
  white-space: normal;
}

/* Hero heading / strip fed by school_profile + get_latest_posts(). */
.hero-copy h1 { font-size: 50px; }
.strip-name { max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
.strip-item { min-width: 0; }

/* Students life: album covers replace the .ph-group placeholder. */
.sl-card-media {
  height: 148px;
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
}
.sl-card h3 { margin: 18px 0 8px; }
.sl-card .btn { margin-top: 14px; }
.sl-cta-center { justify-content: center; margin-top: 34px; }
.sl-videos {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 30px; margin-top: 40px;
}

/* News cards carry a real <img> instead of a gradient block. */
.nc-media { overflow: hidden; background: var(--bg-alt); }
.nc-media img { width: 100%; height: 100%; object-fit: cover; }

/* The image-slider section sits between the hero and #about. */
.highlights { padding-bottom: 90px; }

@media (max-width: 1100px) {
  .hero-copy h1 { font-size: 42px; }
}
@media (max-width: 992px) {
  .sl-videos { grid-template-columns: 1fr; }
  .logo-text { font-size: 19px; max-width: 220px; }
}
@media (max-width: 768px) {
  .hero-copy h1 { font-size: 34px; }
  .strip-name { max-width: none; }
}
@media (max-width: 480px) {
  .logo-text { font-size: 16px; max-width: 150px; }
  .logo-icon img { width: 34px; height: 34px; }
  .hero-copy h1 { font-size: 28px; }
}

/* ---------------------------------------------------------
   17. FINAL TWEAKS
   --------------------------------------------------------- */

/* <h6 class="page-title"> is used as a sub-heading inside the
   multi-step admission form; scale it down from the <h5> size. */
h6.page-title {
  font-size: 15px; letter-spacing: .5px;
  margin-top: 30px; margin-bottom: 18px;
  padding-bottom: 11px;
}
h6.page-title:first-child { margin-top: 0; }
h6.page-title::after { width: 44px; }

/* File inputs inside the admission / alumni forms. */
.ci-form-body input[type="file"] { font-size: 14px; color: var(--ink-soft); }

/* Bootstrap .form-row keeps its own gutters. */
.form-row > .col-auto { padding-right: 5px; padding-left: 5px; }

/* Radio / checkbox rows. */
.form-check { padding-left: 1.5rem; }
.form-check-label { font-size: 14px; color: var(--ink-soft); }

/* Chart.js canvas in the polling results page. */
#canvas { max-width: 100%; }

/* Logo: the CMS stores a square bitmap (e.g. 120x120) where the original
   design used a small inline SVG, so it must be constrained or it eats the
   header width and wraps long school names onto several lines. */
.logo { flex: 0 0 auto; }
.logo-icon img { height: 42px; width: auto; display: block; }
.logo-text { white-space: nowrap; font-size: clamp(17px, 1.45vw, 28px); }

/* Indonesian menu labels run much longer than the original demo's, so a full
   CMS menu overflows the 1280px design container and spills toward the right
   edge. The header gets a wider track of its own, and below that width the nav
   is tightened instead. Section containers keep the 1280px design width. */
.header .header-inner { max-width: min(1720px, 100% - 48px); }

@media (min-width: 1201px) and (max-width: 1760px) {
	.navmenu > ul > li > a { font-size: 13.5px; padding: 10px 9px; }
	.logo-text { font-size: 19px; }
	.header-inner { gap: 12px; }
}
@media (min-width: 1201px) and (max-width: 1360px) {
	.navmenu > ul > li > a { font-size: 12px; padding: 10px 6px; }
	.navmenu > ul { gap: 0; }
	.logo-text { font-size: 16px; }
	.logo-icon img { height: 34px; }
	.header-inner { gap: 8px; }
}
/* Below 1200px a full CMS menu cannot fit on one row at any readable size, so
   the drawer takes over earlier than the original's 992px. Only the nav rules
   are lifted: the section grids keep their own 992px breakpoint. The inline
   script's isDesktop() matches this width. */
@media (min-width: 993px) and (max-width: 1200px) {
	.nav-toggle { display: inline-flex; }
	.navmenu {
		position: fixed; inset: var(--header-h) 0 0 0;
		background: var(--near-black);
		padding: 20px 24px 60px;
		overflow-y: auto;
		transform: translateX(100%);
		transition: transform .35s ease;
	}
	body.nav-open .navmenu { transform: translateX(0); }
	body.nav-open { overflow: hidden; }
	body.nav-open .header { background: var(--near-black); }
	.navmenu > ul { flex-direction: column; align-items: stretch; gap: 0; }
	.navmenu > ul > li > a { padding: 13px 6px; font-size: 17px; justify-content: space-between; }
	.navmenu ul ul {
		position: static; opacity: 1; visibility: visible; transform: none;
		background: transparent; box-shadow: none;
		max-height: 0; overflow: hidden; padding: 0;
		transition: max-height .35s ease;
	}
	.navmenu li.open > ul { max-height: 520px; padding: 4px 0 8px; }
	.navmenu ul ul a { color: rgba(255, 255, 255, .78); padding: 10px 20px; }
	.navmenu ul ul ul { padding-left: 14px; }
	.navmenu li.open > ul ul { max-height: 520px; }
}

/* =========================================================
   MOBILE POLISH
   The demo this design came from had a short brand name and a
   6-item English menu. A real CMS install has a long school name
   and up to a dozen Indonesian menu labels, so the small screens
   need their own treatment rather than just scaled-down desktop.
   ========================================================= */
@media (max-width: 768px) {
	/* Header: brand + 3 controls cannot share one 327px row. RSS is
	   already linked in the footer, so it steps aside here. */
	.header-actions .header-search:first-child { display: none; }
	.header-actions { gap: 6px; align-items: center; }
	.header-inner { gap: 10px; }
	.logo { gap: 9px; min-width: 0; }
	.logo-icon img { height: 32px; }
	.logo-text {
		font-size: 15px; max-width: 165px;
		overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
	}
	.header-search { width: 36px; height: 36px; }
	.nav-toggle { width: 36px; height: 36px; padding: 0; align-items: center; justify-content: center; }

	/* Hero: size to content instead of a locked 100vh, so the fold is
	   not a 1000px+ scroll on a phone. Bottom padding clears the
	   absolutely positioned events strip. */
	.hero { min-height: auto; padding: calc(var(--header-h) + 30px) 0 168px; }
	.hero-copy h1 { font-size: 30px; line-height: 1.16; }
	.hero-copy p { font-size: 15px; }
	.hero-actions { gap: 10px; }
	.hero-actions .btn { flex: 1 1 auto; justify-content: center; }
	.hero-panel { padding: 24px 18px 26px; border-radius: 16px; }
	.panel-title { font-size: 23px; }
	.stat-grid { grid-template-columns: 1fr 1fr; gap: 18px 12px; }
	.stat-icon { width: 40px; height: 40px; }
	.stat-num { font-size: 20px; }
	.stat-label { font-size: 12px; line-height: 1.3; }

	/* Events strip: one full-width row per item instead of a cramped wrap. */
	.strip-inner { flex-direction: column; align-items: stretch; gap: 10px; }
	.strip-item { justify-content: flex-start; gap: 10px; }
	.strip-name { flex: 1 1 auto; max-width: none; }
}

@media (max-width: 400px) {
	.logo-text { max-width: 135px; }
	.stat-grid { gap: 16px 10px; }
	.stat-label { font-size: 11.5px; }
	.hero-copy h1 { font-size: 27px; }
}

/* Tablets: between the phone block and the two-column hero the panel was
   capped at 620px and left-aligned, leaving a lopsided gap on the right of
   a ~1000px screen. Let it fill the container instead. */
@media (min-width: 769px) and (max-width: 1100px) {
	.hero-panel { max-width: none; }
	.stat-grid { grid-template-columns: 1fr 1fr; gap: 26px 28px; }
	.hero-copy h1 { font-size: 44px; }
	.sl-feature { min-height: 360px; }
}

/* Agenda strip stays three-across on tablets: the row no longer wraps, each
   item shares the width evenly, and a long post title truncates instead of
   pushing its neighbours onto a second line. */
@media (min-width: 769px) and (max-width: 1100px) {
	.strip-inner { flex-wrap: nowrap; justify-content: space-between; gap: 0 16px; }
	.strip-item { flex: 1 1 0; min-width: 0; gap: 9px; }
	.date-pill { flex: 0 0 auto; padding: 5px 9px; font-size: 11px; }
	.btn-register { flex: 0 0 auto; padding: 5px 11px; font-size: 12px; }
	.strip-name {
		flex: 1 1 auto; min-width: 0; max-width: none;
		font-size: 14px; white-space: nowrap;
		overflow: hidden; text-overflow: ellipsis;
	}
}

/* =========================================================
   SHORT LANDSCAPE SCREENS (phones turned sideways)
   Height, not width, is the scarce resource here: an 88px fixed
   header eats a quarter of a 375px viewport and a 100vh hero
   costs two full screens of scrolling before any content.
   ========================================================= */
@media (orientation: landscape) and (max-height: 500px) {
	:root { --header-h: 56px; }
	.header-inner { min-height: 56px; }
	.logo-icon img { height: 28px; }
	.logo-text { font-size: 15px; max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.header-search { width: 32px; height: 32px; }
	.nav-toggle { width: 32px; height: 32px; padding: 0; align-items: center; justify-content: center; }

	.hero { min-height: auto; padding: calc(var(--header-h) + 22px) 0 92px; }
	.hero-grid { gap: 24px; }
	.hero-copy h1 { font-size: 26px; line-height: 1.15; }
	.hero-copy p { font-size: 14px; }
	.hero-actions { gap: 10px; }
	.hero-panel { max-width: none; padding: 16px 18px 18px; }
	.panel-title { font-size: 19px; margin-bottom: 8px; }
	.panel-underline { margin-bottom: 16px; }
	.stat-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px 18px; }
	.stat-icon { width: 34px; height: 34px; }
	.stat-num { font-size: 17px; }
	.stat-label { font-size: 11px; line-height: 1.3; }

	/* Agenda strip: one row, same as the tablet treatment. */
	.strip-inner { flex-direction: row; flex-wrap: nowrap; justify-content: space-between; gap: 0 16px; }
	.strip-item { flex: 1 1 0; min-width: 0; gap: 8px; }
	.date-pill { flex: 0 0 auto; padding: 4px 8px; font-size: 11px; }
	.btn-register { flex: 0 0 auto; padding: 4px 10px; font-size: 12px; }
	.strip-name {
		flex: 1 1 auto; min-width: 0; max-width: none;
		font-size: 13px; white-space: nowrap;
		overflow: hidden; text-overflow: ellipsis;
	}

	/* Sections and the drawer both need to give height back. */
	.section { padding: 52px 0; }
	.navmenu { padding: 14px 24px 40px; }
	.navmenu > ul > li > a { padding: 10px 6px; font-size: 15px; }
}

/* =========================================================
   POST SOCIAL SHARE - RESPONSIVE
   Namespaced to avoid collisions with existing .facebook/.twitter styles.
   ========================================================= */
.post-share {
  background: #fff;
  overflow: hidden;
}
.post-share .card-body {
  padding: 12px 16px !important;
}
.post-share-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.post-share-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  margin: 0 !important;
  color: #344054 !important;
  font-size: 13px !important;
  line-height: 1;
  white-space: nowrap;
}
.post-share-title i {
  font-size: 13px !important;
}
.post-share-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.post-share-btn {
  box-sizing: border-box !important;
  width: 38px !important;
  min-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 38px !important;
  color: #fff !important;
  text-decoration: none !important;
  line-height: 1 !important;
  font-size: 16px !important;
  cursor: pointer;
  box-shadow: none !important;
  opacity: 1 !important;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.post-share-btn i {
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 16px !important;
  line-height: 1 !important;
}
.post-share-btn:hover,
.post-share-btn:focus {
  color: #fff !important;
  text-decoration: none !important;
  transform: translateY(-2px);
  filter: brightness(.94);
  box-shadow: 0 4px 10px rgba(0,0,0,.14) !important;
  outline: none;
}
.post-share-btn:active {
  transform: translateY(0);
}
.post-share-facebook { background: #1877f2 !important; }
.post-share-twitter { background: #111827 !important; }
.post-share-whatsapp { background: #25d366 !important; }
.post-share-telegram { background: #229ed9 !important; }
.post-share-linkedin { background: #0a66c2 !important; }
.post-share-copy { background: #667085 !important; }

@media (max-width: 575.98px) {
  .post-share .card-body {
    padding: 14px 16px !important;
  }
  .post-share-inner {
    display: block;
  }
  .post-share-title {
    display: flex !important;
    width: 100%;
    margin: 0 0 12px !important;
    font-size: 13px !important;
  }
  .post-share-buttons {
    display: flex !important;
    width: 100%;
    gap: 10px !important;
    flex-wrap: nowrap !important;
    overflow: visible;
  }
  .post-share-btn {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    flex: 0 0 40px !important;
    font-size: 17px !important;
  }
  .post-share-btn i {
    font-size: 17px !important;
  }
}

@media (max-width: 360px) {
  .post-share-buttons {
    gap: 7px !important;
  }
  .post-share-btn {
    width: 37px !important;
    min-width: 37px !important;
    height: 37px !important;
    min-height: 37px !important;
    flex-basis: 37px !important;
  }
}
