/* ==========================================================================
   Madrasah Jamia Rabiatul Lil Banat — site-specific layer
   Same emerald/gold theme as Tehatta (variables.css untouched);
   components and layout treatments differentiated here.
   Loaded last so these rules win the cascade.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Real image logo in brand lockups (header / drawer / footer)
   -------------------------------------------------------------------------- */
.brand__logo-img {
  height: 48px;
  width: auto;
  flex-shrink: 0;
  border-radius: 10px;
  background: #fff;
}

.brand--footer .brand__logo-img {
  height: 56px;
}

.drawer__head .brand__logo-img {
  height: 36px;
  border-radius: 8px;
}

/* --------------------------------------------------------------------------
   2. Split hero — logo panel leads (media first on all viewports)
   -------------------------------------------------------------------------- */
.hero--split .hero__media {
  display: block;
  order: -1;
}

.hero__logo-panel {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 44px);
  text-align: center;
  box-shadow: var(--shadow-lg);
  border-top: 6px solid var(--color-secondary);
}

.hero__logo-panel img {
  width: min(100%, 300px);
  height: auto;
  margin-inline: auto;
}

.hero__reg {
  display: inline-block;
  margin-top: 18px;
  padding: 8px 18px;
  border: var(--border);
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-bg);
}

@media (min-width: 768px) {
  .hero--split .hero__inner {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

/* --------------------------------------------------------------------------
   3. Tinted stats band — deep emerald panel, gold numerals
   -------------------------------------------------------------------------- */
.stats--band {
  background: var(--color-primary-dark);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 52px) clamp(20px, 4vw, 48px);
  box-shadow: var(--shadow-lg);
  /* Two stats only — keep both columns equal so items sit centered,
     overriding the 4-column desktop layout from responsive.css */
  grid-template-columns: repeat(2, 1fr);
}

.stats--band .stat__number {
  color: var(--color-secondary);
}

.stats--band .stat__label {
  color: rgba(255, 255, 255, 0.82);
}

/* --------------------------------------------------------------------------
   4. Donation appeal panel (gold-tinted callout)
   -------------------------------------------------------------------------- */
.appeal-panel {
  background: linear-gradient(180deg, rgba(56, 176, 0, 0.14), rgba(56, 176, 0, 0.06));
  border: 1px solid rgba(56, 176, 0, 0.45);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
}

.appeal-panel__title {
  color: var(--color-primary);
  margin-bottom: 12px;
}

.appeal-panel__list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: reward;
}

.appeal-panel__list li {
  counter-increment: reward;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--color-text);
}

.appeal-panel__list li::before {
  content: counter(reward);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   5. Bank details card (wraps the standard .table)
   -------------------------------------------------------------------------- */
.bank-card {
  background: var(--color-card);
  border: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.bank-card__head {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 18px 24px;
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
}

.bank-card .table {
  margin: 0;
}

.bank-card .table th {
  width: 34%;
}

/* --------------------------------------------------------------------------
   6. Committee list
   -------------------------------------------------------------------------- */
.committee-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.committee-list__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--color-card);
  border: var(--border);
  border-inline-start: 4px solid var(--color-secondary);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}

.committee-list__role {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-secondary-dark, var(--color-secondary));
  margin-bottom: 4px;
}

.committee-list__name {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  margin: 0;
}

/* --------------------------------------------------------------------------
   7. Route / directions block
   -------------------------------------------------------------------------- */
.route-block {
  display: grid;
  gap: 14px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 36px);
}

.route-block__title {
  color: var(--color-white);
  margin-bottom: 4px;
}

.route-block ol {
  margin: 0;
  padding-inline-start: 22px;
  display: grid;
  gap: 10px;
  color: rgba(255, 255, 255, 0.9);
}

.route-block__note {
  margin: 6px 0 0;
  font-size: var(--fs-small);
  color: var(--color-secondary);
  font-weight: var(--fw-semi);
}

/* --------------------------------------------------------------------------
   8. Page banner variant — gold rule + tighter rhythm
   -------------------------------------------------------------------------- */
.page-banner--m3 {
  border-bottom: 6px solid var(--color-secondary);
}

.page-banner--m3 .page-banner__inner {
  max-width: var(--container);
}

/* --------------------------------------------------------------------------
   9. Gallery placeholder note
   -------------------------------------------------------------------------- */
.gallery-note {
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-card);
  padding: clamp(24px, 4vw, 40px);
  text-align: center;
  color: var(--color-muted);
  margin-bottom: 28px;
}

.gallery-note strong {
  display: block;
  color: var(--color-primary);
  font-family: var(--font-heading);
  margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   10. Organised gallery grids (gallery page + home preview)
   Uniform tile heights at every viewport so rows stay level, and a clean
   3-column rhythm on desktop instead of the ragged 5-column mosaic.
   -------------------------------------------------------------------------- */
.gallery-grid img {
  height: 190px;
  object-fit: cover;
}

.gallery-grid .gallery-item:nth-child(1),
.gallery-grid .gallery-item:nth-child(6) {
  grid-column: auto;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-grid img {
    height: 240px;
  }
}

@media (min-width: 1200px) {
  .gallery-grid img {
    height: 250px;
  }
}
