/* ==========================================================================
   Ihyaul 'Ulum — tema beranda OPAC (rombak)
   Arah visual: panel lengkung (mihrab) hijau zamrud di atas kertas krem,
   aksen emas–oranye dari logo. Dimuat HANYA di beranda.
   ========================================================================== */

:root {
  --ih-cream: #FBF7EE;
  --ih-paper: #FFFFFF;
  --ih-green-950: #062B1D;
  --ih-green-900: #0A3D2A;
  --ih-green-700: #0E5C3F;
  --ih-green-500: #178C55;
  --ih-gold-400: #FFC20E;
  --ih-gold-300: #FFD766;
  --ih-orange-500: #F26B21;
  --ih-ink: #12281F;
  --ih-muted: #5F7268;
  --ih-line: rgba(10, 61, 42, .12);
  --ih-display: "Fraunces", Georgia, "Times New Roman", serif;
  --ih-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ih-ease: cubic-bezier(.22, .61, .36, 1);
}

/* Tailwind memasang .bg-grey-lightest pada <body>, jadi selektor class
   diperlukan agar latar krem benar-benar menang. */
body.bg-grey-lightest {
  background: var(--ih-cream);
  font-family: var(--ih-sans);
  color: var(--ih-ink);
}

/* ---------- Hero: panel lengkung ---------------------------------------- */

.ih-hero-wrap {
  padding: 10px;
}

.ih-hero {
  position: relative;
  /* visible supaya panel pencarian lanjutan tidak terpotong tepi panel */
  overflow: visible;
  border-radius: clamp(26px, 3vw, 44px);
  padding: 0 clamp(18px, 4vw, 60px) clamp(30px, 5vw, 58px);
  display: flex;
  flex-direction: column;
  color: #fff;
  background:
    radial-gradient(115% 115% at 4% 118%, rgba(242, 107, 33, .40) 0%, rgba(242, 107, 33, 0) 55%),
    radial-gradient(85% 85% at 98% -12%, rgba(255, 194, 14, .26) 0%, rgba(255, 194, 14, 0) 58%),
    linear-gradient(140deg, var(--ih-green-950) 0%, var(--ih-green-900) 52%, var(--ih-green-700) 100%);
}

.ih-hero .navbar {
  position: relative;
  z-index: 6;
  padding-top: 1.1rem;
  padding-bottom: .4rem;
}

/* Menu mobile bawaan template berlatar biru tua; disamakan dengan panel. */
.ih-hero .navbar-collapse.collapsing,
.ih-hero .navbar-collapse.collapse.show {
  background-color: var(--ih-green-900);
}

.ih-hero .navbar-brand h1 {
  font-family: var(--ih-sans);
  font-weight: 600;
  letter-spacing: -.01em;
}

.ih-hero__grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(18px, 4vw, 52px);
  align-items: center;
  padding: clamp(16px, 4vw, 36px) 0 clamp(4px, 1.5vw, 14px);
}

.ih-hero__copy {
  max-width: 760px;
}

.ih-hero__logo {
  position: relative;
  z-index: 1;
  width: min(62%, 300px);
  height: auto;
  padding: clamp(14px, 2vw, 26px);
  border-radius: 50%;
  background: var(--ih-cream);
  box-shadow: 0 26px 60px rgba(0, 0, 0, .30), 0 0 0 1px rgba(255, 194, 14, .55);
}

.ih-hero__title {
  font-family: var(--ih-display);
  font-weight: 600;
  font-size: clamp(2.05rem, 4.4vw, 3.45rem);
  line-height: 1.06;
  letter-spacing: -.02em;
  color: #fff;
  margin: 0 0 .85rem;
  max-width: 17ch;
  text-wrap: balance;
  animation: ih-rise .8s var(--ih-ease) .4s both;
}

.ih-hero__sub {
  max-width: 46ch;
  margin: 0;
  color: rgba(255, 255, 255, .84);
  font-size: clamp(.95rem, 1.3vw, 1.06rem);
  line-height: 1.65;
  animation: ih-rise .8s var(--ih-ease) .55s both;
}

/* ---------- Ilustrasi lengkung + permata -------------------------------- */

.ih-hero__art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 240px;
}

.ih-hero__art::before {
  content: "";
  position: absolute;
  width: min(78%, 340px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 194, 14, .22) 0%, rgba(255, 194, 14, 0) 68%);
}

.ih-arch {
  position: relative;
  width: min(78%, 300px);
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .32));
  animation: ih-float 7s ease-in-out 2.4s infinite;
}

.ih-arch__line {
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  animation: ih-draw 1.2s var(--ih-ease) .12s forwards;
}

.ih-arch__pages {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: ih-draw 1s var(--ih-ease) 1s forwards;
}

.ih-arch__gem {
  opacity: 0;
  transform: scale(.5);
  transform-origin: 100px 104px;
  animation: ih-gem-in .7s var(--ih-ease) .85s forwards;
}

@keyframes ih-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes ih-gem-in {
  to { opacity: 1; transform: scale(1); }
}

@keyframes ih-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes ih-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Pencarian di dalam hero ------------------------------------- */

.ih-hero .search {
  margin: 1.6rem 0 0;
  position: relative;
  z-index: 5;
}

.ih-hero .search .container {
  width: 100%;
  max-width: none;
  padding: 0;
}

.ih-hero .search .row {
  margin: 0;
}

.ih-hero .search .col-lg-8 {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0;
}

.ih-hero .search .card {
  background-color: #fff;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 20px 44px -22px rgba(0, 0, 0, .8);
  transition: box-shadow .35s var(--ih-ease), transform .35s var(--ih-ease);
  animation: ih-rise .8s var(--ih-ease) .7s both;
}

.ih-hero .search .card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 0 0 4px rgba(255, 194, 14, .5), 0 24px 48px -22px rgba(0, 0, 0, .8);
}

.ih-hero .search .card-body {
  padding: 0;
}

.ih-hero .search .input-transparent {
  font-family: var(--ih-sans);
  font-size: 1rem;
  color: var(--ih-ink);
  padding: 1rem 3.2rem 1rem 1.15rem;
  caret-color: var(--ih-green-700);
}

.ih-hero .search .input-transparent:focus {
  outline: none;
}

.ih-hero .search .input-transparent::placeholder {
  color: #7E8F85;
  font-weight: 400;
}

.ih-hero .advanced-wraper {
  background: #fff;
  color: var(--ih-ink);
  border-radius: 14px;
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .5);
  font-family: var(--ih-sans);
}

/* ---------- Kerangka bagian -------------------------------------------- */

.ih-section {
  max-width: 1160px;
  margin: clamp(44px, 6.5vw, 82px) auto;
  padding: 0 clamp(18px, 4vw, 32px);
}

.ih-section__head {
  position: relative;
  padding-top: 1.1rem;
  margin-bottom: 1.6rem;
}

.ih-section__head::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 54px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--ih-gold-400), var(--ih-orange-500));
}

.ih-section__head--center {
  text-align: center;
}

.ih-section__head--center::before {
  left: 50%;
  transform: translateX(-50%);
}

.ih-h2 {
  font-family: var(--ih-display);
  font-size: clamp(1.5rem, 2.7vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.15;
  color: var(--ih-green-900);
  margin: 0;
}

.ih-lede {
  max-width: 68ch;
  margin: .55rem 0 0;
  color: var(--ih-muted);
  font-size: .93rem;
  line-height: 1.7;
}

/* ---------- Subjek ------------------------------------------------------ */

.ih-topics {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.ih-topic {
  border-radius: 18px;
  background: var(--ih-paper);
  border: 1px solid var(--ih-line);
  transition: background .35s var(--ih-ease), transform .35s var(--ih-ease),
              box-shadow .35s var(--ih-ease), border-color .35s var(--ih-ease);
}

.ih-topic a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 100%;
  min-height: 148px;
  padding: 20px 12px;
  text-decoration: none;
  color: var(--ih-ink);
  font-size: 12.5px;
  font-weight: 500;
  text-align: center;
  line-height: 1.35;
}

.ih-topic img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  transition: transform .4s var(--ih-ease), filter .4s var(--ih-ease);
}

.ih-topic:hover,
.ih-topic:focus-within {
  background: var(--ih-green-900);
  border-color: var(--ih-green-900);
  transform: translateY(-5px);
  box-shadow: 0 20px 34px -22px rgba(6, 43, 29, .8);
}

.ih-topic:hover a,
.ih-topic:focus-within a {
  color: #fff;
}

.ih-topic:hover img,
.ih-topic:focus-within img {
  transform: scale(1.1) rotate(-3deg);
  filter: brightness(0) invert(1);
}

/* ---------- Koleksi (komponen Vue) ------------------------------------- */

.ih-collection .collection {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(152px, 1fr));
  gap: 18px;
  margin: 1.4rem 0 0;
}

.ih-collection .collection > div {
  width: auto;
  padding: 0;
}

.ih-collection .card {
  height: 100%;
  background: var(--ih-paper);
  border: 1px solid var(--ih-line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .35s var(--ih-ease), box-shadow .35s var(--ih-ease),
              border-color .35s var(--ih-ease);
}

.ih-collection .card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 194, 14, .7);
  box-shadow: 0 22px 36px -24px rgba(6, 43, 29, .7);
}

.ih-collection .card-body {
  padding: 0 0 .8rem;
}

/* Tinggi sampul tidak boleh bergantung pada app_jquery.js: skrip itu mengukur
   .fit-height saat DOM siap, sebelum kartu hasil fetch Vue ada. Tanpa
   aspect-ratio, wadah menyusut jadi 0 tinggi dan sampul buku tak terlihat. */
.ih-collection .card-image {
  border: 0;
  border-radius: 0;
  aspect-ratio: 65 / 83;
  height: auto;
  background: linear-gradient(160deg, #EEF3EE, #FBF7EE);
}

.ih-collection .card-image img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}

.ih-collection .card-text {
  padding: 0 .75rem;
  font-size: 12.5px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--ih-ink);
}

/* Chip subjek dari komponen */
.ih-collection .btn-rounded {
  background: var(--ih-paper);
  border: 1px solid var(--ih-line);
  border-radius: 999px;
  color: var(--ih-green-700);
  font-size: 12px;
  font-weight: 500;
  padding: .32rem .9rem;
  transition: background .25s var(--ih-ease), color .25s var(--ih-ease),
              border-color .25s var(--ih-ease);
}

.ih-collection .btn-rounded:hover {
  background: var(--ih-gold-400);
  border-color: var(--ih-gold-400);
  color: var(--ih-green-950);
}

/* ---------- Papan pembaca teratas -------------------------------------- */

.ih-band {
  max-width: 1160px;
  margin: clamp(44px, 6.5vw, 82px) auto;
  padding: clamp(28px, 4.5vw, 52px) clamp(18px, 4vw, 44px);
  border-radius: clamp(24px, 3vw, 38px);
  color: #fff;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(255, 194, 14, .18) 0%, rgba(255, 194, 14, 0) 60%),
    linear-gradient(150deg, var(--ih-green-900), var(--ih-green-950));
}

.ih-band .ih-h2 {
  color: #fff;
}

.ih-band .ih-lede {
  color: rgba(255, 255, 255, .78);
}

.ih-band .card {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 16px;
  color: #fff;
  height: 100%;
  transition: background .3s var(--ih-ease), transform .3s var(--ih-ease);
}

.ih-band .card:hover {
  background: rgba(255, 255, 255, .12);
  transform: translateY(-4px);
}

.ih-band .card-image-rounded {
  box-shadow: 0 0 0 3px rgba(255, 194, 14, .65);
}

.ih-band .card-title {
  font-family: var(--ih-sans);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.ih-band .card-title small,
.ih-band .card-text {
  color: rgba(255, 255, 255, .72);
}

.ih-band .card-text {
  font-size: 12.5px;
}

/* ---------- Peta & informasi ------------------------------------------- */

.ih-map {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  background: var(--ih-paper);
  border: 1px solid var(--ih-line);
  border-radius: clamp(20px, 2.6vw, 32px);
  overflow: hidden;
}

.ih-map__media iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
}

.ih-map__body {
  padding: clamp(24px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ih-map__body h3 {
  font-family: var(--ih-display);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  color: var(--ih-green-900);
  margin-bottom: .6rem;
}

.ih-map__body p {
  color: var(--ih-muted);
  font-size: .93rem;
  line-height: 1.7;
}

.ih-social {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: .8rem;
}

.ih-social a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--ih-line);
  color: var(--ih-green-700);
  background: var(--ih-cream);
  transition: background .25s var(--ih-ease), color .25s var(--ih-ease),
              border-color .25s var(--ih-ease), transform .25s var(--ih-ease);
}

.ih-social a:hover {
  background: var(--ih-green-900);
  border-color: var(--ih-green-900);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Footer ----------------------------------------------------- */

#slims-home ~ footer {
  background: var(--ih-green-950);
  color: rgba(255, 255, 255, .8);
  font-family: var(--ih-sans);
}

#slims-home ~ footer h4 {
  font-family: var(--ih-display);
  color: #fff;
}

#slims-home ~ footer .btn-outline-success {
  border-color: rgba(255, 194, 14, .55);
  color: var(--ih-gold-300);
}

#slims-home ~ footer .btn-outline-success:hover {
  background: var(--ih-gold-400);
  border-color: var(--ih-gold-400);
  color: var(--ih-green-950);
}

/* ---------- Gerak saat menggulir (hanya jika JS aktif) ----------------- */

.ih-motion [data-ih-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ih-ease), transform .7s var(--ih-ease);
}

.ih-motion [data-ih-reveal].ih-in {
  opacity: 1;
  transform: none;
}

/* ---------- Fokus keyboard -------------------------------------------- */

.ih-hero a:focus-visible,
.ih-hero input:focus-visible,
.ih-topic a:focus-visible,
.ih-collection a:focus-visible,
.ih-social a:focus-visible {
  outline: 3px solid var(--ih-gold-400);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------- Layar menengah & kecil ------------------------------------ */

@media (max-width: 991.98px) {
  .ih-hero__grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .ih-hero__art {
    order: -1;
    min-height: 0;
    margin-top: .5rem;
  }

  .ih-arch {
    width: min(46%, 200px);
  }

  .ih-hero__title {
    font-size: clamp(1.9rem, 6.4vw, 2.6rem);
    max-width: 22ch;
  }

  .ih-topics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ih-map {
    grid-template-columns: 1fr;
  }

  .ih-map__media iframe {
    min-height: 280px;
  }
}

@media (max-width: 575.98px) {
  .ih-hero-wrap {
    padding: 8px;
  }

  .ih-topics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ih-topic a {
    min-height: 132px;
  }

  .ih-collection .collection {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

/* ---------- Hormati preferensi mengurangi gerak ------------------------ */

@media (prefers-reduced-motion: reduce) {
  .ih-arch,
  .ih-arch__line,
  .ih-arch__pages,
  .ih-arch__gem,
  .ih-hero__title,
  .ih-hero__sub,
  .ih-hero .search .card {
    animation: none !important;
  }

  .ih-arch__line,
  .ih-arch__pages {
    stroke-dashoffset: 0;
  }

  .ih-arch__gem {
    opacity: 1;
    transform: none;
  }

  .ih-motion [data-ih-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ih-topic,
  .ih-topic img,
  .ih-collection .card,
  .ih-band .card,
  .ih-social a,
  .ih-hero .search .card {
    transition: none;
  }
}

/* ==========================================================================
   Identitas beranda: SAKA, kategori katalog, SABUK MAS, berita
   ========================================================================== */

/* ---------- Hero: maskot + lengkung ------------------------------------- */

.ih-hero__grid {
  align-items: center;
}

.ih-hero__art {
  min-height: clamp(300px, 34vw, 470px);
  isolation: isolate;
}

.ih-hero__halo {
  position: absolute;
  z-index: 0;
  width: min(86%, 380px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 194, 14, .26) 0%, rgba(255, 194, 14, 0) 68%);
}

.ih-hero__art .ih-arch {
  position: absolute;
  z-index: 1;
  width: min(64%, 280px);
  opacity: .5;
  transform: translateY(-8%);
  filter: none;
  animation: none;
}

.ih-hero__art .ih-arch__line,
.ih-hero__art .ih-arch__pages {
  stroke-dashoffset: 0;
  animation: none;
}

.ih-hero__saka {
  position: relative;
  z-index: 2;
  width: auto;
  height: clamp(290px, 32vw, 450px);
  max-width: 100%;
  filter: drop-shadow(0 26px 38px rgba(0, 0, 0, .38));
  animation: ih-float 8s ease-in-out 1.2s infinite;
}

.ih-hero__badge {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: clamp(4px, 2vw, 22px);
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .8rem;
  border-radius: 999px;
  background: var(--ih-gold-400);
  color: var(--ih-green-950);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .25s var(--ih-ease), background .25s var(--ih-ease);
}

.ih-hero__badge:hover,
.ih-hero__badge:focus-visible {
  background: var(--ih-gold-300);
  color: var(--ih-green-950);
  transform: translateY(-2px);
  text-decoration: none;
}

.ih-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 1rem 0 0;
  padding: 0;
}

.ih-chip {
  display: inline-flex;
  padding: .38rem .85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .3);
  color: rgba(255, 255, 255, .9);
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background .25s var(--ih-ease), border-color .25s var(--ih-ease), color .25s var(--ih-ease);
}

.ih-chip:hover,
.ih-chip:focus-visible {
  background: var(--ih-gold-400);
  border-color: var(--ih-gold-400);
  color: var(--ih-green-950);
  text-decoration: none;
}

.ih-hero__link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.15rem;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  text-decoration: none;
}

.ih-hero__link:hover,
.ih-hero__link:focus-visible {
  color: #fff;
  text-decoration: none;
}

.ih-hero__link-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ih-gold-400);
}

/* ---------- Kategori koleksi ------------------------------------------- */

.ih-cat-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ih-cat {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 14px 16px;
  background: var(--ih-paper);
  border: 1px solid var(--ih-line);
  border-radius: 14px;
  color: var(--ih-ink);
  text-decoration: none;
  transition: background .3s var(--ih-ease), border-color .3s var(--ih-ease),
              color .3s var(--ih-ease), transform .3s var(--ih-ease);
}

.ih-cat:hover,
.ih-cat:focus-visible {
  background: var(--ih-green-900);
  border-color: var(--ih-green-900);
  color: #fff;
  text-decoration: none;
  transform: translateY(-3px);
}

.ih-cat__icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: #EDF4EE;
  color: var(--ih-green-700);
  font-size: 15px;
  transition: background .3s var(--ih-ease), color .3s var(--ih-ease);
}

.ih-cat:hover .ih-cat__icon,
.ih-cat:focus-visible .ih-cat__icon {
  background: var(--ih-gold-400);
  color: var(--ih-green-950);
}

.ih-cat__label {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
}

/* ---------- Tab rekomendasi -------------------------------------------- */

.ih-recos__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.ih-recos__head .ih-section__head {
  margin-bottom: .4rem;
  min-width: 260px;
  flex: 1 1 320px;
}

.ih-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: .35rem;
}

.ih-tab {
  border: 1px solid var(--ih-line);
  border-radius: 999px;
  background: var(--ih-paper);
  color: var(--ih-green-700);
  padding: .45rem 1rem;
  font-family: var(--ih-sans);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: background .25s var(--ih-ease), color .25s var(--ih-ease), border-color .25s var(--ih-ease);
}

.ih-tab:hover,
.ih-tab:focus-visible {
  border-color: var(--ih-gold-400);
  background: var(--ih-gold-300);
  color: var(--ih-green-950);
}

.ih-tab.is-active {
  background: var(--ih-green-900);
  border-color: var(--ih-green-900);
  color: #fff;
}

.ih-panel[hidden] {
  display: none;
}

.ih-empty {
  display: none;
  margin: .9rem 0 0;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: #F1F5F0;
  color: var(--ih-muted);
  font-size: .9rem;
  line-height: 1.6;
}

.ih-panel .collection:empty + .ih-empty {
  display: block;
}

.ih-empty--standalone {
  display: block;
}

/* ---------- SABUK MAS --------------------------------------------------- */

.ih-sabuk {
  max-width: 1160px;
  margin: clamp(44px, 6.5vw, 82px) auto;
  padding: 0 clamp(18px, 4vw, 32px);
}

.ih-sabuk__inner {
  padding: clamp(30px, 5vw, 58px);
  border-radius: clamp(24px, 3vw, 38px);
  background: var(--ih-green-950);
  color: #fff;
}

.ih-sabuk__mark {
  margin: 0;
  color: var(--ih-gold-400);
  font-family: var(--ih-sans);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .22em;
}

.ih-sabuk__expand {
  margin: .35rem 0 1.4rem;
  color: rgba(255, 255, 255, .66);
  font-size: 12.5px;
  letter-spacing: .04em;
}

.ih-sabuk__title {
  max-width: 18ch;
  margin: 0;
  font-family: var(--ih-display);
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.015em;
}

.ih-sabuk__desc {
  max-width: 56ch;
  margin: .9rem 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: .95rem;
  line-height: 1.7;
}

.ih-sabuk__points {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 1.6rem 0 1.8rem;
  padding: 0;
}

.ih-sabuk__points li {
  display: flex;
  gap: .65rem;
  color: rgba(255, 255, 255, .86);
  font-size: .9rem;
  line-height: 1.55;
}

.ih-sabuk__points i {
  flex: 0 0 auto;
  margin-top: .2rem;
  color: var(--ih-gold-400);
}

/* ---------- Tombol ------------------------------------------------------ */

.ih-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .72rem 1.3rem;
  border: 0;
  border-radius: 999px;
  background: var(--ih-green-900);
  color: #fff;
  font-family: var(--ih-sans);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .25s var(--ih-ease), color .25s var(--ih-ease), transform .25s var(--ih-ease);
}

.ih-btn:hover,
.ih-btn:focus-visible {
  background: var(--ih-green-700);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

.ih-btn--gold {
  background: var(--ih-gold-400);
  color: var(--ih-green-950);
}

.ih-btn--gold:hover,
.ih-btn--gold:focus-visible {
  background: var(--ih-gold-300);
  color: var(--ih-green-950);
}

/* ---------- SAKA -------------------------------------------------------- */

.ih-saka {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(20px, 4vw, 54px);
  align-items: center;
}

.ih-saka__media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 360px;
}

.ih-saka__disc {
  position: absolute;
  width: min(84%, 320px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #EAF0E6;
}

.ih-saka__media img {
  position: relative;
  z-index: 1;
  height: clamp(300px, 30vw, 420px);
  width: auto;
  max-width: 100%;
}

.ih-saka__greet {
  margin: 1rem 0 0;
  padding-left: 1rem;
  border-left: 3px solid var(--ih-gold-400);
  color: var(--ih-green-900);
  font-size: 1rem;
  line-height: 1.65;
}

.ih-saka__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem 1rem;
  margin: 1.2rem 0 1.5rem;
  padding: 0;
  color: var(--ih-ink);
  font-size: .9rem;
}

.ih-saka__list li {
  display: flex;
  gap: .5rem;
  line-height: 1.5;
}

.ih-saka__list i {
  flex: 0 0 auto;
  margin-top: .25rem;
  color: var(--ih-green-500);
  font-size: .8rem;
}

/* ---------- Berita ------------------------------------------------------ */

.ih-more {
  color: var(--ih-green-700);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding-bottom: .45rem;
}

.ih-more:hover,
.ih-more:focus-visible {
  color: var(--ih-green-900);
  text-decoration: underline;
}

.ih-news__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 1rem;
}

.ih-news__card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: var(--ih-paper);
  border: 1px solid var(--ih-line);
  border-radius: 16px;
}

.ih-news__date {
  margin: 0 0 .6rem;
  color: var(--ih-muted);
  font-size: 12px;
}

.ih-news__title {
  margin: 0;
  font-family: var(--ih-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
}

.ih-news__title a {
  color: var(--ih-green-900);
  text-decoration: none;
}

.ih-news__title a:hover,
.ih-news__title a:focus-visible {
  color: var(--ih-green-500);
  text-decoration: underline;
}

.ih-news__desc {
  margin: .6rem 0 1rem;
  color: var(--ih-muted);
  font-size: .88rem;
  line-height: 1.65;
}

.ih-news__more {
  margin-top: auto;
  color: var(--ih-green-700);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
}

.ih-news__more:hover,
.ih-news__more:focus-visible {
  color: var(--ih-green-900);
  text-decoration: underline;
}

/* ---------- Fokus keyboard elemen baru ---------------------------------- */

.ih-chip:focus-visible,
.ih-cat:focus-visible,
.ih-tab:focus-visible,
.ih-btn:focus-visible,
.ih-more:focus-visible,
.ih-news__card a:focus-visible,
.ih-hero__badge:focus-visible,
.ih-hero__link:focus-visible {
  outline: 3px solid var(--ih-gold-400);
  outline-offset: 3px;
}

/* ---------- Layar menengah & kecil (identitas baru) --------------------- */

@media (max-width: 991.98px) {
  .ih-hero__art {
    display: none;
    order: 0;
    min-height: 0;
  }

  .ih-hero__saka {
    height: clamp(240px, 40vw, 330px);
  }

  .ih-cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ih-saka {
    grid-template-columns: 1fr;
  }

  .ih-saka__media {
    min-height: 0;
  }

  .ih-saka__media img {
    height: clamp(260px, 46vw, 340px);
  }

  .ih-news__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ih-sabuk__points {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .ih-cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ih-cat {
    padding: 12px 13px;
    gap: 10px;
  }

  .ih-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: .5rem;
    -webkit-overflow-scrolling: touch;
  }

  .ih-tab {
    flex: 0 0 auto;
  }

  .ih-news__grid {
    grid-template-columns: 1fr;
  }

  .ih-saka__list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ih-hero__saka {
    animation: none !important;
  }

  .ih-cat,
  .ih-btn,
  .ih-chip,
  .ih-tab,
  .ih-hero__badge {
    transition: none;
  }
}
