/* ==========================================================================
   IKRAR Kedah — design tokens
   ========================================================================== */
:root {
  --navy: #2a2275;
  --navy-deep: #1d1757;
  --navy-soft: #eef0fb;
  --green: #1f9a4f;
  --green-deep: #167a3d;
  --green-soft: #e9f6ee;
  --gold: #e9a21c;
  --gold-deep: #b57a08;
  --gold-soft: #fdf4e3;
  --cream: #faf8f3;
  --paper: #ffffff;
  --ink: #1d1b3a;
  --muted: #5d6075;
  --line: #e6e4ee;

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-script: "Caveat", "Segoe Script", cursive;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgb(29 23 87 / 6%), 0 8px 24px rgb(29 23 87 / 7%);
  --shadow-lift: 0 2px 4px rgb(29 23 87 / 8%), 0 18px 40px rgb(29 23 87 / 12%);
  --shell: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img, svg, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h3 { font-family: var(--font-body); letter-spacing: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.shell { width: min(100% - 2 * var(--gutter), var(--shell)); margin-inline: auto; }
.shell.narrow { max-width: 780px; }
.section { padding-block: clamp(48px, 7vw, 88px); }
.section-tight { padding-block: clamp(32px, 5vw, 56px); }
.muted { color: var(--muted); font-size: .92rem; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-deep); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }

/* ==========================================================================
   Buttons & links
   ========================================================================== */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border: 2px solid var(--navy); border-radius: 999px;
  background: var(--navy); color: #fff; font: 700 .95rem/1 var(--font-body);
  text-decoration: none; cursor: pointer; transition: transform .18s ease, background .18s, box-shadow .18s, color .18s;
}
.button:hover { color: #fff; background: var(--navy-deep); border-color: var(--navy-deep); transform: translateY(-1px); box-shadow: 0 8px 20px rgb(42 34 117 / 25%); }
.button .icon { transition: transform .18s; }
.button:hover .icon-arrow { transform: translateX(3px); }
.button-small { min-height: 42px; padding: 10px 20px; font-size: .88rem; }
.button-green { background: var(--green); border-color: var(--green); }
.button-green:hover { background: var(--green-deep); border-color: var(--green-deep); box-shadow: 0 8px 20px rgb(31 154 79 / 28%); }
.button-outline { background: transparent; color: var(--navy); }
.button-outline:hover { background: var(--navy); }
.button-light { background: #fff; border-color: #fff; color: var(--green-deep); }
.button-light:hover { background: var(--cream); border-color: var(--cream); color: var(--green-deep); }
.button-ghost-light { background: transparent; border-color: rgb(255 255 255 / 70%); color: #fff; }
.button-ghost-light:hover { background: rgb(255 255 255 / 12%); border-color: #fff; }

.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; color: var(--green-deep); text-decoration: none; }
.text-link .icon { transition: transform .18s; }
a:hover .text-link .icon, .text-link:hover .icon { transform: translateX(3px); }

.icon-badge {
  display: inline-grid; place-items: center; flex: none;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); color: #fff;
}
.tone-green .icon-badge, .icon-badge.tone-green { background: var(--green); }
.tone-gold .icon-badge, .icon-badge.tone-gold { background: var(--gold); }
.tone-navy .icon-badge, .icon-badge.tone-navy { background: var(--navy); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would trap the fixed mobile menu inside it. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgb(255 255 255 / 92%); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 18px rgb(29 23 87 / 6%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: auto; height: 50px; }
.custom-logo-link img { max-height: 56px; width: auto; }

.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav .menu { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.primary-nav .menu a {
  position: relative; display: block; padding: 10px 12px; color: var(--ink);
  font-size: .92rem; font-weight: 600; text-decoration: none;
}
.primary-nav .menu a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  background: var(--green); border-radius: 2px; transform: scaleX(0); transition: transform .2s;
}
.primary-nav .menu a:hover { color: var(--navy); }
.primary-nav .menu a:hover::after,
.primary-nav .current-menu-item > a::after,
.primary-nav .current_page_item > a::after { transform: scaleX(1); }
.primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { color: var(--navy); }
.primary-nav .sub-menu { display: none; }
.nav-actions { display: flex; gap: 10px; }

.menu-toggle {
  display: none; width: 46px; height: 46px; border: 0; border-radius: 12px;
  background: var(--navy-soft); color: var(--navy); cursor: pointer;
}
.menu-toggle .bars { display: grid; gap: 5px; width: 22px; margin: auto; }
.menu-toggle .bars span { height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-panel-head, .nav-panel-foot, .nav-overlay { display: none; }

/* Mobile: off-canvas panel sliding in from the right */
@media (max-width: 1080px) {
  .menu-toggle { display: grid; }
  .primary-nav {
    position: fixed; top: var(--nav-top, 0px); right: 0; bottom: 0; z-index: 2;
    width: min(86vw, 360px); flex-direction: column; align-items: stretch; gap: 20px;
    padding: 16px 24px calc(24px + env(safe-area-inset-bottom)); background: #fff; overflow-y: auto; overscroll-behavior: contain;
    box-shadow: -18px 0 40px rgb(14 11 40 / 18%);
    transform: translateX(105%); visibility: hidden;
    transition: transform .32s cubic-bezier(.22, .8, .24, 1), visibility 0s linear .32s;
  }
  .primary-nav.is-open { transform: none; visibility: visible; transition: transform .32s cubic-bezier(.22, .8, .24, 1), visibility 0s; }
  .nav-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .nav-panel-head .brand img, .nav-panel-head .custom-logo-link img { height: 40px; }
  .nav-close { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--navy-soft); color: var(--navy); font-size: 1.8rem; line-height: 1; cursor: pointer; }
  .nav-close:hover { background: var(--navy); color: #fff; }
  .primary-nav .menu { flex-direction: column; gap: 0; }
  .primary-nav .menu a { padding: 15px 4px; font-size: 1.06rem; border-bottom: 1px solid var(--line); }
  .primary-nav .menu a::after { display: none; }
  .primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { color: var(--green-deep); }
  .primary-nav .sub-menu { display: block; list-style: none; padding-left: 16px; }
  .nav-actions { flex-direction: column; }
  .nav-actions .button { min-height: 52px; }
  .nav-panel-foot { display: grid; gap: 10px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: .9rem; }
  .nav-panel-foot a { display: flex; align-items: center; gap: 10px; color: var(--muted); text-decoration: none; word-break: break-all; }
  .nav-panel-foot .icon { flex: none; color: var(--green); }
  .nav-overlay {
    display: block; position: fixed; inset: 0; z-index: 1; background: rgb(14 11 40 / 50%);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s linear .3s;
  }
  .menu-open .nav-overlay { opacity: 1; visibility: visible; transition: opacity .3s, visibility 0s; }
  .menu-toggle[aria-expanded="true"] .bars span { transform: none; opacity: 1; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; background: linear-gradient(180deg, #fff 0%, var(--cream) 100%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; align-items: center; gap: clamp(24px, 4vw, 56px); padding-block: clamp(36px, 6vw, 72px); }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.3rem); line-height: 1.04; margin-bottom: 22px; }
.hero h1 span { display: block; color: var(--green); }
.hero-lead { font-size: clamp(1.02rem, 1.4vw, 1.14rem); color: var(--muted); max-width: 520px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual { position: relative; min-height: clamp(300px, 38vw, 470px); }
.hero-photo {
  position: absolute; inset: 0 22% 0 0; overflow: hidden;
  border-radius: 320px 36px 36px 320px;
  box-shadow: -14px 0 0 var(--green), var(--shadow-lift);
}
.hero-photo .media-img, .hero-photo .media-placeholder { width: 100%; height: 100%; object-fit: cover; }
.hero-photo .media-placeholder { padding-right: 34%; }
.hero-blob {
  position: absolute; right: 0; top: 50%; width: 42%; aspect-ratio: .78;
  transform: translateY(-50%); display: grid; place-items: center; padding: 8%;
  background: var(--navy); color: #fff; border-radius: 58% 42% 46% 54% / 46% 52% 48% 54%;
  box-shadow: var(--shadow-lift);
}
.hero-blob p {
  margin: 0; font: 600 clamp(1.35rem, 2.4vw, 2rem)/1.15 var(--font-script); text-align: center;
  transform: rotate(-6deg);
}
.hero-blob p::after { content: ""; display: block; width: 70%; height: 3px; margin: 10px auto 0; background: var(--gold); border-radius: 3px; }

/* Branded placeholders until real photos are uploaded */
.media-placeholder {
  position: relative; display: grid; place-items: center; align-content: center; gap: 12px;
  width: 100%; height: 100%; min-height: 200px; padding: 24px; text-align: center;
  color: var(--navy); font-size: .82rem; font-weight: 600;
  background:
    radial-gradient(circle at 20% 20%, rgb(255 255 255 / 70%) 0 18%, transparent 19%),
    radial-gradient(circle at 85% 80%, rgb(255 255 255 / 45%) 0 22%, transparent 23%),
    var(--green-soft);
}
.media-placeholder img { width: 84px; opacity: .9; }
.media-placeholder span { max-width: 240px; opacity: .75; }
.media-placeholder.tone-navy { background-color: var(--navy-soft); }
.media-placeholder.tone-gold { background-color: var(--gold-soft); }

/* ==========================================================================
   Trust strip
   ========================================================================== */
.trust { background: var(--cream); border-block: 1px solid var(--line); }
.trust-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 20px; }
.trust-badge { display: flex; align-items: center; gap: 14px; }
.trust-badge p { margin: 0; display: grid; font-size: .85rem; color: var(--muted); }
.trust-badge b { color: var(--navy); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.seal { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--green); border: 2px dashed var(--gold); }
.trust-motto { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-weight: 700; color: var(--navy); }
.trust-motto .icon { color: var(--green); }

/* ==========================================================================
   Action cards
   ========================================================================== */
.actions { padding-bottom: 0; }
.action-grid, .channel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.channel-grid { grid-template-columns: repeat(4, 1fr); margin-bottom: 48px; }
.action-card {
  display: flex; align-items: flex-start; gap: 16px; padding: 24px;
  border-radius: var(--radius); border: 1px solid transparent; text-decoration: none; color: var(--ink);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.action-card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.action-card.tone-green { background: var(--green-soft); }
.action-card.tone-gold { background: var(--gold-soft); }
.action-card.tone-navy { background: var(--navy-soft); }
.action-card.tone-green:hover { border-color: rgb(31 154 79 / 35%); }
.action-card.tone-gold:hover { border-color: rgb(233 162 28 / 45%); }
.action-card.tone-navy:hover { border-color: rgb(42 34 117 / 25%); }
.action-body { display: grid; gap: 6px; flex: 1; }
.action-body b { font-size: 1.12rem; color: var(--navy); }
.tone-green .action-body b { color: var(--green-deep); }
.action-body span { font-size: .9rem; color: var(--muted); line-height: 1.55; }
.action-body strong { margin-top: 4px; font-size: .92rem; color: var(--navy); word-break: break-word; }
.action-arrow { display: grid; place-items: center; width: 34px; height: 34px; margin-top: 8px; border-radius: 50%; color: var(--green-deep); transition: transform .2s, background .2s; }
.tone-gold .action-arrow { color: var(--gold-deep); }
.tone-navy .action-arrow { color: var(--navy); }
.action-card:hover .action-arrow { background: #fff; transform: translateX(3px); }

/* ==========================================================================
   Section headings & program cards
   ========================================================================== */
.section-heading { margin-bottom: 32px; max-width: 680px; }
.section-heading h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); margin-bottom: 8px; }
.section-heading p { color: var(--muted); margin: 0; }
.section-heading.center { text-align: center; margin-inline: auto; }
.section-heading.split { display: flex; justify-content: space-between; align-items: end; gap: 16px; max-width: none; flex-wrap: wrap; }

.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.program-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.program-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.program-card a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.program-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy-soft); }
.program-media .media-img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.program-card:hover .media-img { transform: scale(1.04); }
.program-media .media-placeholder { min-height: 0; }
.program-content { display: flex; flex-direction: column; gap: 4px; padding: 22px 24px 24px; flex: 1; }
.program-content h3 { display: flex; align-items: center; gap: 12px; font-size: 1.2rem; margin-bottom: 6px; }
.program-content h3 .icon-badge { width: 40px; height: 40px; }
.program-content p { color: var(--muted); font-size: .92rem; }
.program-content .text-link { margin-top: auto; }
.card-meta { font-size: .78rem !important; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green-deep) !important; margin-bottom: 4px; }

/* ==========================================================================
   Values
   ========================================================================== */
.values { background: var(--cream); position: relative; }
.values::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(circle at 8% 20%, var(--green-soft) 0 120px, transparent 121px),
              radial-gradient(circle at 94% 85%, var(--navy-soft) 0 160px, transparent 161px);
}
.value-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.value-item { text-align: center; padding: 28px 20px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.value-item .icon-badge { width: 60px; height: 60px; margin-bottom: 16px; }
.value-item .icon { width: 28px; height: 28px; }
.value-item h3 { font-family: var(--font-head); font-size: 1.25rem; }
.value-item p { margin: 0; color: var(--muted); font-size: .9rem; }

/* ==========================================================================
   Impact timeline
   ========================================================================== */
.impact-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 40px; align-items: center; }
.timeline { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; margin: 0; padding: 0; }
.timeline::before { content: ""; position: absolute; left: 10px; right: 10px; top: 11px; height: 2px; background: linear-gradient(90deg, var(--green), var(--navy), var(--gold)); }
.timeline li { position: relative; padding-top: 38px; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; border: 6px solid var(--green);
}
.timeline li.tone-navy::before { border-color: var(--navy); }
.timeline li.tone-gold::before { border-color: var(--gold); }
.timeline time { font: 700 1.9rem/1 var(--font-head); color: var(--navy); }
.timeline h3 { margin: 8px 0 4px; font-size: 1rem; }
.timeline p { margin: 0; color: var(--muted); font-size: .88rem; }

.thanks-card { display: flex; gap: 16px; padding: 28px; background: var(--green-soft); border-radius: var(--radius); border: 1px solid rgb(31 154 79 / 18%); }
.thanks-card .icon-badge { background: var(--green); }
.thanks-card h3 { font-family: var(--font-head); color: var(--green-deep); font-size: 1.4rem; }
.thanks-card p { color: var(--muted); font-size: .92rem; }

.news { background: var(--cream); }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(110deg, var(--green-deep), var(--green) 60%, #27b061);
}
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; width: 280px; height: 250px; opacity: .1; pointer-events: none;
  background: url("../images/mark.png") center / contain no-repeat; filter: brightness(0) invert(1);
}
.cta-band::before { left: -60px; top: -60px; }
.cta-band::after { right: -40px; bottom: -90px; }
.cta-inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px 36px; padding-block: clamp(36px, 5vw, 56px); text-align: center; }
.cta-title { margin: 0; font: 600 clamp(1.5rem, 3vw, 2.2rem)/1.2 var(--font-head); }
.cta-title b { color: #fff; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 4px; text-underline-offset: 8px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy-deep); color: rgb(255 255 255 / 78%); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr 1.1fr; gap: 40px; padding-block: 64px 40px; }
.site-footer h2 { font: 700 .82rem/1 var(--font-body); color: #fff; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: rgb(255 255 255 / 85%); text-decoration: none; }
.site-footer a:hover { color: #7ee2a2; }
.footer-about .brand { margin-bottom: 18px; }
.footer-about .brand img { height: 56px; }
.registration { display: flex; gap: 8px; align-items: flex-start; font-size: .82rem; color: rgb(255 255 255 / 65%); }
.registration .icon { flex: none; color: #7ee2a2; }
.social { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid rgb(255 255 255 / 22%); border-radius: 999px; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-list .icon { flex: none; margin-top: 3px; color: #7ee2a2; }
.contact-list address { font-style: normal; }
.hours { color: #fff; }
.site-footer .muted { color: rgb(255 255 255 / 55%); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-block: 20px 28px; border-top: 1px solid rgb(255 255 255 / 12%); font-size: .82rem; }
.footer-bottom p { margin: 0; }

.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 40; display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff;
  box-shadow: 0 10px 24px rgb(0 0 0 / 22%); transition: transform .2s;
}
.wa-float:hover { color: #fff; transform: scale(1.07); }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-hero {
  position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 88px) clamp(36px, 5vw, 56px);
  background: linear-gradient(180deg, var(--cream), #fff);
  border-bottom: 1px solid var(--line);
}
.page-hero::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%;
  background: var(--green-soft); z-index: 0;
}
.page-hero .shell { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); }
.page-lead { font-size: 1.1rem; color: var(--muted); margin: 0; }
.featured-image { margin-top: 32px; }
.featured-image img { width: 100%; border-radius: var(--radius); }

.entry-content { padding-block: 40px 56px; font-size: 1.04rem; }
.entry-content > * + * { margin-top: 1em; }
.entry-content h2 { font-size: 1.7rem; margin-top: 1.6em; }
.entry-content h3 { font-size: 1.2rem; margin-top: 1.4em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: .4em; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content blockquote { margin: 1.6em 0; padding: 20px 24px; border-left: 4px solid var(--green); background: var(--green-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.entry-content .wp-block-button__link { background: var(--navy); border-radius: 999px; padding: 12px 24px; font-weight: 700; }
.entry-content .wp-block-gallery img { border-radius: var(--radius-sm); }
.pagination-wrap { margin-top: 40px; }
.pagination-wrap .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; font-weight: 600; }
.page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }
.empty { color: var(--muted); }
.notice { padding: 16px 18px; border-radius: var(--radius-sm); background: var(--gold-soft); color: #6b4a06; font-size: .94rem; }

/* Donation */
.donate-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.donate-card { padding: clamp(24px, 4vw, 36px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.donate-card h2 { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; }
.donate-card h2 .icon { color: var(--green); }
.bank-details { display: grid; gap: 0; margin: 20px 0 24px; }
.bank-details div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.bank-details dt { color: var(--muted); font-size: .9rem; }
.bank-details dd { margin: 0; font-weight: 700; color: var(--navy); }
.bank-details .account { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 1.25rem; letter-spacing: .04em; }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--green); border-radius: 999px; background: var(--green-soft); color: var(--green-deep); font: 700 .8rem var(--font-body); letter-spacing: 0; cursor: pointer; }
.copy-btn:hover { background: var(--green); color: #fff; }
.donate-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.qr-card { text-align: center; }
.qr-card h2 { justify-content: center; }
.qr { width: min(260px, 100%); margin: 16px auto; border-radius: var(--radius-sm); border: 8px solid var(--gold-soft); }
.qr-empty { display: grid; place-items: center; aspect-ratio: 1; padding: 24px; background: var(--cream); color: var(--muted); font-size: .9rem; border-style: dashed; border-color: var(--line); border-width: 2px; }

/* Contact */
.contact-split { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: stretch; }
.contact-info p { display: flex; gap: 12px; align-items: flex-start; }
.contact-info .icon { flex: none; color: var(--green); margin-top: 3px; }
.contact-info .entry-content { padding: 8px 0 0; font-size: 1rem; }
.map-frame { min-height: 340px; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }

/* Volunteer */
.volunteer-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; align-items: start; }
.steps-card { position: sticky; top: 100px; padding: 28px; border-radius: var(--radius); background: var(--navy); color: rgb(255 255 255 / 85%); }
.steps-card h2 { color: #fff; font-size: 1.4rem; }
.steps { counter-reset: s; list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 38px 1fr; column-gap: 12px; }
.steps li::before { content: counter(s); grid-row: span 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; }
.steps b { color: #fff; }
.steps span { font-size: .88rem; }
.form-card { padding: clamp(24px, 4vw, 40px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-card.entry-content { font-size: 1rem; }

/* Volunteer form (markup from IKRAR Core plugin) */
.ikrar-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 24px; }
.form-field { display: grid; gap: 6px; margin: 0; }
.form-field-full { grid-column: 1 / -1; }
fieldset.form-field { border: 0; padding: 0; }
.form-field label, .form-legend { font-weight: 600; font-size: .9rem; color: var(--navy); padding: 0; }
.ikrar-form input:not([type="checkbox"]), .ikrar-form select, .ikrar-form textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); font: inherit; transition: border-color .15s, box-shadow .15s;
}
.ikrar-form textarea { min-height: 110px; resize: vertical; }
.ikrar-form input:focus, .ikrar-form select:focus, .ikrar-form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgb(31 154 79 / 15%); }
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 6px; }
.checkbox-grid label { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-weight: 500; color: var(--ink); cursor: pointer; }
.checkbox-grid label:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.ikrar-form input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--green); flex: none; }
.consent { display: flex !important; gap: 12px; align-items: flex-start; font-weight: 500 !important; color: var(--ink) !important; }
.form-note { margin: 6px 0 0; font-size: .82rem; color: var(--muted); }
.form-status { margin-bottom: 20px; padding: 16px 18px; border-radius: var(--radius-sm); }
.form-status.success { background: var(--green-soft); color: var(--green-deep); border: 1px solid rgb(31 154 79 / 30%); }
.form-status.error { background: #fdecec; color: #9b1c1c; border: 1px solid #f5c2c2; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1020px) {
  .action-grid { grid-template-columns: 1fr; gap: 12px; }
  .channel-grid { grid-template-columns: repeat(2, 1fr); }
  .program-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .impact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .volunteer-grid, .donate-grid, .contact-split { grid-template-columns: 1fr; }
  .steps-card { position: static; }
}

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 28px; }
  .hero-visual { min-height: 0; aspect-ratio: 1.15; }
  .hero-photo { inset: 0 16% 0 14px; }
  .hero-blob { width: 46%; }
  .hero-actions .button { flex: 1 1 100%; }
  .action-card { padding: 18px; align-items: center; }
  .action-body span { display: none; }
  .channel-grid .action-body span { display: block; }
  .action-arrow { margin-top: 0; }
  .icon-badge { width: 42px; height: 42px; }
  .program-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline::before { left: 11px; right: auto; top: 12px; bottom: 12px; width: 2px; height: auto; background: linear-gradient(180deg, var(--green), var(--navy), var(--gold)); }
  .timeline li { padding: 0 0 24px 44px; }
  .timeline time { font-size: 1.5rem; }
  .ikrar-form .form-grid { grid-template-columns: 1fr; }
  .bank-details div { grid-template-columns: 1fr; gap: 2px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; }
  .trust-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .value-grid, .channel-grid { grid-template-columns: 1fr; }
  .brand img { height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Donation campaigns
   ========================================================================== */
.progress { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress span { display: block; height: 100%; min-width: 4px; border-radius: inherit; background: linear-gradient(90deg, var(--green), #34c06d); }

/* Cards */
.campaign-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.campaign-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.campaign-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.campaign-card a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.campaign-media { position: relative; aspect-ratio: 16 / 9; background: var(--green-soft); overflow: hidden; }
.campaign-media .media-img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.campaign-card:hover .media-img { transform: scale(1.04); }
.campaign-media .media-placeholder { min-height: 0; }
.campaign-flag { position: absolute; left: 12px; top: 12px; padding: 5px 12px; border-radius: 99px; background: rgb(29 23 87 / 85%); color: #fff; font-size: .76rem; font-weight: 700; }
.campaign-body { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 22px; flex: 1; }
.campaign-body h3 { font-size: 1.08rem; line-height: 1.35; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.campaign-org { margin: 0 0 10px; font-size: .82rem; color: var(--muted); }
.campaign-body .progress { margin-top: auto; }
.campaign-figures { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; margin: 10px 0 0; font-size: .9rem; color: var(--muted); }
.campaign-figures strong { color: var(--green-deep); font-size: 1.1rem; }
.campaign-figures em { margin-left: auto; font-style: normal; font-size: .82rem; }
.campaigns-home { padding-bottom: 0; }

/* Detail page layout */
.campaign-page { background: var(--cream); padding-bottom: 40px; }
.campaign-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 420px; column-gap: 40px; row-gap: 24px;
  grid-template-areas: "head stats" "head form" "content form"; grid-template-rows: auto auto 1fr;
  padding-block: 28px 56px;
}
.campaign-head { grid-area: head; }
.campaign-stats { grid-area: stats; align-self: start; }
.campaign-content { grid-area: content; display: grid; gap: 20px; align-content: start; }
.campaign-form { grid-area: form; align-self: start; position: sticky; top: 100px; }

.breadcrumb { display: flex; gap: 8px; font-size: .85rem; margin-bottom: 16px; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--green-deep); }
.campaign-cover { position: relative; margin: 0 0 22px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--green-soft); box-shadow: var(--shadow); }
.campaign-cover .media-img { width: 100%; height: 100%; object-fit: cover; }
.campaign-head h1 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); text-transform: none; }
.campaign-meta { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 16px 0 0; padding: 16px 20px; border-radius: var(--radius-sm); background: var(--green-soft); border: 1px solid rgb(31 154 79 / 18%); }
.campaign-meta dt { font-size: .76rem; color: var(--muted); }
.campaign-meta dd { display: flex; align-items: center; gap: 6px; margin: 2px 0 0; font-weight: 700; font-size: .92rem; color: var(--navy); }
.campaign-meta dd .icon { color: var(--green); }

.campaign-stats, .panel, .donors, .campaign-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.campaign-stats { padding: 22px 24px; }
.stats-row { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.ring { position: relative; flex: none; width: 64px; height: 64px; }
.ring svg { transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 6; }
.ring-track { stroke: var(--green-soft); }
.ring-fill { stroke: var(--green); stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: .78rem; font-weight: 800; color: var(--navy); }
.stat { display: grid; line-height: 1.2; }
.stat strong { font-size: 1.05rem; color: var(--navy); }
.stat span { font-size: .76rem; color: var(--muted); }
.stat-money { margin-right: auto; }
.stat-money strong { font-size: 1.45rem; color: var(--green-deep); font-family: var(--font-head); }
.share-row { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.share { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; color: #fff; cursor: pointer; transition: transform .15s; }
.share:hover { color: #fff; transform: translateY(-2px); }
.share.wa { background: #25d366; }
.share.tg { background: #229ed9; }
.share.fb { background: #1877f2; }
.share.more { background: var(--navy-soft); color: var(--navy); }
.share.more.is-copied { background: var(--green); color: #fff; }

.panel { padding: 24px 26px; }
.panel h2, .donors h2 { font: 700 1.15rem/1.3 var(--font-body); margin: 0 0 12px; color: var(--navy); }
.panel .entry-content { padding: 0; font-size: 1rem; }
.readmore-body { position: relative; }
.panel.is-clamped .readmore-body { max-height: 340px; overflow: hidden; }
.panel.is-clamped .readmore-body::after { content: ""; position: absolute; inset: auto 0 0; height: 110px; background: linear-gradient(transparent, #fff); }
.readmore-toggle { margin-top: 12px; padding: 0; border: 0; background: none; cursor: pointer; font-family: inherit; }
details.panel summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; }
details.panel summary::-webkit-details-marker { display: none; }
details.panel summary h2 { margin: 0; }
details.panel summary .count { margin-left: auto; margin-right: 12px; min-width: 26px; padding: 2px 8px; border-radius: 99px; background: var(--navy-soft); color: var(--navy); font-size: .78rem; font-weight: 700; text-align: center; }
details.panel summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg); transition: transform .2s; }
details.panel[open] summary::after { transform: rotate(-135deg); }
details.panel[open] summary { margin-bottom: 14px; }
.updates { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--green-soft); display: grid; gap: 18px; }
.updates li { position: relative; }
.updates li::before { content: ""; position: absolute; left: -25px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px #fff; }
.updates time { font-size: .78rem; font-weight: 700; color: var(--green-deep); }
.updates p { margin: 4px 0 0; font-size: .95rem; }

.donors { padding: 24px; background: var(--navy); border-color: var(--navy); }
.donors h2 { color: #fff; }
.donors ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.donors li { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--radius-sm); background: #fff; }
.donors li[hidden] { display: none; }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy-soft); color: var(--navy); }
.donor-text { display: grid; line-height: 1.35; min-width: 0; }
.donor-text b { font-size: .92rem; color: var(--ink); }
.donor-text span { font-size: .8rem; color: var(--muted); }
.donor-text q { font-size: .82rem; color: var(--green-deep); font-style: italic; overflow-wrap: anywhere; }
.donors time { align-self: start; font-size: .72rem; color: var(--muted); white-space: nowrap; }
.donors time::before { content: "●"; margin-right: 4px; color: var(--green); font-size: .6rem; vertical-align: middle; }
.donors-more { display: block; margin: 14px auto 0; padding: 8px 20px; border: 1px solid rgb(255 255 255 / 40%); border-radius: 99px; background: transparent; color: #fff; font: 600 .85rem var(--font-body); cursor: pointer; }
.donors-more:hover { background: rgb(255 255 255 / 10%); }

.report-note { display: flex; align-items: center; gap: 12px; padding: 0 6px; font-size: .88rem; color: var(--muted); }
.report-note span { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #d64545; color: #d64545; font-weight: 800; }
.report-note p { margin: 0; }

/* Donation form */
.campaign-form { padding: 26px; scroll-margin-top: 96px; }
.campaign-form > h2 { font: 800 1.12rem/1.35 var(--font-body); text-transform: uppercase; letter-spacing: .01em; color: var(--navy); margin-bottom: 18px; }
.ikrar-donate { display: grid; gap: 14px; }
.donate-type { display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 0; border: 0; border-radius: var(--radius-sm); overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 4px 12px rgb(29 23 87 / 6%); }
.donate-type label { position: relative; cursor: pointer; }
.donate-type input { position: absolute; opacity: 0; inset: 0; }
.donate-type span { display: grid; place-items: center; min-height: 58px; padding: 10px; text-align: center; font-weight: 600; font-size: .92rem; color: var(--navy); background: #fff; transition: background .15s, color .15s; }
.donate-type input:checked + span { background: var(--green); color: #fff; }
.donate-type input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: -3px; }
.donate-type .is-disabled { cursor: not-allowed; }
.donate-type .is-disabled span { color: #a3a5b5; }
.donate-note { margin: -4px 0 0; text-align: center; font-size: .78rem; color: var(--muted); }
.donate-amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; padding: 0; border: 0; }
.donate-amounts label { position: relative; cursor: pointer; }
.donate-amounts input { position: absolute; opacity: 0; inset: 0; }
.donate-amounts span { display: grid; place-items: center; min-height: 52px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-weight: 700; color: var(--navy); background: #fff; transition: border-color .15s, background .15s, color .15s; }
.donate-amounts label:hover span { border-color: var(--green); }
.donate-amounts input:checked + span { border-color: var(--green); background: var(--green-soft); color: var(--green-deep); box-shadow: inset 0 0 0 1px var(--green); }
.donate-amounts input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.donate-custom { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; transition: border-color .15s, box-shadow .15s; }
.donate-custom:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px rgb(31 154 79 / 15%); }
.donate-custom > span { color: var(--muted); font-weight: 600; }
.donate-custom input::-webkit-outer-spin-button, .donate-custom input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.donate-hint { margin: -6px 0 0; font-size: .82rem; color: #b42318; }
.donate-details { display: grid; gap: 12px; padding-top: 6px; border-top: 1px dashed var(--line); }
.donate-details h3 { margin: 6px 0 0; font-size: 1rem; }
.ikrar-donate.is-step-amount .donate-details { display: none; }
.ikrar-donate input:not([type="checkbox"]):not([type="radio"]), .ikrar-donate textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font: inherit; color: var(--ink); background: #fff;
}
.ikrar-donate textarea { min-height: 70px; resize: vertical; }
.ikrar-donate label.donate-custom input:not([type="checkbox"]):not([type="radio"]) { flex: 1; min-width: 0; min-height: 0; padding: 14px 0; border: 0; box-shadow: none; outline: none; font-size: 1rem; font-weight: 600; -moz-appearance: textfield; }
.ikrar-donate input:focus, .ikrar-donate textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgb(31 154 79 / 15%); }
.ikrar-donate input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--green); flex: none; }
.donate-submit { width: 100%; min-height: 56px; border-radius: var(--radius-sm); font-size: 1.02rem; }
.donate-submit.is-loading { opacity: .7; pointer-events: none; }
.donate-secure { margin: -4px 0 0; text-align: center; font-size: .78rem; color: var(--muted); }
.donate-closed { padding: 18px; border-radius: var(--radius-sm); background: var(--navy-soft); color: var(--navy); font-size: .94rem; }

.donate-result { margin-bottom: 18px; padding: 20px; border-radius: var(--radius-sm); }
.donate-result h3 { margin: 0 0 6px; font-size: 1.12rem; }
.donate-result p { font-size: .92rem; }
.donate-result code { padding: 2px 6px; border-radius: 6px; background: rgb(255 255 255 / 70%); font-weight: 700; }
.donate-result.is-paid { background: var(--green-soft); border: 1px solid rgb(31 154 79 / 30%); text-align: center; }
.donate-result.is-paid h3 { color: var(--green-deep); font-family: var(--font-head); font-size: 1.4rem; }
.donate-result-icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 50%; background: var(--green); color: #fff; font-size: 1.6rem; font-weight: 800; }
.donate-result.is-pending { background: var(--gold-soft); border: 1px solid rgb(233 162 28 / 40%); }
.donate-result.is-failed { background: #fdecec; border: 1px solid #f5c2c2; color: #7a1c1c; }
.donate-result .bank-details { margin: 10px 0 14px; }
.donate-result .bank-details div { grid-template-columns: 100px 1fr; padding: 8px 0; }
.donate-result .bank-details .account { font-size: 1.05rem; }
.donate-qr img { width: 180px; margin: 0 auto 14px; border-radius: 10px; }
.donate-result .button { width: 100%; }

.related { padding-top: 24px; }
.related .section-heading h2 { font-size: 1.5rem; }

/* Sticky mobile donate bar */
.donate-bar { display: none; }
@media (max-width: 1020px) {
  .campaign-grid { grid-template-columns: repeat(2, 1fr); }
  .campaign-layout { grid-template-columns: 1fr; grid-template-areas: "head" "stats" "content" "form"; grid-template-rows: none; padding-bottom: 32px; }
  .campaign-form { position: static; }
  .donate-bar {
    display: block; position: fixed; inset: auto 0 0; z-index: 45; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    background: rgb(255 255 255 / 96%); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgb(29 23 87 / 8%);
    transition: transform .25s;
  }
  .donate-bar.is-hidden { transform: translateY(110%); }
  .donate-bar .button { width: 100%; min-height: 52px; border-radius: var(--radius-sm); }
  .single-ikrar_campaign .wa-float { display: none; }
  .single-ikrar_campaign .site-footer { padding-bottom: 76px; }
}
@media (max-width: 760px) {
  .campaign-grid { grid-template-columns: 1fr; }
  .campaign-layout { padding-top: 16px; }
  .campaign-cover { margin-inline: calc(var(--gutter) * -1); border-radius: 0; }
  .stats-row { gap: 10px 14px; flex-wrap: wrap; }
  .ring { width: 56px; height: 56px; }
  .ring svg { width: 56px; height: 56px; }
  .stat-money strong { font-size: 1.2rem; }
  .campaign-form { padding: 20px 16px; }
  .donors li { grid-template-columns: 36px 1fr; }
  .donors time { grid-column: 2; }
  .avatar { width: 36px; height: 36px; }
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-page { background: var(--cream); }
.gallery-page .page-hero { background: linear-gradient(180deg, #fff, var(--cream)); }
.album-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 12px; color: var(--muted); font-size: .92rem; }
.album-meta span { display: inline-flex; align-items: center; gap: 6px; }
.album-meta .icon { color: var(--green); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 99px; background: #fff; color: var(--navy); font: 600 .85rem var(--font-body); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.chip:hover { border-color: var(--green); }
.chip.is-active { background: var(--green); border-color: var(--green); color: #fff; }

.album-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.album-card[hidden] { display: none; }
.album-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.album-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.album-card a { display: block; height: 100%; color: inherit; text-decoration: none; }
.album-cover { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy-soft); }
.album-cover .media-img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.album-card:hover .media-img { transform: scale(1.05); }
.album-cover .media-placeholder { min-height: 0; }
.album-cover::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgb(29 23 87 / 45%)); pointer-events: none; }
.album-count { position: absolute; right: 12px; bottom: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; background: rgb(255 255 255 / 92%); color: var(--navy); font-size: .76rem; font-weight: 700; }
.album-body { padding: 18px 20px 22px; }
.album-body h3 { font-size: 1.1rem; margin: 0 0 6px; }
.album-body p:last-child { margin: 0; font-size: .9rem; color: var(--muted); }

.photo { position: relative; display: block; overflow: hidden; border-radius: var(--radius-sm); background: var(--navy-soft); cursor: zoom-in; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, filter .3s; }
.photo:hover img { transform: scale(1.04); filter: brightness(.92); }
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.photo-grid .photo { aspect-ratio: 1; }
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; gap: 12px; }
.mosaic .photo:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic .photo:nth-child(6) { grid-column: span 2; }

.fb-follow { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; padding: 28px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.fb-follow .icon-badge { background: #1877f2; width: 56px; height: 56px; }
.fb-follow div { flex: 1; min-width: 220px; }
.fb-follow h2 { font-size: 1.3rem; margin: 0 0 4px; }
.fb-follow p { margin: 0; color: var(--muted); }

.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(14 11 40 / 94%); color: #fff; }
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { display: grid; place-items: center; align-content: center; gap: 12px; width: 100%; height: 100%; margin: 0; padding: 64px 72px 24px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; border-radius: 8px; box-shadow: 0 20px 60px rgb(0 0 0 / 40%); transition: opacity .2s; }
.lightbox img.is-loading { opacity: .3; }
.lightbox figcaption { display: flex; gap: 16px; justify-content: center; max-width: 900px; font-size: .92rem; text-align: center; color: rgb(255 255 255 / 85%); }
.lightbox [data-lb-count] { color: rgb(255 255 255 / 55%); white-space: nowrap; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgb(255 255 255 / 12%); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; transition: background .15s; }
.lb-btn:hover { background: rgb(255 255 255 / 24%); }
.lb-close { top: 16px; right: 16px; font-size: 1.8rem; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox.is-single .lb-prev, .lightbox.is-single .lb-next { display: none; }

@media (max-width: 1020px) {
  .album-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
  .mosaic { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 150px; }
  .mosaic .photo:nth-child(6) { grid-column: auto; }
  .mosaic .photo:nth-child(n+7) { display: none; }
}
@media (max-width: 760px) {
  .album-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; gap: 8px; }
  .mosaic .photo:nth-child(7) { display: block; }
  .lightbox figure { padding: 60px 8px 20px; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
  .lightbox figcaption { padding: 0 56px; }
}
