/* ============================================================
   GPIG — Global Stylesheet
   Digunakan oleh index.php, renungan.php, dan halaman lain
   ============================================================ */

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  --home-ink: #172033;
  --home-muted: #687386;
  --home-primary: #2747a8;
  --home-primary-dark: #1d347c;
  --home-accent: #d6a84b;
  --home-accent-dark: #9a7a2e;
  --home-surface: #f6f8fc;
  --home-border: #e3e8f1;
  --home-radius: 12px;
  --home-shadow: 0 18px 50px -30px rgba(23, 32, 51, .38);
  --home-shadow-lg: 0 24px 54px -30px rgba(23, 32, 51, .5);
  --home-transition: .3s cubic-bezier(.22,.61,.36,1);
}

/* ============================================================
   2. SECTION HELPERS
   ============================================================ */
.section {
  padding-top: clamp(64px, 8vw, 96px);
  padding-bottom: clamp(64px, 8vw, 96px);
}
.section.soft,
.about-section {
  background: var(--home-surface);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.section-head h2 {
  color: var(--home-ink);
  letter-spacing: -.035em;
  margin: 6px 0 0;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}
.section-head .eyebrow,
.about-text > .eyebrow {
  color: var(--home-primary);
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.section-head p {
  color: var(--home-muted);
  max-width: 480px;
  line-height: 1.6;
  margin: 0;
}

.btn.blue {
  background: var(--home-primary);
  border: 1px solid var(--home-primary);
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 22px -12px rgba(39, 71, 168, .7);
  transition: background var(--home-transition), transform var(--home-transition), box-shadow var(--home-transition);
}
.btn.blue:hover {
  background: var(--home-primary-dark);
  border-color: var(--home-primary-dark);
  transform: translateY(-1px);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #f1c86f;
  outline-offset: 3px;
}

/* ============================================================
   3. HERO SLIDER
   ============================================================ */
.hero-slider {
  position: relative;
  height: min(76vh, 760px);
  min-height: 540px;
  overflow: hidden;
  background: #101a34;
  isolation: isolate;
}
.hero-slider .slides { position: absolute; inset: 0; }

.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.035);
  transition: opacity .85s ease, transform 7s ease, visibility 0s linear .85s;
  display: flex;
  align-items: center;
}
.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition: opacity .85s ease, transform 7s ease, visibility 0s;
  z-index: 1;
}
.hero-slide:not(.has-image) {
  background-image: linear-gradient(125deg, #15234c 0%, #2747a8 58%, #3d63ca 100%);
}
.hero-slide:not(.has-image)::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.12) 0, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,.08) 0, transparent 45%);
  pointer-events: none;
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(10,17,38,.9) 0%,
    rgba(10,17,38,.68) 46%,
    rgba(10,17,38,.2) 78%,
    rgba(10,17,38,.08) 100%);
  z-index: 1;
}
.hero-slide:not(.has-image) .hero-overlay {
  background: linear-gradient(90deg, rgba(8,14,35,.35) 0%, rgba(8,14,35,.05) 60%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 760px;
  padding-top: 96px;
  padding-bottom: 112px;
}
.hero-content .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(13,24,55,.42);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 7px 11px;
  border-radius: 6px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.22);
}
.hero-content .eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--home-accent);
  box-shadow: 0 0 0 4px rgba(214,168,75,.18);
}
.hero-content h1 {
  max-width: 760px;
  font-size: clamp(2.25rem, 5.2vw, 4.35rem);
  line-height: 1.04;
  margin: 24px 0 18px;
  font-weight: 780;
  letter-spacing: -.045em;
  text-wrap: balance;
  text-shadow: 0 3px 28px rgba(0,0,0,.32);
}
.hero-content p {
  max-width: 660px;
  color: rgba(255,255,255,.82);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.65;
  margin-bottom: 28px;
}
.hero-content .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-content .btn {
  min-height: 46px;
  border-radius: 8px;
  padding: 12px 22px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.hero-content .btn:not(.secondary) {
  background: #fff;
  color: var(--home-primary-dark);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.hero-content .btn:not(.secondary):hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,.3);
}
.hero-content .btn.secondary {
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(6px);
}
.hero-content .btn.secondary:hover {
  background: rgba(255,255,255,.18);
  transform: translateY(-2px);
}

/* Slide controls */
.slide-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(10,17,38,.45);
  backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  z-index: 5;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
}
.slide-control:hover { background: rgba(15,23,42,.7); }
.slide-control.prev { left: 20px; }
.slide-control.next { right: 20px; }
.slide-control.prev:hover { transform: translateY(-50%) translateX(-2px); }
.slide-control.next:hover { transform: translateY(-50%) translateX(2px); }

/* Indicator */
.slide-indicator {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  width: min(280px, 60vw);
}
.slide-dots { display: flex; gap: 8px; }
.slide-dots button {
  min-width: 28px;
  width: 28px; height: 3px;
  border-radius: 3px;
  background: rgba(255,255,255,.32);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all .3s;
}
.slide-dots button.active {
  width: 48px;
  background: #fff;
}
.slide-progress {
  width: 100%; height: 2px;
  background: rgba(255,255,255,.16);
  border-radius: 2px;
  overflow: hidden;
}
.slide-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--home-accent);
  border-radius: 2px;
}
.hero-slider.playing .slide-progress span {
  animation: slideProgress var(--interval, 6000ms) linear forwards;
}
@keyframes slideProgress { from { width: 0; } to { width: 100%; } }

/* Counter */
.slide-counter {
  position: absolute;
  right: 24px;
  bottom: 28px;
  z-index: 5;
  color: #fff;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: .82rem;
  letter-spacing: .1em;
  opacity: .85;
}
.slide-counter .cur { font-weight: 700; font-size: 1rem; }
.slide-counter .sep { opacity: .5; margin: 0 4px; }

/* ============================================================
   4. NEWS GRID
   ============================================================ */
.news-grid { align-items: stretch; }

.news-card {
  background: #fff;
  border-radius: var(--home-radius);
  overflow: hidden;
  border: 1px solid var(--home-border);
  box-shadow: var(--home-shadow);
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--home-shadow-lg);
  border-color: #cfd7e6;
}
.news-thumb {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f3f4f8;
}
.news-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
  display: block;
}
.news-card:hover .news-thumb img { transform: scale(1.06); }
.news-thumb-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #b8bcc7;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
}
.news-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(17,27,51,.82);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.news-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-meta {
  font-size: .78rem;
  color: var(--home-muted);
  font-weight: 500;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.news-body h3 {
  font-size: 1.15rem;
  line-height: 1.35;
  margin: 0 0 10px;
  letter-spacing: -.01em;
}
.news-body h3 a {
  color: var(--home-ink);
  text-decoration: none;
  transition: color .2s;
}
.news-body h3 a:hover { color: var(--home-primary); }
.news-body p {
  color: var(--home-muted);
  line-height: 1.6;
  font-size: .93rem;
  margin: 0 0 16px;
  flex: 1;
}
.news-more {
  color: var(--home-primary);
  font-weight: 600;
  font-size: .88rem;
  text-decoration: none;
  align-self: flex-start;
  display: inline-flex;
  gap: 4px;
  transition: gap .2s;
}
.news-more:hover { gap: 8px; }

/* ============================================================
   5. AGENDA
   ============================================================ */
.agenda-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}
.agenda-card {
  background: #fff;
  border-radius: var(--home-radius);
  border: 1px solid var(--home-border);
  box-shadow: var(--home-shadow);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.agenda-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--home-shadow-lg);
  border-color: #cfd7e6;
}
.agenda-date {
  width: 64px;
  text-align: center;
  padding: 10px 6px;
  border-radius: 10px;
  background: #edf1fb;
  border: 1px solid #dce4f6;
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.agenda-date .day {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--home-primary-dark);
}
.agenda-date .month {
  font-size: .72rem;
  font-weight: 700;
  color: var(--home-primary);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 4px;
}
.agenda-date .year {
  font-size: .68rem;
  color: var(--home-muted);
  margin-top: 3px;
}
.agenda-info { min-width: 0; }
.agenda-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: .78rem;
  color: var(--home-muted);
  margin-bottom: 6px;
}
.agenda-meta .pill {
  background: #f8eed9;
  color: #765419;
  padding: 2px 8px;
  border-radius: 5px;
  font-weight: 600;
  font-size: .7rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.agenda-info h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--home-ink);
  letter-spacing: -.005em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.agenda-time {
  font-size: .82rem;
  color: var(--home-muted);
  margin: 0;
}
.agenda-btn {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: #edf1fb;
  color: var(--home-primary);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: background .2s, transform .2s, color .2s;
  flex-shrink: 0;
}
.agenda-btn:hover {
  background: var(--home-primary);
  color: #fff;
  transform: translateX(2px);
}

/* ============================================================
   6. ABOUT SECTION
   ============================================================ */
.about-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 12px 0 16px;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--home-ink);
}
.about-text p {
  color: var(--home-muted);
  line-height: 1.7;
  font-size: 1.02rem;
  margin: 0 0 24px;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius);
  box-shadow: var(--home-shadow);
  padding: 22px 16px;
  text-align: center;
  transition: transform .25s, box-shadow .25s;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px -14px rgba(20,30,80,.18);
}
.stat-card b {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--home-primary-dark);
  letter-spacing: -.03em;
  margin-bottom: 6px;
}
.stat-card span {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 4px;
}
.stat-card small {
  color: var(--home-muted);
  font-size: .74rem;
  line-height: 1.3;
  display: block;
}
.stat-card.highlight {
  background: linear-gradient(145deg, var(--home-primary-dark), var(--home-primary));
  border-color: transparent;
  color: #fff;
}
.stat-card.highlight b { color: #fff; }
.stat-card.highlight span { color: #e0e7ff; }
.stat-card.highlight small { color: #a5b4fc; }

/* ============================================================
   7. DEVOTION — RENUNGAN HARIAN
   ============================================================ */
.devotion-section {
  position: relative;
  background:
    radial-gradient(circle at 12% 18%, rgba(214,168,75,.09) 0, transparent 42%),
    radial-gradient(circle at 88% 82%, rgba(39,71,168,.08) 0, transparent 45%),
    linear-gradient(180deg, #fbfaf6 0%, #f4f6fb 100%);
}
.devotion-section .eyebrow { color: var(--home-accent-dark); }

.devotion-feature {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  background: #fff;
  border: 1px solid var(--home-border);
  border-radius: 20px;
  padding: 46px 48px 40px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  box-shadow: 0 24px 60px -34px rgba(23,32,51,.45);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s;
}
.devotion-feature::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--home-accent), var(--home-primary));
}
.devotion-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 34px 72px -34px rgba(23,32,51,.55);
  border-color: #cfd7e6;
}
.devotion-feature-static { margin-bottom: 48px; }

.devotion-mark {
  position: absolute;
  top: 6px;
  left: 30px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 8.5rem;
  line-height: 1;
  color: rgba(214,168,75,.16);
  pointer-events: none;
  user-select: none;
}
.devotion-main {
  position: relative;
  z-index: 1;
  padding-top: 30px;
  min-width: 0;
}
.devotion-main .tag {
  display: inline-block;
  background: #f8eed9;
  color: #765419;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.devotion-main h3 {
  margin: 18px 0 14px;
  font-size: clamp(1.4rem, 2.4vw, 1.95rem);
  line-height: 1.25;
  letter-spacing: -.025em;
  color: var(--home-ink);
}
.devotion-main p {
  margin: 0 0 24px;
  color: #4b5563;
  line-height: 1.75;
  font-size: 1.02rem;
  max-width: 720px;
}
.devotion-text {
  color: #3f4a5c;
  line-height: 1.85;
  font-size: 1.02rem;
  max-width: 780px;
  margin-bottom: 22px;
}
.devotion-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid #eef1f7;
}
.devotion-author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  color: var(--home-muted);
  font-weight: 500;
}
.devotion-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 650;
  color: var(--home-primary);
  font-size: .92rem;
  transition: gap .2s;
}
.devotion-feature:hover .devotion-cta { gap: 10px; }

.devotion-aside {
  position: relative;
  z-index: 1;
  width: 148px;
  border-radius: 16px;
  background: linear-gradient(160deg, #fbf6ea 0%, #f4ebd3 100%);
  border: 1px solid #efe3c4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 26px 12px;
  text-align: center;
}
.devotion-aside .devotion-day {
  font-size: 3rem;
  font-weight: 800;
  color: var(--home-accent-dark);
  line-height: 1;
  letter-spacing: -.04em;
}
.devotion-aside .devotion-month {
  font-size: .85rem;
  font-weight: 700;
  color: #b08a34;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-top: 8px;
}
.devotion-aside .devotion-year {
  font-size: .78rem;
  color: #a89778;
  margin-top: 4px;
  letter-spacing: .06em;
}

/* Renungan sebelumnya */
.devotion-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.devotion-list-head h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  color: var(--home-ink);
  letter-spacing: -.02em;
}
.devotion-list-head span {
  font-size: .78rem;
  color: var(--home-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 600;
}
.devotion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.devotion-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  background: #fff;
  border: 1px solid #e8eaf1;
  border-radius: 14px;
  padding: 20px 22px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.devotion-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -22px rgba(23,32,51,.35);
  border-color: #cfd7e6;
}
.devotion-card-date {
  width: 52px;
  padding: 8px 6px;
  border-radius: 10px;
  text-align: center;
  background: #f8eed9;
  color: #765419;
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.devotion-card-date b { font-size: 1.35rem; font-weight: 800; }
.devotion-card-date span {
  font-size: .66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: 4px;
  color: #b08a34;
}
.devotion-card-body h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  line-height: 1.35;
  color: var(--home-ink);
  letter-spacing: -.01em;
}
.devotion-card-body p {
  margin: 0 0 8px;
  color: #4b5563;
  line-height: 1.6;
  font-size: .9rem;
}
.devotion-card-body .meta {
  font-size: .78rem;
  color: var(--home-muted);
}

/* ============================================================
   8. RESPONSIVE
   ============================================================ */
@media (max-width: 820px) {
  .about-layout { grid-template-columns: 1fr; gap: 32px; }
  .about-stats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .hero-slider { height: 78vh; min-height: 560px; }
  .hero-content { padding: 72px 24px 112px; }
  .hero-content h1 { font-size: clamp(2rem, 10vw, 3rem); }
  .slide-control { top: auto; bottom: 62px; transform: none; }
  .slide-control.prev { left: 16px; }
  .slide-control.next { right: 16px; }
  .slide-control.prev:hover,
  .slide-control.next:hover { transform: none; }
  .slide-indicator { bottom: 32px; width: min(180px, 45vw); }
  .slide-counter { right: 16px; bottom: 34px; font-size: .75rem; }
  .section-head { align-items: flex-start; }

  .devotion-feature {
    grid-template-columns: 1fr;
    padding: 32px 26px 28px;
    gap: 20px;
  }
  .devotion-mark { font-size: 6rem; left: 14px; top: 2px; }
  .devotion-main { padding-top: 24px; }
  .devotion-aside {
    width: 100%;
    flex-direction: row;
    gap: 12px;
    padding: 16px;
  }
  .devotion-aside .devotion-day { font-size: 2.2rem; }
  .devotion-aside .devotion-month { margin-top: 0; }
}

@media (max-width: 520px) {
  .agenda-card { grid-template-columns: auto 1fr; }
  .agenda-btn { display: none; }
}

@media (max-width: 480px) {
  .about-stats { grid-template-columns: 1fr; }
}

/* ============================================================
   9. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-slide.active,
  .news-card,
  .agenda-card,
  .stat-card,
  .news-thumb img,
  .devotion-feature,
  .devotion-card {
    transition: none !important;
    transform: none !important;
  }
}