/* =============================================================
   KERANGKA WEBSITE PONDOK PESANTREN
   Ubah warna utama melalui variabel :root di bawah.
   ============================================================= */
@import url('menu-fix.css');
:root {
  --primary: #174f3b;
  --primary-700: #0b3528;
  --primary-100: #e9f2ed;
  --secondary: #c7a34a;
  --secondary-100: #f8f0da;
  --ink: #182d25;
  --text: #43564f;
  --muted: #718079;
  --surface: #ffffff;
  --surface-soft: #f5f6f1;
  --border: #dce3dd;
  --shadow: 0 20px 60px rgba(17, 54, 42, .13);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.container { width: min(calc(100% - 32px), var(--container)); margin-inline: auto; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-soft { background: var(--surface-soft); }
.section-dark { background: var(--primary-700); color: #fff; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack { display: grid; gap: 18px; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-size: .83rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--secondary); }
.section-title { margin: 8px 0 14px; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.12; }
.section-subtitle { max-width: 680px; margin: 0; color: var(--muted); font-size: 1.04rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 38px; }

.skip-link { position: fixed; top: -100px; left: 16px; z-index: 999; padding: 10px 14px; background: #fff; border-radius: 10px; box-shadow: var(--shadow); }
.skip-link:focus { top: 16px; }

.topbar { background: var(--primary-700); color: rgba(255,255,255,.86); font-size: .88rem; }
.topbar-inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.topbar-links { display: flex; flex-wrap: wrap; gap: 18px; }
.topbar a:hover { color: #fff; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(220,230,226,.8); }
.nav-wrap { width: min(calc(100% - 32px), 1320px); min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 235px; }
.brand-mark { width: 54px; height: 54px; flex: 0 0 54px; object-fit: contain; }
.brand-mark { transform: scale(1.22); }
.brand-copy strong { display: block; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 1.04rem; line-height: 1.15; }
.brand-copy span { color: var(--muted); font-size: .76rem; }
.site-nav { min-width: 0; display: flex; flex: 1 1 auto; align-items: center; justify-content: flex-end; gap: 2px; }
.site-nav a { padding: 10px 8px; border-radius: 9px; color: #2d463f; font-weight: 750; font-size: .84rem; line-height: 1.2; white-space: nowrap; }
.site-nav a:hover, .site-nav a.active { color: var(--primary); background: var(--primary-100); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { content: ""; display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--ink); transition: .2s ease; }
.header-cta { margin-left: 2px; min-height: 44px; padding-inline: 15px; white-space: nowrap; }
.portal-link { margin-left: 2px; padding: 10px; border-radius: 10px; color: var(--primary); font-size: .82rem; font-weight: 800; white-space: nowrap; }
.portal-link:hover { background: var(--primary-100); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 20px; border: 1px solid transparent; border-radius: 12px; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: var(--primary); box-shadow: 0 12px 26px rgba(15,91,69,.22); }
.btn-primary:hover { background: var(--primary-700); }
.btn-secondary { color: var(--ink); background: var(--secondary); }
.btn-outline { color: var(--primary); background: #fff; border-color: var(--border); }
.btn-light { color: var(--primary-700); background: #fff; }

.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #e7f0eb 0%, #fffdf7 52%, #f6ead0 100%); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .3; background-image: radial-gradient(circle at 20% 20%, rgba(15,91,69,.12) 0 2px, transparent 2px), radial-gradient(circle at 80% 40%, rgba(201,151,47,.16) 0 2px, transparent 2px); background-size: 42px 42px, 56px 56px; }
.hero-inner { position: relative; min-height: 690px; display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; gap: 48px; padding: 64px 0; }
.hero-inner > * { min-width: 0; }
.hero h1 { margin: 10px 0 20px; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 7vw, 5.8rem); line-height: .98; letter-spacing: -.04em; }
.hero h1 span { color: var(--primary); }
.hero p { max-width: 650px; margin: 0 0 28px; font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 34px; }
.hero-meta div { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .92rem; font-weight: 700; }
.hero-visual { position: relative; min-height: 520px; }
.hero-card-main { position: absolute; inset: 20px 0 0 40px; overflow: hidden; border-radius: 36px; background: var(--primary-700); box-shadow: var(--shadow); }
.hero-card-main img { width: 100%; height: 100%; object-fit: cover; }
.hero-card-main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(4,32,24,.45), transparent 50%); }
.hero-float { position: absolute; z-index: 2; padding: 18px; border: 1px solid rgba(255,255,255,.7); border-radius: 20px; background: rgba(255,255,255,.9); box-shadow: 0 16px 36px rgba(20,55,45,.16); backdrop-filter: blur(8px); }
.hero-float strong { display: block; color: var(--ink); font-size: 1.7rem; }
.hero-float span { color: var(--muted); font-size: .82rem; }
.hero-float.one { left: 0; bottom: 76px; }
.hero-float.two { right: -10px; top: 64px; }

.quick-links { position: relative; z-index: 4; margin-top: -38px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.quick-item { min-height: 118px; display: flex; align-items: center; gap: 15px; padding: 22px; border-right: 1px solid var(--border); }
.quick-item:last-child { border-right: 0; }
.quick-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--primary-100); color: var(--primary); font-size: 1.25rem; }
.quick-item strong { display: block; color: var(--ink); }
.quick-item span { color: var(--muted); font-size: .85rem; }
.quick-item:hover { background: var(--surface-soft); }

.card { border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-5px); border-color: #c9d8d2; box-shadow: 0 18px 40px rgba(17,60,48,.1); }
.card-body { padding: 24px; }
.card h3 { margin: 8px 0 10px; color: var(--ink); line-height: 1.35; }
.card p { margin: 0; }
.icon-box { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: var(--primary-100); color: var(--primary); font-size: 1.4rem; }

.about-layout { display: grid; grid-template-columns: .95fr 1.05fr; gap: 58px; align-items: center; }
.about-visual { position: relative; }
.about-visual img { width: 100%; min-height: 510px; object-fit: cover; border-radius: var(--radius-lg); }
.about-badge { position: absolute; right: -20px; bottom: 28px; max-width: 240px; padding: 22px; border-radius: 18px; color: #fff; background: var(--primary); box-shadow: var(--shadow); }
.about-badge strong { display: block; font-size: 1.5rem; }
.check-list { display: grid; gap: 12px; margin: 24px 0 30px; padding: 0; list-style: none; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list li::before { content: "✓"; width: 25px; height: 25px; flex: 0 0 25px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--primary); font-size: .8rem; font-weight: 900; }

.program-card { min-height: 300px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; border-radius: 22px; background: #fff; border: 1px solid var(--border); }
.program-card .number { color: var(--secondary); font-family: Georgia, serif; font-size: 3rem; line-height: 1; }
.program-card h3 { margin: 18px 0 8px; color: var(--ink); font-size: 1.35rem; }
.program-card a { color: var(--primary); font-weight: 800; }

.news-card .media { aspect-ratio: 16/10; overflow: hidden; background: var(--primary-100); }
.news-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.news-card:hover .media img { transform: scale(1.04); }
.meta-row { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: .82rem; }
.tag { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 10px; border-radius: 999px; color: var(--primary); background: var(--primary-100); font-size: .75rem; font-weight: 800; }
.read-more { display: inline-flex; margin-top: 18px; color: var(--primary); font-weight: 800; }

.quote-section { position: relative; overflow: hidden; }
.quote-section::before { content: "“"; position: absolute; right: 6%; top: -85px; color: rgba(255,255,255,.06); font-family: Georgia, serif; font-size: 22rem; }
.quote-card { position: relative; max-width: 850px; margin: 0 auto; text-align: center; }
.quote-card p { margin: 0 0 24px; font-family: Georgia, serif; font-size: clamp(1.7rem, 3.6vw, 3rem); line-height: 1.35; }
.quote-person { display: flex; align-items: center; justify-content: center; gap: 14px; color: rgba(255,255,255,.75); }
.quote-avatar { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(255,255,255,.1); }

.stats { padding: 30px 0; background: var(--secondary-100); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 20px 24px; text-align: center; border-right: 1px solid rgba(201,151,47,.28); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; color: var(--primary-700); font-family: Georgia, serif; font-size: 2.25rem; }
.stat span { color: var(--muted); font-size: .88rem; font-weight: 700; }

.cta-box { display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 34px; padding: 42px; border-radius: 28px; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-700)); box-shadow: var(--shadow); }
.cta-box h2 { margin: 0 0 10px; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; }
.cta-box p { margin: 0; color: rgba(255,255,255,.8); }
.cta-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; }

.page-hero { position: relative; overflow: hidden; padding: 94px 0 78px; color: #fff; background: linear-gradient(120deg, var(--primary-700), var(--primary)); }
.page-hero::after { content: ""; position: absolute; width: 360px; height: 360px; right: -100px; top: -110px; border: 58px solid rgba(255,255,255,.06); border-radius: 50%; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { max-width: 850px; margin: 8px 0 14px; font-family: Georgia, serif; font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1.02; }
.page-hero p { max-width: 700px; margin: 0; color: rgba(255,255,255,.8); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; color: rgba(255,255,255,.7); font-size: .88rem; }
.breadcrumb a { color: #fff; }

.content-narrow { max-width: 820px; margin-inline: auto; }
.prose h2, .prose h3 { color: var(--ink); font-family: Georgia, serif; line-height: 1.25; }
.prose h2 { margin-top: 42px; font-size: 2rem; }
.prose h3 { margin-top: 28px; font-size: 1.4rem; }
.prose p, .prose li { color: var(--text); }
.prose blockquote { margin: 32px 0; padding: 24px 28px; border-left: 5px solid var(--secondary); border-radius: 0 16px 16px 0; background: var(--secondary-100); color: var(--ink); font-family: Georgia, serif; font-size: 1.2rem; }

.timeline { position: relative; display: grid; gap: 22px; margin-top: 34px; }
.timeline::before { content: ""; position: absolute; left: 22px; top: 10px; bottom: 10px; width: 2px; background: var(--border); }
.timeline-item { position: relative; display: grid; grid-template-columns: 46px 1fr; gap: 18px; }
.timeline-dot { z-index: 2; width: 46px; height: 46px; display: grid; place-items: center; border: 5px solid #fff; border-radius: 50%; color: #fff; background: var(--primary); box-shadow: 0 0 0 1px var(--border); font-size: .78rem; font-weight: 900; }
.timeline-content { padding: 20px 22px; border: 1px solid var(--border); border-radius: 16px; background: #fff; }
.timeline-content h3 { margin: 0 0 6px; color: var(--ink); }
.timeline-content p { margin: 0; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filter-btn { min-height: 40px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; color: var(--text); background: #fff; font-weight: 800; }
.filter-btn.active, .filter-btn:hover { color: #fff; border-color: var(--primary); background: var(--primary); }
.news-item[hidden] { display: none; }

.steps { counter-reset: step; }
.step-card { position: relative; padding: 28px 24px 24px 74px; border: 1px solid var(--border); border-radius: 18px; background: #fff; }
.step-card::before { counter-increment: step; content: counter(step); position: absolute; left: 22px; top: 25px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--primary); font-weight: 900; }
.step-card h3 { margin: 0 0 8px; color: var(--ink); }
.step-card p { margin: 0; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; min-width: 700px; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { color: var(--ink); background: var(--surface-soft); }
tr:last-child td { border-bottom: 0; }

.faq { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: 14px; background: #fff; overflow: hidden; }
.faq-question { width: 100%; display: flex; justify-content: space-between; gap: 20px; padding: 18px 20px; border: 0; color: var(--ink); background: transparent; text-align: left; font-weight: 800; }
.faq-answer { display: none; padding: 0 20px 20px; }
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-question span:last-child { transform: rotate(45deg); }

.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 36px; }
.contact-card { padding: 26px; border: 1px solid var(--border); border-radius: 18px; background: #fff; }
.contact-list { display: grid; gap: 14px; margin-top: 24px; }
.contact-list a, .contact-list div { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 12px; color: var(--primary); background: var(--primary-100); }
.form-grid { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: grid; gap: 7px; color: var(--ink); font-size: .9rem; font-weight: 800; }
input, textarea, select { width: 100%; padding: 13px 14px; border: 1px solid var(--border); border-radius: 11px; color: var(--ink); background: #fff; outline: 0; }
input:focus, textarea:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(15,91,69,.1); }
textarea { min-height: 145px; resize: vertical; }
.form-note { color: var(--muted); font-size: .82rem; }

.map-placeholder { min-height: 360px; display: grid; place-items: center; padding: 30px; border-radius: 20px; color: var(--primary-700); background: repeating-linear-gradient(45deg, #edf4f1, #edf4f1 18px, #e5efeb 18px, #e5efeb 36px); text-align: center; }

.site-footer { color: rgba(255,255,255,.78); background: #082c22; }
.footer-grid { display: grid; grid-template-columns: 1.35fr .8fr .8fr 1fr; gap: 42px; padding: 64px 0 42px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; color: #fff; }
.footer-brand img { width: 52px; height: 52px; }
.footer-brand img { object-fit: contain; }
.footer-brand img { transform: scale(1.18); }
.footer-brand strong { display: block; font-family: Georgia, serif; font-size: 1.1rem; }
.footer-grid h3 { margin: 0 0 16px; color: #fff; font-size: 1rem; }
.footer-links { display: grid; gap: 10px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }
.socials { display: flex; gap: 8px; }
.socials a { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; }
.socials a:hover { color: #fff; background: rgba(255,255,255,.08); }

.back-top { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 46px; height: 46px; display: none; place-items: center; border: 0; border-radius: 50%; color: #fff; background: var(--primary); box-shadow: var(--shadow); }
.back-top.show { display: grid; }
.notice { padding: 14px 16px; border: 1px solid #f0d99d; border-radius: 12px; color: #6f5412; background: #fff8e6; }

@media (max-width: 980px) {
  .site-nav { position: absolute; left: 16px; right: 16px; top: calc(100% + 8px); display: none; flex-direction: column; align-items: stretch; padding: 14px; border: 1px solid var(--border); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { width: 100%; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .portal-link { margin-left: auto; }
  .hero-inner { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { min-height: 480px; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-item:nth-child(2) { border-right: 0; }
  .quick-item:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .about-layout, .contact-layout { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .cta-box { grid-template-columns: 1fr; }
  .cta-actions { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .topbar-inner { padding: 8px 0; align-items: flex-start; }
  .topbar-links { gap: 8px 14px; }
  .topbar .hide-mobile { display: none; }
  .brand-copy { min-width: 0; }
  .brand-copy strong { font-size: .96rem; }
  .brand-copy span { display: none; }
  .brand { min-width: 0; max-width: calc(100% - 60px); }
  .nav-toggle { flex: 0 0 44px; }
  .portal-link { display: none; }
  .hero-inner { padding: 48px 0 74px; }
  .hero-inner > div:first-child { overflow: hidden; }
  .hero h1 { font-size: clamp(2.75rem, 14vw, 4.4rem); }
  .hero p { max-width: 100%; overflow-wrap: anywhere; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; white-space: normal; text-align: center; }
  .hero-visual { min-height: 390px; }
  .hero-card-main { inset: 0 0 0 18px; }
  .hero-float { padding: 13px; }
  .hero-float strong { font-size: 1.3rem; }
  .hero-float.two { right: 0; top: 25px; }
  .hero-float.one { bottom: 30px; }
  .quick-links { margin-top: -30px; }
  .quick-grid { grid-template-columns: 1fr; }
  .quick-item { border-right: 0; border-bottom: 1px solid var(--border); }
  .quick-item:last-child { border-bottom: 0; }
  .section { padding: 66px 0; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .about-badge { position: relative; right: auto; bottom: auto; margin: -40px 18px 0; }
  .about-visual img { min-height: 390px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(201,151,47,.28); }
  .cta-box { padding: 30px 24px; }
  .page-hero { padding: 72px 0 62px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid > :last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 1180px) and (min-width: 981px) {
  .header-cta { display: none; }
  .site-nav a { padding-inline: 7px; font-size: .8rem; }
}


/* ===== IDENTITAS AL-BASYARI & KOMPONEN MEDIA SOSIAL ===== */
:root { --maroon: #713f36; --cream: #fffaf0; }
body { background-image: linear-gradient(rgba(255,255,255,.985), rgba(255,255,255,.985)), radial-gradient(circle at 1px 1px, rgba(23,79,59,.15) 1px, transparent 0); background-size: auto, 26px 26px; }
.arabic { font-family: "Traditional Arabic", "Noto Naskh Arabic", Georgia, serif; direction: rtl; }
.brand-copy .arabic-mini { display: block; color: var(--secondary); font-family: "Traditional Arabic", Georgia, serif; font-size: .86rem; line-height: 1.1; }
.topbar-arabic { color: #f2ddb0; font-family: "Traditional Arabic", Georgia, serif; font-size: 1rem; }
.hero-kicker { display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px; border: 1px solid rgba(23,79,59,.18); border-radius: 999px; color: var(--primary); background: rgba(255,255,255,.72); font-weight: 800; font-size: .84rem; }
.hero-arabic { margin: 14px 0 0; color: var(--secondary); font-family: "Traditional Arabic", Georgia, serif; font-size: clamp(1.35rem, 2.5vw, 2.1rem); direction: rtl; }
.hero-card-caption { position: absolute; z-index: 3; left: 30px; right: 30px; bottom: 25px; color: #fff; }
.hero-card-caption small { display: block; color: rgba(255,255,255,.72); letter-spacing: .12em; text-transform: uppercase; }
.hero-card-caption strong { display: block; margin-top: 4px; font-family: Georgia, serif; font-size: 1.55rem; }
.identity-strip { padding: 18px 0; color: #fff; background: var(--maroon); }
.identity-strip .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.identity-strip .arabic { color: #f8e8bd; font-size: clamp(1.25rem, 2.2vw, 1.9rem); }
.identity-strip span:last-child { color: rgba(255,255,255,.8); font-size: .92rem; }
.program-card { border-top: 4px solid var(--secondary); }
.program-card:nth-child(2n) { border-top-color: var(--primary); }
.program-card:nth-child(3n) { border-top-color: var(--maroon); }
.insta-section { background: linear-gradient(180deg, #fff 0%, #f7f4ec 100%); }
.insta-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.insta-card { position: relative; overflow: hidden; min-height: 360px; display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid var(--border); border-radius: 24px; background: #fff; box-shadow: 0 15px 40px rgba(18,52,41,.08); }
.insta-card .media { position: absolute; inset: 0; }
.insta-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.insta-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,34,26,.92) 0%, rgba(7,34,26,.15) 68%, transparent 100%); }
.insta-card:hover .media img { transform: scale(1.04); }
.insta-copy { position: relative; z-index: 2; padding: 24px; color: #fff; }
.insta-copy .insta-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; color: rgba(255,255,255,.75); font-size: .78rem; }
.insta-copy h3 { margin: 0 0 10px; color: #fff; line-height: 1.25; }
.insta-copy p { margin: 0; color: rgba(255,255,255,.78); font-size: .9rem; }
.insta-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 999px; color: var(--primary-700); background: #fff; font-size: .73rem; font-weight: 900; }
.media-note { display: flex; align-items: flex-start; gap: 12px; margin-top: 24px; padding: 16px 18px; border: 1px dashed #c6b585; border-radius: 14px; color: #5f5333; background: #fffaf0; font-size: .9rem; }
.school-level { padding: 24px; border-left: 4px solid var(--secondary); border-radius: 0 18px 18px 0; background: #fff; box-shadow: 0 10px 30px rgba(18,52,41,.07); }
.school-level strong { display:block; margin-bottom: 6px; color: var(--ink); font-size: 1.15rem; }
.pill-row { display:flex; flex-wrap:wrap; gap:9px; margin-top:16px; }
.pill { display:inline-flex; padding:7px 11px; border-radius:999px; color:var(--primary); background:var(--primary-100); font-size:.82rem; font-weight:800; }
.motto-card { padding: 38px; border-radius: 28px; color: #fff; background: linear-gradient(135deg, var(--maroon), #4b2d28); box-shadow: var(--shadow); text-align:center; }
.motto-card .arabic { margin:0 0 8px; color:#f4dda3; font-size:clamp(1.8rem,4vw,3.2rem); line-height:1.5; }
.motto-card p:last-child { margin:0; color:rgba(255,255,255,.78); }
.real-content-label { display:inline-flex; margin-bottom:8px; color:var(--maroon); font-weight:900; font-size:.78rem; letter-spacing:.1em; text-transform:uppercase; }
.contact-pair { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.contact-pair a { padding:14px; border:1px solid var(--border); border-radius:12px; background:#fff; font-weight:800; color:var(--primary); }
.socials a { width:auto; min-width:38px; padding:0 10px; }
@media (max-width: 980px) { .insta-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 680px) {
  .identity-strip .container { align-items:flex-start; flex-direction:column; gap:5px; }
  .insta-grid { grid-template-columns:1fr; }
  .insta-card { min-height:340px; }
  .contact-pair { grid-template-columns:1fr; }
  .brand-copy .arabic-mini { display:none; }
}

/* Hierarchical public navigation */
.site-nav{align-items:center;gap:4px}.site-nav>.nav-item{position:relative;display:flex;align-items:center}.site-nav>.nav-item>a{display:flex;align-items:center;gap:4px;white-space:nowrap}.nav-caret{font-size:.7em;opacity:.7}.nav-dropdown{display:none;position:absolute;top:calc(100% + 8px);left:0;min-width:220px;padding:8px;border:1px solid var(--border,#d8e1dc);border-radius:12px;background:#fff;box-shadow:0 14px 30px rgba(6,55,42,.16);z-index:100}.nav-item:hover>.nav-dropdown,.nav-item:focus-within>.nav-dropdown{display:block}.nav-dropdown .nav-item{display:block}.nav-dropdown a{display:block!important;padding:10px 12px!important;border-radius:8px;white-space:nowrap;color:var(--ink,#12352b)}.nav-dropdown a:hover{background:var(--primary-100,#e8f1ed);color:var(--primary,#0b5844)}
@media(max-width:980px){.site-nav>.nav-item{display:block}.nav-dropdown{position:static;box-shadow:none;border:0;padding:0 0 0 12px}.nav-item:hover>.nav-dropdown,.nav-item:focus-within>.nav-dropdown{display:block}}
