/* ==========================================================================
   Gugudde TV — Page-specific overrides
   Kept thin: layout/components handle the bulk. Only truly one-off rules
   for a specific page's unique section live here.
   ========================================================================== */

/* ---- Home: hero ---- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(16,10,25,0.92) 0%, rgba(30,15,45,0.55) 55%, rgba(59,15,74,0.35) 100%);
}
.hero__content {
  position: relative; z-index: 2;
  padding-block: var(--space-2xl) var(--space-2xl);
  max-width: 820px;
}
.hero__tag {
  display: inline-flex; align-items: center; gap: 0.5em;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(6px);
  padding: 0.5em 1.1em;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: var(--space-md);
}
.hero__title { font-size: var(--fs-hero); margin-bottom: var(--space-md); color: var(--white); }
.hero__title em { font-style: normal; color: var(--gold-300); }
.hero__lede { font-size: var(--fs-lg); color: var(--gray-200); max-width: 600px; margin-bottom: var(--space-lg); }
.hero__cta { display: flex; gap: var(--space-sm); flex-wrap: wrap; margin-bottom: var(--space-xl); }
.hero__dots { display: flex; gap: 0.5rem; }
.hero__dots button {
  width: 34px; height: 4px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.35);
  transition: background var(--dur-base) var(--ease-out), width var(--dur-base) var(--ease-out);
}
.hero__dots button.is-active { background: var(--gold-500); width: 54px; }

.pillar-strip {
  position: relative; z-index: 3;
  margin-top: -80px;
}
@media (max-width: 900px) { .pillar-strip { margin-top: -40px; } }
@media (max-width: 640px) { .pillar-strip { margin-top: var(--space-md); } }

/* ---- Home: welcome/about teaser ---- */
.welcome-collage {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--space-sm);
  height: 100%;
  min-height: 420px;
}
.welcome-collage img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); }
.welcome-collage > :first-child { grid-row: 1 / 3; }
.welcome-collage__badge {
  position: absolute; bottom: -20px; right: -16px;
  background: var(--gradient-brand);
  color: var(--white);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  text-align: center;
  min-width: 140px;
}
.welcome-collage__badge strong { display: block; font-family: var(--font-heading); font-size: var(--fs-h3); color: var(--gold-300); }
.welcome-collage__badge span { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; }
.check-list { display: grid; gap: 0.75rem; margin: var(--space-md) 0 var(--space-lg); }
.check-list li { display: flex; gap: 0.6em; align-items: flex-start; color: var(--color-text); font-weight: 500; }
.check-list svg { width: 20px; height: 20px; color: var(--color-accent-dark); flex-shrink: 0; margin-top: 2px; }

/* ---- Home: CTA band ---- */
.cta-band {
  position: relative;
  padding-block: var(--space-2xl);
  background: var(--gradient-brand-radial);
  color: var(--white);
  text-align: center;
  overflow: hidden;
}
.cta-band__bg { position: absolute; inset: 0; opacity: 0.25; background-size: cover; background-position: center; mix-blend-mode: overlay; }
.cta-band__inner { position: relative; z-index: 1; max-width: 760px; margin-inline: auto; }
.cta-band h2 { color: var(--white); }
.cta-band .btn-row { display: flex; gap: var(--space-sm); justify-content: center; flex-wrap: wrap; margin-top: var(--space-md); }

/* ---- Schedule page ---- */
.day-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.4rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-lg);
}
.day-tabs button {
  flex: 1;
  min-width: 88px;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.day-tabs button.is-active { background: var(--color-primary); color: var(--white); box-shadow: var(--shadow-sm); }
.day-tabs button:hover:not(.is-active) { background: var(--purple-100); color: var(--color-primary); }

.schedule-toolbar {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}
.schedule-search { position: relative; flex: 1; min-width: 240px; max-width: 360px; }
.schedule-search input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.6rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border);
}
.schedule-search svg { position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--color-text-muted); }
.schedule-legend { display: flex; gap: 0.9rem; flex-wrap: wrap; font-size: var(--fs-xs); color: var(--color-text-muted); }
.schedule-legend span { display: inline-flex; align-items: center; gap: 0.4em; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; }
.legend-dot--worship { background: var(--purple-600); }
.legend-dot--teaching { background: var(--navy-500); }
.legend-dot--news { background: var(--gold-500); }
.legend-dot--live { background: #C63B1D; }

.schedule-day { display: none; }
.schedule-day.is-active { display: block; }

.time-slot {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 0.65rem;
  transition: border-color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.time-slot:hover { border-color: var(--purple-400); background: var(--purple-100); }
.time-slot.is-live { border-color: #C63B1D; background: #FFF6F3; }
.time-slot__time { font-family: var(--font-heading); font-weight: 700; color: var(--color-primary); font-size: var(--fs-sm); }
.time-slot__info h4 { font-size: var(--fs-h6); text-transform: none; letter-spacing: 0; margin-bottom: 0.15rem; color: var(--color-text); }
.time-slot__info p { font-size: var(--fs-xs); margin: 0; }
.time-slot.is-hidden { display: none; }

@media (max-width: 640px) {
  .time-slot { grid-template-columns: 1fr; gap: 0.35rem; text-align: left; }
  .day-tabs { overflow-x: auto; flex-wrap: nowrap; }
}

/* ---- Rate card / advertise page ---- */
.rate-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--color-border); }
.rate-table { min-width: 640px; }
.rate-table th, .rate-table td { padding: 0.85rem 1.1rem; text-align: left; font-size: var(--fs-sm); }
.rate-table thead th {
  background: var(--gradient-brand);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  white-space: nowrap;
}
.rate-table tbody tr:nth-child(odd) { background: var(--color-bg-alt); }
.rate-table tbody td:first-child { font-weight: 600; color: var(--color-text); white-space: nowrap; }
.rate-table tfoot td { font-weight: 700; }
.rate-card-group { margin-bottom: var(--space-xl); }
.rate-card-group__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-sm); margin-bottom: var(--space-sm); flex-wrap: wrap; }
.rate-card-group__head h3 { margin-bottom: 0; }
.rate-card-group__head p { margin: 0; font-size: var(--fs-sm); }

.show-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-sm); }
.show-strip__item {
  text-align: center;
  padding: var(--space-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.show-strip__item strong { display: block; font-family: var(--font-heading); font-size: var(--fs-sm); margin-bottom: 0.2rem; color: var(--color-primary); }
.show-strip__item span { font-size: var(--fs-xs); color: var(--color-text-muted); }

/* ---- Partner page ---- */
.payment-card {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}
.payment-card__icon {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: var(--radius-md);
  display: grid; place-items: center;
  background: var(--gold-100);
  color: var(--gold-600);
}
.payment-card__icon svg { width: 26px; height: 26px; }
.payment-card code {
  display: inline-block;
  background: var(--purple-100);
  color: var(--purple-700);
  padding: 0.2em 0.6em;
  border-radius: 6px;
  font-weight: 700;
  font-family: var(--font-heading);
}
.testimonial-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
}
.testimonial-card p { font-style: italic; color: var(--color-text); }
.testimonial-card footer { margin-top: var(--space-sm); font-size: var(--fs-sm); font-weight: 600; color: var(--color-primary); }
.testimonial-card footer span { display: block; font-weight: 400; color: var(--color-text-muted); font-size: var(--fs-xs); }
.unverified-flag {
  display: inline-flex; align-items: center; gap: 0.35em;
  font-size: var(--fs-xs); color: var(--gold-600); margin-top: 0.5rem;
}
.unverified-flag svg { width: 14px; height: 14px; }

/* ---- Contact page ---- */
.contact-card {
  display: flex; gap: var(--space-sm);
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.contact-card__icon {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--purple-100);
  color: var(--color-primary);
}
.contact-card__icon svg { width: 24px; height: 24px; }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); }
.map-frame iframe { width: 100%; height: 420px; border: 0; display: block; }

.whatsapp-fab {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: grid; place-items: center;
  box-shadow: var(--shadow-lg);
  transition: transform var(--dur-base) var(--ease-out);
}
.whatsapp-fab:hover { transform: scale(1.08); color: var(--white); }
.whatsapp-fab svg { width: 28px; height: 28px; }

/* ---- Team / organogram page ---- */
.org-chart { display: grid; justify-items: center; gap: var(--space-sm); margin-bottom: var(--space-2xl); }
.org-chart__connector { width: 2px; height: 28px; background: var(--gray-300); }
.org-chart__row {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
}
.org-chart__row::before {
  content: '';
  position: absolute;
  top: -28px; left: 15%; right: 15%;
  height: 2px;
  background: var(--gray-300);
}
.org-chart__row--single::before { display: none; }
.org-chart__row > div { flex: 1; min-width: 170px; max-width: 220px; position: relative; }
.org-chart__row > div::before {
  content: '';
  position: absolute;
  top: -28px; left: 50%;
  width: 2px; height: 28px;
  background: var(--gray-300);
}

.dept-section { margin-bottom: var(--space-xl); }
.dept-head { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-md); }
.dept-head__icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--gradient-brand);
  color: var(--white);
  display: grid; place-items: center;
}
.dept-head__icon svg { width: 22px; height: 22px; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--space-md); }
.people-card {
  text-align: center;
  padding: var(--space-md) var(--space-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.people-card h4 { font-size: var(--fs-sm); margin: var(--space-sm) 0 0.15rem; }
.people-card span { font-size: var(--fs-xs); color: var(--color-text-muted); }

@media (max-width: 1024px) {
  .org-chart__row { flex-direction: column; align-items: center; }
  .org-chart__row::before { display: none; }
  .org-chart__row > div::before { display: none; }
}

/* ---- News page ---- */
.news-hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-md); }
@media (max-width: 900px) { .news-hero-grid { grid-template-columns: 1fr; } }

/* ---- 404 ---- */
.error-page { text-align: center; padding-block: var(--space-3xl) var(--space-2xl); }
.error-page img { max-width: 340px; margin-inline: auto var(--space-lg); }
