:root {
  --ink: #153b36;
  --ink-soft: #5f7771;
  --primary: #0f766e;
  --primary-deep: #0a514c;
  --mint: #e9f5ef;
  --cream: #fbfaf5;
  --sand: #f2eadc;
  --gold: #c7973e;
  --line: #e4ebe6;
  --shadow: 0 20px 55px rgba(21, 59, 54, 0.09);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
}
a {
  color: inherit;
}
.btn-primary {
  --bs-btn-bg: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--primary-deep);
  --bs-btn-hover-border-color: var(--primary-deep);
  --bs-btn-active-bg: var(--primary-deep);
  box-shadow: 0 9px 20px rgba(15, 118, 110, 0.18);
}
.btn-light {
  color: var(--ink);
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
}
.brand-mark strong {
  display: block;
  font-size: 16px;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.brand-mark small {
  display: block;
  color: var(--ink-soft);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
}
.brand-icon {
  width: 39px;
  height: 39px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 7px 16px rgba(15, 118, 110, 0.2);
}
.section-kicker {
  display: block;
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}
.section-kicker.light {
  color: #b4d9ca;
}
.soft-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: var(--primary);
  background: var(--mint);
}
.soft-icon.green {
  color: #1b8b69;
  background: #e4f4eb;
}
.soft-icon.blue {
  color: #447eaa;
  background: #e7f0f7;
}
.soft-icon.gold {
  color: #b4832d;
  background: #fbf0d9;
}
.soft-icon.purple {
  color: #856bb4;
  background: #f0eafb;
}

/* Landing */
.landing-body {
  background: var(--cream);
  overflow-x: hidden;
}
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(228, 235, 230, 0.72);
  background: rgba(251, 250, 245, 0.88);
  box-shadow: 0 8px 28px rgba(21, 59, 54, 0.07);
  backdrop-filter: blur(16px);
}
.landing-nav-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 12px;
  padding-left: 12px;
}
.landing-nav-links {
  gap: 34px;
  margin-left: 70px;
}
.landing-nav-links a {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}
.landing-nav-links a:hover {
  color: var(--primary);
}
.hero-section {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.85fr);
  align-items: center;
  gap: 80px;
  padding: 55px 12px 90px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(199, 151, 62, 0.13);
}
.hero-copy h1 {
  max-width: 650px;
  margin: 22px 0 20px;
  color: var(--ink);
  font-size: clamp(43px, 5.3vw, 73px);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.98;
}
.hero-copy h1 em {
  color: var(--primary);
  font-family: "Amiri", serif;
  font-size: 1.12em;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.hero-typing-title {
  min-height: 1.96em;
}
.hero-typing-cursor {
  display: inline-block;
  width: 0.08em;
  height: 0.88em;
  margin-left: 0.08em;
  vertical-align: -0.04em;
  background: var(--primary);
  animation: hero-cursor-blink 0.8s steps(1) infinite;
}
@keyframes hero-cursor-blink {
  50% {
    opacity: 0;
  }
}
.hero-lead {
  max-width: 530px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.9;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 30px;
}
.hero-actions .btn-link {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 37px;
  color: #82958f;
  font-size: 11px;
}
.avatar-stack {
  display: flex;
  padding-left: 8px;
}
.avatar-stack span {
  width: 27px;
  height: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: -8px;
  border: 2px solid var(--cream);
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
  font-size: 10px;
  font-weight: 800;
}
.avatar-stack span:nth-child(2) {
  background: #c7973e;
}
.avatar-stack span:nth-child(3) {
  background: #7c9b8e;
}
.hero-visual {
  min-height: 470px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-orbit {
  position: absolute;
  border: 1px solid rgba(15, 118, 110, 0.11);
  border-radius: 50%;
  transform: rotate(-22deg);
}
.orbit-one {
  width: 465px;
  height: 320px;
}
.orbit-two {
  width: 360px;
  height: 500px;
  transform: rotate(32deg);
  border-color: rgba(199, 151, 62, 0.15);
}
.main-hero-card {
  z-index: 2;
  width: min(390px, 80%);
  min-height: 325px;
  padding: 30px;
  border-radius: 26px;
  color: #e9f7ef;
  background: linear-gradient(145deg, #195f55, #0a3f3b);
  box-shadow: 0 30px 60px rgba(7, 67, 61, 0.25);
  overflow: hidden;
  position: relative;
}
.main-hero-card:after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -66px;
  top: -60px;
  border: 1px solid rgba(225, 244, 232, 0.13);
  border-radius: 50%;
  box-shadow:
    0 0 0 25px rgba(225, 244, 232, 0.03),
    0 0 0 50px rgba(225, 244, 232, 0.03);
}
.hero-card-top,
.hero-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hero-card-top .soft-icon {
  color: #d6f2dd;
  background: rgba(255, 255, 255, 0.12);
}
.mini-badge {
  padding: 6px 10px;
  border: 1px solid rgba(209, 239, 222, 0.25);
  border-radius: 50px;
  color: #b9dec8;
  font-size: 9px;
  font-weight: 700;
}
.arabic-greeting {
  margin: 43px 0 7px;
  font-family: "Amiri", serif;
  font-size: 43px;
  line-height: 1;
  text-align: center;
}
.arabic-meaning {
  margin: 0 auto;
  max-width: 245px;
  color: #aed0c0;
  font-family: "Amiri", serif;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
}
.hero-card-divider {
  height: 1px;
  margin: 29px 0 18px;
  background: rgba(212, 240, 223, 0.16);
}
.hero-card-bottom {
  color: #accfc1;
  font-size: 9px;
}
.float-stat {
  z-index: 3;
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 166px;
  padding: 13px 14px;
  border: 1px solid rgba(228, 235, 230, 0.8);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 35px rgba(21, 59, 54, 0.11);
  backdrop-filter: blur(12px);
}
.float-stat strong,
.float-stat small {
  display: block;
}
.float-stat strong {
  font-size: 10px;
}
.float-stat small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 9px;
}
.float-stat-one {
  left: 0;
  bottom: 53px;
  transform: rotate(-3deg);
}
.float-stat-two {
  right: -18px;
  top: 66px;
  transform: rotate(4deg);
}
.trust-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  padding: 60px 50px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-copy {
  max-width: 420px;
}
.trust-copy h2,
.section-heading h2 {
  margin: 12px 0 0;
  font-size: 28px;
  letter-spacing: -0.06em;
  line-height: 1.18;
}
.trust-items {
  display: flex;
  gap: 58px;
}
.trust-items > div {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}
.trust-items strong {
  color: var(--gold);
  font-size: 11px;
}
.trust-items span {
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.55;
}
.feature-section {
  padding: 120px 12px 105px;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 42px;
}
.section-heading > p {
  max-width: 325px;
  margin: 0 0 2px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.8;
}
.feature-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 18px;
}
.feature-card {
  min-height: 285px;
  position: relative;
  padding: 29px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: #fff;
  overflow: hidden;
}
.feature-card-large {
  background: var(--mint);
  border-color: transparent;
}
.feature-card-dark {
  color: #eaf6ee;
  background: var(--primary-deep);
  border-color: transparent;
}
.feature-number {
  position: absolute;
  top: 28px;
  right: 29px;
  color: #9abbb0;
  font-size: 10px;
  font-weight: 800;
}
.feature-card-dark .feature-number {
  color: #79aba0;
}
.feature-icon {
  display: block;
  margin: 3px 0 52px;
  color: var(--primary);
  font-size: 28px;
}
.feature-card-dark .feature-icon {
  color: #a8d3bd;
}
.feature-card h3 {
  margin-bottom: 10px;
  font-size: 16px;
  letter-spacing: -0.04em;
}
.feature-card p {
  max-width: 290px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.75;
}
.feature-card-dark p {
  color: #a2c3b7;
}
.feature-card a {
  display: inline-block;
  margin-top: 21px;
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}
.feature-card a i {
  margin-left: 5px;
}
.ustadz-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 80px;
  padding: 95px 70px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ustadz-photo-wrap {
  width: min(310px, 100%);
  aspect-ratio: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
}
.ustadz-photo-orbit {
  position: absolute;
  inset: 5%;
  border: 1px solid rgba(199, 151, 62, 0.3);
  border-radius: 50%;
  transform: rotate(24deg);
}
.ustadz-photo {
  width: 82%;
  height: 82%;
  position: relative;
  object-fit: cover;
  border: 10px solid #fff;
  border-radius: 50%;
  box-shadow: 0 25px 45px rgba(21, 59, 54, 0.15);
}
.ustadz-prolog {
  max-width: 590px;
}
.ustadz-prolog h2 {
  margin: 13px 0 18px;
  color: var(--ink);
  font-size: 34px;
  letter-spacing: -0.065em;
  line-height: 1.12;
}
.ustadz-prolog p {
  max-width: 520px;
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-family: "Amiri", serif;
  font-size: 21px;
  line-height: 1.65;
}
.ustadz-prolog strong {
  color: var(--primary);
  font-size: 11px;
}
.program-section {
  padding: 0 12px 80px;
}
.program-panel {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  padding: 48px 59px;
  border-radius: 25px;
  background: linear-gradient(115deg, #0c4944, #147a6d);
  box-shadow: var(--shadow);
}
.program-panel h2 {
  max-width: 450px;
  margin: 12px 0 0;
  color: #edf8ef;
  font-size: 32px;
  letter-spacing: -0.065em;
  line-height: 1.1;
}
.landing-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 10px;
}
.landing-footer {
  border-top: 1px solid var(--line);
  color: #71827a;
  background: #f3f5ef;
}
.landing-footer-main {
  display: grid;
  grid-template-columns:
    minmax(210px, 1.15fr) minmax(125px, 0.65fr) minmax(190px, 0.95fr)
    minmax(250px, 1.2fr);
  gap: 34px;
  align-items: start;
  padding: 44px 24px 22px;
  font-size: 11px;
}
.landing-footer-identity,
.landing-footer-nav,
.landing-footer-visit,
.landing-footer-map-wrap {
  min-width: 0;
}
.landing-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.landing-logo-footer {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
}
.landing-footer strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}
.landing-footer-tagline {
  display: block;
  margin-top: 4px;
  color: var(--primary);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.landing-footer p {
  margin: 15px 0 0;
  line-height: 1.75;
}
.landing-footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.landing-footer-nav > strong,
.landing-footer-visit > strong,
.landing-footer-map-label {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
}
.landing-footer-nav a {
  color: #71827a;
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
}
.landing-footer-nav a:hover {
  color: var(--primary);
}
.landing-footer-visit p {
  margin-top: 10px;
}
.landing-directions {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  padding: 0 12px;
  border: 1px solid #cbdcd1;
  border-radius: 8px;
  color: var(--primary-deep);
  background: #fff;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}
.landing-directions:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.landing-footer-map-label {
  display: block;
  margin-bottom: 10px;
}
.landing-map {
  width: 100%;
  height: 190px;
  display: block;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(21, 59, 54, 0.09);
}
.landing-footer-note {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 6px;
  padding-top: 17px;
  border-top: 1px solid #dfe6dd;
  color: #84938a;
  font-size: 9px;
}
.landing-footer-note span:last-child {
  text-align: right;
}
.landing-ustadz {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(21, 59, 54, 0.12);
}

/* Login */
.login-body {
  min-height: 100vh;
  background: var(--cream);
}
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
}
.login-art {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 43px clamp(32px, 6vw, 92px);
  color: #e7f3ea;
  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(61, 142, 112, 0.46),
      transparent 33%
    ),
    linear-gradient(155deg, #145b51, #073b39);
}
.login-art .brand-mark small {
  color: #9fcabe;
}
.login-art-copy {
  max-width: 400px;
  align-self: center;
  margin: 50px 0;
}
.login-art-copy h1 {
  margin: 15px 0;
  color: #f3fbf4;
  font-size: clamp(36px, 4.1vw, 56px);
  letter-spacing: -0.08em;
  line-height: 1;
}
.login-art-copy > p {
  color: #b0d0c1;
  font-size: 13px;
  line-height: 1.8;
}
.login-quote {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 45px;
  padding-left: 17px;
  border-left: 2px solid var(--gold);
}
.arabic-small {
  font-family: "Amiri", serif;
  font-size: 24px;
}
.login-quote small {
  color: #a9cabb;
  font-size: 10px;
  line-height: 1.7;
}
.login-art-footer {
  display: flex;
  justify-content: space-between;
  color: #8db8a5;
  font-size: 9px;
}
.login-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px 30px;
  background: #fff;
}
.login-form-box {
  width: min(400px, 100%);
}
.back-link {
  display: inline-block;
  margin-bottom: 64px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}
.back-link:hover {
  color: var(--primary);
}
.login-heading .section-kicker {
  margin-top: 22px;
}
.login-heading h2 {
  margin: 9px 0 11px;
  font-size: 31px;
  letter-spacing: -0.07em;
}
.login-heading p {
  margin-bottom: 31px;
  color: var(--ink-soft);
  font-size: 12px;
}
.login-form .form-control {
  min-height: 58px;
  border-color: var(--line);
  border-radius: 11px;
  color: var(--ink);
  font-size: 13px;
}
.login-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.1);
}
.login-form .form-floating > label {
  color: #81928d;
  font-size: 12px;
}
.form-check-label,
.form-hint {
  color: var(--ink-soft);
  font-size: 10px;
}
.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}
.password-toggle {
  position: absolute;
  right: 15px;
  top: 17px;
  z-index: 3;
  border: 0;
  color: #83948f;
  background: transparent;
}
.demo-account {
  display: flex;
  gap: 11px;
  margin-top: 25px;
  padding: 15px;
  border: 1px solid #d9ece2;
  border-radius: 11px;
  color: var(--primary);
  background: #f5fbf7;
}
.demo-account i {
  font-size: 15px;
}
.demo-account strong,
.demo-account span {
  display: block;
}
.demo-account strong {
  font-size: 10px;
}
.demo-account-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  border: 0;
  color: inherit;
  text-align: left;
  background: transparent;
  cursor: pointer;
}
.demo-account-toggle strong {
  font-size: inherit;
}
.demo-account-toggle i {
  font-size: 12px;
}
.demo-account-content span[hidden] {
  display: none;
}
.demo-account span {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 9px;
}

/* App shell */
.hilang,
.hide,
.gone {
  display: none !important;
}
.app-body {
  background: #f7faf8;
}
.app-layout {
  min-height: 100vh;
  display: flex;
}
.app-sidebar {
  width: 245px;
  flex: 0 0 245px;
  display: flex;
  flex-direction: column;
  padding: 25px 17px 19px;
  border-right: 1px solid #e4ece7;
  background: #fff;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 27px;
}
.sidebar-brand .brand-mark {
  text-decoration: none;
}
.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 4px 28px;
  padding: 11px;
  border-radius: 13px;
  background: #f4faf6;
}
.avatar {
  width: 39px;
  height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
  font-size: 12px;
  font-weight: 800;
}
.avatar-sm {
  width: 31px;
  height: 31px;
  font-size: 10px;
}
.sidebar-profile strong {
  color: var(--ink);
  font-size: 10px;
}
.sidebar-profile small {
  display: block;
  margin-top: 3px;
  color: var(--primary);
  font-size: 9px;
  font-weight: 700;
}
.sidebar-label {
  padding: 0 11px;
  margin: 0 0 9px;
  color: #a2b2ad;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 10px;
  color: #78908a;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.sidebar-link i {
  width: 17px;
  font-size: 15px;
  text-align: center;
}
.sidebar-link:hover {
  color: var(--primary);
  background: #f2f9f5;
}
.sidebar-link.active {
  color: var(--primary);
  background: #e9f5ef;
}
.sidebar-bottom {
  margin-top: auto;
}
.sidebar-tip {
  display: flex;
  gap: 9px;
  margin: 14px 4px 20px;
  padding: 12px 10px;
  border: 1px solid #f0e6d3;
  border-radius: 11px;
  background: #fffaf0;
}
.sidebar-tip > i {
  color: var(--gold);
}
.sidebar-tip strong,
.sidebar-tip small {
  display: block;
}
.sidebar-tip strong {
  font-size: 9px;
}
.sidebar-tip small {
  margin-top: 4px;
  color: #9e927f;
  font-size: 8px;
  line-height: 1.5;
}
.app-main {
  min-width: 0;
  flex: 1;
}
.topbar {
  height: 77px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 43px;
  border-bottom: 1px solid #e7eeea;
  background: rgba(255, 255, 255, 0.7);
}
.topbar-date {
  color: #83948e;
  font-size: 11px;
  font-weight: 600;
}
.topbar-date i {
  color: var(--primary);
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.btn-icon {
  width: 35px;
  height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: #7f938d;
  background: #f2f7f4;
}
.btn-icon:hover {
  color: var(--primary);
  background: var(--mint);
}
/* ===== Topbar User + Hover Logout ===== */
.topbar-user {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.topbar-user:hover,
.topbar-user:focus-within {
  background: rgba(15, 118, 110, 0.08);
}

/* Dropdown logout */
.topbar-user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 160px;
  padding-top: 6px;
  background: transparent;
  border: 0;
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0.18s;
  z-index: 1050;
}

.topbar-user:hover .topbar-user-dropdown,
.topbar-user:focus-within .topbar-user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.topbar-user-dropdown form {
  margin: 0;
  padding: 6px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.topbar-logout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: none;
  background: transparent;
  border-radius: 8px;
  color: #b91c1c;
  font-weight: 600;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.topbar-logout-btn:hover,
.topbar-logout-btn:focus {
  background: #fef2f2;
  color: #991b1b;
  outline: none;
}

.topbar-logout-btn i {
  font-size: 16px;
}
.content-wrap {
  max-width: 1430px;
  margin: 0 auto;
  padding: 48px 43px 60px;
}
.page-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 35px;
  margin-bottom: 34px;
}
.page-intro h1 {
  margin: 8px 0 8px;
  font-size: 32px;
  letter-spacing: -0.07em;
  line-height: 1.1;
}
.page-intro p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}
.page-intro-compact {
  margin-bottom: 29px;
}
.date-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--primary);
  background: #fff;
}
.date-chip > i {
  font-size: 19px;
}
.date-chip small,
.date-chip strong {
  display: block;
}
.date-chip small {
  color: #8b9c96;
  font-size: 9px;
}
.date-chip strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: 10px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
.stat-card {
  min-height: 166px;
  position: relative;
  padding: 19px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.stat-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stat-trend {
  color: #8a9d95;
  font-size: 9px;
  font-weight: 700;
}
.stat-number {
  display: block;
  margin-top: 18px;
  color: var(--ink);
  font-size: 27px;
  letter-spacing: -0.07em;
}
.stat-label {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 10px;
}
.stat-line {
  height: 3px;
  position: absolute;
  right: 21px;
  bottom: 19px;
  left: 21px;
  border-radius: 5px;
  opacity: 0.55;
}
.green-line {
  background: #68b993;
}
.blue-line {
  background: #7da9c9;
}
.gold-line {
  background: #d6ad5b;
}
.purple-line {
  background: #ab91d2;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 15px;
  margin-top: 15px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.welcome-panel {
  min-height: 315px;
  position: relative;
  padding: 28px;
  color: #eaf7ee;
  background: linear-gradient(145deg, #166b5d, #0d4b45);
  overflow: hidden;
}
.welcome-pattern {
  width: 360px;
  height: 360px;
  position: absolute;
  right: -115px;
  bottom: -185px;
  border: 1px solid rgba(220, 242, 225, 0.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 30px rgba(220, 242, 225, 0.035),
    0 0 0 60px rgba(220, 242, 225, 0.035),
    0 0 0 90px rgba(220, 242, 225, 0.035);
}
.welcome-panel .panel-label {
  color: #aad2bb;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.welcome-icon {
  width: 47px;
  height: 47px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 50px;
  border-radius: 15px;
  color: #ecdaaa;
  background: rgba(226, 204, 145, 0.13);
  font-size: 20px;
}
.welcome-panel h2 {
  max-width: 390px;
  position: relative;
  z-index: 1;
  margin: 22px 0 10px;
  font-family: "Amiri", serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.25;
}
.welcome-panel p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #a9d0bd;
  font-size: 10px;
}
.quick-panel {
  padding: 25px 26px 14px;
}
.dashboard-notes-panel {
  padding: 25px 26px 14px;
}
.dashboard-note-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.dashboard-note-row:last-child {
  border-bottom: 0;
}
.dashboard-note-icon {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--primary);
  background: var(--mint);
}
.dashboard-note-content {
  min-width: 0;
}
.dashboard-note-content strong,
.dashboard-note-content small,
.dashboard-note-content span {
  display: block;
  overflow-wrap: anywhere;
}
.dashboard-note-content strong {
  color: var(--ink);
  font-size: 12px;
}
.dashboard-note-content small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 9px;
}
.dashboard-note-content span {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.45;
}
.dashboard-notes-empty {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 0;
  color: var(--ink-soft);
  font-size: 11px;
}
.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}
.panel-heading h2 {
  margin: 7px 0 0;
  font-size: 18px;
  letter-spacing: -0.05em;
}
.panel-heading > i {
  color: #b5c6c0;
  font-size: 23px;
}
.quick-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 0;
  border-top: 1px solid #edf1ef;
  color: var(--ink);
  text-decoration: none;
}
.quick-link-icon {
  width: 35px;
  height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 10px;
  font-size: 15px;
}
.quick-link-icon.green {
  color: #258b66;
  background: #e5f5ec;
}
.quick-link-icon.gold {
  color: #bb8a31;
  background: #fbf1da;
}
.quick-link-icon.blue {
  color: #4b86ad;
  background: #e8f1f7;
}
.quick-link strong,
.quick-link small {
  display: block;
}
.quick-link strong {
  font-size: 10px;
}
.quick-link small {
  margin-top: 3px;
  color: #8a9c96;
  font-size: 9px;
}
.quick-link > i {
  color: #a0b1ab;
  font-size: 13px;
}

/* Tables and forms */
.table-panel {
  overflow: hidden;
}
.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 20px 24px;
  border-bottom: 1px solid #edf1ef;
}
.search-box {
  width: min(315px, 100%);
  position: relative;
}
.search-box > i {
  position: absolute;
  z-index: 2;
  top: 11px;
  left: 13px;
  color: #9cafaa;
}
.search-box .form-control {
  height: 38px;
  padding-left: 36px;
  border-color: var(--line);
  border-radius: 9px;
  color: var(--ink);
  font-size: 10px;
}
.search-box .form-control:focus,
.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.09);
}
.table-title {
  margin: 6px 0 0;
  font-size: 16px;
  letter-spacing: -0.05em;
}
.table-note {
  color: #93a49e;
  font-size: 10px;
}
.table {
  margin: 0;
  --bs-table-bg: transparent;
}
.table thead th {
  padding: 14px 24px;
  border-bottom: 1px solid #edf1ef;
  color: #8a9b95;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.table tbody td {
  padding: 15px 24px;
  border-color: #f0f3f1;
  color: var(--ink-soft);
  font-size: 10px;
  vertical-align: middle;
}
.table tbody tr:last-child td {
  border-bottom: 0;
}
.table-person {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}
.table-person .avatar {
  width: 32px;
  height: 32px;
  font-size: 9px;
}
.person-meta strong,
.person-meta small {
  display: block;
}
.person-meta small {
  margin-top: 3px;
  color: #9baba5;
  font-size: 9px;
  font-weight: 500;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border-radius: 50px;
  font-size: 9px;
  font-weight: 800;
}
.status-pill:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.status-pill.active {
  color: #1b8c69;
  background: #e7f6ed;
}
.status-pill.inactive {
  color: #aa766e;
  background: #faece8;
}
.status-pill.graduated {
  color: #876aab;
  background: #f0eafa;
}
.action-btn {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: #8b9c96;
  background: #f4f8f5;
}
.action-btn:hover {
  color: var(--primary);
  background: var(--mint);
}
.action-btn.delete:hover {
  color: #b55050;
  background: #fff0ed;
}
.empty-state {
  height: 150px;
  color: #91a39d !important;
  text-align: center;
}
.empty-state .spinner-border {
  margin-right: 7px;
}
.date-picker-card {
  min-width: 170px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.date-picker-card label {
  display: block;
  margin-bottom: 3px;
  color: var(--primary);
  font-size: 9px;
  font-weight: 800;
}
.date-picker-card input {
  padding: 0;
  border: 0;
  color: var(--ink);
  font-size: 11px;
}
.date-picker-card input:focus {
  box-shadow: none;
}
.attendance-select {
  min-width: 105px;
  padding: 7px 28px 7px 10px;
  border-color: var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 10px;
}
.attendance-note {
  min-width: 180px;
  padding: 7px 10px;
  border-color: var(--line);
  border-radius: 8px;
  font-size: 10px;
}
.save-row {
  padding: 6px 11px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--primary);
  font-size: 9px;
  font-weight: 700;
}
.save-row:hover {
  background: var(--primary-deep);
}
.modal-content {
  border: 0;
  border-radius: 20px;
  box-shadow: 0 25px 80px rgba(21, 59, 54, 0.18);
}
.modal-header {
  padding: 25px 28px 14px;
  border: 0;
}
.modal-title {
  margin-top: 6px;
  font-size: 21px;
  letter-spacing: -0.06em;
}
.modal-body {
  padding: 7px 28px 18px;
}
.modal-footer {
  padding: 14px 28px 25px;
  border-top: 1px solid #eff3f0;
}
.modal .form-label {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
}
.modal .form-label span {
  color: #c65e58;
}
.modal .form-control,
.modal .form-select {
  min-height: 41px;
  border-color: var(--line);
  border-radius: 8px;
  font-size: 11px;
}
.modal textarea.form-control {
  min-height: auto;
}
.modal .btn {
  font-size: 11px;
}

@media (max-width: 1050px) {
  .hero-section {
    gap: 30px;
  }
  .hero-copy h1 {
    font-size: 54px;
  }
  .trust-strip {
    padding-right: 25px;
    padding-left: 25px;
  }
  .trust-items {
    gap: 23px;
  }
  .content-wrap {
    padding-right: 28px;
    padding-left: 28px;
  }
  .topbar {
    padding: 0 28px;
  }
}
@media (max-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr;
    padding-top: 50px;
  }
  .hero-copy {
    text-align: center;
  }
  .hero-copy h1,
  .hero-lead {
    margin-right: auto;
    margin-left: auto;
  }
  .hero-actions,
  .hero-trust {
    justify-content: center;
  }
  .hero-visual {
    min-height: 430px;
  }
  .float-stat-one {
    left: 11%;
  }
  .float-stat-two {
    right: 7%;
  }
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
  .feature-card-large {
    grid-column: span 2;
    min-height: 245px;
  }
  .login-page {
    grid-template-columns: 1fr;
  }
  .login-art {
    min-height: 330px;
    padding: 31px 45px;
  }
  .login-art-copy {
    margin: 45px 0 30px;
  }
  .login-art-copy h1 {
    max-width: 500px;
    font-size: 42px;
  }
  .login-quote {
    display: none;
  }
  .login-form-wrap {
    padding-top: 45px;
    padding-bottom: 65px;
  }
  .back-link {
    margin-bottom: 43px;
  }
}
@media (max-width: 767px) {
  .landing-nav {
    height: 72px;
    padding-right: 18px;
    padding-left: 18px;
  }
  .landing-nav .btn {
    padding-right: 13px !important;
    padding-left: 13px !important;
    font-size: 10px;
  }
  .hero-section {
    padding: 43px 20px 45px;
  }
  .hero-copy h1 {
    font-size: 46px;
  }
  .hero-lead {
    font-size: 13px;
  }
  .hero-visual {
    min-height: 370px;
  }
  .orbit-one {
    width: 340px;
    height: 250px;
  }
  .orbit-two {
    width: 285px;
    height: 380px;
  }
  .main-hero-card {
    min-height: 280px;
    padding: 23px;
  }
  .arabic-greeting {
    margin-top: 33px;
    font-size: 35px;
  }
  .float-stat {
    min-width: 145px;
    padding: 10px;
  }
  .float-stat-one {
    left: -3px;
    bottom: 29px;
  }
  .float-stat-two {
    right: -4px;
    top: 29px;
  }
  .trust-strip {
    display: block;
    padding: 45px 20px;
  }
  .trust-copy h2 {
    font-size: 25px;
  }
  .trust-items {
    justify-content: space-between;
    gap: 10px;
    margin-top: 30px;
  }
  .trust-items > div {
    gap: 7px;
  }
  .feature-section {
    padding: 75px 20px;
  }
  .section-heading {
    display: block;
  }
  .section-heading h2 {
    font-size: 26px;
  }
  .section-heading > p {
    margin-top: 18px;
  }
  .feature-grid {
    display: block;
  }
  .feature-card {
    min-height: 245px;
    margin-bottom: 14px;
  }
  .program-section {
    padding: 0 20px 55px;
  }
  .program-panel {
    display: block;
    padding: 34px 26px;
  }
  .program-panel h2 {
    font-size: 27px;
    margin-bottom: 25px;
  }
  .landing-footer {
    display: block;
    padding-right: 20px;
    padding-left: 20px;
  }
  .landing-footer span {
    display: block;
    margin-top: 8px;
  }
  .login-art {
    min-height: 260px;
    padding: 25px 25px;
  }
  .login-art-copy {
    margin: 27px 0 0;
  }
  .login-art-copy h1 {
    font-size: 33px;
  }
  .login-art-footer {
    margin-top: 27px;
  }
  .login-form-wrap {
    padding: 33px 22px 45px;
  }
  .login-heading h2 {
    font-size: 28px;
  }
  .app-sidebar {
    width: 245px;
    position: fixed;
    z-index: 1050;
    top: 0;
    bottom: 0;
    left: -260px;
    box-shadow: 10px 0 35px rgba(21, 59, 54, 0.1);
    transition: left 0.25s ease;
  }
  .app-sidebar.open {
    left: 0;
  }
  .app-main {
    width: 100%;
  }
  .topbar {
    height: 67px;
    padding: 0 18px;
  }
  .mobile-menu {
    margin-right: 10px;
  }
  .topbar-date {
    margin-right: auto;
  }
  .topbar-actions {
    gap: 8px;
  }
  .content-wrap {
    padding: 32px 18px 45px;
  }
  .page-intro {
    display: block;
  }
  .page-intro h1 {
    font-size: 29px;
  }
  .page-intro .btn,
  .date-picker-card {
    margin-top: 20px;
  }
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat-card {
    min-height: 150px;
    padding: 15px;
  }
  .stat-number {
    font-size: 23px;
  }
  .dashboard-grid {
    display: block;
  }
  .welcome-panel {
    margin-bottom: 15px;
  }
  .table-toolbar {
    display: block;
    padding: 17px;
  }
  .table-toolbar .table-note {
    display: block;
    margin-top: 13px;
  }
  .table thead th,
  .table tbody td {
    padding-right: 15px;
    padding-left: 15px;
  }
  .search-box {
    width: 100%;
  }
  .date-picker-card {
    width: 100%;
  }
  .table-responsive {
    border: 0;
  }
  .program-panel .btn {
    font-size: 11px;
  }
}
@media (max-width: 410px) {
  .hero-copy h1 {
    font-size: 40px;
  }
  .hero-actions {
    display: block;
  }
  .hero-actions .btn {
    display: block;
    width: 100%;
    margin-bottom: 9px;
  }
  .hero-trust {
    align-items: flex-start;
    text-align: left;
  }
  .float-stat {
    min-width: 132px;
  }
  .float-stat strong {
    font-size: 9px;
  }
  .float-stat small {
    font-size: 8px;
  }
  .stat-card {
    padding: 13px;
  }
  .stat-label {
    font-size: 9px;
  }
  .topbar-date {
    font-size: 9px;
  }
}

/* Dashboard backend */
.dashboard-page-intro {
}
.app-body .content-wrap {
  max-width: 1520px;
  padding-top: 42px;
}
.app-body .page-intro {
  margin-bottom: 30px;
}
.app-body .page-intro h1 {
  font-size: clamp(30px, 2.4vw, 42px);
}
.app-body .page-intro p {
  max-width: 650px;
  font-size: 14px;
}
.app-body .section-kicker {
  font-size: 11px;
}
.app-body .topbar {
  height: 82px;
}
.app-body .topbar-date {
  font-size: 13px;
}
.app-body .topbar-user {
  font-size: 12px;
}
.app-body .stat-grid {
  gap: 18px;
}
.app-body .stat-card {
  min-height: 185px;
  padding: 23px 24px;
  border-radius: 22px;
  box-shadow: 0 8px 24px rgba(21, 59, 54, 0.035);
}
.app-body .stat-trend {
  font-size: 11px;
}
.app-body .stat-number {
  margin-top: 24px;
  font-size: 34px;
}
.app-body .stat-label {
  font-size: 12px;
}
.app-body .stat-line {
  right: 24px;
  bottom: 23px;
  left: 24px;
}
.app-body .dashboard-grid {
  gap: 18px;
  margin-top: 18px;
}
.app-body .panel {
  border-radius: 22px;
  box-shadow: 0 8px 24px rgba(21, 59, 54, 0.035);
}
.app-body .dashboard-notes-panel,
.app-body .quick-panel {
  padding: 28px 30px 16px;
}
.app-body .panel-heading {
  margin-bottom: 16px;
}
.app-body .panel-heading h2 {
  font-size: 21px;
}
.app-body .dashboard-note-row {
  gap: 13px;
  padding: 14px 0;
}
.app-body .dashboard-note-icon {
  flex-basis: 36px;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  font-size: 15px;
}
.app-body .dashboard-note-content strong {
  font-size: 13px;
}
.app-body .dashboard-note-content small {
  font-size: 10px;
}
.app-body .dashboard-note-content span {
  font-size: 11px;
  line-height: 1.55;
}
.app-body .dashboard-notes-empty {
  font-size: 12px;
}
.app-body .welcome-panel {
  min-height: 350px;
  padding: 32px;
}
.app-body .welcome-panel .panel-label {
  font-size: 10px;
}
.app-body .welcome-icon {
  width: 54px;
  height: 54px;
  margin-top: 58px;
  font-size: 23px;
}
.app-body .welcome-panel h2 {
  max-width: 450px;
  font-size: 28px;
}
.app-body .welcome-panel p {
  font-size: 11px;
}
.app-body .quick-link {
  gap: 14px;
  padding: 17px 0;
}
.app-body .quick-link-icon {
  width: 41px;
  height: 41px;
  font-size: 17px;
}
.app-body .quick-link strong {
  font-size: 12px;
}
.app-body .quick-link small {
  font-size: 10px;
}

/* Readability and table pagination */
body {
  font-size: 15px;
}
.app-body .sidebar-label {
  font-size: 10px;
}
.app-body .sidebar-link {
  padding: 13px 12px;
  font-size: 13px;
}
.app-body .sidebar-profile strong {
  font-size: 12px;
}
.app-body .sidebar-profile small {
  font-size: 10px;
}
.app-body .sidebar-tip strong {
  font-size: 10px;
}
.app-body .sidebar-tip small {
  font-size: 9px;
}
.app-body .topbar-date {
  font-size: 13px;
}
.app-body .topbar-user {
  font-size: 12px;
}
.app-body .page-intro h1 {
  font-size: 38px;
}
.app-body .page-intro p {
  font-size: 14px;
}
.app-body .stat-trend {
  font-size: 11px;
}
.app-body .stat-number {
  font-size: 32px;
}
.app-body .stat-label {
  font-size: 12px;
}
.app-body .panel-heading h2 {
  font-size: 20px;
}
.app-body .quick-link strong {
  font-size: 12px;
}
.app-body .quick-link small {
  font-size: 11px;
}
.app-body .table-title {
  font-size: 19px;
}
.app-body .table-note {
  font-size: 12px;
}
.app-body .search-box .form-control {
  font-size: 13px;
}
.app-body .table thead th {
  font-size: 11px;
}
.app-body .table tbody td {
  font-size: 13px;
}
.app-body .person-meta small {
  font-size: 11px;
}
.app-body .status-pill {
  font-size: 11px;
}
.app-body .action-btn {
  width: 34px;
  height: 34px;
}
.app-body .date-picker-card label {
  font-size: 10px;
}
.app-body .date-picker-card input {
  font-size: 13px;
}
.app-body .attendance-select,
.app-body .attendance-note {
  font-size: 13px;
}
.app-body .save-row {
  font-size: 12px;
}
.app-body .modal .form-label {
  font-size: 12px;
}
.app-body .modal .form-control,
.app-body .modal .form-select,
.app-body .modal .btn {
  font-size: 13px;
}

.table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 24px;
  border-top: 1px solid #edf1ef;
  background: #fcfefd;
}
.table-pagination-info {
  color: #71857e;
  font-size: 12px;
  font-weight: 700;
}
.table-pagination-info span {
  color: #9aaaa4;
  font-weight: 500;
}
.table-pagination-buttons {
  display: flex;
  align-items: center;
  gap: 5px;
}
.table-page-btn {
  min-width: 35px;
  height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #607770;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  transition: 0.2s ease;
}
.table-page-btn:hover:not(:disabled) {
  color: var(--primary);
  border-color: #b6d9cc;
  background: var(--mint);
}
.table-page-btn.active {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}
.table-page-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
.table-page-ellipsis {
  min-width: 20px;
  color: #9aaaa4;
  text-align: center;
}
.sidebar-backdrop {
  display: none;
}

@media (max-width: 767px) {
  .app-body .topbar {
    height: 72px;
    padding-right: 14px;
    padding-left: 14px;
  }
  .app-body .content-wrap {
    padding: 25px 14px 42px;
  }
  .app-body .page-intro {
    margin-bottom: 24px;
  }
  .app-body .page-intro h1 {
    font-size: 32px;
    letter-spacing: -0.05em;
  }
  .app-body .page-intro p {
    max-width: 560px;
    font-size: 14px;
    line-height: 1.65;
  }
  .app-body .page-intro .btn {
    width: 100%;
    margin-top: 16px;
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 13px;
  }
  .app-body .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }
  .app-body .stat-card {
    min-height: 145px;
    padding: 16px;
    border-radius: 16px;
  }
  .app-body .stat-number {
    margin-top: 17px;
    font-size: 25px;
  }
  .app-body .stat-label {
    font-size: 10px;
    line-height: 1.35;
  }
  .app-body .stat-line {
    right: 16px;
    bottom: 16px;
    left: 16px;
  }
  .app-body .dashboard-grid {
    display: block;
    margin-top: 11px;
  }
  .app-body .dashboard-grid > .panel {
    margin-bottom: 11px;
  }
  .app-body .dashboard-notes-panel,
  .app-body .quick-panel {
    padding: 20px 17px 11px;
  }
  .app-body .panel-heading h2 {
    font-size: 18px;
  }
  .app-body .dashboard-note-content strong {
    font-size: 12px;
  }
  .app-body .dashboard-note-content small {
    font-size: 9px;
  }
  .app-body .dashboard-note-content span {
    font-size: 10px;
  }
  .app-body .welcome-panel {
    min-height: 285px;
    padding: 24px;
  }
  .app-body .welcome-icon {
    margin-top: 38px;
  }
  .app-body .welcome-panel h2 {
    font-size: 24px;
  }
  .app-body .panel {
    border-radius: 16px;
  }
  .app-body .table-toolbar {
    padding: 17px 16px;
  }
  .app-body .table-title {
    font-size: 20px;
  }
  .app-body .table-note {
    font-size: 12px;
  }
  .app-body .table-responsive {
    overflow: visible;
  }
  .app-body .table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 10px;
  }
  .app-body .table thead {
    display: none;
  }
  .app-body .table tbody {
    display: block;
    padding: 1px 12px 12px;
  }
  .app-body .table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 10px;
    margin-bottom: 10px;
    border: 1px solid var(--line);
    border-radius: 15px;
    overflow: hidden;
    background: #fff;
  }
  .app-body .table tbody tr:last-child {
    margin-bottom: 0;
  }
  .app-body .table tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 11px 12px;
    border: 0;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.45;
    text-align: right;
  }
  .app-body .table tbody td:not(:first-child)::before {
    content: attr(data-label);
    color: #8a9b95;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-align: left;
    text-transform: uppercase;
  }
  .app-body .table tbody td:first-child {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding: 14px 12px;
    border-bottom: 1px solid #edf1ef;
    text-align: left;
  }
  .app-body .table tbody td:first-child::before,
  .app-body .table tbody td.empty-state::before {
    display: none;
  }
  .app-body .table tbody td[data-label="Aksi"],
  .app-body .table tbody td[data-label="Simpan"] {
    grid-column: 1 / -1;
    justify-content: flex-end;
    border-top: 1px solid #edf1ef;
  }
  .app-body .table tbody td.empty-state {
    display: block;
    grid-column: 1 / -1;
    height: auto;
    padding: 34px 15px !important;
    text-align: center;
  }
  .app-body .table-person {
    min-width: 0;
    flex: 1;
  }
  .app-body .table-person .avatar {
    width: 38px;
    height: 38px;
    font-size: 11px;
  }
  .app-body .person-meta {
    min-width: 0;
  }
  .app-body .person-meta strong {
    white-space: normal;
    font-size: 14px;
  }
  .app-body .person-meta small {
    font-size: 11px;
  }
  .app-body .table tbody td > span {
    max-width: 68%;
    text-align: right;
  }
  .app-body .attendance-select {
    min-width: 0;
    width: auto;
    max-width: 150px;
    padding: 8px 30px 8px 10px;
    font-size: 13px;
  }
  .app-body .attendance-note {
    width: 100%;
    min-width: 0;
    max-width: 170px;
    font-size: 13px;
  }
  .app-body .save-row {
    padding: 9px 13px;
    font-size: 12px;
  }
  .table-pagination {
    flex-direction: column;
    align-items: stretch;
    gap: 11px;
    padding: 14px 16px;
  }
  .table-pagination-buttons {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .table-page-btn {
    min-width: 35px;
    height: 35px;
    padding: 0 10px;
    font-size: 12px;
  }
  .table-page-btn.page-number {
    width: 35px;
    padding: 0;
  }
  .sidebar-backdrop {
    position: fixed;
    z-index: 1040;
    inset: 0;
    display: block;
    visibility: hidden;
    background: rgba(9, 44, 39, 0.28);
    opacity: 0;
    transition: 0.25s ease;
    pointer-events: none;
  }
  .app-sidebar.open + .sidebar-backdrop {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
}

@media (min-width: 768px) {
  .app-body {
    font-size: 16px;
  }
  .app-body .sidebar-link {
    padding-top: 14px;
    padding-bottom: 14px;
    font-size: 14px;
  }
  .app-body .sidebar-profile strong {
    font-size: 13px;
  }
  .app-body .sidebar-profile small {
    font-size: 11px;
  }
  .app-body .topbar-date {
    font-size: 14px;
  }
  .app-body .topbar-user {
    font-size: 13px;
  }
  .app-body .page-intro h1 {
    font-size: 42px;
  }
  .app-body .page-intro p {
    font-size: 15px;
  }
  .app-body .stat-trend {
    font-size: 12px;
  }
  .app-body .stat-number {
    font-size: 36px;
  }
  .app-body .stat-label {
    font-size: 13px;
  }
  .app-body .welcome-panel h2 {
    font-size: 28px;
  }
  .app-body .welcome-panel p {
    font-size: 12px;
  }
  .app-body .panel-heading h2 {
    font-size: 22px;
  }
  .app-body .quick-link strong {
    font-size: 13px;
  }
  .app-body .quick-link small {
    font-size: 12px;
  }
  .app-body .table-title {
    font-size: 21px;
  }
  .app-body .table-note {
    font-size: 13px;
  }
  .app-body .search-box .form-control {
    font-size: 14px;
  }
  .app-body .table thead th {
    font-size: 12px;
  }
  .app-body .table tbody td {
    font-size: 15px;
  }
  .app-body .person-meta small {
    font-size: 12px;
  }
  .app-body .status-pill {
    font-size: 12px;
  }
  .app-body .action-btn {
    width: 36px;
    height: 36px;
  }
  .app-body .date-picker-card label {
    font-size: 11px;
  }
  .app-body .date-picker-card input {
    font-size: 14px;
  }
  .app-body .attendance-select,
  .app-body .attendance-note {
    font-size: 14px;
  }
  .app-body .save-row {
    padding: 8px 13px;
    font-size: 13px;
  }
  .app-body .modal .form-label {
    font-size: 13px;
  }
  .app-body .modal .form-control,
  .app-body .modal .form-select,
  .app-body .modal .btn {
    font-size: 14px;
  }
  .table-pagination-info,
  .table-page-btn {
    font-size: 13px;
  }
}

.santri-directory {
  max-width: 1440px;
  padding: 24px 24px 40px;
}
.santri-directory-intro {
  align-items: center;
  margin-bottom: 16px;
}
.santri-directory-intro h1 {
  margin: 4px 0;
  font-size: 26px;
}
.santri-directory-intro p {
  margin-bottom: 0;
  font-size: 12px;
}
.santri-directory-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.santri-directory-actions .btn {
  font-size: 11px;
}
.santri-directory-panel {
  overflow: hidden;
}
.santri-directory-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid #edf1ef;
}
.santri-directory-toolbar .search-box {
  flex: 1;
  max-width: 520px;
}
.santri-directory-toolbar .form-select {
  width: 150px;
  font-size: 11px;
}
.santri-result-count {
  color: #80918b;
  font-size: 10px;
  white-space: nowrap;
}
.santri-profile-list {
  padding: 0 18px;
}
.santri-profile-row {
  padding: 16px 2px;
  border-bottom: 1px solid #edf1ef;
}
.santri-profile-row:last-child {
  border-bottom: 0;
}
.santri-profile-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.santri-profile-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: var(--primary-deep);
  background: var(--mint);
  font-size: 13px;
  font-weight: 800;
}
.santri-profile-heading {
  flex: 1;
  min-width: 0;
}
.santri-profile-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.santri-profile-name h2 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  overflow-wrap: anywhere;
}
.santri-profile-heading > p {
  margin: 3px 0 0;
  color: #879790;
  font-size: 10px;
}
.santri-profile-heading > p span {
  padding: 0 3px;
  color: #b2beb8;
}
.santri-profile-actions {
  display: flex;
  gap: 5px;
  margin-left: auto;
}
.santri-profile-actions .btn {
  font-size: 10px;
}
.santri-profile-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px 16px;
  margin: 14px 0 0 54px;
}
.santri-profile-facts > div {
  min-width: 0;
}
.santri-profile-facts small {
  display: block;
  margin-bottom: 3px;
  color: #91a099;
  font-size: 9px;
}
.santri-profile-facts strong {
  display: block;
  color: #4a5c54;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.santri-profile-facts .santri-address {
  grid-column: 1 / -1;
}
.santri-loading,
.santri-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 42px 16px;
  color: #889891;
  font-size: 11px;
  text-align: center;
}
.santri-empty i {
  color: #aab8b1;
  font-size: 24px;
}
.santri-empty strong {
  color: var(--ink);
  font-size: 13px;
}
@media (max-width: 768px) {
  .santri-directory {
    padding: 20px 16px 32px;
  }
  .santri-directory-toolbar {
    flex-wrap: wrap;
  }
  .santri-directory-toolbar .search-box {
    flex-basis: 100%;
    max-width: none;
  }
  .santri-directory-toolbar .form-select {
    flex: 1;
  }
  .santri-profile-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-left: 54px;
  }
}
@media (max-width: 520px) {
  .santri-directory {
    padding: 16px 11px 28px;
  }
  .santri-directory-intro {
    align-items: flex-start;
  }
  .santri-directory-intro h1 {
    font-size: 22px;
  }
  .santri-directory-actions {
    max-width: 135px;
    justify-content: flex-end;
  }
  .santri-directory-actions .btn {
    padding: 7px 8px;
    font-size: 10px;
  }
  .santri-directory-actions .btn i {
    margin-right: 0 !important;
  }
  .santri-directory-toolbar {
    gap: 8px;
    padding: 12px;
  }
  .santri-profile-list {
    padding: 0 12px;
  }
  .santri-profile-main {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 9px;
  }
  .santri-profile-avatar {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border-radius: 11px;
  }
  .santri-profile-heading {
    flex-basis: calc(100% - 48px);
  }
  .santri-profile-actions {
    width: 100%;
    margin-left: 45px;
  }
  .santri-profile-facts {
    gap: 10px 12px;
    margin: 12px 0 0;
  }
}

/* Checklist developer workspace */
.checklist-page {
  max-width: 1160px;
  padding-top: 32px;
  padding-bottom: 40px;
}
.checklist-hero {
  align-items: center;
  margin-bottom: 20px;
}
.checklist-hero h1 {
  margin: 6px 0 4px;
  font-size: 30px !important;
}
.checklist-hero p {
  font-size: 13px !important;
}
.checklist-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.checklist-toolbar .btn {
  padding: 7px 10px;
  font-size: 11px;
}
.checklist-board {
  overflow: hidden;
}
.checklist-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px;
  border-bottom: 1px solid #edf1ef;
}
.checklist-board-head h2,
.checklist-page .panel-heading h2 {
  margin: 5px 0 0;
  font-size: 17px !important;
  letter-spacing: -0.04em;
}
.checklist-board-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}
.checklist-board-tools .btn {
  white-space: nowrap;
  font-size: 10px;
}
.delete-mode-controls,
.delete-checkbox,
.delete-single {
  display: none;
}
.delete-mode .delete-mode-controls,
.delete-mode .delete-checkbox,
.delete-mode .delete-single {
  display: inline-flex;
}
.checklist-filter {
  width: 160px;
  font-size: 11px;
}
.checklist-links-float {
  position: fixed;
  z-index: 1030;
  right: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border: 1px solid #b9ddd0;
  border-radius: 999px;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.25);
  font-size: 11px;
  font-weight: 700;
}
.checklist-links-float:hover {
  color: #fff;
  background: var(--primary-deep);
}
.checklist-notes-float {
  right: 24px;
  bottom: 72px;
  background: #2563a8;
  border-color: #b9d2ed;
}
.note-summary-row {
  cursor: pointer;
}
.note-detail {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdfb;
}
.note-detail-content {
  white-space: normal;
  overflow-wrap: anywhere;
  color: var(--ink-soft);
}
.checklist-overlay-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.checklist-overlay-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  background: #fbfdfb;
}
.checklist-overlay-link:hover {
  color: var(--primary);
  border-color: #b9ddd0;
  background: var(--mint);
}
.checklist-overlay-link > i {
  color: var(--primary);
}
.checklist-overlay-link span {
  min-width: 0;
}
.checklist-overlay-link strong,
.checklist-overlay-link small {
  display: block;
  overflow-wrap: anywhere;
}
.checklist-overlay-link small {
  margin-top: 3px;
  color: #91a39d;
  font-size: 10px;
}
.task-select {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  margin-top: 5px;
  accent-color: var(--primary);
}
.checklist-actions {
  align-items: center;
  margin-left: auto;
}
.checklist-list {
  padding: 0 20px;
}
.checklist-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #edf1ef;
}
.checklist-row:last-child {
  border-bottom: 0;
}
.check-toggle {
  width: 25px;
  height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid #cbd9d2;
  border-radius: 50%;
  color: #9cafaa;
  text-decoration: none;
  font-size: 11px;
}
.check-toggle.checked {
  border-color: var(--primary);
  color: #fff;
  background: var(--primary);
}
.checklist-content {
  min-width: 0;
  flex: 1;
}
.checklist-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.checklist-content strong {
  min-width: 0;
  font-size: 12px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.checklist-title-complete {
  text-decoration: line-through;
}
.checklist-description {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.checklist-content small,
.checklist-content p {
  display: block;
  margin-top: 3px;
  color: #8a9c96;
  font-size: 10px;
}
.checklist-content .checked-by {
  color: var(--primary);
  font-weight: 600;
}
.checklist-content p {
  margin-bottom: 3px;
  color: var(--ink-soft);
  line-height: 1.45;
}
.checklist-content a {
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}
.checklist-tag {
  padding: 3px 6px;
  border-radius: 50px;
  color: var(--primary);
  background: var(--mint);
  font-size: 9px;
  font-weight: 700;
}
.checklist-row.is-complete .checklist-content .checklist-description {
  color: #aab9b3;
  text-decoration: line-through;
}
.checklist-row.is-complete .checklist-tag,
.checklist-row.is-complete .checklist-content a {
  opacity: 0.55;
}
.checklist-actions {
  display: flex;
  gap: 4px;
}
.checklist-actions .btn {
  width: 27px;
  height: 27px;
  padding: 0;
  font-size: 11px;
}
.compact-panel {
  height: 100%;
  padding: 18px 20px;
}
.reference-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-top: 1px solid #edf1ef;
  font-size: 11px;
}
.reference-row > i {
  color: var(--primary);
}
.reference-row a {
  color: var(--ink);
  text-decoration: none;
}
.reference-row a:hover {
  color: var(--primary);
}
.reference-row span,
.reference-row small {
  margin-left: auto;
  color: #91a39d;
  font-size: 9px;
}
.reference-row small {
  display: block;
  margin: 3px 0 0;
}
.empty-state {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.empty-state i {
  color: #b7cec2;
  font-size: 24px;
}
.empty-state strong {
  color: var(--ink);
  font-size: 12px;
}
.empty-state span {
  color: #91a39d;
  font-size: 10px;
}
.batch-preview {
  max-height: 360px;
  overflow-y: auto;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdfb;
}
.batch-preview-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1px solid #edf1ef;
  cursor: pointer;
}
.batch-preview-row:last-child {
  border-bottom: 0;
}
.batch-preview-row input {
  accent-color: var(--primary);
}
.batch-preview-title {
  min-width: 0;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.4;
}
.batch-preview-row small {
  color: #a0afa9;
  font-size: 9px;
  text-align: right;
}
.batch-preview-row.detected {
  background: #f4fbf6;
}
.batch-preview-row.detected small {
  color: var(--primary);
}

@media (max-width: 767px) {
  .landing-nav-inner {
    min-height: 72px;
    padding-right: 24px;
    padding-left: 24px;
  }
  .landing-nav .brand-mark span {
    max-width: 135px;
  }
  .landing-nav .btn {
    padding-right: 13px !important;
    padding-left: 13px !important;
    font-size: 10px;
  }
  .hero-section {
    display: block;
    min-height: 0;
    padding: 45px 24px 65px;
  }
  .hero-copy h1 {
    font-size: clamp(40px, 13vw, 58px);
  }
  .hero-visual {
    min-height: 400px;
    margin-top: 22px;
  }
  .trust-strip {
    display: block;
    padding: 42px 24px;
  }
  .trust-items {
    gap: 24px;
    margin-top: 25px;
  }
  .ustadz-section {
    display: block;
    padding: 65px 24px;
  }
  .ustadz-photo-wrap {
    width: min(260px, 100%);
    margin: 0 auto 38px;
  }
  .ustadz-prolog h2 {
    font-size: 28px;
  }
  .ustadz-prolog p {
    font-size: 18px;
  }
  .feature-section {
    padding: 70px 24px 65px;
  }
  .section-heading {
    display: block;
  }
  .section-heading > p {
    margin-top: 18px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .program-section {
    padding: 0 24px 55px;
  }
  .program-panel {
    display: block;
    padding: 34px 25px;
  }
  .program-panel .btn {
    margin-top: 24px;
  }
  .landing-footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
    padding: 34px 24px 18px;
  }
  .landing-footer-map-wrap {
    grid-column: 1 / -1;
  }
  .landing-map {
    height: 220px;
  }
  .landing-footer-note {
    flex-direction: column;
    gap: 7px;
  }
  .landing-footer-note span:last-child {
    text-align: left;
  }
}

/* Landing page polish: framed hero and a true horizontal photo track. */
.hero-profile-media {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.hero-profile-media .madrasah-slider {
  width: 100%;
}
.hero-visual {
  width: 100%;
  min-height: 350px;
  isolation: isolate;
}
.hero-visual .main-hero-card {
  width: min(390px, 84%);
}
.hero-visual .hero-orbit {
  z-index: -1;
  pointer-events: none;
}
.hero-visual .orbit-one {
  width: 108%;
  height: 78%;
}
.hero-visual .orbit-two {
  width: 82%;
  height: 112%;
}
.hero-visual .float-stat-one {
  left: -4px;
  bottom: 53px;
}
.hero-visual .float-stat-two {
  right: -18px;
  top: 66px;
}
.madrasah-slides {
  position: relative;
}
.madrasah-slides-track {
  height: 100%;
  display: flex;
  touch-action: pan-y;
  cursor: grab;
  transition: transform 650ms cubic-bezier(0.22, 0.68, 0, 1);
  will-change: transform;
}
.madrasah-slides-track:active {
  cursor: grabbing;
}
.madrasah-slide,
.madrasah-slide[hidden] {
  width: 100%;
  height: 100%;
  position: relative;
  inset: auto;
  display: block;
  flex: 0 0 100%;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition: none;
}
.madrasah-slide:after {
  z-index: 0;
}
.madrasah-slide img {
  position: absolute;
  inset: 0;
}
.landing-footer {
  color: #52685f;
  background: #f4f6f0;
}
.landing-footer-main {
  gap: 42px 34px;
  padding-top: 58px;
  padding-bottom: 27px;
  font-size: 15px;
}
.landing-footer strong {
  font-size: 16px;
}
.landing-footer-tagline {
  font-size: 11px;
  letter-spacing: 0.06em;
}
.landing-footer p {
  font-size: 14px;
  line-height: 1.75;
}
.landing-footer-nav {
  gap: 12px;
}
.landing-footer-nav > strong,
.landing-footer-visit > strong,
.landing-footer-map-label {
  font-size: 15px;
}
.landing-footer-nav a {
  font-size: 14px;
}
.landing-directions {
  min-height: 44px;
  font-size: 13px;
}
.landing-map {
  height: 220px;
}
.landing-footer-note {
  margin-top: 12px;
  padding-top: 20px;
  font-size: 12px;
}
@media (prefers-reduced-motion: reduce) {
  .madrasah-slides-track {
    transition-duration: 0ms;
  }
}
@media (max-width: 767px) {
  .hero-profile-media {
    gap: 20px;
  }
  .hero-visual {
    min-height: 350px;
    padding: 6px 5px 28px;
  }
  .hero-visual .hero-orbit {
    display: none;
  }
  .hero-visual .main-hero-card {
    width: min(390px, 88%);
  }
  .hero-visual .float-stat-one {
    left: -4px;
    bottom: 15px;
  }
  .hero-visual .float-stat-two {
    right: -4px;
    top: 12px;
  }
}

/* Profile section pairs the madrasah story card with its photo slider. */
.about-section .about-highlights {
  grid-column: 1 / -1;
}
.about-story .hero-visual {
  width: 100%;
  min-height: 350px;
  margin-top: 26px;
}
.about-story .main-hero-card {
  width: min(390px, 88%);
}
.about-story .float-stat-one {
  left: -6px;
  bottom: 24px;
}
.about-story .float-stat-two {
  right: -8px;
  top: 50px;
}
.about-section > .madrasah-slider {
  width: 100%;
}
@media (max-width: 767px) {
  .about-section {
    grid-template-columns: minmax(0, 1fr);
  }
  .about-section .about-highlights {
    grid-column: auto;
  }
  .about-story .hero-visual {
    min-height: 350px;
  }
}

@media (min-width: 1440px) {
  .landing-nav-inner {
    min-height: 102px;
  }
  .landing-nav-links {
    gap: 42px;
  }
  .landing-nav-links a {
    font-size: 14px;
  }
  .landing-logo {
    width: 50px;
    height: 50px;
  }
  .brand-mark strong {
    font-size: 19px;
  }
  .brand-mark small {
    font-size: 10px;
  }
  .hero-section {
    min-height: 720px;
    gap: 105px;
    padding-top: 78px;
    padding-bottom: 110px;
  }
  .eyebrow {
    font-size: 12px;
  }
  .hero-copy h1 {
    max-width: 780px;
    font-size: clamp(58px, 5vw, 86px);
  }
  .hero-lead {
    max-width: 620px;
    font-size: 18px;
  }
  .hero-actions {
    gap: 20px;
    margin-top: 36px;
  }
  .hero-actions .btn-link {
    font-size: 15px;
  }
  .hero-trust {
    margin-top: 44px;
    font-size: 13px;
  }
  .hero-visual {
    min-height: 540px;
  }
  .main-hero-card {
    width: min(450px, 84%);
    min-height: 370px;
    padding: 36px;
  }
  .arabic-greeting {
    margin-top: 50px;
    font-size: 50px;
  }
  .arabic-meaning {
    max-width: 290px;
    font-size: 19px;
  }
  .hero-card-bottom {
    font-size: 11px;
  }
  .float-stat {
    min-width: 195px;
    padding: 16px 17px;
  }
  .float-stat strong {
    font-size: 12px;
  }
  .float-stat small {
    font-size: 11px;
  }
  .trust-strip {
    padding: 76px 70px;
  }
  .trust-copy h2,
  .section-heading h2 {
    font-size: 34px;
  }
  .trust-items span {
    font-size: 13px;
  }
  .feature-section {
    padding-top: 145px;
    padding-bottom: 125px;
  }
  .section-heading > p {
    max-width: 390px;
    font-size: 14px;
  }
  .feature-card {
    min-height: 330px;
    padding: 36px;
  }
  .feature-card h3 {
    font-size: 19px;
  }
  .feature-card p {
    max-width: 340px;
    font-size: 13px;
  }
  .feature-card a {
    font-size: 12px;
  }
  .ustadz-section {
    gap: 105px;
    padding-top: 115px;
    padding-bottom: 115px;
  }
  .ustadz-prolog h2 {
    font-size: 42px;
  }
  .ustadz-prolog p {
    font-size: 24px;
  }
  .ustadz-prolog strong {
    font-size: 13px;
  }
  .program-panel h2 {
    font-size: 38px;
  }
  .landing-footer {
    font-size: 12px;
  }
  .landing-footer strong {
    font-size: 13px;
  }
  .landing-footer small,
  .landing-footer-links a {
    font-size: 11px;
  }
  .landing-map {
    height: 300px;
  }
}

@media (min-width: 1200px) {
  .checklist-page {
    max-width: 1360px;
    padding: 30px 30px 42px;
  }
  .checklist-hero {
    margin-bottom: 18px;
  }
  .checklist-board-head {
    padding: 16px 20px;
  }
  .checklist-list {
    padding: 0 20px;
  }
  .checklist-row {
    padding: 11px 0;
  }
  .checklist-page > .row {
    --bs-gutter-x: 12px;
    --bs-gutter-y: 12px;
  }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .checklist-page {
    max-width: 100%;
    padding: 28px 24px 38px;
  }
  .checklist-hero {
    margin-bottom: 18px;
  }
  .checklist-board-head {
    padding: 16px 18px;
  }
  .checklist-list {
    padding: 0 18px;
  }
  .checklist-row {
    padding: 11px 0;
  }
  .checklist-page > .row {
    --bs-gutter-x: 12px;
    --bs-gutter-y: 12px;
  }
}
@media (max-width: 767px) {
  .checklist-page {
    width: 100%;
    max-width: none;
    padding: 22px 14px 32px;
  }
  .checklist-hero {
    margin-bottom: 16px;
  }
  .checklist-hero .checklist-toolbar {
    width: 100%;
    margin-top: 14px;
    gap: 5px;
  }
  .checklist-toolbar .btn {
    min-height: 36px;
    flex: 1;
    padding: 7px 8px;
  }
  .checklist-board-head {
    display: block;
    padding: 16px 15px;
  }
  .checklist-board-tools {
    flex-wrap: wrap;
    margin-top: 12px;
  }
  .checklist-filter {
    width: 100%;
    margin-top: 0;
  }
  .checklist-board-tools .btn {
    flex: 1;
  }
  .checklist-links-float {
    right: 14px;
    bottom: 14px;
    padding: 10px 12px;
  }
  .checklist-links-float span {
    display: none;
  }
  .checklist-list {
    padding: 0 15px;
  }
  .checklist-row {
    gap: 8px;
    padding: 11px 0;
  }
  .checklist-content strong {
    font-size: 12px;
  }
  .checklist-actions {
    flex-direction: column;
    gap: 3px;
  }
  .compact-panel {
    padding: 16px 15px;
  }
  .checklist-page > .row {
    --bs-gutter-x: 10px;
    --bs-gutter-y: 10px;
  }
}
@media (max-width: 420px) {
  .checklist-page {
    padding-right: 11px;
    padding-left: 11px;
  }
  .checklist-toolbar .btn {
    font-size: 10px;
  }
  .checklist-toolbar .btn i {
    margin-right: 0 !important;
  }
  .checklist-toolbar .btn:nth-child(2),
  .checklist-toolbar .btn:nth-child(3) {
    font-size: 0;
  }
  .checklist-toolbar .btn:nth-child(2) i,
  .checklist-toolbar .btn:nth-child(3) i {
    font-size: 13px;
  }
  .checklist-board-head,
  .checklist-list {
    padding-right: 12px;
    padding-left: 12px;
  }
}

/* Frontend CMS editor */
.cms-page {
  max-width: 1500px;
  padding-top: 24px;
  padding-bottom: 36px;
}
.cms-intro {
  align-items: center;
  margin-bottom: 20px;
}
.cms-intro h1 {
  margin: 5px 0;
  font-size: 26px;
}
.cms-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.cms-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.8fr);
  align-items: start;
  gap: 16px;
}
.cms-editor,
.cms-preview {
  min-width: 0;
  overflow: hidden;
}
.cms-editor-heading,
.cms-preview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
}
.cms-editor-heading h2,
.cms-preview-heading h2 {
  margin: 4px 0 0;
  font-size: 17px;
}
.cms-live-state {
  color: #73847e;
  font-size: 10px;
  white-space: nowrap;
}
.cms-live-state i {
  color: #b7791f;
  font-size: 7px;
}
.cms-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 0 16px 12px;
  border-bottom: 1px solid #edf1ef;
  scrollbar-width: thin;
}
.cms-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #71827c;
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}
.cms-tab:hover {
  color: var(--primary);
  background: #f3f9f6;
}
.cms-tab:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.cms-tab.active {
  border-color: #c9e3d9;
  color: var(--primary-deep);
  background: #eaf6f1;
}
.cms-tab-panel {
  padding: 20px;
}
.cms-tab-panel[hidden] {
  display: none;
}
.cms-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.cms-field {
  min-width: 0;
}
.cms-field-wide {
  grid-column: 1 / -1;
}
.cms-field .form-label {
  margin-bottom: 6px;
  color: #45564f;
  font-size: 11px;
  font-weight: 700;
}
.cms-field .form-control {
  border-color: #dfe8e3;
  border-radius: 8px;
  font-size: 12px;
}
.cms-field textarea.form-control {
  min-height: 78px;
  resize: vertical;
}
.cms-field .form-control:focus {
  border-color: #69a996;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}
.cms-savebar {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 20px;
  border-top: 1px solid #edf1ef;
  background: rgba(255, 255, 255, 0.96);
}
.cms-savebar > span {
  color: #81918b;
  font-size: 10px;
}
.cms-savebar .btn {
  white-space: nowrap;
  font-size: 11px;
}
.cms-preview {
  position: sticky;
  top: 82px;
}
.cms-preview-heading {
  padding-bottom: 14px;
}
.cms-preview-dot {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  color: var(--primary);
  background: #eaf6f1;
}
.cms-preview-canvas {
  display: grid;
  gap: 10px;
  margin: 0 16px;
  padding: 15px;
  border: 1px solid #e7eee9;
  border-radius: 12px;
  background: linear-gradient(180deg, #f7fbf8 0%, #fff 100%);
}
.cms-preview-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cms-preview-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: white;
  background: var(--primary);
}
.cms-preview-brand strong,
.cms-preview-brand small {
  display: block;
  max-width: 225px;
  overflow-wrap: anywhere;
}
.cms-preview-brand strong {
  color: #234238;
  font-size: 11px;
}
.cms-preview-brand small {
  color: #82948c;
  font-size: 9px;
}
.cms-preview-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e8efeb;
  color: #6d8178;
  font-size: 8px;
}
.cms-preview-hero {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-radius: 9px;
  background: #eaf5ef;
}
.cms-preview-kicker,
.cms-preview-block small,
.cms-preview-program small {
  color: var(--primary);
  font-size: 8px;
  font-weight: 700;
}
.cms-preview-hero > strong {
  max-width: 36ch;
  color: #203c32;
  font-size: 15px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.cms-preview-hero p {
  margin: 0;
  color: #6d8178;
  font-size: 9px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.cms-preview-button {
  justify-self: start;
  margin-top: 2px;
  padding: 5px 8px;
  border-radius: 999px;
  color: white;
  background: var(--primary);
  font-size: 8px;
}
.cms-preview-secondary,
.cms-preview-quote {
  color: #61756c;
  font-size: 8px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.cms-preview-quote {
  padding-top: 5px;
  border-top: 1px solid rgba(35, 66, 56, 0.12);
}
.cms-preview-block {
  display: grid;
  gap: 4px;
  padding: 4px 2px;
}
.cms-preview-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-top: 4px;
}
.cms-preview-metrics span {
  padding: 5px;
  border-radius: 5px;
  color: #52685e;
  background: #edf4ef;
  font-size: 7px;
  overflow-wrap: anywhere;
}
.cms-preview-prolog p {
  margin: 0;
  color: #72857b;
  font-size: 8px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.cms-preview-service {
  display: grid;
  gap: 2px;
  padding: 6px 0;
  border-top: 1px solid #e8efeb;
}
.cms-preview-service b {
  color: #324c40;
  font-size: 8px;
}
.cms-preview-service span {
  color: #82948c;
  font-size: 7px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.cms-preview-service small {
  color: var(--primary);
  font-size: 7px;
}
.cms-preview-footer > span,
.cms-preview-footer small {
  overflow-wrap: anywhere;
}
.cms-preview-block > strong {
  color: #283f35;
  font-size: 10px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.cms-preview-prolog {
  padding-top: 8px;
  border-top: 1px solid #e8efeb;
}
.cms-preview-program {
  display: grid;
  gap: 4px;
  padding: 11px;
  border-radius: 9px;
  color: white;
  background: #145b50;
}
.cms-preview-program small,
.cms-preview-program strong {
  color: white;
  overflow-wrap: anywhere;
}
.cms-preview-program strong {
  font-size: 11px;
  line-height: 1.3;
}
.cms-preview-footer {
  display: grid;
  gap: 3px;
  padding-top: 8px;
  border-top: 1px solid #e8efeb;
}
.cms-preview-footer strong {
  color: #324c40;
  font-size: 9px;
}
.cms-preview-footer span {
  color: #82948c;
  font-size: 8px;
}
.cms-preview-note {
  margin: 10px 17px 14px;
  color: #84948e;
  font-size: 9px;
}
@media (max-width: 1050px) {
  .cms-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .cms-preview {
    position: static;
  }
  .cms-preview-canvas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cms-preview-brand,
  .cms-preview-nav,
  .cms-preview-hero,
  .cms-preview-program,
  .cms-preview-footer {
    grid-column: 1 / -1;
  }
}
@media (max-width: 600px) {
  .cms-page {
    padding: 18px 12px 28px;
  }
  .cms-intro {
    align-items: flex-start;
    gap: 10px;
  }
  .cms-intro h1 {
    font-size: 22px;
  }
  .cms-intro .btn {
    flex: 0 0 auto;
    padding: 7px 9px;
    font-size: 10px;
  }
  .cms-tabs {
    padding-right: 12px;
    padding-left: 12px;
  }
  .cms-tab {
    min-height: 40px;
    padding: 8px 10px;
  }
  .cms-tab-panel {
    padding: 15px 13px;
  }
  .cms-fields-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
  }
  .cms-field-wide {
    grid-column: auto;
  }
  .cms-editor-heading,
  .cms-preview-heading {
    padding-right: 14px;
    padding-left: 14px;
  }
  .cms-savebar {
    align-items: flex-start;
    padding: 11px 13px;
  }
  .cms-savebar > span {
    max-width: 54%;
    line-height: 1.4;
  }
  .cms-preview-canvas {
    grid-template-columns: 1fr;
    margin: 0 12px;
    padding: 12px;
  }
  .cms-preview-brand,
  .cms-preview-nav,
  .cms-preview-hero,
  .cms-preview-program,
  .cms-preview-footer {
    grid-column: auto;
  }
}

.checklist-title .checklist-tag {
  padding: 3px 6px;
  border-radius: 50px;
  color: var(--group-color, var(--primary));
  background: var(--group-bg, var(--mint));
  font-size: 8px !important;
  line-height: 1.3;
  font-weight: 700;
}
.checklist-group-color-0 {
  --group-color: #b91c1c;
  --group-bg: #fecaca;
}
.checklist-group-color-1 {
  --group-color: #1d4ed8;
  --group-bg: #bfdbfe;
}
.checklist-group-color-2 {
  --group-color: #15803d;
  --group-bg: #bbf7d0;
}
.checklist-group-color-3 {
  --group-color: #a16207;
  --group-bg: #fef08a;
}
.checklist-group-color-4 {
  --group-color: #7e22ce;
  --group-bg: #e9d5ff;
}
.checklist-group-color-5 {
  --group-color: #475569;
  --group-bg: #e2e8f0;
}
.checklist-group-color-6 {
  --group-color: #c2410c;
  --group-bg: #fed7aa;
}
.checklist-group-color-7 {
  --group-color: #0e7490;
  --group-bg: #a5f3fc;
}
.checklist-row[class*="checklist-group-color-"] {
  border-left: 6px solid var(--group-bg);
  padding-left: 9px;
}
.group-summary-body .reference-row[class*="checklist-group-color-"] {
  background: var(--group-bg);
  border-color: color-mix(in srgb, var(--group-color) 25%, white);
}

/* Madrasah profile landing */
.hero-section {
  position: relative;
  min-height: 0;
  grid-template-columns: minmax(310px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(36px, 5vw, 76px);
  padding-top: clamp(42px, 6vw, 86px);
  padding-bottom: clamp(58px, 7vw, 98px);
}
.hero-section:before {
  content: "";
  width: 410px;
  height: 410px;
  position: absolute;
  z-index: 0;
  top: 3%;
  left: -16%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(199, 151, 62, 0.12),
    rgba(199, 151, 62, 0) 70%
  );
  pointer-events: none;
}
.hero-copy h1 {
  max-width: 560px;
  min-height: 0;
  margin: 20px 0 17px;
  font-size: clamp(42px, 4.5vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.065em;
}
.hero-trust-mark {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--primary);
  background: #e5f1e9;
  font-size: 13px;
}
.hero-copy,
.madrasah-slider {
  position: relative;
  z-index: 1;
}
.madrasah-slider {
  min-width: 0;
  position: relative;
  overflow: hidden;
  border: 8px solid #fff;
  border-radius: 24px;
  background: #e6e6db;
  box-shadow: 0 24px 55px rgba(21, 59, 54, 0.18);
}
.madrasah-slider-label {
  position: absolute;
  z-index: 3;
  top: 20px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 30px;
  color: #fff;
  background: rgba(16, 54, 48, 0.63);
  box-shadow: 0 6px 20px rgba(12, 32, 28, 0.16);
  backdrop-filter: blur(8px);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.madrasah-slider-label i {
  color: #f0cb7d;
}
.madrasah-slides {
  position: relative;
  aspect-ratio: 1.48;
  overflow: hidden;
  background: #d9ded5;
}
.madrasah-slide {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  display: block;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(100%);
  transition:
    opacity 580ms ease,
    transform 650ms cubic-bezier(0.22, 0.68, 0, 1),
    visibility 580ms;
  will-change: transform, opacity;
}
.madrasah-slide[hidden] {
  display: none;
}
.madrasah-slide.active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
.madrasah-slide.is-exiting {
  z-index: 2;
  opacity: 0;
  visibility: visible;
}
.madrasah-slider.is-next .madrasah-slide.is-exiting {
  transform: translateX(-100%);
}
.madrasah-slider.is-prev .madrasah-slide.is-exiting {
  transform: translateX(100%);
}
.madrasah-slider.is-next .madrasah-slide.is-entering {
  transform: translateX(100%);
}
.madrasah-slider.is-prev .madrasah-slide.is-entering {
  transform: translateX(-100%);
}
.madrasah-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1);
}
.madrasah-slide.active img {
  animation: madrasah-photo-zoom 6.5s ease-out both;
}
@keyframes madrasah-photo-zoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.12);
  }
}
.madrasah-slider.is-paused .madrasah-slide.active img {
  animation-play-state: paused;
}
.madrasah-slide:after {
  content: "";
  position: absolute;
  inset: 38% 0 0;
  background: linear-gradient(transparent, rgba(12, 32, 28, 0.76));
  pointer-events: none;
}
.madrasah-slide figcaption {
  position: absolute;
  z-index: 1;
  right: 25px;
  bottom: 24px;
  left: 25px;
  color: #fff;
}
.madrasah-slide figcaption span,
.madrasah-slide figcaption strong {
  display: block;
}
.madrasah-slide figcaption span {
  margin-bottom: 5px;
  color: #d6e8dc;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.madrasah-slide figcaption strong {
  font-size: clamp(16px, 2vw, 23px);
  letter-spacing: -0.035em;
}
.madrasah-slider-controls {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 12px 3px;
}
.madrasah-slider-dots,
.madrasah-slider-arrows {
  display: flex;
  align-items: center;
  gap: 7px;
}
.madrasah-slider-dots button {
  width: 28px;
  height: 28px;
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
}
.madrasah-slider-dots button:after {
  content: "";
  width: 7px;
  height: 7px;
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  background: #b4c3ba;
  transform: translate(-50%, -50%);
}
.madrasah-slider-dots button.active:after {
  width: 19px;
  border-radius: 8px;
  background: var(--primary);
}
.madrasah-slider-arrows button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #dce7df;
  border-radius: 50%;
  color: var(--ink);
  background: #fff;
}
.madrasah-slider-arrows button:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.madrasah-slider-count {
  color: #8a9b94;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.madrasah-slider-count span {
  color: var(--primary-deep);
}
.landing-body [id] {
  scroll-margin-top: 105px;
}
.cms-preview-hero {
  align-content: start;
}
.cms-preview-photo {
  position: relative;
  overflow: hidden;
  border-radius: 9px;
  aspect-ratio: 1.7;
  background: #e6e6db;
}
.cms-preview-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.cms-preview-photo span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 14px 9px 7px;
  color: #fff;
  background: linear-gradient(transparent, rgba(12, 32, 28, 0.78));
  font-size: 8px;
  font-weight: 700;
}
@media (max-width: 991px) {
  .hero-section {
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
    gap: 30px;
  }
  .hero-copy h1 {
    font-size: clamp(38px, 5.2vw, 52px);
  }
  .hero-trust {
    align-items: flex-start;
  }
}
@media (max-width: 767px) {
  .hero-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 38px 20px 54px;
  }
  .hero-copy h1 {
    max-width: 620px;
    margin-top: 16px;
    font-size: clamp(39px, 11vw, 58px);
  }
  .hero-copy .hero-lead {
    max-width: 560px;
    font-size: 14px;
    line-height: 1.75;
  }
  .hero-actions {
    flex-wrap: wrap;
    gap: 7px 12px;
    margin-top: 22px;
  }
  .hero-actions .btn-primary {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
  }
  .hero-trust {
    margin-top: 22px;
    font-size: 10px;
    line-height: 1.5;
  }
  .madrasah-slider {
    border-width: 5px;
    border-radius: 17px;
  }
  .madrasah-slider-label {
    top: 13px;
    left: 13px;
    padding: 7px 10px;
    font-size: 9px;
  }
  .madrasah-slides {
    aspect-ratio: 1.18;
  }
  .madrasah-slide figcaption {
    right: 15px;
    bottom: 15px;
    left: 15px;
  }
  .madrasah-slide figcaption span {
    font-size: 8px;
  }
  .madrasah-slide figcaption strong {
    font-size: 16px;
  }
  .madrasah-slider-controls {
    min-height: 50px;
    padding-right: 6px;
    padding-left: 6px;
  }
  .madrasah-slider-dots,
  .madrasah-slider-arrows {
    gap: 3px;
  }
  .madrasah-slider-arrows button {
    width: 38px;
    height: 38px;
  }
  .trust-strip {
    padding-right: 20px;
    padding-left: 20px;
  }
}
.madrasah-slider-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.madrasah-slider-autoplay {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid #dce7df;
  border-radius: 20px;
  color: var(--ink-soft);
  background: #fff;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
}
.madrasah-slider-autoplay:hover {
  border-color: var(--primary);
  color: var(--primary);
}
@media (prefers-reduced-motion: reduce) {
  .landing-body {
    scroll-behavior: auto;
  }
  .madrasah-slide {
    transition: none;
    transform: none;
  }
  .madrasah-slide.active img {
    animation: none;
    transform: none;
  }
}

/* Visitor-facing madrasah profile sections */
.about-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  padding-top: clamp(54px, 7vw, 96px);
  padding-bottom: clamp(54px, 7vw, 96px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about-story h2 {
  max-width: 470px;
  margin: 13px 0 0;
  font-size: clamp(28px, 3.1vw, 40px);
  letter-spacing: -0.055em;
  line-height: 1.2;
}
.about-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.about-highlights article {
  min-height: 164px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.about-highlight-icon {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 11px;
  color: var(--primary);
  background: #e9f2eb;
  font-size: 16px;
}
.about-highlights p {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}
.learning-section {
  padding: clamp(72px, 9vw, 116px) 12px clamp(72px, 8vw, 102px);
}
.learning-section .section-heading {
  margin-bottom: 34px;
}
.learning-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.learning-card {
  min-height: 278px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: #fff;
}
.learning-card-primary {
  background: var(--mint);
  border-color: transparent;
}
.learning-card-accent {
  color: #eaf6ee;
  background: var(--primary-deep);
  border-color: transparent;
}
.learning-card-number {
  position: absolute;
  top: 24px;
  right: 25px;
  color: #92afa3;
  font-size: 10px;
  font-weight: 800;
}
.learning-card-accent .learning-card-number {
  color: #8eb6a5;
}
.learning-card-icon {
  margin: 0 0 40px;
  color: var(--primary);
  font-size: 25px;
}
.learning-card-accent .learning-card-icon {
  color: #b4d8c4;
}
.learning-card h3 {
  margin: 0 0 9px;
  font-size: 17px;
  letter-spacing: -0.035em;
}
.learning-card p {
  max-width: 330px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}
.learning-card-accent p {
  color: #ccded5;
}
.learning-card a {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin-top: auto;
  padding-top: 22px;
  color: var(--primary-deep);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}
.learning-card a:hover {
  color: var(--primary);
}
@media (max-width: 991px) {
  .about-section {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .about-story h2 {
    max-width: 690px;
  }
}
@media (max-width: 767px) {
  .landing-body,
  .landing-body main {
    width: 100%;
    max-width: 100%;
  }
  .landing-body .container-xl {
    max-width: 100%;
  }
  .landing-nav-inner {
    box-sizing: border-box;
  }
  .hero-section {
    grid-template-columns: minmax(0, 1fr);
  }
  .landing-nav {
    width: 100%;
    overflow: hidden;
  }
  .landing-nav-inner {
    width: 100%;
    gap: 8px;
    padding-right: 12px;
    padding-left: 12px;
  }
  .landing-nav .brand-mark {
    min-width: 0;
    flex: 1 1 auto;
    gap: 7px;
  }
  .landing-nav .brand-mark img {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
  }
  .landing-nav .brand-mark span {
    min-width: 0;
    max-width: 130px;
    overflow: hidden;
  }
  .landing-nav .brand-mark strong {
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .landing-nav .brand-mark small {
    font-size: 7px;
    letter-spacing: 0.06em;
    white-space: nowrap;
  }
  .landing-nav .btn {
    min-height: 38px;
    flex: 0 0 auto;
    padding-right: 10px !important;
    padding-left: 10px !important;
    font-size: 9px;
    white-space: nowrap;
  }
  .hero-section {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .hero-copy {
    width: 100%;
    min-width: 0;
    text-align: left;
  }
  .hero-copy h1 {
    width: 100%;
    max-width: 100%;
    margin: 16px 0;
    font-size: clamp(36px, 10.5vw, 48px);
    overflow-wrap: break-word;
  }
  .hero-copy .hero-lead {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
  }
  .hero-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .hero-actions .btn-link {
    min-height: 40px;
    flex: 1 0 100%;
    margin: 0;
    padding-left: 0;
    text-align: left;
  }
  .madrasah-slider {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .about-section {
    padding: 58px 20px;
  }
  .about-highlights {
    grid-template-columns: 1fr;
  }
  .about-highlights article {
    min-height: 0;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 15px;
  }
  .about-highlights p {
    flex: 1;
  }
  .learning-section {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 70px 20px 68px;
  }
  .learning-section .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .learning-section .section-heading > *,
  .learning-section .section-heading h2,
  .learning-section .section-heading > p {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .learning-grid {
    grid-template-columns: 1fr;
  }
  .learning-card {
    min-height: 240px;
  }
}

/* Landing page visual rhythm */
.landing-body {
  color: var(--ink);
  background: #fbfaf6;
}
.landing-nav {
  background: rgba(251, 250, 246, 0.94);
  box-shadow: 0 4px 18px rgba(21, 59, 54, 0.045);
}
.landing-nav-inner {
  min-height: 76px;
}
.landing-nav-links {
  gap: clamp(18px, 2.5vw, 34px);
  margin-left: 24px;
}
.landing-nav .btn {
  box-shadow: 0 7px 18px rgba(15, 118, 110, 0.16);
}
.hero-section {
  min-height: 0;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(34px, 5.5vw, 76px);
  padding-top: clamp(66px, 8vw, 104px);
  padding-bottom: clamp(76px, 9vw, 116px);
}
.hero-copy h1 {
  max-width: 590px;
  font-size: clamp(44px, 5vw, 68px);
  line-height: 1.04;
}
.hero-lead {
  max-width: 500px;
  font-size: 15px;
  line-height: 1.8;
}
.hero-actions {
  gap: 12px;
  margin-top: 26px;
}
.hero-actions .btn-primary {
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.17);
}
.hero-trust {
  margin-top: 28px;
}
.madrasah-slider {
  border-radius: 22px;
  box-shadow: 0 22px 48px rgba(21, 59, 54, 0.14);
}
.about-section {
  gap: clamp(34px, 5vw, 68px);
  padding-top: clamp(58px, 7vw, 84px);
  padding-bottom: clamp(58px, 7vw, 84px);
  border-top: 0;
  border-bottom-color: #e5eae3;
}
.about-highlights {
  gap: 14px;
}
.about-highlights article {
  min-height: 150px;
  padding: 20px;
  border-color: #e7ebe5;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(21, 59, 54, 0.035);
}
.learning-section {
  padding-top: clamp(76px, 9vw, 108px);
  padding-bottom: clamp(76px, 9vw, 108px);
}
.learning-section .section-heading {
  align-items: flex-end;
  gap: 42px;
  margin-bottom: 30px;
}
.learning-section .section-heading h2 {
  max-width: 600px;
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.16;
}
.learning-section .section-heading > p {
  max-width: 360px;
  font-size: 13px;
}
.learning-grid {
  gap: 18px;
}
.learning-card {
  min-height: 265px;
  padding: 28px;
  border-color: #e7ebe5;
  border-radius: 20px;
  box-shadow: 0 9px 26px rgba(21, 59, 54, 0.04);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}
.learning-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(21, 59, 54, 0.09);
}
.learning-card-primary {
  background: #edf5ed;
}
.learning-card-accent {
  background: linear-gradient(145deg, #155b50, #0d4943);
}
.ustadz-section {
  grid-template-columns: minmax(250px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(44px, 8vw, 104px);
  padding: clamp(70px, 8vw, 100px) clamp(24px, 5vw, 70px);
  border-top-color: #e5eae3;
  border-bottom-color: #e5eae3;
  /* background: linear-gradient(110deg, #f4f6ef 0%, #fbfaf6 65%); */
}
.ustadz-photo-wrap {
  width: min(330px, 100%);
}
.ustadz-prolog h2 {
  max-width: 650px;
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.16;
}
.ustadz-prolog p {
  font-size: 20px;
  line-height: 1.7;
}
.program-section {
  padding-top: clamp(70px, 8vw, 96px);
  padding-bottom: clamp(68px, 8vw, 92px);
}
.program-panel {
  min-height: 210px;
  padding: clamp(30px, 5vw, 58px);
  border-radius: 24px;
  background: linear-gradient(115deg, #104b44, #197769);
  box-shadow: 0 20px 44px rgba(15, 78, 68, 0.16);
}
.program-panel h2 {
  max-width: 610px;
  font-size: clamp(27px, 3.2vw, 36px);
  line-height: 1.16;
}
.program-panel .btn {
  flex: 0 0 auto;
}
.landing-footer {
  background: #f2f4ee;
}
.landing-footer-main {
  gap: 38px 30px;
  padding-top: 48px;
}
.landing-footer-nav a,
.landing-footer-visit p {
  font-size: 11px;
}
.landing-map {
  height: 200px;
}
@media (max-width: 991px) {
  .hero-section {
    gap: 32px;
  }
  .hero-copy h1 {
    font-size: clamp(40px, 5.2vw, 54px);
  }
  .about-highlights {
    grid-template-columns: 1fr;
  }
  .about-highlights article {
    min-height: 0;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
  }
  .learning-card {
    padding: 23px;
  }
  .ustadz-section {
    gap: 42px;
    padding-right: 28px;
    padding-left: 28px;
  }
  .landing-footer-main {
    grid-template-columns: 1.1fr 0.7fr 1fr;
  }
  .landing-footer-map-wrap {
    grid-column: 1 / -1;
  }
}
@media (max-width: 767px) {
  .landing-nav-inner {
    min-height: 66px;
  }
  .hero-section {
    gap: 30px;
    padding-top: 42px;
    padding-bottom: 62px;
  }
  .hero-copy h1 {
    font-size: clamp(37px, 10vw, 48px);
    line-height: 1.06;
  }
  .hero-actions {
    align-items: flex-start;
  }
  .hero-actions .btn-link {
    flex: 0 0 auto;
  }
  .madrasah-slider {
    border-radius: 17px;
  }
  .about-section {
    gap: 24px;
    padding-top: 52px;
    padding-bottom: 54px;
  }
  .about-story h2 {
    font-size: 30px;
  }
  .learning-section {
    padding-top: 62px;
    padding-bottom: 62px;
  }
  .learning-section .section-heading {
    gap: 12px;
    margin-bottom: 23px;
  }
  .learning-section .section-heading h2 {
    font-size: 31px;
  }
  .learning-grid {
    gap: 12px;
  }
  .learning-card {
    min-height: 220px;
    padding: 23px;
  }
  .learning-card-icon {
    margin-bottom: 28px;
  }
  .ustadz-section {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 58px 22px;
  }
  .ustadz-photo-wrap {
    width: min(245px, 75vw);
  }
  .ustadz-prolog h2 {
    font-size: 31px;
  }
  .ustadz-prolog p {
    font-size: 19px;
  }
  .program-section {
    padding: 58px 20px 62px;
  }
  .program-panel {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
    padding: 29px 24px;
    border-radius: 19px;
  }
  .program-panel h2 {
    font-size: 28px;
  }
  .landing-footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
    padding: 34px 20px 20px;
  }
  .landing-footer-identity,
  .landing-footer-map-wrap {
    grid-column: 1 / -1;
  }
  .landing-footer-note {
    flex-direction: column;
    gap: 8px;
  }
  .landing-footer-note span:last-child {
    text-align: left;
  }
}
@media (prefers-reduced-motion: reduce) {
  .learning-card {
    transition: none;
  }
  .learning-card:hover {
    transform: none;
  }
}

/* Improve reading comfort in the public profile and learning program. */
.about-section {
  grid-template-columns: minmax(250px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(38px, 6vw, 84px);
}
.about-story h2 {
  max-width: 510px;
  font-size: clamp(32px, 3.3vw, 44px);
  line-height: 1.18;
}
.about-highlights {
  gap: 16px;
}
.about-highlights article {
  min-height: 172px;
  padding: 22px;
}
.about-highlights p {
  font-size: 15px;
  line-height: 1.55;
}
.learning-section .section-heading {
  margin-bottom: 38px;
}
.learning-section .section-heading > p {
  font-size: 15px;
  line-height: 1.75;
}
.learning-grid {
  gap: 20px;
}
.learning-card {
  min-height: 290px;
  padding: 30px;
}
.learning-card-icon {
  margin-bottom: 34px;
  font-size: 28px;
}
.learning-card h3 {
  font-size: 21px;
  line-height: 1.35;
}
.learning-card p {
  font-size: 15px;
  line-height: 1.75;
}
.learning-card a {
  font-size: 14px;
}
@media (max-width: 991px) {
  .about-section {
    grid-template-columns: 1fr;
  }
  .about-highlights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .about-highlights {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .about-highlights article {
    min-height: 0;
    padding: 16px;
  }
  .about-highlights p {
    font-size: 15px;
  }
  .learning-section .section-heading {
    margin-bottom: 26px;
  }
  .learning-section .section-heading > p {
    font-size: 15px;
  }
  .learning-card {
    min-height: 0;
    padding: 23px;
  }
  .learning-card-icon {
    margin-bottom: 24px;
  }
  .learning-card h3 {
    font-size: 20px;
  }
  .learning-card p {
    font-size: 15px;
  }
}
.reference-row[class*="checklist-group-color-"] {
  background: var(--group-bg);
  border-color: color-mix(in srgb, var(--group-color) 25%, white);
}

/* Admin workspace spacing, class filter, and tabular student directory. */
.app-main .content-wrap:not(.checklist-page) {
  width: 100%;
  padding: clamp(26px, 3.2vw, 44px) clamp(16px, 3vw, 42px) 52px;
}
.content-wrap:not(.checklist-page) > .page-intro {
  margin-bottom: 28px;
}
.content-wrap:not(.checklist-page) .panel {
  border-radius: 16px;
}
.content-wrap:not(.checklist-page) .table th,
.content-wrap:not(.checklist-page) .table td {
  padding: 14px 16px;
}
.global-class-filter {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #71857e;
  font-size: 11px;
  font-weight: 700;
}
.global-class-filter .form-select {
  width: 142px;
  min-height: 37px;
  font-size: 12px;
}
.santri-directory {
  max-width: 1500px;
}
.santri-directory-panel {
  border: 1px solid #e7eeea;
  box-shadow: 0 10px 30px rgba(21, 59, 54, 0.045);
}
.santri-directory-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 20px 22px;
}
.santri-directory-toolbar .search-box {
  flex: 1 1 260px;
  max-width: 440px;
}
.santri-directory-toolbar .form-select {
  width: 160px;
  min-height: 42px;
  font-size: 13px;
}
.santri-page-size {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #71857e;
  font-size: 12px;
  font-weight: 700;
}
.santri-directory-toolbar .santri-page-size .form-select {
  width: 78px;
}
.santri-result-count {
  margin-left: auto;
  color: #71857e;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.santri-table-wrap {
  padding: 0 8px;
}
.santri-table {
  min-width: 790px;
  margin: 0;
}
.santri-table thead th {
  color: #6e837b;
  background: #f8faf8;
  font-size: 11px;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  white-space: nowrap;
}
.santri-table tbody td {
  color: #52675f;
  font-size: 13px;
}
.santri-table tbody td strong {
  color: #203a32;
  font-size: 14px;
}
.santri-nis {
  color: #55746a;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.santri-table .empty-state {
  padding: 42px 16px;
  text-align: center;
}
.santri-table .action-btn {
  margin-left: 4px;
}
.santri-directory-panel .table-pagination {
  padding: 16px 22px;
}
@media (max-width: 767px) {
  .app-main .content-wrap:not(.checklist-page) {
    padding: 24px 14px 36px;
  }
  .content-wrap:not(.checklist-page) > .page-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
  }
  .content-wrap:not(.checklist-page) > .page-intro > div:last-child {
    width: 100%;
  }
  .content-wrap:not(.checklist-page) .table th,
  .content-wrap:not(.checklist-page) .table td {
    padding: 12px 13px;
  }
  .app-body:not(.checklist-body) .topbar {
    height: 64px;
    gap: 8px;
    padding: 0 14px;
  }
  .app-body:not(.checklist-body) .topbar-actions {
    gap: 8px;
  }
  .global-class-filter {
    gap: 0;
  }
  .global-class-filter > span {
    display: none;
  }
  .global-class-filter .form-select {
    width: 112px;
    min-height: 35px;
    font-size: 11px;
  }
  .santri-directory-toolbar {
    gap: 9px;
    padding: 14px;
  }
  .santri-directory-toolbar .search-box {
    flex-basis: 100%;
    max-width: none;
  }
  .santri-directory-toolbar > .form-select {
    flex: 1 1 calc(50% - 8px);
    width: auto;
  }
  .santri-directory-toolbar .santri-page-size {
    flex: 0 0 auto;
  }
  .santri-result-count {
    flex: 1;
    text-align: right;
  }
  .santri-table {
    min-width: 760px;
  }
  .app-body .santri-table-wrap {
    overflow-x: auto;
  }
  .app-body .santri-table {
    min-width: 760px;
    border-collapse: collapse;
    border-spacing: 0;
  }
  .app-body .santri-table thead {
    display: table-header-group;
  }
  .app-body .santri-table tbody {
    display: table-row-group;
    padding: 0;
  }
  .app-body .santri-table tbody tr {
    display: table-row;
    margin: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .app-body .santri-table tbody td {
    display: table-cell;
    text-align: left;
  }
  .app-body .santri-table tbody td::before {
    display: none !important;
  }
  .app-body .santri-table tbody td:first-child {
    display: table-cell;
    padding: 12px 13px;
    border-bottom: 1px solid #edf1ef;
  }
  .app-body .santri-table tbody td.empty-state {
    display: table-cell;
  }
  .santri-directory-panel .table-pagination {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
  }
  .table-pagination-buttons {
    max-width: 100%;
    flex-wrap: wrap;
  }
}

@media (max-width: 767.98px) {
  .app-body .santri-table-wrap {
    overflow: visible !important;
    padding: 0 10px;
  }
  .app-body .santri-table {
    display: block;
    width: 100%;
    min-width: 0 !important;
    border-collapse: separate;
    border-spacing: 0;
  }
  .app-body .santri-table thead {
    display: none !important;
  }
  .app-body .santri-table tbody {
    display: grid !important;
    gap: 12px;
    padding: 0;
  }
  .app-body .santri-table tbody tr {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    overflow: hidden;
    border: 1px solid #e4ece8;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(28, 57, 49, .05);
  }
  .app-body .santri-table tbody td,
  .app-body .santri-table tbody td:first-child {
    display: flex !important;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    padding: 10px 12px;
    border: 0;
    border-bottom: 1px solid #eff3f1;
    text-align: left;
    overflow-wrap: anywhere;
  }
  .app-body .santri-table tbody td::before {
    display: block !important;
    content: attr(data-label);
    color: #81928c;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  .app-body .santri-table tbody td[data-label="Nama santri"],
  .app-body .santri-table tbody td[data-label="Orang tua / wali"],
  .app-body .santri-table tbody td[data-label="Aksi"],
  .app-body .santri-table tbody td.empty-state {
    grid-column: 1 / -1;
  }
  .app-body .santri-table tbody td[data-label="Nama santri"] { order: -1; }
  .app-body .santri-table tbody td[data-label="Aksi"] {
    flex-direction: row;
    justify-content: flex-end;
    border-bottom: 0;
  }
  .app-body .santri-table tbody td.empty-state {
    display: block !important;
    padding: 28px 14px !important;
    text-align: center;
  }
  .app-body .santri-table tbody td.empty-state::before { display: none !important; }
  .app-body .nilai-data-table {
    border-collapse: separate;
    border-spacing: 0 11px;
  }
  .app-body .nilai-data-table tbody tr {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 8px;
    padding: 0 4px;
  }
  .app-body .nilai-data-table tbody td {
    align-items: flex-start;
    justify-content: flex-start;
    padding: 10px 9px;
    text-align: left;
  }
  .app-body .nilai-data-table tbody td[data-label="Mata pelajaran"],
  .app-body .nilai-data-table tbody td[data-label="Aksi"],
  .app-body .nilai-data-table tbody td.empty-state {
    grid-column: 1 / -1;
  }
  .app-body .nilai-data-table tbody td[data-label="Mata pelajaran"] > span {
    max-width: 100%;
    text-align: left;
  }
  .app-body .nilai-data-table tbody td[data-label="Nilai akhir"] {
    border-radius: 9px;
    background: #f0f7f4;
  }
  .app-body .nilai-data-table tbody td[data-label="Aksi"] {
    justify-content: flex-end;
    border-top: 1px solid #edf1ef;
  }
  .app-body .nilai-data-table tbody td.empty-state { display: block; }
}

/* Final landing page layout and horizontal slider overrides. */
.hero-section {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}
.hero-section > .hero-copy,
.hero-section > .hero-visual {
  min-width: 0;
}
.hero-section > .hero-visual {
  min-height: 420px;
}
.about-section {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  align-items: center;
}
.about-section > .about-story,
.about-section > .madrasah-slider {
  min-width: 0;
}
.about-story .about-highlights {
  margin-top: 26px;
}
.about-section > .madrasah-slider {
  width: 100%;
}
.madrasah-slides {
  position: relative;
  aspect-ratio: 1.48;
  overflow: hidden;
}
.madrasah-slides-track {
  width: 100%;
  height: 100%;
  display: flex;
  touch-action: pan-y;
  cursor: grab;
  transition: transform 650ms cubic-bezier(0.22, 0.68, 0, 1);
  will-change: transform;
}
.madrasah-slides-track:active {
  cursor: grabbing;
}
.madrasah-slides-track > .madrasah-slide,
.madrasah-slides-track > .madrasah-slide[hidden] {
  width: 100%;
  height: 100%;
  position: relative;
  inset: auto;
  display: block;
  flex: 0 0 100%;
  margin: 0;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition: none;
}
.madrasah-slides-track > .madrasah-slide.active {
  transform: none;
}
.madrasah-slides-track > .madrasah-slide img {
  position: absolute;
  inset: 0;
}
.madrasah-slides-track > .madrasah-slide:after {
  z-index: 0;
}
@media (max-width: 991px) {
  .about-section {
    grid-template-columns: minmax(0, 1fr);
  }
  .about-section > .madrasah-slider {
    max-width: 760px;
    justify-self: center;
  }
}
@media (max-width: 767px) {
  .hero-section {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-section > .hero-visual {
    min-height: 360px;
  }
  .about-section {
    gap: 24px;
  }
  .madrasah-slider {
    border-width: 5px;
    border-radius: 17px;
  }
  .madrasah-slider-controls {
    gap: 6px;
    padding-right: 8px;
    padding-left: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .madrasah-slides-track {
    transition-duration: 0ms;
  }
}
.about-story .about-highlights {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.about-story .about-highlights article {
  min-height: 0;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 16px 18px;
}
.about-story .about-highlights article p {
  margin: 0;
}

/* Admin card padding consistency and pinned sidebar footer. */
@media (min-width: 992px) {
  .app-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
  }
}
.app-body .pwa-install-panel {
  padding: 26px 28px;
}
.app-body .table-panel > .panel-heading {
  padding: 20px 24px;
  margin-bottom: 0;
  border-bottom: 1px solid #edf1ef;
}
.app-body .panel-body {
  padding: 24px 26px;
}
@media (max-width: 767px) {
  .app-body .pwa-install-panel {
    padding: 20px 17px;
  }
  .app-body .table-panel > .panel-heading {
    padding: 17px 16px;
  }
  .app-body .panel-body {
    padding: 18px 17px;
  }
}

/* Mobile top bar: keep one tidy row and drop the global class filter. */
@media (max-width: 767px) {
  .app-body .topbar-actions .global-class-filter {
    display: none !important;
  }
}
@media (max-width: 650px) {
  .app-body .topbar-date {
    min-width: 0;
    flex: 1 1 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .app-body .topbar-actions,
  .app-body .topbar-user {
    flex: 0 0 auto;
  }
}

#santri-print-card {
  display: none;
}

@media print {
  @page {
    size: 85.6mm 54mm;
    margin: 0;
  }
  body * {
    display: none !important;
  }
  #santri-print-card,
  #santri-print-card * {
    visibility: visible !important;
  }
  #santri-print-card * {
    display: block !important;
  }
  #santri-print-card {
    position: fixed;
    top: 2mm;
    left: 0;
    display: flex !important;
    width: 85.6mm;
    height: 50mm;
    overflow: hidden;
    box-sizing: border-box;
    padding: 3mm;
    color: #17302e;
    background: #fff;
    font-family: Arial, sans-serif;
    border: 0.6mm solid #0f766e;
    border-radius: 3mm;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .santri-card-left {
    position: relative;
    width: 41.6667%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2mm;
    padding-right: 3mm;
  }
  .santri-card-left::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 0.3mm;
    height: 38mm;
    background: #d7e3df;
    transform: translateY(-50%);
  }
  #santri-card-qr img {
    display: block;
    width: 32mm !important;
    height: 32mm !important;
  }
  #santri-card-qr {
    margin-top: 4mm;
  }
  #santri-card-qr canvas {
    display: none !important;
  }
  #santri-card-nis {
    margin-top: 3px;
    font-size: 9pt;
    letter-spacing: 0.2mm;
    text-align: center;
  }
  .santri-card-right {
    width: 58.3333%;
    padding: 0 0 0 3mm;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
  }
  .santri-card-brand {
    color: #0f766e;
    font-size: 8pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.35mm;
  }
  .santri-card-type {
    margin-bottom: 0;
    color: #0f766e;
    font-size: 8pt;
    font-weight: 600;
    letter-spacing: 0.35mm;
  }
  .santri-card-right h1 {
    margin: 2mm 0 1mm;
    font-size: 11.5pt;
    line-height: 1.05;
  }
  #santri-print-card .santri-card-details {
    display: table !important;
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0 1mm;
    margin: 0;
    font-size: 8pt;
    line-height: 1.15;
  }
  #santri-print-card .santri-card-details tr {
    display: table-row !important;
  }
  #santri-print-card .santri-card-details td {
    display: table-cell !important;
    padding: 0;
    vertical-align: top;
  }
  #santri-print-card .santri-card-details td:first-child {
    width: 10mm;
    color: #647570;
  }
  #santri-print-card .santri-card-details td:nth-child(2) {
    width: 0.7mm;
    padding-right: 2px;
    padding-left: 2px;
    text-align: center;
  }
    #santri-print-card .santri-card-details td:last-child {
    overflow-wrap: anywhere;
    font-weight: 600;
  }
}

@media (max-width: 767.98px) {
  #santri-list { gap: 5px; }
  #santri-list > tr { border-radius: 9px; box-shadow: 0 1px 4px rgba(28, 57, 49, .04); }
  #santri-list > tr > td,
  #santri-list > tr > td:first-child {
    gap: 0;
    min-height: 0;
    padding: 3px 7px;
    border-bottom: 1px solid #f1f4f2;
    line-height: 1.1;
    font-size: 10px;
  }
  #santri-list > tr > td::before { font-size: 7px; line-height: 1; }
  #santri-list > tr > td[data-label="NIS"]::before { display: none !important; }
  #santri-list > tr > td[data-label="Nama santri"] { padding: 5px 8px; }
  #santri-list > tr > td[data-label="Nama santri"] strong { font-size: 12px; line-height: 1.1; }
  #santri-list > tr > td[data-label="Nama santri"]::before { display: none !important; }
  #santri-list > tr > td[data-label="Orang tua / wali"],
  #santri-list > tr > td[data-label="Status"] { order: 1; grid-column: auto; }
  #santri-list > tr > td[data-label="Status"] .status-pill { padding: 4px 7px; font-size: 9px; }
  #santri-list > tr > td[data-label="Aksi"] { order: 2; min-height: 32px; padding: 2px 6px; }
  #santri-list > tr > td[data-label="Aksi"] .action-btn { width: 26px; height: 26px; margin-left: 2px; }
  .app-body .nilai-data-table { border-spacing: 0; }
  #nilai-table-body { padding: 0 8px 8px; }
  #nilai-table-body > tr { gap: 0 7px; margin: 0 0 7px; padding: 4px 8px; border-radius: 11px; box-shadow: 0 1px 4px rgba(28, 57, 49, .04); }
  #nilai-table-body > tr.has-actions {
    grid-template-areas: "student student" "subject subject" "class term" "daily uts" "uas final" "predicate predicate" "actions actions";
  }
  #nilai-table-body > tr.read-only {
    grid-template-areas: "student student" "subject subject" "class term" "daily uts" "uas final" "predicate predicate";
  }
  #nilai-table-body > tr > td {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    padding: 5px 6px;
    border: 0;
    font-size: 12px;
    line-height: 1.15;
    text-align: left;
  }
  #nilai-table-body > tr > td::before { display: block; font-size: 8px; line-height: 1; }
  #nilai-table-body > tr > td:first-child { grid-area: student; padding: 6px 2px; border-bottom: 1px solid #edf1ef; }
  #nilai-table-body > tr > td:nth-child(2) { grid-area: class; }
  #nilai-table-body > tr > td:nth-child(3) { grid-area: subject; border-bottom: 1px solid #f0f3f2; }
  #nilai-table-body > tr > td:nth-child(4) { grid-area: term; }
  #nilai-table-body > tr > td:nth-child(5) { grid-area: daily; }
  #nilai-table-body > tr > td:nth-child(6) { grid-area: uts; }
  #nilai-table-body > tr > td:nth-child(7) { grid-area: uas; }
  #nilai-table-body > tr > td:nth-child(8) { grid-area: final; border-radius: 7px; background: #f0f7f4; }
  #nilai-table-body > tr > td:nth-child(9) { grid-area: predicate; flex-direction: row; align-items: center; justify-content: space-between; border-top: 1px solid #f0f3f2; }
  #nilai-table-body > tr > td:nth-child(9)::before { margin-right: auto; }
  #nilai-table-body > tr > td[data-label="Aksi"] { grid-area: actions; min-height: 30px; flex-direction: row; justify-content: flex-end; padding: 3px 2px 0; border-top: 1px solid #edf1ef; }
  #nilai-table-body > tr > td[data-label="Aksi"]::before { display: none; }
  #nilai-table-body .table-person .avatar { width: 32px; height: 32px; flex-basis: 32px; }
  #nilai-table-body .person-meta strong { font-size: 12px; line-height: 1.1; }
  #nilai-table-body .person-meta small { font-size: 9px; }
  #nilai-table-body .grade-summary { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
  #nilai-table-body .grade-summary small { margin: 0 !important; }
  #nilai-table-body > tr > td[data-label="Aksi"] .action-btn { width: 26px; height: 26px; }
}
