/* ============================================================
   PAGES — inner page styles (about, guidance, wazaif, blog,
   media, free rohani ilaj). Extends main.css design system.
   ============================================================ */

/* ---------- Page hero ---------- */
.page-hero {
  padding: calc(var(--nav-h) + clamp(56px, 8vw, 110px)) 0 clamp(40px, 6vw, 72px);
  text-align: center;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(11, 46, 34, 0.55), transparent 70%),
    var(--bg);
}
.page-hero__title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: var(--ivory);
  margin: 18px 0 16px;
  line-height: 1.12;
}

/* ---------- Alternating section tint ---------- */
.section--alt { background: rgba(7, 31, 24, 0.55); }

/* ---------- Split layout (text + media) ---------- */
.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split__media img {
  width: 100%;
  border-radius: var(--r-lg);
  display: block;
}
.split p { color: var(--text-muted); margin-bottom: 16px; line-height: 1.75; }

.tick-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.tick-list li {
  position: relative;
  padding-left: 34px;
  color: var(--text-muted);
  line-height: 1.65;
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background:
    linear-gradient(135deg, transparent 46%, var(--gold) 46%, var(--gold) 54%, transparent 54%) no-repeat center/10px 10px;
}
.tick-list strong { color: var(--ivory); }

/* ---------- Numbered steps ---------- */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 18px; }
.steps li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--bg-soft);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-md);
  padding: 22px 26px;
}
.steps li > span {
  flex: 0 0 46px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--gold);
  color: #071F18;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
}
.steps strong { color: var(--ivory); font-size: 1.05rem; }
.steps p { color: var(--text-muted); margin: 6px 0 0; line-height: 1.65; }

/* ---------- Notice banner ---------- */
.notice {
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-md);
  padding: 16px 22px;
  margin-bottom: 36px;
  color: var(--text-muted);
}
.notice strong { color: var(--gold); }

/* ---------- Highlight band ---------- */
.highlight-band {
  margin-top: 48px;
  background: linear-gradient(135deg, rgba(11,46,34,.9), rgba(7,31,24,.9));
  border: 1px solid var(--gold-border);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 48px);
  text-align: center;
  display: grid;
  gap: 18px;
  justify-items: center;
}
.highlight-band p { color: var(--text-muted); max-width: 640px; line-height: 1.7; }
.highlight-band strong { color: var(--ivory); }

/* ---------- 4-column card grid ---------- */
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card .btn { margin-top: 14px; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--bg-soft);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4.5vw, 56px);
  max-width: 860px;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
}
.form { margin-top: 28px; display: grid; gap: 22px; }
.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label, .field__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ivory);
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field input[type="date"],
.field input[type="time"],
.field textarea,
.field input[type="file"] {
  background: rgba(3, 15, 11, 0.6);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-sm);
  color: var(--ivory);
  padding: 13px 16px;
  font: inherit;
  width: 100%;
  color-scheme: dark;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.18);
}
.field input[type="file"] { cursor: pointer; }
.radio-row { display: flex; gap: 24px; padding: 13px 4px; }
.radio-row label {
  display: flex; align-items: center; gap: 9px;
  color: var(--text-muted); font-weight: 500; cursor: pointer;
}
.radio-row input[type="radio"] { accent-color: var(--gold); width: 17px; height: 17px; }
.form__note { color: var(--text-faint); font-size: 0.88rem; text-align: center; }
.form__success {
  text-align: center;
  padding: 48px 24px;
  display: grid;
  gap: 12px;
  justify-items: center;
}
.form__success h3 { color: var(--gold); font-size: 1.8rem; }
.form__success p { color: var(--text-muted); max-width: 520px; line-height: 1.7; }

/* ---------- Blog cards ---------- */
.post-card { overflow: hidden; padding: 0; }
.post-card__art {
  height: 170px;
  background:
    radial-gradient(circle at 20% 20%, rgba(201,162,75,.22), transparent 55%),
    linear-gradient(135deg, #0B2E22, #04120D);
  border-bottom: 1px solid var(--gold-border);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.post-card__cat {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #071F18;
  background: var(--gold);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  font-weight: 700;
}
.post-card__body { padding: 24px; display: grid; gap: 12px; }
.post-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-faint);
  font-size: 0.88rem;
  margin-top: 6px;
}

/* ---------- Gallery + lightbox ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.g-item {
  border: 1px solid var(--gold-border);
  border-radius: var(--r-md);
  overflow: hidden;
  padding: 0;
  background: var(--bg-soft);
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
}
.g-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease);
}
.g-item:hover img { transform: scale(1.06); }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(3, 15, 11, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 40px 24px;
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox__img {
  max-width: min(920px, 92vw);
  max-height: 78vh;
  border-radius: var(--r-md);
  border: 1px solid var(--gold-border);
  object-fit: contain;
}
.lightbox__cap { color: var(--text-muted); }
.lightbox__close {
  position: absolute;
  top: 22px; right: 28px;
  background: transparent;
  border: 1px solid var(--gold-border);
  color: var(--gold);
  font-size: 1.8rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
}
.lightbox__close:hover { background: var(--gold-soft); }

/* ---------- Page-level responsive ---------- */
@media (max-width: 1024px) {
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split__media { order: -1; max-width: 420px; }
}
@media (max-width: 640px) {
  .form__grid { grid-template-columns: 1fr; }
  .cards--4, .cards--3 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
}

/* ---------- About : extended sections ---------- */
.page-hero__banner { margin-top: 44px; }
.page-hero__banner img {
  width: 100%;
  border-radius: var(--r-lg);
  border: 1px solid var(--gold-border);
  box-shadow: var(--shadow-card);
}
.scholar-card { text-align: center; align-items: center; }
.scholar-card__initial {
  width: 66px; height: 66px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #E9CF8F, #a8813a 75%);
  color: #0A1F17;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold);
}
.inst-card { padding: 0; overflow: hidden; }
.inst-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--gold-border);
}
.inst-card__body { padding: 26px; display: grid; gap: 10px; }
.card__num--dark { color: rgba(201, 162, 75, 0.4); }
