/* Refinement CSS for Markazul Qur'an Redesign (ECC Design Principles) */

:root {
  --gold-text: #966b1a; /* WCAG AA compliant (4.68:1 contrast on paper) */
}

/* 1. Global Micro-Typography & Layout Polish */
h1, h2, h3, h4, .section-head h2 {
  text-wrap: balance;
}

p, .rich-copy p, .facility-item p, .reason-card p, .faq-answer p {
  text-wrap: pretty;
}

.reason-number, .program-index, .faq-num, .schedule-day h2, .schedule-class h3,
.stat-number, .cermat-badge, .step-number, .panca-jiwa-num, .dept-contact-phone, .bank-number {
  font-variant-numeric: tabular-nums;
}

img {
  height: auto;
}

/* 2. Tactile Interactive States */
.button, .nav-cta, .subject-link {
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s, box-shadow 0.2s;
}

.button:active, .nav-cta:active {
  transform: scale(0.98) !important;
}

/* 3. Header & Brand Logo Consistency */
.brand-logo {
  width: auto !important;
  height: 58px !important;
  max-width: none !important;
  max-height: 58px !important;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

/* Logo footer: varian transparan dengan tulisan putih (src/assets/logo-mq-light.png), tanpa kotak putih */
.brand-light .brand-logo { background: none; padding: 0; box-shadow: none; }

/* 4. Facilities Grid */

/* 5. Activity Badges */

/* 6. High-Conversion CTA Banner */
.about-cta-box {
  margin-top: 60px;
  background: var(--green);
  color: #fff;
  padding: 50px;
  border-radius: 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 40px;
}
.about-cta-box .cta-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: #fff;
}
.about-cta-box p {
  margin: 0;
  color: #d9e6d8;
  font-size: 1rem;
  line-height: 1.6;
}
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.button-secondary {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}
.button-secondary:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  border-color: #fff !important;
}

/* 7. Portal Dashboard Hub (.hub-grid) */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
  margin-top: 30px;
}
.hub-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.hub-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(23, 75, 50, 0.08);
  border-color: var(--green);
}
.hub-card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}
.hub-card h3 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.3rem;
  color: var(--green);
  margin-bottom: 10px;
}
.hub-card p {
  font-size: 0.92rem;
  color: #44574a;
  line-height: 1.65;
  margin-bottom: 24px;
  flex-grow: 1;
}
.hub-link {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hub-link:hover {
  color: var(--green-2);
}

/* 8. Editorial Content Layout for SEO Pages */
.editorial-wrap {
  max-width: 860px;
  margin: 0 auto;
}
.editorial-lead {
  font-size: 1.18rem;
  line-height: 1.85;
  color: var(--green-3);
  font-weight: 500;
  margin-bottom: 35px;
  border-left: 3px solid var(--gold);
  padding-left: 20px;
}
.editorial-body {
  font-size: 1rem;
  line-height: 1.9;
  color: #2e3e35;
}
.editorial-body h2 {
  font-size: 2rem;
  margin: 45px 0 18px;
  color: var(--green);
}
.editorial-body h3 {
  font-size: 1.35rem;
  margin: 30px 0 12px;
  color: var(--green-2);
}
.editorial-body ul {
  padding-left: 1.4em;
  margin: 18px 0;
}
.editorial-body li {
  margin-bottom: 10px;
}

@media (max-width: 820px) {
  .about-cta-box {
    grid-template-columns: 1fr;
    padding: 35px 25px;
    gap: 25px;
  }
}

/* 9. Stat Counter Bar on Inner Pages */
.stat-counter-bar {
  background: var(--green-3);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
}
.stat-counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-item .stat-value {
  font-family: 'Lora', Georgia, serif;
  font-size: 2.2rem;
  color: var(--gold);
  margin-bottom: 4px;
  font-weight: 700;
}
.stat-item p {
  margin: 0;
  font-size: 0.82rem;
  color: #d1e2d4;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}

/* 10. Daily Routine / Timeline 24 Jam */
.timeline-wrap {
  margin-top: 35px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.timeline-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 0;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  gap: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.timeline-card:hover {
  transform: translateX(3px);
  box-shadow: 0 8px 24px rgba(23, 75, 50, 0.07);
}
.timeline-time {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green);
}
.timeline-content h4 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  color: var(--ink);
}
.timeline-content p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* 11. Bank Account Box for Donation */
.bank-account-box {
  background: var(--paper);
  border: 2px dashed var(--gold);
  border-radius: 0;
  padding: 30px;
  margin: 30px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.bank-info h4 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.4rem;
  color: var(--green);
  margin-bottom: 6px;
}
.bank-number {
  font-family: monospace;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 2px;
}
.bank-holder {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 4px;
}

/* 12. Map & Route Box */

@media (max-width: 820px) {
  .stat-counter-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .timeline-card {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* 13. CERMAT Philosophy Cards (Visi Misi) */
.cermat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 30px 0;
}
.cermat-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 0;
  padding: 32px 26px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.cermat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(23, 75, 50, 0.08);
}

.cermat-word {
  font-size: 1.35rem;
  color: var(--green-2);
  margin-bottom: 12px;
}
.cermat-card p {
  font-size: 0.94rem;
  color: #44574a;
  line-height: 1.7;
  margin: 0;
}

/* 14. Step-by-Step Roadmap (FAQ / PPDB) */

/* 15. FAQ Quick Topic Cards */
.faq-topics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 45px;
}
.faq-topic-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 24px 20px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.faq-topic-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(23, 75, 50, 0.06);
}
.faq-topic-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}
.faq-topic-card h3 {
  font-size: 1.05rem;
  color: var(--green);
  margin-bottom: 6px;
}
.faq-topic-card p {
  font-size: 0.84rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* 16. Department Cards (Contact) */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 45px;
}
.dept-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s, box-shadow 0.2s;
}
.dept-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(23, 75, 50, 0.08);
  border-color: var(--green);
}
.dept-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 6px;
  display: block;
}
.dept-card h3 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.18rem;
  color: var(--green);
  margin-bottom: 6px;
}

.dept-contact-phone {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 18px;
}

/* 17. Interactive Contact Form */
.contact-form-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 36px 32px;
  margin-top: 30px;
}
.contact-form-box h3 {
  font-family: 'Lora', Georgia, serif;
  color: var(--green);
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.contact-form-box p {
  color: var(--muted);
  font-size: 0.94rem;
  margin-bottom: 24px;
}
.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.form-group label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
}
.form-input, .form-select, .form-textarea {
  font-family: inherit;
  font-size: 0.92rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(23, 75, 50, 0.12);
}
.form-textarea {
  min-height: 100px;
  resize: vertical;
}

/* 18. Map Card with Visual */

/* Button Gold */
.button-gold {
  background: var(--gold) !important;
  color: var(--green) !important;
  font-weight: 700 !important;
}
.button-gold:hover {
  background: #f1c768 !important;
  color: var(--green-3) !important;
  transform: translateY(-2px);
}

/* 19. Leader Quote Card */

/* 20. 3-Year Tahfizh Roadmap */

/* 21. Panca Jiwa Pesantren Grid */

@media (max-width: 820px) {
  .cermat-grid {
    grid-template-columns: 1fr;
  }
  
  .faq-topics-grid {
    grid-template-columns: 1fr 1fr;
  }
  .form-group-row {
    grid-template-columns: 1fr;
  }
  
  
}
@media (max-width: 570px) {
  
  .faq-topics-grid {
    grid-template-columns: 1fr;
  }
  
}

/* FAQ Category Separation & Quick Links */
.faq-category-header {
  margin-top: 55px;
  margin-bottom: 25px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gold);
  scroll-margin-top: 100px;
}
.faq-category-header:first-of-type {
  margin-top: 25px;
}

.faq-category-header h3 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.6rem;
  color: var(--green);
  margin: 0 0 6px;
}
.faq-category-header p {
  color: var(--muted);
  font-size: 0.94rem;
  margin: 0;
}
.faq-topic-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  display: block;
}
.faq-topic-card:hover {
  transform: translateY(-2px);
  border-color: var(--green);
  box-shadow: 0 14px 35px rgba(23, 75, 50, 0.09);
}

/* Campus Spotlight & Closing Section */

@media (max-width: 820px) {
  
}

/* 23. Accessibility Focus Rings (WCAG 2.2 AA) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* 24. Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* 25. Numerals replace emoji icons (hub + FAQ topic cards) */
.hub-card-icon, .faq-topic-icon {
  display: block;
  font-family: 'Lora', Georgia, serif;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--gold-text);
  margin-bottom: 18px;
  font-variant-numeric: tabular-nums;
}
.faq-topic-card { text-align: left; }
.faq-topic-icon { margin-bottom: 14px; }

/* 26. Islamic geometric ornament (8-point star lattice), kept very quiet */
:root {
  --pattern-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64' fill='none' stroke='%23174b32' stroke-opacity='.075'%3E%3Cpath d='M32 4 60 32 32 60 4 32Z'/%3E%3Cpath d='M13 13h38v38H13Z'/%3E%3C/svg%3E");
  --pattern-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64' fill='none' stroke='%23e7ba55' stroke-opacity='.10'%3E%3Cpath d='M32 4 60 32 32 60 4 32Z'/%3E%3Cpath d='M13 13h38v38H13Z'/%3E%3C/svg%3E");
}
.inner-hero,.article-hero,.campus-spotlight-card{ position: relative; }
.inner-hero::before,.article-hero::before,.campus-spotlight-card::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-size: 64px 64px;
}

.inner-hero::before, .article-hero::before, .campus-spotlight-card::before { background-image: var(--pattern-dark); }
.inner-hero > .container,.article-hero > .container,.campus-spotlight-card > *{ position: relative; }

/* 28. Misc components that used inline styles / alert() */
.section-cta { text-align: center; margin-top: 40px; }
.form-error {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-left: 3px solid #b3402a;
  background: #fbeeea;
  color: #7a2615;
  font-size: 0.88rem;
}
.form-input[aria-invalid="true"] { border-color: #b3402a; }

/* 29. Admission posters: one calm gallery, full poster in the lightbox */
.poster-gallery { grid-template-columns: repeat(4, 1fr); margin-top: 32px; }
.poster-gallery .gallery-item { aspect-ratio: 819 / 1024; background: var(--pale); }
.poster-gallery .gallery-item img { object-fit: contain; object-position: center; }
@media (max-width: 570px) {
  .poster-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* 30. Styles that markup referenced but never had (found by class audit) */
.hero-desc {
  max-width: 540px;
  font-size: 1rem;
  line-height: 1.7;
  color: #3d5244;
  margin: 0 0 22px;
}

/* 31. Final polish */

@media (min-width: 1000px) {
  .hub-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  
}

/* 32. Sourced-content sections (rebuild from live site + Instagram) */
.intro-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 70px; align-items: start; }
.intro-grid h2 { margin: 13px 0 0; }
.intro { background: var(--paper); }
.location-section { background: var(--paper); }

.curriculum-section { background: var(--green-3); color: #dbe9dd; }
.curriculum-section h2 { color: #fff; margin: 13px 0 18px; font-size: clamp(2rem, 3.2vw, 3.2rem); }
.curriculum-section .eyebrow { color: var(--gold); }
.curriculum-section p { color: #c9dccc; max-width: 520px; }
.curriculum-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }
.value-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.value-chips span { border: 1px solid rgba(255, 255, 255, 0.28); padding: 7px 16px; font-size: 0.86rem; color: #fff; }
.curriculum-list { list-style: none; counter-reset: c; padding: 0; margin: 26px 0 0; }
.curriculum-list li { counter-increment: c; display: grid; grid-template-columns: 46px 1fr; align-items: baseline; border-top: 1px solid rgba(255, 255, 255, 0.2); padding: 18px 0; font-family: 'Lora', Georgia, serif; font-size: 1.3rem; color: #fff; }
.curriculum-list li::before { content: "0" counter(c); font: 700 0.76rem 'DM Sans', sans-serif; letter-spacing: 0.1em; color: var(--gold); }
.curriculum-list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.2); }

.activities { background: var(--paper); }
.activity-note { margin: 28px 0 0; font-size: 0.95rem; }
.activity-gallery { margin-top: 36px; }

.benefit { background: var(--cream); }
.benefit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; margin-bottom: 50px; }
.benefit h2 { margin: 13px 0 24px; font-size: clamp(2rem, 3.2vw, 3.2rem); }
.benefit-side { background: var(--paper); padding: 34px 40px; border-left: 3px solid var(--gold); }
.benefit-side h3 { font-family: 'Lora', Georgia, serif; font-weight: 500; font-size: 1.7rem; margin-bottom: 20px; color: var(--green); }
.benefit-note { margin: 18px 0 0; font-size: 0.88rem; color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 18px 0 0; }
.check-list li { position: relative; padding: 10px 0 10px 30px; border-top: 1px solid var(--line); font-size: 0.95rem; }
.check-list li::before { content: ""; position: absolute; left: 4px; top: 1.2em; width: 12px; height: 7px; border-left: 2px solid var(--green-2); border-bottom: 2px solid var(--green-2); transform: rotate(-45deg); }
.numbered-list { padding-left: 1.4em; margin: 0; font-size: 0.93rem; }
.numbered-list li { padding: 7px 0 7px 6px; margin: 0; border-bottom: 1px solid var(--line); }
.numbered-list li::marker { color: var(--gold-text); font-weight: 700; }
.plain-list { padding-left: 1.2em; margin: 10px 0 14px; font-size: 0.9rem; }

.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-top: 48px; }
.info-card { padding: 22px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--cream); }
.info-label { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-2); margin-bottom: 8px; }
.info-card p { margin: 0; font-size: 0.9rem; line-height: 1.65; }
.admission-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 27px; }
.admission-copy .admission-buttons .button { margin-top: 0; }
.button-secondary-dark { background: transparent; color: var(--green); border: 1px solid var(--green); }
.button-secondary-dark:hover { background: var(--green); color: #fff; }

.care .care-text h3 { font-family: 'Lora', Georgia, serif; font-size: 1.5rem; font-weight: 500; color: var(--green); margin: 0 0 12px; }
.care .care-text p { font-size: 0.92rem; }
.bank-note { margin: 12px 0 0; font-size: 0.86rem; color: var(--muted); max-width: 440px; }
.bank-actions { display: flex; flex-direction: column; gap: 10px; min-width: 230px; }
.bank-actions .button { justify-content: center; }
.bank-actions .button-secondary { background: transparent !important; color: var(--green) !important; border: 1px solid var(--green) !important; }
.donation-posters { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 36px; }
.donation-posters img { width: 100%; border: 1px solid var(--line); }

.tips-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 70px; }
.tips-grid h3 { font-family: 'Lora', Georgia, serif; font-size: 1.6rem; font-weight: 500; color: var(--green); margin: 10px 0 18px; }
.reflection-quote { margin: 70px 0 0; padding: 34px 0 0; border-top: 1px solid var(--gold); text-align: center; }
.reflection-quote p { font-size: clamp(1.3rem, 2.2vw, 1.9rem); line-height: 1.5; color: var(--green-3); margin: 0 auto 14px; max-width: 820px; }
.reflection-quote footer { font-family: 'Lora', Georgia, serif; font-style: italic; font-size: 1.1rem; color: var(--green-2); }

.social-band { background: var(--green); color: #e2eee3; }
.social-band h2 { color: #fff; margin: 12px 0 16px; font-size: clamp(2rem, 3.2vw, 3.2rem); }
.social-band .eyebrow { color: var(--gold); }
.social-band p { font-family: 'Lora', Georgia, serif; font-style: italic; font-size: 1.15rem; max-width: 480px; color: #cfe1d2; }
.social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.social-links { display: grid; }
.social-link { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, 0.25); font-family: 'Lora', Georgia, serif; font-size: 1.6rem; color: #fff; transition: color 0.2s, padding 0.2s; }
.social-link:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.25); }
.social-link small { font: 500 0.85rem 'DM Sans', sans-serif; color: var(--gold-light); }
.social-link:hover { color: var(--gold); padding-left: 8px; }

.faq-topics-3 { grid-template-columns: repeat(3, 1fr); }
.cermat-grid { margin: 50px 0 70px; }

@media (max-width: 820px) {
  .intro-grid, .curriculum-grid, .benefit-grid, .tips-grid, .social-grid { grid-template-columns: 1fr; gap: 40px; }
  .activity-grid, .faq-topics-3 { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .bank-actions { width: 100%; }
}
@media (max-width: 570px) {
  .activity-grid, .faq-topics-3, .info-grid { grid-template-columns: 1fr; }
  .benefit-side { padding: 24px; }
  .social-link { font-size: 1.3rem; flex-direction: column; gap: 4px; }
}

/* 33. SPMB, strengths, donation tiers */
.strengths { background: var(--paper); }
.strengths h2 { margin: 13px 0 0; }
.admission-tagline { font-family: 'Lora', Georgia, serif; font-style: italic; font-size: 1.25rem; color: var(--green-2); margin-bottom: 14px; }
.spmb { margin-top: 64px; padding: 44px 44px 48px; background: var(--green-3); color: #dbe9dd; }
.spmb-head { max-width: 720px; margin-bottom: 30px; }
.spmb-head .eyebrow { color: var(--gold); }
.spmb-head h3 { font-family: 'Lora', Georgia, serif; font-weight: 500; font-size: clamp(1.7rem, 2.6vw, 2.4rem); color: #fff; margin: 10px 0 12px; letter-spacing: -0.03em; }
.spmb-head p { margin: 0; color: #c9dccc; }
.spmb-head .text-link { color: var(--gold-light); border-color: var(--gold-light); }
.spmb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.spmb-card { border: 1px solid rgba(255, 255, 255, 0.22); padding: 28px 30px 30px; }
.spmb-card h3 { font-family: 'Lora', Georgia, serif; font-weight: 500; font-size: 1.5rem; color: var(--gold); margin: 0 0 14px; }
.spmb-card h4 { font: 700 0.72rem 'DM Sans', sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-light); margin: 18px 0 6px; }
.spmb-card .numbered-list li { border-bottom-color: rgba(255, 255, 255, 0.16); color: #eef6ee; }
.spmb-card .numbered-list li::marker { color: var(--gold); }
.tier-label { margin: 16px 0 8px; font: 700 0.72rem 'DM Sans', sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-2); }
.tier-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 4px; }
.tier-chips li { border: 1px solid var(--line); background: #fff; padding: 5px 12px; font-size: 0.84rem; font-weight: 600; color: var(--green); }
@media (max-width: 820px) {
  .spmb-grid { grid-template-columns: 1fr; }
  .spmb { padding: 30px 24px 34px; }
}

@media (min-width: 1000px) {
  .dept-grid { grid-template-columns: repeat(3, 1fr); }
}

/* 34. Scroll behaviour: sticky left column, staggered photos, subtle parallax */
@media (min-width: 821px) {
  /* Left column stays put while the right one scrolls; it releases when the right column ends. */
  .intro-grid > :first-child { position: sticky; top: 130px; align-self: start; }
}

/* Photos rise in one after another when their grid scrolls into view */
.js .gallery-grid.reveal .gallery-item {
  opacity: 0;
  transform: translateY(26px) scale(0.96);
  transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.js .gallery-grid.reveal.visible .gallery-item { opacity: 1; transform: none; }
.js .gallery-grid.reveal.visible .gallery-item:nth-child(2) { transition-delay: 0.08s; }
.js .gallery-grid.reveal.visible .gallery-item:nth-child(3) { transition-delay: 0.16s; }
.js .gallery-grid.reveal.visible .gallery-item:nth-child(4) { transition-delay: 0.24s; }
.js .gallery-grid.reveal.visible .gallery-item:nth-child(5) { transition-delay: 0.32s; }
.js .gallery-grid.reveal.visible .gallery-item:nth-child(6) { transition-delay: 0.4s; }
.js .gallery-grid.reveal.visible .gallery-item:nth-child(n + 7) { transition-delay: 0.48s; }

/* Photos drift slightly inside their frame while scrolling (Chromium/Safari; others just skip it) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    @keyframes photo-drift { from { translate: 0 4%; } to { translate: 0 -4%; } }
    @keyframes float-up { to { translate: 0 -44px; } }
    .gallery-item img { scale: 1.1; animation: photo-drift linear both; animation-timeline: view(); }
    
  }
}
@media (prefers-reduced-motion: reduce) {
  .js .gallery-grid.reveal .gallery-item { opacity: 1; transform: none; transition: none; }
}

/* 35. Wide photos / banners are shown whole instead of being cropped into the hero */
.photo-banner { padding: 44px 0; }
.photo-banner figure { margin: 0; }
.photo-banner img { margin: 0 auto; max-width: 100%; height: auto; border: 1px solid var(--line); box-shadow: var(--shadow); }

/* 36. Statement strip (replaces the two banner images) */
.statement-strip { background: var(--cream); padding: 0 0 56px; }
.statement-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--line); }
.statement { padding: 36px 40px 38px 0; }
.statement + .statement { padding: 36px 0 38px 40px; border-left: 1px solid var(--line); }
.statement h2 { font-size: clamp(1.6rem, 2.4vw, 2.3rem); margin: 12px 0; letter-spacing: -0.03em; color: var(--green); }
.statement p { margin: 0; max-width: 460px; color: #44574a; }
.accreditation { display: inline-flex; align-items: center; gap: 12px; margin-top: 20px; padding: 6px 16px; border: 1px solid var(--gold); font: 700 0.72rem 'DM Sans', sans-serif; letter-spacing: 0.14em; color: var(--gold-text); }
.accreditation strong { font: 700 1.5rem/1 'Lora', Georgia, serif; letter-spacing: 0; color: var(--green); }
@media (max-width: 820px) {
  .statement-grid { grid-template-columns: 1fr; }
  .statement, .statement + .statement { padding: 28px 0; border-left: 0; }
  .statement + .statement { border-top: 1px solid var(--line); }
}

/* 37. Audit fixes */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.cermat-letter { font-family: 'Lora', Georgia, serif; font-size: 2.6rem; font-weight: 700; color: var(--green); line-height: 1; letter-spacing: 0.04em; margin-bottom: 10px; }
.cermat-word { font-family: 'Lora', Georgia, serif; font-size: 1.4rem; color: var(--green-2); margin: 0; }
.about-grid > .eyebrow { align-self: start; padding-top: 0.9em; }
.inner-hero h1.long { font-size: clamp(2.2rem, 3.8vw, 4rem); }
.reason-number { color: #5f8d6c; }
.accreditation { color: #7a5410; }
.section-cta .button + .button { margin-left: 12px; }
@media (min-width: 1200px) { .dept-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 571px) { .donation-section .program-card:last-child:nth-child(3n + 2) { grid-column: span 2; } }
.schedule-banners { display: flex; flex-wrap: wrap; gap: 15px; justify-content: center; }
.schedule-banners img { flex: 0 1 480px; width: auto; max-width: 100%; height: auto; }
.care-poster, .admission-poster, .donation-poster { display: block; border: 0; font: inherit; cursor: zoom-in; }
button.care-poster { width: 100%; }
button.admission-poster { padding: 15px; width: 100%; }
.donation-poster { padding: 0; background: none; }
.donation-poster img { width: 100%; }
.article-info h3::first-letter, .article-hero h1::first-letter { text-transform: uppercase; }
.aside-note { font-size: 0.9rem; color: var(--muted); margin: 0 0 16px; }
.article-aside .button { width: 100%; justify-content: center; }
@media (max-width: 820px) {
  .footer-column a { padding: 9px 0; }
  .menu-toggle { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
  .article-more { min-height: 44px; align-items: center; }
  .article-back { display: inline-block; padding: 10px 0; }
  .hub-link { padding: 10px 0; }
  .text-link { min-height: 40px; }
}

/* Posters contain text: show them whole, no zoom/parallax crop */
.poster-gallery .gallery-item img { scale: 1; animation: none; translate: none; }

/* 38. Floating "Daftar & Chat" button on every page + admission info without posters */
.wa-fab { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.wa-fab-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 22px; background: var(--green); color: #fff; border: 1px solid rgba(255, 255, 255, 0.2); font: 700 0.86rem 'DM Sans', sans-serif; letter-spacing: 0.03em; cursor: pointer; box-shadow: 0 14px 34px rgba(14, 57, 39, 0.32); transition: background 0.2s, transform 0.18s; }
.wa-fab-btn:hover { background: var(--green-2); transform: translateY(-2px); }
.wa-menu { width: min(300px, calc(100vw - 32px)); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.wa-menu[hidden] { display: none; }
.wa-menu a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; font-weight: 700; font-size: 0.92rem; color: var(--green); }
.wa-menu a + a { border-top: 1px solid var(--line); }
.wa-menu a:hover { background: var(--cream); }
.wa-menu small { display: block; margin-top: 2px; font-weight: 400; font-size: 0.78rem; color: var(--muted); }
.footer-bottom { padding-bottom: 88px; }
.info-grid-side { grid-template-columns: 1fr 1fr; margin-top: 0; }
@media (max-width: 570px) { .info-grid-side { grid-template-columns: 1fr; } }
@media print { .wa-fab { display: none; } }

.eskul { margin-bottom: 8px; }
.eskul .tier-label { margin-top: 0; }
.eskul .tier-chips li { padding: 8px 18px; font-size: 0.92rem; }

/* 39. Kabar Terbaru + PSB 2027/2028 details */
.news-section { background: var(--paper); }
.news-list { border-top: 1px solid var(--gold); }
.news-item { display: grid; grid-template-columns: 170px 1fr auto; gap: 32px; align-items: start; padding: 28px 0; border-bottom: 1px solid var(--line); }
.news-date { padding-top: 7px; font: 700 0.78rem 'DM Sans', sans-serif; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-text); }
.news-body h3 { margin: 0 0 8px; font-family: 'Lora', Georgia, serif; font-weight: 500; font-size: 1.5rem; letter-spacing: -0.02em; color: var(--green); }
.news-body p { margin: 0; max-width: 660px; color: #44574a; }

.admission-year { margin: 0 0 14px; font-size: 1rem; color: var(--green-2); }
.admission-contact { margin: 26px 0 0; font-size: 0.95rem; }
@media (max-width: 820px) {
  .news-item { grid-template-columns: 1fr; gap: 10px; }
  
}

/* 40. PSB page, fee table, profile data from the brochure */
.wave-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.wave-card { padding: 28px 28px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.wave-card h3 { font-family: 'Lora', Georgia, serif; font-weight: 500; font-size: 1.5rem; line-height: 1.3; color: var(--green); margin: 12px 0 0; }
.wave-featured { background: var(--green-3); border-color: var(--green-3); }
.wave-featured .eyebrow { color: var(--gold); }
.wave-featured h3 { color: #fff; }
.wave-note { margin: 14px 0 0; color: var(--gold-light); font-size: 0.92rem; font-weight: 600; }
.psb-fees { background: var(--paper); }
.info-grid-3 { grid-template-columns: repeat(3, 1fr); margin-top: 0; }
.info-card .info-value { font-family: 'Lora', Georgia, serif; font-size: 1.5rem; line-height: 1.3; color: var(--green); margin: 0; }
.psb-sub { font-family: 'Lora', Georgia, serif; font-weight: 500; font-size: 1.5rem; color: var(--green); margin: 36px 0 14px; }
.table-wrap { overflow-x: auto; }
.fee-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.95rem; background: var(--paper); }
.fee-table th, .fee-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; }
.fee-table thead th { font: 700 0.72rem 'DM Sans', sans-serif; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-2); border-bottom: 1px solid var(--gold); }
.fee-table tbody th { font-weight: 500; }
.fee-table td { white-space: nowrap; font-variant-numeric: tabular-nums; }
.fee-table tfoot th, .fee-table tfoot td { font-weight: 700; color: var(--green); background: var(--cream); border-top: 2px solid var(--green); border-bottom: 0; }
.timeline-title { margin: 0; font-weight: 700; font-size: 1.05rem; color: var(--ink); }

.yayasan-text { max-width: 760px; font-size: 1.05rem; }

.facilities-section, .prestasi-section { background: var(--paper); }
@media (max-width: 820px) {
  .wave-grid, .info-grid-3, .prestasi-grid, .struktur-grid { grid-template-columns: 1fr; }
  
}

/* stat bar must never be wider than a 2-column mobile grid */
.stat-counter-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-item { min-width: 0; }
@media (max-width: 820px) { .stat-counter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 570px) { .stat-item .stat-value { font-size: 1.7rem; } .stat-item p { font-size: 0.74rem; } }
.table-wrap:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* 41. Three-point variant of the "Mengapa Markazul Qur'an" grid */
.reason-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) {
  .reason-grid-3 { grid-template-columns: 1fr; }
  .reason-grid-3 .reason-card { border-right: 0; border-bottom: 1px solid #c5d4c7; padding: 24px 0; }
  .reason-grid-3 .reason-card:last-child { border-bottom: 0; }
}

/* 42. Hero slideshow (client reference: full-bleed rotating photos, dark overlay, big headline, CTA) */
.hero-slider { position: relative; display: flex; align-items: center; min-height: clamp(540px, calc(100svh - 110px), 780px); overflow: hidden; color: #fff; background: var(--green-3); }
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide { margin: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.hero-slide.is-active img { animation: hero-drift 9s ease-out both; }
@keyframes hero-drift { from { transform: scale(1.07); } to { transform: scale(1); } }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 41, 28, 0.9) 0%, rgba(10, 41, 28, 0.62) 42%, rgba(10, 41, 28, 0.15) 100%), linear-gradient(0deg, rgba(10, 41, 28, 0.55) 0%, transparent 38%); }
.hero-content { position: relative; z-index: 2; padding-block: 90px 120px; }
.hero-text { max-width: 680px; }
.hero-slider .eyebrow { color: var(--gold-light); }
.hero-slider h1 { margin: 18px 0 20px; font-size: clamp(3rem, 5.6vw, 5.4rem); line-height: 1.04; color: #fff; text-shadow: 0 2px 26px rgba(0, 0, 0, 0.35); }
.hero-slider h1 em { color: var(--gold-light); font-weight: 400; }
.hero-slider .hero-desc { max-width: 580px; margin: 0 0 30px; font-size: 1.08rem; line-height: 1.7; color: #eef5ee; }
.hero-slider .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; margin: 0; }
.hero-slider .button-primary { background: var(--gold); color: var(--green-3); }
.hero-slider .button-primary:hover { background: #f1c768; }
.hero-slider .text-link { color: #fff; border-color: #fff; }
.hero-controls-wrap { position: absolute; left: 0; right: 0; bottom: 26px; z-index: 3; margin-inline: auto; }
@media (max-width: 820px) {
  .hero-slider { min-height: 580px; }
  .hero-overlay { background: linear-gradient(180deg, rgba(10, 41, 28, 0.5) 0%, rgba(10, 41, 28, 0.86) 100%); }
  .hero-content { padding-block: 64px 130px; }
  .hero-slider h1 { font-size: clamp(2.8rem, 12vw, 4.4rem); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  .hero-slide.is-active img { animation: none; }
}

@media (max-width: 570px) {   }

/* 43. Profil Pesantren (3 parts), people cards, Prestasi page */

#visi-misi { scroll-margin-top: 86px; }
.person-group { margin-top: 44px; }
.person-group:first-of-type { margin-top: 30px; }
.person-group h3 { margin: 0 0 16px; font: 700 0.72rem 'DM Sans', sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-2); }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.person-card { display: flex; align-items: center; gap: 18px; padding: 20px 22px; background: var(--paper); border: 1px solid var(--line); }
.person-monogram { flex: 0 0 68px; display: grid; place-items: center; height: 68px; background: var(--green); color: var(--gold); font: 500 1.5rem 'Lora', Georgia, serif; letter-spacing: 0.02em; }
.person-photo { flex: 0 0 68px; width: 68px; height: 68px; object-fit: cover; }
.person-name { margin: 0 0 2px; font: 500 1.12rem/1.3 'Lora', Georgia, serif; color: var(--green); }
.person-role { margin: 0; font-size: 0.84rem; color: var(--muted); }
.management-section { background: var(--cream); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-bar[hidden] { display: none; }
.filter-chip { min-height: 44px; padding: 0 20px; border: 1px solid var(--line); background: #fff; color: var(--green); font: 600 0.9rem 'DM Sans', sans-serif; cursor: pointer; transition: background 0.2s, color 0.2s; }
.filter-chip:hover { border-color: var(--green); }
.filter-chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.prestasi-year-title { margin: 48px 0 4px; padding-bottom: 10px; font: 500 2.2rem 'Lora', Georgia, serif; color: var(--gold-text); border-bottom: 1px solid var(--gold); }
.prestasi-group:first-child .prestasi-year-title { margin-top: 0; }
.prestasi-row { display: grid; grid-template-columns: 170px 1fr auto; gap: 28px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.prestasi-row[hidden], .prestasi-group[hidden] { display: none; }
.prestasi-rank { padding-top: 6px; font: 700 0.8rem 'DM Sans', sans-serif; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-2); }
.prestasi-body h3 { margin: 0; font: 500 1.3rem/1.35 'Lora', Georgia, serif; letter-spacing: -0.01em; color: var(--green-3); }
.prestasi-who { margin: 6px 0 0; font-size: 0.92rem; color: var(--muted); }
.level-badge { padding: 6px 14px; border: 1px solid var(--gold); font: 700 0.72rem 'DM Sans', sans-serif; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; color: var(--gold-text); }
.poster-pair { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 20px; }
.poster-tile { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; }
.poster-tile img { width: 100%; border: 1px solid var(--line); }
.prestasi-photos { grid-template-columns: repeat(4, 1fr); }
.prestasi-photos .gallery-item { aspect-ratio: 4 / 5; }
@media (max-width: 820px) {
  .prestasi-row { grid-template-columns: 1fr; gap: 8px; }
  .poster-pair { grid-template-columns: 1fr; }
  .prestasi-photos { grid-template-columns: repeat(2, 1fr); }
  
}

/* footer logo link is a block of its own, not an inline link inside the address text (axe: link-in-text-block) */
.footer-brand .brand { display: flex; width: fit-content; }

/* 44. Sub-menus: desktop dropdown (hover/focus/click) and mobile accordion; sibling tabs inside each group */
.nav-item { position: relative; display: flex; align-items: center; }
.sub-toggle { position: relative; flex: 0 0 26px; width: 26px; height: 44px; margin-left: 2px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
.sub-toggle::before { content: ""; position: absolute; left: 8px; top: 15px; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform 0.2s; }
.nav-item.open > .sub-toggle::before, .m-group.open .sub-toggle::before { top: 20px; transform: rotate(-135deg); }
.subnav { display: none; position: absolute; top: 100%; left: -16px; z-index: 70; min-width: 330px; margin: 0; padding: 8px 0; list-style: none; background: var(--paper); border: 1px solid var(--line); border-top: 2px solid var(--gold); box-shadow: var(--shadow); }
.nav-item:hover > .subnav, .nav-item:focus-within > .subnav, .nav-item.open > .subnav { display: block; }
.nav-item.closed > .subnav { display: none !important; }
.subnav a { display: block; padding: 12px 22px; font-size: 0.88rem; font-weight: 600; color: var(--green); }
.subnav a:hover, .subnav a:focus-visible { background: var(--cream); }
.subnav a[aria-current="page"] { background: var(--cream); box-shadow: inset 3px 0 0 var(--gold); }

@media (max-width: 820px) {
  .m-group { border-bottom: 1px solid var(--line); }
  .m-row { display: flex; align-items: center; justify-content: space-between; }
  .m-row .nav-link { flex: 1; border-bottom: 0; }
  .m-row .sub-toggle { flex-basis: 44px; width: 44px; }
  .m-row .sub-toggle::before { left: 18px; }
  .m-sub { display: none; margin: 0; padding: 0 0 10px 14px; list-style: none; }
  .m-group.open .m-sub { display: block; }
  .m-sub a { display: block; padding: 11px 0; font-size: 0.86rem; font-weight: 600; color: var(--green); }
  .m-sub a[aria-current="page"] { color: var(--gold-text); }
}

/* 45. Registration QR */
.qr-section { background: var(--paper); }
.qr-band { display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: center; }
.qr-copy h2 { margin: 12px 0 14px; font-size: clamp(1.8rem, 3vw, 2.8rem); }
.qr-copy p { max-width: 520px; }
.qr-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 14px; }
.qr-link { margin: 0; }
.qr-image { width: 250px; height: 250px; padding: 12px; background: #fff; border: 1px solid var(--line); }
.admission-side-stack { display: grid; gap: 0; }
.qr-card { display: flex; align-items: center; gap: 20px; margin-top: 18px; padding: 18px 22px; background: var(--paper); border: 1px solid var(--line); }
.qr-card img { flex: 0 0 112px; width: 112px; height: 112px; background: #fff; }
.qr-card p { margin: 4px 0 8px; font-size: 0.88rem; line-height: 1.55; }
@media (max-width: 820px) {
  .qr-band { grid-template-columns: 1fr; gap: 28px; }
  .qr-image { width: 210px; height: 210px; }
}

/* 46. Hero dots: automatic slideshow, the active dot is a progress bar (it fills in, then the next photo shows) */
.hero-dots { display: flex; align-items: center; gap: 6px; }
.hero-dot { position: relative; width: 36px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; transition: width 0.35s ease; }
.hero-dot::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; background: rgba(255, 255, 255, 0.42); }
.hero-dot:hover::before { background: rgba(255, 255, 255, 0.7); }
.hero-dot[aria-current="true"] { width: 84px; }
.hero-dot-fill { position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; background: var(--gold); transform: scaleX(0); transform-origin: left center; }
.hero-dot[aria-current="true"] .hero-dot-fill { animation: hero-progress 6.5s linear forwards; }
@keyframes hero-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-slider.is-paused .hero-dot-fill, .hero-slider.is-paused .hero-slide.is-active img { animation-play-state: paused; }
@media (max-width: 820px) { .hero-dot { width: 28px; } .hero-dot[aria-current="true"] { width: 64px; } }
@media (prefers-reduced-motion: reduce) {
  .hero-dot[aria-current="true"] .hero-dot-fill { animation: none; transform: scaleX(1); }
}

/* 47. Beranda, Profil Pesantren: teks kanan sejajar lebih ke bawah (di sekitar baris ke-2 judul) */
.intro-grid > :last-child { padding-top: clamp(48px, 7vw, 104px); }
@media (max-width: 820px) { .intro-grid > :last-child { padding-top: 0; } }

/* 48. Daftar pendek (eskul, fasilitas, sifat terpuji): grid teks serif bergaris tipis dengan titik emas, bukan kotak kecil */
.eskul .tier-chips, .facilities-section .tier-chips, .value-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 0 36px; list-style: none; padding: 0; margin: 6px 0 0; }
.eskul .tier-chips li, .facilities-section .tier-chips li, .value-chips span { display: flex; align-items: center; gap: 14px; border: 0; border-top: 1px solid var(--line); background: none; padding: 14px 0; font: 500 1.25rem/1.4 'Lora', Georgia, serif; letter-spacing: -0.015em; color: var(--green); }
.eskul .tier-chips li::before, .facilities-section .tier-chips li::before, .value-chips span::before { content: ""; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); flex: none; }
.value-chips { margin-top: 28px; }
.value-chips span { border-top-color: rgba(255, 255, 255, 0.18); color: #fff; font-size: 1.15rem; }
.eskul .tier-label { margin-bottom: 14px; }

/* 49. Ajakan daftar (CTA): blok editorial tanpa kotak hijau, judul serif besar + dua tombol berdampingan */
.about-cta-box { position: relative; margin: 0; padding: 52px 0 0; background: none; color: var(--ink); border-top: 1px solid var(--line); grid-template-columns: minmax(0, 1.5fr) auto; gap: 24px 56px; align-items: end; }
.about-cta-box::before { content: ""; position: absolute; top: -1px; left: 0; width: 120px; height: 2px; background: var(--gold); }
.about-cta-box .cta-title { margin: 0 0 14px; font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.15; letter-spacing: -0.035em; color: var(--green); }
.about-cta-box p { color: var(--muted); max-width: 620px; }
.about-cta-box .cta-actions { flex-direction: row; flex-wrap: wrap; gap: 12px; }
.about-cta-box .cta-actions .button { min-width: 210px; }
.about-cta-box .button-secondary { background: transparent !important; color: var(--green) !important; border: 1px solid var(--green) !important; }
.about-cta-box .button-secondary:hover { background: var(--green) !important; color: #fff !important; }
.section:has(> .container > .about-cta-box:only-child) { padding-block: 24px 90px; }
@media (max-width: 820px) { .about-cta-box { grid-template-columns: 1fr; padding: 40px 0 0; } .about-cta-box .cta-actions .button { flex: 1 1 100%; } }

/* 50. Profil: logo di kolom kiri "Sekapur Sirih"; avatar orang berbentuk potret 4:5 (foto setengah badan) */
.about-side { display: flex; flex-direction: column; gap: 34px; align-items: flex-start; }
.about-logo { width: min(100%, 230px); height: auto; mix-blend-mode: multiply; }
.person-monogram { flex: 0 0 80px; width: 80px; height: 100px; }
.person-photo { flex: 0 0 80px; width: 80px; height: 100px; object-position: center top; }
@media (max-width: 820px) { .about-logo { width: 150px; } }

/* 51. Header halaman dalam: foto kegiatan santri sebagai latar dengan lapisan hijau (seperti hero beranda) */
.inner-hero { position: relative; isolation: isolate; }
.inner-hero-bg { position: absolute; inset: 0; z-index: -1; }
.inner-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.inner-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 44, 30, 0.93) 0%, rgba(14, 57, 39, 0.8) 48%, rgba(14, 57, 39, 0.5) 100%); }
.inner-hero-grid { position: relative; }
@media (max-width: 820px) { .inner-hero-bg::after { background: linear-gradient(180deg, rgba(10, 44, 30, 0.9), rgba(14, 57, 39, 0.78)); } }
.person-phone { display: inline-block; margin-top: 6px; font-size: 0.8rem; font-weight: 600; color: var(--green-2); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }

/* 52. Tombol "Daftar & Chat" di HP: hanya ikon (kotak 48px) supaya tidak menutupi konten; teks tetap ada untuk pembaca layar */
@media (max-width: 600px) {
  .wa-fab { right: max(12px, env(safe-area-inset-right, 0px)); bottom: max(12px, env(safe-area-inset-bottom, 0px)); }
  .wa-fab-btn { width: 48px; min-height: 48px; padding: 0; justify-content: center; gap: 0; }
  .wa-fab-btn { box-shadow: 0 0 0 2px var(--paper), 0 10px 26px rgba(14, 57, 39, 0.35); }
  .wa-fab-label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .footer-bottom { padding-bottom: 72px; }
}

/* 53. Tombol "Daftar & Chat" (HP): menyingkir saat scroll turun atau dekat ajakan daftar/footer, kembali saat scroll naik */
@media (max-width: 600px) {
  .wa-fab { transition: transform 0.28s ease, opacity 0.28s ease, visibility 0s linear 0s; }
  .wa-fab.is-away:not(:focus-within) { transform: translateY(calc(100% + 28px)); opacity: 0; visibility: hidden; pointer-events: none; transition: transform 0.28s ease, opacity 0.28s ease, visibility 0s linear 0.28s; }
}
@media (prefers-reduced-motion: reduce) { .wa-fab, .wa-fab.is-away:not(:focus-within) { transition: none; } }

/* 54. Tombol "Daftar & Chat": bentuk membulat (lingkaran di HP, pil di desktop) dan menu bersudut lembut */
.wa-fab-btn { border-radius: 999px; }
.wa-menu { border-radius: 18px; overflow: hidden; }
@media (max-width: 600px) {
  .wa-fab-btn { width: 52px; min-height: 52px; border-radius: 50%; }
}
