/* ============================================================
   QODER PREMIUM SKIN — Yayasan Felicia Angel Kids (panel-65)
   Override murni CSS: palet navy-emas-ivory + tipografi + responsif
   sampai 200px. Tidak mengubah struktur, skrip, maupun perilaku.
   ============================================================ */

/* ---------- 1. Remap token warna (dulu sage-hijau → navy premium) ---------- */
.felicia-redesign {
  --background: #f7f4ec;
  --foreground: #10203a;
  --card: #fffdf8;
  --card-foreground: #10203a;
  --popover: #fffdf8;
  --popover-foreground: #10203a;
  --primary: #0c1c33;
  --primary-foreground: #f6efdd;
  --secondary: #eef1f7;
  --secondary-foreground: #10203a;
  --muted: #edf0f6;
  --muted-foreground: #5c6a80;
  --accent: #e7ecf5;
  --accent-foreground: #10203a;
  --border: #0c1c3326;
  --input: #0c1c332e;
  --ring: #c59a43;
  --color-navy-950: #060e1c;
  --color-navy-900: #0c1c33;
  --color-navy-800: #12294a;
  --color-navy-700: #1b3a63;
  --color-navy-100: #d9e2ef;
  --color-gold-200: #ecd9ab;
  --color-gold-300: #e0c588;
  --color-gold-400: #d4b36a;
  --color-gold-500: #c6a15b;
  --color-gold-600: #a8853f;
  --color-gold-700: #7a5c2e;
  --color-ivory: #f7f4ec;
  --color-cream: #efe9db;
  --color-parchment: #e6dfcb;
}

/* ---------- 2. Header ---------- */
.felicia-redesign header {
  border-bottom: 1px solid rgba(198, 161, 91, .42) !important;
  box-shadow: 0 6px 26px rgba(12, 28, 51, .08);
}
.felicia-redesign header .h-\[80px\] { border-radius: 999px; box-shadow: 0 6px 18px rgba(12, 28, 51, .14); }
.felicia-redesign header a[href="#beranda"] span.block.font-display,
.felicia-redesign header a span.font-display { letter-spacing: .02em; }

/* ---------- 3. Hero ---------- */
.felicia-redesign .felicia-hero__wash {
  background:
    radial-gradient(34rem 30rem at 84% 12%, rgba(198, 161, 91, .20), transparent 70%),
    radial-gradient(30rem 26rem at 6% 88%, rgba(18, 41, 74, .10), transparent 70%),
    linear-gradient(115deg, transparent 0 62%, rgba(198, 161, 91, .06) 62% 62.15%, transparent 62.15%);
}
.felicia-redesign .felicia-hero__eyebrow {
  color: #1b3a63;
  background: rgba(255, 253, 248, .88);
  border: 1px solid rgba(198, 161, 91, .55);
  box-shadow: 0 4px 14px rgba(12, 28, 51, .07);
}
.felicia-redesign .felicia-hero__eyebrow span { color: #a8853f; }
.felicia-redesign #beranda h1 {
  font-size: clamp(2.1rem, 6.4vw, 4.35rem);
  letter-spacing: -.028em;
}
.felicia-redesign #beranda h1 em,
.felicia-redesign #beranda h1 i,
.felicia-redesign #beranda h1 span:not([class]) { color: #8a6a2f; }
.felicia-redesign .felicia-hero__portrait {
  border-color: #a8853f;
  box-shadow: 0 30px 80px rgba(12, 28, 51, .30), 0 0 0 6px rgba(255, 253, 248, .65);
}
.felicia-redesign .felicia-hero__portrait::before { border-color: rgba(236, 217, 171, .8); }
.felicia-redesign .felicia-hero__portrait-shade { background: linear-gradient(transparent, rgba(6, 14, 28, .84)); }
.felicia-redesign .felicia-hero__portrait-caption .font-display { letter-spacing: .01em; }
.felicia-redesign .felicia-hero__seal {
  color: #7a5c2e;
  background: #fffdf6;
  border-color: rgba(168, 133, 63, .5);
  box-shadow: 0 14px 34px rgba(12, 28, 51, .18), inset 0 0 0 4px rgba(198, 161, 91, .18);
}
.felicia-redesign .felicia-hero__scroll { color: rgba(12, 28, 51, .58); }
.felicia-redesign .felicia-hero__scroll:hover { color: #0c1c33; }

/* Tombol hero: utama = emas gradasi, sekunder = outline navy */
.felicia-redesign #beranda div.mt-6.flex.flex-wrap > a:nth-child(1) {
  background: linear-gradient(145deg, #e7c779, #b7852e) !important;
  color: #10233d !important;
  border: 1px solid rgba(255, 255, 255, .5);
  box-shadow: 0 12px 28px rgba(183, 133, 46, .35), inset 0 1px rgba(255, 255, 255, .45);
}
.felicia-redesign #beranda div.mt-6.flex.flex-wrap > a:nth-child(1):hover {
  box-shadow: 0 16px 34px rgba(183, 133, 46, .45), inset 0 1px rgba(255, 255, 255, .5);
}
.felicia-redesign #beranda div.mt-6.flex.flex-wrap > a:nth-child(2) {
  background: rgba(255, 255, 255, .6) !important;
  border: 2px solid rgba(12, 28, 51, .55) !important;
  color: #0c1c33 !important;
}
.felicia-redesign #beranda div.mt-6.flex.flex-wrap > a:nth-child(2):hover { border-color: #a8853f !important; }

/* ---------- 4. Kartu & judul seksi ---------- */
.felicia-redesign [data-section-heading] h2 { letter-spacing: -.015em; }
.felicia-redesign .ornament-divider { opacity: .9; }
.felicia-redesign section div[class*="rounded-2xl"][class*="border-gold"],
.felicia-redesign section div[class*="rounded-2xl"][class*="shadow-sm"] {
  box-shadow: 0 10px 30px rgba(12, 28, 51, .08), 0 2px 6px rgba(12, 28, 51, .05);
  transition: transform .18s ease, box-shadow .18s ease;
}
.felicia-redesign section div[class*="rounded-2xl"][class*="border-gold"]:hover,
.felicia-redesign section div[class*="rounded-2xl"][class*="shadow-sm"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(12, 28, 51, .12);
}

/* ---------- 5. Footer ---------- */
.felicia-redesign footer { border-top: 1px solid rgba(198, 161, 91, .4); }

/* ---------- 6. Keamanan overflow media & grid ---------- */
.felicia-redesign img, .felicia-redesign svg, .felicia-redesign video { max-width: 100%; }
.felicia-redesign .grid > * { min-width: 0; }
@media (max-width: 420px) {
  .felicia-redesign section div[class*="-bottom-6"] { bottom: .75rem; }
  .felicia-redesign section div[class*="-right-4"] { right: .25rem; }
  .felicia-redesign section div[class*="-left-4"] { left: .25rem; }
}

/* ---------- 7. Responsif ekstrem: tablet kecil → jam tangan digital ---------- */
@media (max-width: 480px) {
  .felicia-redesign header > div:not([class*="overflow-y-auto"]) { height: 66px; }
  .felicia-redesign header .h-\[80px\] { width: 54px; height: 54px; }
  .felicia-redesign .felicia-hero__portrait { min-height: 300px; }
}
@media (max-width: 380px) {
  .felicia-redesign header > div:not([class*="overflow-y-auto"]) { height: 60px; }
  .felicia-redesign header .h-\[80px\] { width: 46px; height: 46px; }
  .felicia-redesign .felicia-hero__seal { width: 4.2rem; height: 4.2rem; font-size: .48rem; }
  .felicia-redesign #beranda div.mt-6.flex.flex-wrap > a { height: 2.5rem; padding-left: 1.1rem; padding-right: 1.1rem; font-size: .8rem; }
}
@media (max-width: 300px) {
  .felicia-redesign section div[class*="p-7"] { padding: 1.1rem; }
  .felicia-redesign section div[class*="gap-4"] { gap: .6rem; }
  .felicia-redesign header > div:not([class*="overflow-y-auto"]) { height: 54px; gap: .35rem; }
  .felicia-redesign header .h-\[80px\] { width: 40px; height: 40px; }
  .felicia-redesign header .min-w-0 > .block:first-child { font-size: 11px; }
  .felicia-redesign header .min-w-0 > .block:last-child { font-size: 8px; letter-spacing: .08em; }
  .felicia-redesign .felicia-hero__wash { display: none; }
  .felicia-redesign #beranda div[class*="mx-auto"] { padding-top: 3.5rem; }
  .felicia-redesign .felicia-hero__seal { display: none; }
  .felicia-redesign .felicia-hero__portrait { height: min(46svh, 260px); min-height: 200px; }
  .felicia-redesign .felicia-hero__portrait-caption { left: .75rem; right: .75rem; bottom: .9rem; gap: .5rem; }
  .felicia-redesign .felicia-hero__portrait-mark { width: 2rem; height: 2rem; font-size: .9rem; }
  .felicia-redesign section[class*="py-20"] { padding-top: 2.5rem; padding-bottom: 2.5rem; }
}
@media (max-width: 240px) {
  .felicia-redesign header > div:not([class*="overflow-y-auto"]) { height: 48px; padding-left: .35rem; padding-right: .35rem; }
  .felicia-redesign header .h-\[80px\] { width: 34px; height: 34px; }
  .felicia-redesign header .min-w-0 > .block:last-child { display: none; }
  .felicia-redesign header .min-w-0 { display: none; }
  .felicia-redesign header > div:not([class*="overflow-y-auto"]) { justify-content: space-between; }
  .felicia-redesign .felicia-hero__eyebrow { letter-spacing: .08em; text-align: center; }
  .felicia-redesign #beranda h1 { font-size: 1.55rem; }
  .felicia-redesign #beranda p { font-size: .8rem; }
  .felicia-redesign #beranda div.mt-6.flex.flex-wrap { gap: .35rem; }
  .felicia-redesign #beranda div.mt-6.flex.flex-wrap > a { height: 2.1rem; padding-left: .55rem; padding-right: .55rem; font-size: .6rem; white-space: normal; max-width: 100%; }
  .felicia-redesign .felicia-hero__eyebrow { font-size: .55rem; padding: .35rem .6rem; }
  .felicia-redesign .felicia-hero__portrait { height: min(40svh, 210px); min-height: 160px; border-radius: 40% 40% 8px 8px; }
  .felicia-redesign [data-section-heading] h2 { font-size: 1.15rem; }
  .felicia-redesign section[class*="px-5"] { padding-left: .6rem; padding-right: .6rem; }
}
/* ---------- 8. Menu hamburger: kartu mengambang di SEMUA lebar (panel-66) ----------
   Menjamin menu terbuka tampil seperti versi mobile (kartu putih membulat,
   bayangan, rata kanan) bahkan bila browser masih menyimpan cache CSS lama. */
.felicia-redesign header div[class*="max-h-[calc(100vh-4.5rem)]"],
.felicia-redesign > header > div.overflow-y-auto,
html[data-news-katolik-page] #root > .min-h-screen > header > div.overflow-y-auto {
  max-width: 420px !important;
  width: min(420px, calc(100vw - 32px)) !important;
  border-radius: 16px !important;
  background: #fffdf8 !important;
  box-shadow: 0 18px 44px rgba(12, 28, 51, .18) !important;
  position: absolute !important;
  top: calc(100% + 6px) !important;
  right: clamp(16px, calc(50vw - 512px), 208px) !important;
  left: auto !important;
  margin: 0 !important;
  border-top: 1px solid rgba(12, 28, 51, .08) !important;
}
/* drawer = anak langsung header; JANGAN pernah ikut terpotong oleh rule tinggi bar header */
.felicia-redesign header > div[class*="overflow-y-auto"] { height: auto !important; }


/* ---------- 9. Header laptop: SAMA PERSIS ala foto — garis tiga, bukan baris menu panjang (panel-70) ----------
   Di lebar >=1760px (laptop Full HD/DPI tinggi) bundel menyembunyikan tombol
   garis tiga dan menampilkan baris menu panjang. Kembalikan tampilan kartu
   mengambang ala foto di SEMUA lebar. */
.felicia-redesign header nav[class*="min-[1760px]:flex"] { display: none !important; }
.felicia-redesign header button[aria-label="Buka menu"] { display: flex !important; visibility: visible !important; }
.felicia-redesign header div[class*="max-h-[calc(100vh-4.5rem)]"] { display: block !important; }
@media (prefers-reduced-motion: reduce) {
  .felicia-redesign section div[class*="rounded-2xl"]:hover { transform: none; }
}

@layer utilities {
@media (min-width: 1760px) {
  .felicia-redesign > header > div.overflow-y-auto,
  html[data-news-katolik-page] #root > .min-h-screen > header > div.overflow-y-auto {
    display: block !important;
  }
}
}
