/* ============================================================
   QODER PREMIUM HAMBURGER — Yayasan Felicia Angel Kids
   Berlaku di SEMUA perangkat & lebar layar: jam tangan digital
   (>=200px), HP, tablet, laptop, iMac/MacBook, monitor besar.
   Override murni CSS — tidak mengubah struktur, skrip, perilaku.
   ============================================================ */

/* ---------- 1. Bar header: kaca ivory + garis emas ---------- */
header.fixed.inset-x-0.top-0 {
  background: linear-gradient(180deg, rgba(255, 253, 248, .96), rgba(247, 244, 236, .90)) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.35) !important;
  backdrop-filter: blur(16px) saturate(1.35) !important;
  border-bottom: 1px solid rgba(198, 161, 91, .45) !important;
  box-shadow: 0 8px 30px rgba(12, 28, 51, .10), inset 0 -1px 0 rgba(255, 255, 255, .65) !important;
}

/* ---------- 2. Sembunyikan baris menu teks di SEMUA lebar ---------- */
header nav[aria-label="Navigasi utama"] { display: none !important; }

/* ---------- 3. Tombol hamburger premium: WAJIB tampil di semua perangkat ---------- */
header button[aria-label*="menu" i] {
  display: inline-flex !important;
  visibility: visible !important;
  width: clamp(42px, 11vw, 54px) !important;
  height: clamp(42px, 11vw, 54px) !important;
  min-width: 40px;
  min-height: 40px;
  padding: 0 !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255, 255, 255, .55) !important;
  background: radial-gradient(120% 120% at 28% 22%, #f2d489 0%, #d9b25c 42%, #b3872f 78%, #96702a 100%) !important;
  box-shadow:
    0 10px 22px rgba(150, 112, 42, .38),
    inset 0 1px 1px rgba(255, 255, 255, .75),
    inset 0 -2px 4px rgba(120, 86, 30, .35) !important;
  color: #14283f !important;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease !important;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
header button[aria-label*="menu" i]:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow:
    0 14px 30px rgba(150, 112, 42, .48),
    inset 0 1px 1px rgba(255, 255, 255, .8),
    inset 0 -2px 4px rgba(120, 86, 30, .35) !important;
}
header button[aria-label*="menu" i]:active { transform: translateY(0) scale(.94); }
header button[aria-label*="menu" i]:focus-visible {
  outline: 3px solid rgba(198, 161, 91, .55);
  outline-offset: 3px;
}

/* Ikon 3 garis: proporsi premium + animasi morph ke tanda silang */
header button[aria-label*="menu" i] svg {
  width: 56%;
  height: 56%;
  stroke-width: 2.4;
}
header button[aria-label*="menu" i] svg path {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .12s cubic-bezier(.22, 1, .36, 1), opacity .12s ease;
}
header button[aria-label*="menu" i] svg path:nth-of-type(1) { transform: scaleX(.82); }
header button[aria-label*="menu" i] svg path:nth-of-type(3) { transform: scaleX(.62); }
header button[aria-label*="menu" i]:hover svg path:nth-of-type(1),
header button[aria-label*="menu" i]:hover svg path:nth-of-type(3) { transform: scaleX(1); }
header button[aria-label*="menu" i][aria-expanded="true"] svg path:nth-of-type(1) { transform: translateY(7px) rotate(45deg); }
header button[aria-label*="menu" i][aria-expanded="true"] svg path:nth-of-type(2) { opacity: 0; transform: scaleX(.2); }
header button[aria-label*="menu" i][aria-expanded="true"] svg path:nth-of-type(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 4. Kartu drawer menu: mengambang, membulat, elegan ---------- */
header > div[class*="overflow-y-auto"] {
  display: block !important;
  position: absolute !important;
  top: calc(100% + 10px) !important;
  left: auto !important;
  right: clamp(10px, calc(50vw - 560px), 240px) !important;
  width: min(430px, calc(100vw - 20px)) !important;
  max-height: calc(100svh - 84px) !important;
  margin: 0 !important;
  border: 1px solid rgba(198, 161, 91, .5) !important;
  border-radius: 22px !important;
  background: linear-gradient(180deg, #fffdf8 0%, #faf5ea 100%) !important;
  box-shadow:
    0 30px 70px rgba(12, 28, 51, .22),
    0 4px 14px rgba(12, 28, 51, .10),
    inset 0 1px 0 rgba(255, 255, 255, .9) !important;
  padding: 14px clamp(14px, 4vw, 22px) clamp(16px, 4vw, 24px) !important;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  animation: fakHbDrawerIn .12s cubic-bezier(.22, 1, .36, 1) both;
  z-index: 60;
}
@keyframes fakHbDrawerIn {
  from { opacity: 0; transform: translateY(-10px) scale(.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
/* pita emas di tepi atas kartu */
header > div[class*="overflow-y-auto"]::before {
  content: "";
  position: absolute;
  top: 0; left: 18px; right: 18px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, transparent, #c6a15b 22%, #e7c779 50%, #c6a15b 78%, transparent);
}

/* ---------- 5. Isi drawer: tipografi & hover premium ---------- */
header > div[class*="overflow-y-auto"] a {
  border-radius: 12px !important;
  transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease !important;
}
header > div[class*="overflow-y-auto"] a:hover {
  background: rgba(198, 161, 91, .14) !important;
  color: #7a5c2e !important;
  transform: translateX(3px);
  box-shadow: inset 3px 0 0 rgba(198, 161, 91, .75);
}
header > div[class*="overflow-y-auto"] a[href="/news-katolik"],
header > div[class*="overflow-y-auto"] a[href*="news-katolik"] {
  background: linear-gradient(145deg, #0c1c33, #16305a) !important;
  color: #f2d489 !important;
  border: 1px solid rgba(198, 161, 91, .55) !important;
  box-shadow: 0 10px 24px rgba(12, 28, 51, .28) !important;
  font-weight: 600;
  letter-spacing: .03em;
}
header > div[class*="overflow-y-auto"] a[href*="news-katolik"]:hover {
  transform: translateX(3px) translateY(-1px);
  box-shadow: 0 14px 30px rgba(12, 28, 51, .36) !important;
}

/* ---------- 6. Pill bahasa (ID/EN) ikut premium ---------- */
header button[aria-label*="Bahasa" i],
header button[aria-label*="language" i],
header button[aria-label*="translate" i],
header button[aria-label*="inggris" i],
header button[aria-label*="english" i] {
  border-radius: 999px !important;
  border: 1px solid rgba(198, 161, 91, .55) !important;
  background: rgba(255, 253, 248, .92) !important;
  box-shadow: 0 4px 12px rgba(12, 28, 51, .08) !important;
  transition: transform .18s ease, box-shadow .18s ease !important;
}
header button[aria-label*="Bahasa" i]:hover,
header button[aria-label*="language" i]:hover,
header button[aria-label*="translate" i]:hover,
header button[aria-label*="inggris" i]:hover,
header button[aria-label*="english" i]:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(12, 28, 51, .14) !important;
}

/* ---------- 7. Logo & nama yayasan ---------- */
header a[href="/"] span[class*="rounded-full"] {
  border: 1px solid rgba(198, 161, 91, .7) !important;
  box-shadow: 0 6px 18px rgba(12, 28, 51, .14), inset 0 0 0 3px rgba(198, 161, 91, .12) !important;
  background: #fffdf8 !important;
}

/* ---------- 8. Tangga responsif: tablet → HP → jam tangan digital ---------- */
@media (max-width: 768px) {
  header > div[class*="overflow-y-auto"] { right: clamp(8px, 3vw, 18px) !important; }
}
@media (max-width: 480px) {
  header > div[class*="overflow-y-auto"] {
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    border-radius: 18px !important;
  }
}
@media (max-width: 380px) {
  header button[aria-label*="menu" i] { width: 42px !important; height: 42px !important; }
  header > div[class*="overflow-y-auto"] { top: calc(100% + 6px) !important; max-height: calc(100svh - 70px) !important; padding: 12px 12px 16px !important; }
}
@media (max-width: 300px) {
  header button[aria-label*="menu" i] { width: 38px !important; height: 38px !important; }
  header > div[class*="overflow-y-auto"] { left: 6px !important; right: 6px !important; border-radius: 14px !important; }
}
@media (max-width: 240px) {
  header button[aria-label*="menu" i] { width: 34px !important; height: 34px !important; }
  header > div[class*="overflow-y-auto"] {
    top: calc(100% + 4px) !important;
    left: 4px !important; right: 4px !important;
    max-height: calc(100svh - 58px) !important;
    border-radius: 12px !important;
    padding: 8px !important;
  }
  header > div[class*="overflow-y-auto"] a { font-size: .72rem !important; padding-top: .35rem !important; padding-bottom: .35rem !important; }
}
@media (prefers-reduced-motion: reduce) {
  header button[aria-label*="menu" i],
  header button[aria-label*="menu" i] svg path,
  header > div[class*="overflow-y-auto"],
  header > div[class*="overflow-y-auto"] a { transition: none !important; animation: none !important; }
}

/* ============================================================
   10. OVERRIDE SPESIFIK — menetralkan skin lama ber-!important
   di bundle app (felicia-redesign) dan CSS warisan halaman news.
   ============================================================ */

/* ---------- 10.1 Beranda: tombol hamburger premium ---------- */
html #root > .felicia-redesign > header.fixed.inset-x-0.top-0 > div:first-child > div > button[aria-label*="menu" i] {
  display: inline-flex !important;
  visibility: visible !important;
  width: clamp(42px, 11vw, 54px) !important;
  min-width: 42px !important;
  height: clamp(42px, 11vw, 54px) !important;
  min-height: 42px !important;
  flex: 0 0 auto !important;
  padding: 0 !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255, 255, 255, .55) !important;
  background: radial-gradient(120% 120% at 28% 22%, #f2d489 0%, #d9b25c 42%, #b3872f 78%, #96702a 100%) !important;
  box-shadow: 0 10px 22px rgba(150, 112, 42, .38), inset 0 1px 1px rgba(255, 255, 255, .75), inset 0 -2px 4px rgba(120, 86, 30, .35) !important;
  color: #14283f !important;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease !important;
}
html #root > .felicia-redesign > header.fixed.inset-x-0.top-0 > div:first-child > div > button[aria-label*="menu" i]:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 14px 30px rgba(150, 112, 42, .48), inset 0 1px 1px rgba(255, 255, 255, .8), inset 0 -2px 4px rgba(120, 86, 30, .35) !important;
}
html #root > .felicia-redesign > header.fixed.inset-x-0.top-0 > div:first-child > div > button[aria-label*="menu" i]:active { transform: translateY(0) scale(.94); }
html #root > .felicia-redesign > header.fixed.inset-x-0.top-0 > div:first-child > div > button[aria-label*="menu" i]::before,
html #root > .felicia-redesign > header.fixed.inset-x-0.top-0 > div:first-child > div > button[aria-label*="menu" i]::after { content: none !important; display: none !important; }
html #root > .felicia-redesign > header.fixed.inset-x-0.top-0 > div:first-child > div > button[aria-label*="menu" i] > svg {
  display: block !important;
  width: 56% !important;
  height: 56% !important;
}
html #root > .felicia-redesign > header.fixed.inset-x-0.top-0 > div:first-child > div > button[aria-label*="menu" i] > svg path {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .12s cubic-bezier(.22, 1, .36, 1), opacity .12s ease !important;
}
html #root > .felicia-redesign > header.fixed.inset-x-0.top-0 > div:first-child > div > button[aria-label*="menu" i] > svg path:nth-of-type(1) { transform: scaleX(.82); }
html #root > .felicia-redesign > header.fixed.inset-x-0.top-0 > div:first-child > div > button[aria-label*="menu" i] > svg path:nth-of-type(3) { transform: scaleX(.62); }
html #root > .felicia-redesign > header.fixed.inset-x-0.top-0 > div:first-child > div > button[aria-label*="menu" i]:hover > svg path:nth-of-type(1),
html #root > .felicia-redesign > header.fixed.inset-x-0.top-0 > div:first-child > div > button[aria-label*="menu" i]:hover > svg path:nth-of-type(3) { transform: scaleX(1); }
html #root > .felicia-redesign > header.fixed.inset-x-0.top-0 > div:first-child > div > button[aria-label*="menu" i][aria-expanded="true"] > svg path:nth-of-type(1) { transform: translateY(7px) rotate(45deg); }
html #root > .felicia-redesign > header.fixed.inset-x-0.top-0 > div:first-child > div > button[aria-label*="menu" i][aria-expanded="true"] > svg path:nth-of-type(2) { opacity: 0; transform: scaleX(.2); }
html #root > .felicia-redesign > header.fixed.inset-x-0.top-0 > div:first-child > div > button[aria-label*="menu" i][aria-expanded="true"] > svg path:nth-of-type(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 10.2 Beranda: pill bahasa premium ---------- */
html #root > .felicia-redesign > header.fixed.inset-x-0.top-0 [role="group"]:has([data-fak-language-flag]) {
  border-radius: 999px !important;
  background: rgba(255, 253, 248, .92) !important;
  border: 1px solid rgba(198, 161, 91, .55) !important;
  box-shadow: 0 4px 12px rgba(12, 28, 51, .08) !important;
}
html #root > .felicia-redesign > header.fixed.inset-x-0.top-0 [role="group"]:has([data-fak-language-flag]) button {
  border-radius: 999px !important;
}
html #root > .felicia-redesign > header.fixed.inset-x-0.top-0 [role="group"]:has([data-fak-language-flag]) button[aria-pressed="true"] {
  background: linear-gradient(145deg, #e7c779, #b7852e) !important;
  color: #10233d !important;
  border-color: rgba(255, 255, 255, .5) !important;
  box-shadow: 0 4px 12px rgba(150, 112, 42, .35) !important;
}

/* ---------- 10.3 Beranda: kartu drawer ---------- */
html .felicia-redesign > header > div.overflow-y-auto {
  border: 1px solid rgba(198, 161, 91, .5) !important;
  border-radius: 22px !important;
  background: linear-gradient(180deg, #fffdf8 0%, #faf5ea 100%) !important;
  box-shadow: 0 30px 70px rgba(12, 28, 51, .22), 0 4px 14px rgba(12, 28, 51, .10), inset 0 1px 0 rgba(255, 255, 255, .9) !important;
}
html .felicia-redesign > header > div.overflow-y-auto > div > a,
html .felicia-redesign > header > div.overflow-y-auto > div > details > summary {
  color: #10233d !important;
  border-radius: 12px !important;
  transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease !important;
}
html .felicia-redesign > header > div.overflow-y-auto > div > a:hover,
html .felicia-redesign > header > div.overflow-y-auto > div > details > summary:hover {
  background: rgba(198, 161, 91, .14) !important;
  color: #7a5c2e !important;
  transform: translateX(3px);
  box-shadow: inset 3px 0 0 rgba(198, 161, 91, .75) !important;
}

/* ---------- 10.4 News Katolik: tombol hamburger premium ---------- */
html[data-news-katolik-page][data-news-katolik-page] #root#root#root#root#root#root > .min-h-screen > header > div:first-child button[aria-label*="menu" i],
html[data-news-katolik-page][data-news-katolik-page] #root#root#root#root#root#root > .min-h-screen > header > div:first-child > div:last-child > button[aria-label*="menu" i] {
  display: inline-flex !important;
  visibility: visible !important;
  width: clamp(42px, 11vw, 54px) !important;
  min-width: 42px !important;
  height: clamp(42px, 11vw, 54px) !important;
  min-height: 42px !important;
  flex: 0 0 auto !important;
  padding: 0 !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255, 255, 255, .55) !important;
  background: radial-gradient(120% 120% at 28% 22%, #f2d489 0%, #d9b25c 42%, #b3872f 78%, #96702a 100%) !important;
  box-shadow: 0 10px 22px rgba(150, 112, 42, .38), inset 0 1px 1px rgba(255, 255, 255, .75), inset 0 -2px 4px rgba(120, 86, 30, .35) !important;
  color: #14283f !important;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease !important;
}
html[data-news-katolik-page][data-news-katolik-page] #root#root#root#root#root#root > .min-h-screen > header > div:first-child button[aria-label*="menu" i]:hover,
html[data-news-katolik-page][data-news-katolik-page] #root#root#root#root#root#root > .min-h-screen > header > div:first-child > div:last-child > button[aria-label*="menu" i]:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 14px 30px rgba(150, 112, 42, .48), inset 0 1px 1px rgba(255, 255, 255, .8), inset 0 -2px 4px rgba(120, 86, 30, .35) !important;
}
html[data-news-katolik-page][data-news-katolik-page] #root#root#root#root#root#root > .min-h-screen > header > div:first-child button[aria-label*="menu" i]::before,
html[data-news-katolik-page][data-news-katolik-page] #root#root#root#root#root#root > .min-h-screen > header > div:first-child button[aria-label*="menu" i]::after,
html[data-news-katolik-page][data-news-katolik-page] #root#root#root#root#root#root > .min-h-screen > header > div:first-child > div:last-child > button[aria-label*="menu" i]::before,
html[data-news-katolik-page][data-news-katolik-page] #root#root#root#root#root#root > .min-h-screen > header > div:first-child > div:last-child > button[aria-label*="menu" i]::after { content: none !important; display: none !important; }
html[data-news-katolik-page][data-news-katolik-page] #root#root#root#root#root#root > .min-h-screen > header > div:first-child button[aria-label*="menu" i] > svg,
html[data-news-katolik-page][data-news-katolik-page] #root#root#root#root#root#root > .min-h-screen > header > div:first-child > div:last-child > button[aria-label*="menu" i] > svg {
  display: block !important;
  width: 56% !important;
  height: 56% !important;
}
html[data-news-katolik-page][data-news-katolik-page] #root#root#root#root#root#root > .min-h-screen > header > div:first-child button[aria-label*="menu" i] > svg path,
html[data-news-katolik-page][data-news-katolik-page] #root#root#root#root#root#root > .min-h-screen > header > div:first-child > div:last-child > button[aria-label*="menu" i] > svg path {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .12s cubic-bezier(.22, 1, .36, 1), opacity .12s ease !important;
}
html[data-news-katolik-page][data-news-katolik-page] #root#root#root#root#root#root > .min-h-screen > header > div:first-child button[aria-label*="menu" i] > svg path:nth-of-type(1),
html[data-news-katolik-page][data-news-katolik-page] #root#root#root#root#root#root > .min-h-screen > header > div:first-child > div:last-child > button[aria-label*="menu" i] > svg path:nth-of-type(1) { transform: scaleX(.82); }
html[data-news-katolik-page][data-news-katolik-page] #root#root#root#root#root#root > .min-h-screen > header > div:first-child button[aria-label*="menu" i] > svg path:nth-of-type(3),
html[data-news-katolik-page][data-news-katolik-page] #root#root#root#root#root#root > .min-h-screen > header > div:first-child > div:last-child > button[aria-label*="menu" i] > svg path:nth-of-type(3) { transform: scaleX(.62); }
html[data-news-katolik-page][data-news-katolik-page] #root#root#root#root#root#root > .min-h-screen > header > div:first-child button[aria-label*="menu" i][aria-expanded="true"] > svg path:nth-of-type(1),
html[data-news-katolik-page][data-news-katolik-page] #root#root#root#root#root#root > .min-h-screen > header > div:first-child > div:last-child > button[aria-label*="menu" i][aria-expanded="true"] > svg path:nth-of-type(1) { transform: translateY(7px) rotate(45deg); }
html[data-news-katolik-page][data-news-katolik-page] #root#root#root#root#root#root > .min-h-screen > header > div:first-child button[aria-label*="menu" i][aria-expanded="true"] > svg path:nth-of-type(2),
html[data-news-katolik-page][data-news-katolik-page] #root#root#root#root#root#root > .min-h-screen > header > div:first-child > div:last-child > button[aria-label*="menu" i][aria-expanded="true"] > svg path:nth-of-type(2) { opacity: 0; transform: scaleX(.2); }
html[data-news-katolik-page][data-news-katolik-page] #root#root#root#root#root#root > .min-h-screen > header > div:first-child button[aria-label*="menu" i][aria-expanded="true"] > svg path:nth-of-type(3),
html[data-news-katolik-page][data-news-katolik-page] #root#root#root#root#root#root > .min-h-screen > header > div:first-child > div:last-child > button[aria-label*="menu" i][aria-expanded="true"] > svg path:nth-of-type(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 10.5 News Katolik: kartu drawer ---------- */
html[data-news-katolik-page] #root#root#root#root > .min-h-screen > header > div.overflow-y-auto {
  border: 1px solid rgba(198, 161, 91, .5) !important;
  border-radius: 22px !important;
  background: linear-gradient(180deg, #fffdf8 0%, #faf5ea 100%) !important;
  box-shadow: 0 30px 70px rgba(12, 28, 51, .22), 0 4px 14px rgba(12, 28, 51, .10), inset 0 1px 0 rgba(255, 255, 255, .9) !important;
}
html[data-news-katolik-page] #root#root#root#root > .min-h-screen > header > div.overflow-y-auto > div > a,
html[data-news-katolik-page] #root#root#root#root > .min-h-screen > header > div.overflow-y-auto > div > details > summary {
  color: #10233d !important;
  border-radius: 12px !important;
  transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease !important;
}
html[data-news-katolik-page] #root#root#root#root > .min-h-screen > header > div.overflow-y-auto > div > a:hover,
html[data-news-katolik-page] #root#root#root#root > .min-h-screen > header > div.overflow-y-auto > div > details > summary:hover {
  background: rgba(198, 161, 91, .14) !important;
  color: #7a5c2e !important;
  transform: translateX(3px);
  box-shadow: inset 3px 0 0 rgba(198, 161, 91, .75) !important;
}

/* ---------- 13. Fix pil drawer "News Katolik" (2026-11-24) ----------
   Aturan umum drawer (bagian 12) memaksa warna teks #10233d dengan
   spesifikas lebih tinggi dari aturan pil (bagian 5), sehingga teks
   emas pil tidak terlihat. Aturan ini memulihkan tampilan pil yang
   semula: latar navy bergradasi + teks emas, termasuk saat hover. */
html #root#root#root#root > .felicia-redesign > header > div[class*="overflow-y-auto"] > div > a[href*="news-katolik"],
html #root#root#root#root > .felicia-redesign > header > div[class*="overflow-y-auto"] > div > a[href*="news-katolik"]:hover {
  background: linear-gradient(145deg, #0c1c33, #16305a) !important;
  color: #f2d489 !important;
}
