/* ==========================================================================
   PB PII — lapisan redesign final.
   Dimuat setelah styles.css/design.css. Hanya menambah gaya untuk struktur
   hero dua kolom dan navigasi admin baru; tidak menghapus gaya lama.
   ========================================================================== */

:root {
  --pii-navy: #0a1f3a;
  --pii-blue: #176da8;
  --pii-soft: #f5f8fb;
  --pii-line: #e0e7ef;
  --pii-radius: 20px;
}

/* ------------------------------------------------------- hero halaman utama */
.hero {
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, .92fr);
  gap: clamp(28px, 4.5vw, 68px);
}

.hero-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.hero-image-photo {
  display: block;
  width: 100%;
  max-width: 430px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border: 1px solid rgb(255 255 255 / 38%);
  border-radius: 28px;
  background: rgb(255 255 255 / 8%);
  box-shadow: 0 28px 64px rgb(3 20 38 / 34%);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions .button {
  min-height: 46px;
}

/* ------------------------------------------------------------- hero acara */
.acara-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .72fr);
  align-items: center;
  gap: clamp(28px, 4.5vw, 64px);
  padding: clamp(48px, 6vw, 80px) max(7vw, 24px);
  background:
    radial-gradient(ellipse at 96% 4%, rgb(91 171 224 / 26%), transparent 36%),
    linear-gradient(118deg, #0a1f3a 0%, #12446c 70%, #176da8 100%);
  color: #fff;
}

.acara-hero-copy {
  max-width: 720px;
}

.acara-hero-copy > p:not(.eyebrow) {
  max-width: 620px;
  margin-bottom: 24px;
  color: #d8e9f7;
  font-size: 1rem;
  line-height: 1.75;
}

.acara-hero h1 {
  max-width: 16ch;
  margin: 12px 0 18px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: -.04em;
  line-height: 1.12;
  text-wrap: balance;
}

.acara-hero .eyebrow {
  color: #a8d9ff;
}

.acara-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.acara-hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.acara-hero-image img {
  display: block;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgb(255 255 255 / 34%);
  border-radius: 24px;
  box-shadow: 0 24px 58px rgb(3 20 38 / 30%);
}

/* ------------------------------------------------------------- hero ibadah */
.ibadah-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.ibadah-hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.ibadah-hero-image img {
  display: block;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgb(255 255 255 / 34%);
  border-radius: 24px;
  box-shadow: 0 24px 58px rgb(3 20 38 / 30%);
}

/* ------------------------------------------------------- navigasi admin */
.app-side {
  min-width: 0;
}

.app-side nav {
  display: grid;
  gap: 4px;
}

.app-tab {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #40536b;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.app-tab:hover,
.app-tab:focus-visible {
  background: #eef5fb;
  color: #0a1f3a;
}

.app-tab.active {
  border-color: #cfe3f4;
  background: #e7f2fb;
  color: #0d63a0;
}

.app-tab-icon {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: #f1f5f9;
}

.app-tab-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-tab.active .app-tab-icon {
  background: #d8ebf9;
}

.app-brand {
  color: var(--pii-navy);
}

.app-brand span {
  display: block;
  font-size: 15px;
  font-weight: 850;
  letter-spacing: -.02em;
}

.app-brand small {
  display: block;
  margin-top: 2px;
  color: #6b7c91;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* Tombol teks sekunder di header admin. */
.top-actions .btn-secondary {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid #d5e0ea;
  border-radius: 10px;
  background: #fff;
  color: #25415f;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.top-actions .btn-secondary:hover {
  background: #f3f8fc;
}

/* ------------------------------------------------------------- responsif */
@media (max-width: 900px) {
  .hero,
  .acara-hero,
  .ibadah-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-image,
  .acara-hero-image,
  .ibadah-hero-image {
    justify-content: flex-start;
  }

  .hero-image-photo,
  .acara-hero-image img,
  .ibadah-hero-image img {
    max-width: min(100%, 420px);
  }
}

@media (max-width: 680px) {
  .hero,
  .acara-hero,
  .ibadah-hero {
    gap: 28px;
    padding: 36px 18px 40px;
  }

  .hero h1,
  .acara-hero h1,
  .ibadah-hero h1 {
    max-width: none;
  }

  .hero-image-photo,
  .acara-hero-image img,
  .ibadah-hero-image img {
    max-width: 100%;
    border-radius: 18px;
  }
}

@media (max-width: 360px) {
  .hero-actions .button,
  .acara-hero-actions .button,
  .ibadah-hero-actions .button {
    width: 100%;
    min-width: 0;
  }
}
