/* Public UI helpers — complements Tailwind */

[x-cloak] { display: none !important; }

.skip {
  position: absolute; left: -999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip:focus {
  left: 1rem; top: 1rem; z-index: 100; width: auto; height: auto;
  background: #fff; color: #062B5C; padding: .5rem 1rem; border-radius: .5rem;
}

/* Site shell — selaraskan dengan max-w-site + padding navbar */
.site-shell {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: 1.25rem;
  box-sizing: border-box;
}
@media (min-width: 640px) {
  .site-shell { padding-inline: 1.5rem; }
}
@media (min-width: 1024px) {
  .site-shell { padding-inline: 2rem; }
}
@media (min-width: 1280px) {
  .site-shell { padding-inline: 2.5rem; }
}

/* Header corner ornaments — subtle like reference */
.header-ornament {
  width: 78px;
  height: auto;
  opacity: 0.13;
  filter: grayscale(1) contrast(0.85);
  z-index: 0;
}
@media (min-width: 1024px) {
  .header-ornament { width: 96px; opacity: 0.15; }
}

.header-berakhlak {
  height: 38px;
  width: auto;
  max-width: 132px;
  object-fit: contain;
}
@media (min-width: 1024px) {
  .header-berakhlak {
    height: 44px;
    max-width: 148px;
  }
}

/* Logo mitra — strip khusus mobile (di bawah hero slide beranda) */
.hero-partners-mobile .flex {
  row-gap: 0.5rem;
}
.hero-partner-mobile-logo {
  height: 32px;
  width: auto;
  max-width: 92px;
}
.hero-partner-mobile-berakhlak {
  height: 30px;
  width: auto;
  max-width: 112px;
}
@media (min-width: 480px) {
  .hero-partner-mobile-logo {
    height: 36px;
    max-width: 100px;
  }
  .hero-partner-mobile-berakhlak {
    height: 34px;
    max-width: 124px;
  }
}

.logo-partner { --logo-gap: 0.75rem; --logo-slot: auto; min-height: 48px; }
@media (min-width: 1024px) {
  .logo-partner { --logo-gap: 1rem; }
}
.logo-partner .logo-viewport { max-width: none; overflow: visible; }
.logo-partner .logo-track {
  display: flex; align-items: center; justify-content: flex-end;
  gap: var(--logo-gap); transition: transform .55s ease;
  position: static; width: auto; height: auto;
  flex-wrap: nowrap;
}
.logo-partner .logo-slide {
  position: static; inset: auto;
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  opacity: 1; z-index: auto;
}
.logo-partner .logo-slide img {
  max-height: 38px; max-width: 96px; width: auto; object-fit: contain;
}
@media (min-width: 768px) {
  .logo-partner .logo-slide img {
    max-height: 42px; max-width: 108px;
  }
}
@media (min-width: 1024px) {
  .logo-partner .logo-slide img {
    max-height: 46px; max-width: 118px;
  }
}
.logo-partner .logo-slide img[alt="BerAKHLAK"] {
  max-height: 34px; max-width: 120px;
}
@media (min-width: 1024px) {
  .logo-partner .logo-slide img[alt="BerAKHLAK"] {
    max-height: 38px; max-width: 132px;
  }
}

.logo-partner.is-static .logo-viewport { overflow: visible; }
.logo-partner.is-static .logo-track { flex-wrap: nowrap; transform: none !important; }

.logo-partner.is-carousel .logo-viewport { overflow: hidden; }
.logo-partner.is-carousel.mode-desktop {
  --logo-slot: 118px;
  width: min(calc(var(--logo-visible, 3) * var(--logo-slot) + (var(--logo-visible, 3) - 1) * var(--logo-gap)), 58vw);
}
.logo-partner.is-carousel.mode-mobile {
  --logo-slot: 96px;
  width: min(calc(var(--logo-visible, 2) * var(--logo-slot) + (var(--logo-visible, 2) - 1) * var(--logo-gap)), 72vw);
}
.logo-partner.is-carousel .logo-track { flex-wrap: nowrap; justify-content: flex-start; }
.logo-partner.is-carousel .logo-slide { flex: 0 0 var(--logo-slot); }

/* Hero v2 — grid + diagonal clip (styles in app.css) */
.hero-wrap .hero-shell {
  background: linear-gradient(135deg, #031F46 0%, #062B5C 52%, #0A376F 100%);
  border-radius: 1.25rem;
  box-shadow: 0 16px 36px rgba(6, 43, 92, .14);
}
.hero-wrap .hero-panel .kicker {
  color: #D9A62E;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero-wrap .hero-rule { background: #D9A62E; }
.hero-wrap .hero-panel .btn {
  align-self: flex-start;
  width: auto;
}
.hero-wrap .hero-panel .btn.btn-gold {
  color: rgba(255, 255, 255, 0.88);
}
.hero-wrap .hero-panel .btn.btn-gold:hover {
  color: rgba(255, 255, 255, 0.92);
}
.hero-wrap .hero-img-slide img.hero-img-upacara { object-position: center 22%; }

/* Daftar Informasi Publik — section head */
.info-section-kicker {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #D9A62E;
  margin: 0 0 .5rem;
}
.info-section-rule {
  display: block;
  width: 4rem;
  height: .25rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #D9A62E 0%, #F0C96B 100%);
  margin: .85rem auto 0;
}
.info-section-cta {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  margin-top: 1.35rem;
  padding: .85rem 1rem .85rem .85rem;
  max-width: 30rem;
  width: calc(100% - 1rem);
  text-align: left;
  background: #fff;
  border: 1px solid #D8E4F2;
  border-radius: 1rem;
  box-shadow: 0 10px 24px rgba(6, 43, 92, .06);
  color: #062B5C;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, border-color .25s ease, color .25s ease;
}
.info-section-cta:hover {
  transform: translateY(-2px);
  background: #062B5C;
  border-color: #062B5C;
  color: #fff;
  box-shadow: 0 14px 28px rgba(6, 43, 92, .16);
}
.info-section-cta-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: .8rem;
  background: #EEF4FB;
  color: #062B5C;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
  transition: background-color .25s ease, color .25s ease;
}
.info-section-cta:hover .info-section-cta-icon {
  background: rgba(217, 166, 46, 0.18);
  color: #F3D487;
}
.info-section-cta-copy {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  min-width: 0;
  flex: 1;
}
.info-section-cta-copy strong {
  font-size: .95rem;
  line-height: 1.35;
}
.info-section-cta-copy small {
  font-size: .75rem;
  line-height: 1.45;
  color: #5B6780;
  font-weight: 500;
}
.info-section-cta:hover .info-section-cta-copy small {
  color: rgba(255, 255, 255, 0.78);
}
.info-section-cta-arrow {
  font-size: .85rem;
  color: #D9A62E;
  flex-shrink: 0;
  transition: transform .25s ease, color .25s ease;
}
.info-section-cta:hover .info-section-cta-arrow {
  color: #F3D487;
  transform: translateX(3px);
}

/* Daftar Informasi Publik cards */
.info-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: 1rem;
  padding: 1.25rem 1rem 1.5rem;
  border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 42, 80, 0.08);
}
.info-card-blue {
  background: #EAF4FF;
  border-color: #D8E9FA;
}
.info-card-green {
  background: #EAF8F1;
  border-color: #D4F0E2;
}
.info-card-illus {
  width: 100%;
  height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.info-card-illus-sm { height: 92px; margin-bottom: .75rem; }
.info-card-icon {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 9999px;
  background: #fff;
  color: #062B5C;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(6, 43, 92, .1);
  transition: transform .25s ease, box-shadow .25s ease, color .25s ease;
}
.info-card-icon i { font-size: 1.55rem; line-height: 1; }
.info-card-icon-sm {
  width: 3.5rem;
  height: 3.5rem;
}
.info-card-icon-sm i { font-size: 1.25rem; }
.info-card-blue .info-card-icon { color: #0A376F; }
.info-card-green .info-card-icon { color: #1FAF8A; }
.info-card:hover .info-card-icon {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(6, 43, 92, .14);
}
.info-card-blue:hover .info-card-icon { color: #D9A62E; }
.info-card-green:hover .info-card-icon { color: #062B5C; }
.info-card-title {
  font-size: .95rem;
  font-weight: 800;
  color: #062B5C;
  text-transform: uppercase;
  line-height: 1.35;
  margin-bottom: .65rem;
}
.info-card-title-sm {
  font-size: .84rem;
  text-transform: none;
  margin-bottom: 0;
}
.info-card-desc {
  font-size: .78rem;
  line-height: 1.65;
  color: #3D4F68;
}
@media (max-width: 639px) {
  .info-public-section .info-card {
    padding: 0.85rem 0.65rem 1rem;
  }
  .info-public-section .info-card-illus {
    height: 72px;
    margin-bottom: 0.65rem;
  }
  .info-public-section .info-card-icon {
    width: 3rem;
    height: 3rem;
  }
  .info-public-section .info-card-icon i {
    font-size: 1.15rem;
  }
  .info-public-section .info-card-title {
    font-size: 0.68rem;
    line-height: 1.3;
    margin-bottom: 0.45rem;
  }
  .info-public-section .info-card-desc {
    font-size: 0.65rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* Footer */
.site-footer .footer-block-title {
  font-size: .92rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.site-footer .footer-block-title i {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  background: rgba(255,255,255,.1);
  color: #D9A62E;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  flex-shrink: 0;
}
.site-footer .footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .84rem;
  color: rgba(255,255,255,.82);
  line-height: 1.55;
  margin-bottom: .55rem;
}
.site-footer .footer-contact-item i {
  width: 1rem;
  text-align: center;
  color: #D9A62E;
  margin-top: .15rem;
  flex-shrink: 0;
}
.site-footer .footer-contact-item a { color: rgba(255,255,255,.9); }
.site-footer .footer-hours-dark .footer-hours-row {
  color: rgba(255,255,255,.72);
  border-bottom-color: rgba(255,255,255,.12);
}
.site-footer .footer-hours-dark .footer-hours-row strong {
  color: #fff;
}
.site-footer .footer-hours-row {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  font-size: .82rem;
  padding-bottom: .45rem;
  margin-bottom: .45rem;
  border-bottom: 1px solid rgba(227, 232, 240, .85);
}
.site-footer .footer-hours-row:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
.site-footer .footer-hours-row strong {
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}
.site-footer .footer-soc {
  width: 2.25rem; height: 2.25rem;
  border-radius: 9999px;
  background: rgba(255,255,255,.1);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.site-footer .footer-soc:hover {
  background: #D9A62E;
  color: #062B5C;
  transform: translateY(-1px);
}
.site-footer .footer-soc svg { width: 1rem; height: 1rem; }
.site-footer .footer-map { background: rgba(255,255,255,.04); }
.site-footer .footer-location .footer-block-title {
  margin-bottom: .55rem;
}
.site-footer .footer-location-address {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  font-size: .84rem;
  color: rgba(255,255,255,.82);
  line-height: 1.6;
  margin: 0 0 .9rem;
  max-width: 36rem;
}
.site-footer .footer-location-address i {
  width: 1rem;
  text-align: center;
  color: #D9A62E;
  margin-top: .2rem;
  flex-shrink: 0;
  font-size: .82rem;
}
.site-footer .footer-location-address span {
  flex: 1;
  min-width: 0;
}

.soc svg, .nav-ico svg, .quick-ico svg, .hero-nav-btn svg, .w-8 svg, .w-9 svg, .w-10 svg, .w-11 svg, .w-14 svg {
  width: 100%; height: 100%; display: block;
}

.nav-drop {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, visibility 0s linear .15s;
}
.has-drop:hover > .nav-drop,
.has-drop:focus-within > .nav-drop,
.has-drop.open > .nav-drop {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}
.has-drop > .nav-drop::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}
.site-header { overflow: visible; z-index: 40; position: relative; }

@media (max-width: 1023px) {
  .site-header-row {
    gap: 0.5rem;
  }
  .site-header-brand {
    max-width: calc(100% - 5.75rem);
    padding-right: 0.15rem;
  }
  .site-header-logo {
    height: 2.5rem;
    width: auto;
  }
  .site-header-title-mobile {
    overflow: hidden;
  }
  .header-ornament {
    opacity: 0.06;
    width: 56px;
  }
  .mobile-nav-toggle,
  .mobile-header-btn {
    width: 2.5rem;
    height: 2.5rem;
  }
  .mobile-header-btn i {
    font-size: 0.9rem;
  }
}

.site-nav { position: relative; z-index: 50; overflow: visible; }
.site-nav .has-drop { position: relative; }
.site-nav .nav-ico {
  width: 1rem;
  height: 1rem;
  opacity: 0.95;
}
.site-nav .nav-ico i {
  font-size: 0.875rem;
  line-height: 1;
  display: block;
}
.site-nav .nav-soc-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color .2s ease, color .2s ease;
}
.site-nav .nav-soc-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #D9A62E;
}
.site-nav .nav-soc-btn i {
  font-size: 0.9rem;
  line-height: 1;
}
.site-nav .nav-link.is-active {
  background: var(--gold, #D9A62E);
  color: rgba(255, 255, 255, 0.88);
  border-radius: 0.5rem;
  font-weight: 700;
}
.site-nav .nav-link.is-active:hover {
  background: var(--gold-2, #C79220);
  color: rgba(255, 255, 255, 0.92);
}
.site-nav .nav-link.is-active .nav-ico {
  opacity: 1;
  color: inherit;
}
.site-nav .nav-link.is-active .nav-ico i {
  color: inherit;
}
.site-nav .nav-drop-panel {
  background: #EEF4FB;
  border: 1px solid #E3E8F0;
  box-shadow: 0 14px 32px rgba(6, 43, 92, .14);
}
@media (min-width: 1024px) {
  .nav-drop-cols-2 { column-count: 2; }
  .nav-drop-cols-3 { column-count: 3; }
  .nav-drop-cols-4 { column-count: 4; }
}

/* Mobile header + drawer navigation */
.site-header-actions {
  flex-shrink: 0;
}
.mobile-header-btn,
.mobile-nav-toggle {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  border: 1px solid #E3E8F0;
  background: #fff;
  color: #062B5C;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
  position: relative;
  flex-shrink: 0;
}
.mobile-header-btn:hover,
.mobile-nav-toggle:hover {
  background: #F7F9FC;
  border-color: #cbd5e1;
  color: #062B5C;
}
.mobile-header-btn i {
  font-size: 1rem;
  line-height: 1;
}
.mobile-nav-toggle-bars {
  width: 1.125rem;
  height: 0.875rem;
  position: relative;
  display: block;
}
.mobile-nav-toggle-bars span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .28s ease, opacity .2s ease, top .28s ease, bottom .28s ease;
}
.mobile-nav-toggle-bars span:nth-child(1) { top: 0; }
.mobile-nav-toggle-bars span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.mobile-nav-toggle-bars span:nth-child(3) { bottom: 0; top: auto; }
body.mobile-nav-open .mobile-nav-toggle-bars span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
body.mobile-nav-open .mobile-nav-toggle-bars span:nth-child(2) { opacity: 0; }
body.mobile-nav-open .mobile-nav-toggle-bars span:nth-child(3) {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%) rotate(-45deg);
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(2, 12, 34, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s ease, visibility .28s ease;
}
.mobile-nav-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}
body.mobile-nav-open {
  overflow: hidden;
}
body.mobile-nav-open .site-header {
  position: relative;
  z-index: 75;
}
body.mobile-nav-open .mobile-nav-toggle {
  visibility: hidden;
  pointer-events: none;
}
body.mobile-nav-open .mobile-header-btn {
  position: relative;
  z-index: 76;
}

.mobile-nav-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}
.mobile-nav-close {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.625rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.08);
  border: none;
  transition: background-color .2s ease, color .2s ease;
}
.mobile-nav-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.mobile-nav-drawer-foot {
  margin-top: auto;
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

@media (max-width: 1023px) {
  .site-nav-shell {
    position: fixed !important;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 70;
    width: min(88vw, 320px);
    max-width: 320px;
    padding: 0 !important;
    margin: 0 !important;
    pointer-events: none;
    visibility: hidden;
  }
  body.mobile-nav-open .site-nav-shell {
    visibility: visible;
    pointer-events: none;
  }
  .site-nav {
    position: absolute;
    inset: 0;
    display: flex !important;
    flex-direction: column;
    border-radius: 0 !important;
    min-height: 100% !important;
    padding: 0 !important;
    box-shadow: 8px 0 32px rgba(6, 43, 92, 0.24);
    transform: translateX(-105%);
    transition: transform .32s cubic-bezier(.4, 0, .2, 1);
    pointer-events: auto;
    overflow: hidden;
  }
  body.mobile-nav-open .site-nav {
    transform: translateX(0);
  }
  .mobile-nav-drawer-head,
  .mobile-nav-drawer-foot {
    display: flex;
  }
  .nav-panel {
    display: none !important;
    flex: 1;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.65rem 0.75rem 1rem !important;
    -webkit-overflow-scrolling: touch;
  }
  body.mobile-nav-open .nav-panel {
    display: flex !important;
  }
  .nav-panel > li > a,
  .nav-panel > li > button {
    width: 100%;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
  .nav-drop {
    position: static;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    box-shadow: none;
    padding: 0;
    background: transparent;
  }
  .nav-drop-panel {
    column-count: 1 !important;
    columns: 1 !important;
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.45rem 0.5rem !important;
    margin-top: 0.35rem;
  }
  .nav-drop-panel a {
    display: block;
    white-space: normal !important;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    padding: 0.55rem 0.6rem;
    line-height: 1.45;
    break-inside: avoid;
    border-radius: 0.45rem;
  }
  .nav-drop-panel a:hover {
    background: rgba(255, 255, 255, 0.08);
  }
  .has-drop:not(.open) > .nav-drop { display: none; }
}

@media (min-width: 1024px) {
  .site-nav-shell {
    position: static !important;
    inset: auto !important;
    width: auto;
    max-width: none;
    pointer-events: auto;
    visibility: visible !important;
    display: block !important;
  }
  .site-nav {
    position: relative !important;
    inset: auto !important;
    display: flex !important;
    flex-direction: row !important;
    width: 100%;
    min-height: 50px;
    transform: none !important;
    overflow: visible;
  }
  .nav-panel {
    display: flex !important;
    flex-direction: row;
  }
  .mobile-nav-drawer-head,
  .mobile-nav-drawer-foot {
    display: none !important;
  }
}
