/* ==========================================================================
   FAMEDIA — seksi khusus beranda (dimuat hanya di halaman "/").
   Token warna/spasi berasal dari app.css.
   ========================================================================== */

.home-section { --section-fade: clamp(56px, 7vw, 96px); padding-block: calc(var(--fm-stack) * 1.75); }
.home-section-title { margin: 0 0 1rem; font-size: clamp(1.15rem, 1rem + .7vw, 1.45rem); }
.responsive-picture { display: contents; }
.responsive-picture img { object-position: var(--image-position-mobile, center center); }

/* Tombol besar beranda */
.cta-primary, .cta-outline { display: inline-flex; flex: 0 0 auto; align-items: center; white-space: nowrap; justify-content: center; gap: .55rem; min-height: 50px; padding: 0 1.6rem; border: 1px solid transparent; border-radius: 999px; font-weight: 600; transition: transform .2s ease, background .2s ease, color .2s ease; }
.cta-primary { color: #fcf1d0; background: var(--fm-primary-600); }
.cta-primary:hover { color: #fcf1d0; background: var(--fm-primary-700); transform: translateY(-2px); }
.cta-outline { color: #fff; border-color: rgba(255, 255, 255, .85); }
.cta-outline:hover { color: var(--fm-primary-700); background: #fff; transform: translateY(-2px); }
.cta-outline.is-soft { color: var(--fm-primary-700); border-color: var(--fm-primary); background: #fff; }
.cta-outline.is-soft:hover { color: #fff; background: var(--fm-primary-600); }

/* Hero */
.home-hero { position: relative; overflow: hidden; color: var(--fm-ink-strong); background: linear-gradient(118deg, #fcf1d0 0%, #fcf1d0 58%, #22396f 150%); }
.home-hero::before { content: ""; position: absolute; top: -180px; right: 8%; display: none; width: 430px; height: 430px; border: 2px dashed rgba(255, 255, 255, .55); border-radius: 50%; }
.home-hero .container { position: relative; z-index: 1; }
.home-hero-grid { display: grid; align-items: center; gap: 1rem; }
.home-hero-copy { min-width: 0; padding: 2.25rem 0 2rem; text-align: center; }
.home-eyebrow { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: .75rem; font-size: .8rem; font-weight: 600; }
.home-title { max-width: 100%; margin: 0; overflow-wrap: anywhere; color: var(--fm-ink-strong); font-size: clamp(1.75rem, 1.2rem + 3vw, 3.2rem); line-height: 1.15; letter-spacing: -.035em; }
.home-copy { max-width: 600px; margin: .9rem auto 0; color: var(--fm-ink); font-size: clamp(.95rem, .9rem + .3vw, 1.08rem); }
.home-hero .cta-outline { color: var(--fm-primary-700); border-color: var(--fm-primary-700); }
.home-hero .cta-outline:hover { color: #fff; background: var(--fm-primary-700); }
.home-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem; margin-top: 1.5rem; }
.hero-visual { position: relative; display: none; min-height: 450px; }
.hero-presenter { --hero-model-shift: 0px; position: absolute; bottom: -2px; left: 50%; z-index: 3; width: min(660px, 128%); max-width: none; height: 440px; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 16px 18px rgba(22, 55, 75, .2)); transform: translateX(calc(-50% + var(--hero-model-shift))); }
.hero-presenter-mobile { display: none; }
.hero-device { position: absolute; bottom: 34px; left: 50%; z-index: 4; width: 184px; height: 306px; padding: 10px; border: 5px solid #e8edf2; border-radius: 30px; background: #fff; box-shadow: 0 20px 35px rgba(15, 58, 75, .27); transform: translateX(-50%) rotate(-2deg); }
.hero-device-screen { height: 100%; overflow: hidden; border-radius: 19px; background: #f5fafb; }
.device-top { display: flex; align-items: center; gap: 6px; height: 40px; padding: 7px 9px; border-bottom: 1px solid #e7eef0; background: #fff; }
.device-logo { --size: 22px; color: var(--fm-primary-600); }
.device-search { height: 8px; flex: 1; border-radius: 20px; background: #edf0f2; }
.device-banner { margin: 10px; padding: 12px 9px; border-radius: 9px; color: #fcf1d0; background: linear-gradient(135deg, #0d1c42, #22396f); font-size: 10px; font-weight: 700; line-height: 1.35; }
.device-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 0 10px; }
.device-card { height: 80px; padding: 7px; border-radius: 7px; background: #fff; box-shadow: 0 3px 8px rgba(52, 64, 84, .09); }
.device-card::before { content: ""; display: block; height: 48px; border-radius: 5px; background: linear-gradient(145deg, #010736, #22396f); }
.device-card:nth-child(2)::before { background: linear-gradient(145deg, #0d1c42, #fcf1d0); }
.device-card:nth-child(3)::before { background: linear-gradient(145deg, #22396f, #fcf1d0); }
.device-card:nth-child(4)::before { background: linear-gradient(145deg, #010736, #0d1c42); }
/* Gambar layar unggahan superadmin (hero & portal); menggantikan ilustrasi bawaan. */
.device-shot { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.hero-chip { position: absolute; z-index: 5; display: grid; width: 46px; height: 46px; place-items: center; border-radius: 14px; background: #fff; color: var(--fm-primary-600); font-size: 1.25rem; box-shadow: 0 14px 26px -12px rgba(1, 7, 54, .45); }
.hero-chip.is-1 { top: 118px; left: 20%; }
.hero-chip.is-2 { top: 42px; right: 8%; color: #079455; }
.hero-chip.is-3 { right: 20%; bottom: 116px; width: 40px; height: 40px; border-radius: 12px; background: var(--fm-primary-600); color: #fcf1d0; font-size: 1rem; }
.hero-dot { position: absolute; z-index: 2; border-radius: 50%; box-shadow: inset -6px -6px 8px rgba(0, 0, 0, .08); }
.hero-dot.is-1 { top: 88px; left: 15%; width: 34px; height: 34px; background: #22396f; }
.hero-dot.is-2 { top: 205px; left: 9%; width: 48px; height: 48px; background: #0d1c42; }
.hero-dot.is-3 { right: 10%; bottom: 20px; width: 30px; height: 30px; background: #fcf1d0; }

/* Keunggulan */
.benefit-strip { background: #fcf1d0; }
.benefit-grid { display: grid; gap: 0; }
.benefit-item { display: flex; align-items: center; gap: .9rem; padding: 1rem 0; }
.benefit-item + .benefit-item { border-top: 1px solid rgba(34, 57, 111, .18); }
.benefit-icon { display: grid; width: 46px; height: 46px; flex: 0 0 46px; place-items: center; border-radius: 50%; background: #fff; color: var(--fm-primary-600); font-size: 1.25rem; }
.benefit-item h2 { margin: 0 0 .15rem; font-size: .95rem; }
.benefit-item p { margin: 0; color: var(--fm-muted); font-size: .82rem; line-height: 1.5; }
.benefit-slider-controls { display: none; }

/* Showcase portal */

/* Banner informasi beranda: empat media rasio 2:1 langsung terlihat di desktop. */
.home-banner-section { padding-block: clamp(1rem, 2.5vw, 2rem); background: linear-gradient(180deg, #fcf1d0 0, #fff 100%); }
.home-banner-carousel { position: relative; min-width: 0; padding-bottom: 48px; }
.home-banner-track { display: flex; gap: .75rem; overflow-x: auto; padding: .15rem .1rem 1rem; scroll-padding-inline: .1rem; scroll-snap-type: x mandatory; scrollbar-width: none; }
.home-banner-track::-webkit-scrollbar { display: none; }
.home-banner-slide { position: relative; flex: 0 0 min(88vw, 520px); overflow: hidden; aspect-ratio: 2 / 1; border: 1px solid rgba(1, 7, 54, .1); border-radius: 18px; background: var(--fm-gradient); box-shadow: 0 18px 34px -24px rgba(1, 7, 54, .72); scroll-snap-align: start; }
.home-banner-slide > a:first-of-type { display: block; width: 100%; height: 100%; }
.home-banner-slide img, .home-banner-slide iframe { display: block; width: 100%; height: 100%; border: 0; object-fit: cover; }
.home-banner-slide .video-frame { height: 100%; aspect-ratio: auto; }
.home-banner-caption { position: absolute; right: 8px; bottom: 8px; left: 8px; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .38rem .4rem .38rem .65rem; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; background: rgba(1, 7, 54, .8); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.home-banner-caption span { overflow: hidden; font-size: .65rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.home-banner-caption a { display: grid; width: 25px; height: 25px; flex: 0 0 25px; place-items: center; border-radius: 50%; background: #fcf1d0; color: #010736; font-size: .72rem; }
.home-banner-controls { position: absolute; bottom: 0; left: 50%; z-index: 3; display: flex; align-items: center; gap: .55rem; padding: .35rem .5rem; border-radius: 999px; background: rgba(255, 255, 255, .94); box-shadow: 0 8px 24px -14px rgba(1, 7, 54, .7); transform: translateX(-50%); }
.home-banner-controls > button { display: grid; width: 28px; height: 28px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #eef1f6; color: #22396f; }
.home-banner-controls .track-dots { flex: 0 0 auto; }

/* Paket bundle */
.bundle-shell { position: relative; overflow: hidden; border-radius: var(--fm-radius-lg); padding: 1.5rem var(--fm-card-pad) 1rem; background: linear-gradient(120deg, #010736 0%, #0d1c42 55%, #22396f 100%); }
.bundle-grid-wrap { display: grid; gap: 1rem; }
.bundle-left { position: relative; color: #fcf1d0; }
.bundle-left::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 10% 46%, rgba(252, 241, 208, .9) 0 2px, transparent 3px),
        radial-gradient(circle at 83% 18%, rgba(216, 162, 162, .9) 0 4px, transparent 5px),
        radial-gradient(circle at 74% 54%, rgba(252, 241, 208, .66) 0 2px, transparent 3px),
        radial-gradient(circle at 22% 72%, rgba(142, 166, 107, .76) 0 3px, transparent 4px),
        radial-gradient(circle at 92% 76%, rgba(252, 241, 208, .8) 0 2px, transparent 3px),
        radial-gradient(circle at 48% 34%, rgba(255, 255, 255, .5) 0 1px, transparent 2px);
    content: "";
    opacity: .8;
    pointer-events: none;
    animation: bundle-particles 7s ease-in-out infinite;
}
.bundle-left::after {
    position: absolute;
    bottom: -170px;
    left: 50%;
    z-index: 0;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(252, 241, 208, .2);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(216, 162, 162, .2), rgba(34, 57, 111, .04) 58%, transparent 70%);
    box-shadow: 0 0 70px rgba(216, 162, 162, .12);
    content: "";
    pointer-events: none;
    transform: translateX(-50%);
    animation: bundle-halo 8s ease-in-out infinite;
}
.bundle-script { font-size: 2.2rem; font-style: italic; font-weight: 700; line-height: .95; text-shadow: 0 3px 10px rgba(1, 7, 54, .35); }
.bundle-premium { color: #fcf1d0; font-size: 2.2rem; font-weight: 700; line-height: 1; text-shadow: 0 3px 0 #22396f; }
.bundle-subtitle { max-width: 280px; margin: .6rem 0 0; font-size: .85rem; }
.bundle-presenter { display: none; position: absolute; right: 0; bottom: -60px; z-index: 1; width: 200px; height: 300px; object-fit: contain; }
.bundle-card { flex: 0 0 230px; overflow: hidden; border: 1px solid rgba(252, 241, 208, .82); border-radius: 14px; background: #fff; box-shadow: 0 18px 34px -10px rgba(1, 7, 54, .42), 0 4px 10px rgba(1, 7, 54, .14); }
.bundle-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #fcf1d0; }
.bundle-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.bundle-card:hover .bundle-card-media img { transform: scale(1.025); }
.bundle-code { position: absolute; top: 10px; left: 10px; z-index: 2; display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(255, 255, 255, .55); border-radius: 50%; background: #010736; color: #fcf1d0; font-size: .9rem; font-weight: 700; box-shadow: 0 7px 16px rgba(1, 7, 54, .3); backdrop-filter: blur(6px); }
.bundle-code-pearl { background: #fcf1d0; color: #0d1c42; }
.bundle-code-ruby { background: #8f3047; color: #fff; }
.bundle-code-saphire { background: #22396f; color: #fff; }
.bundle-code-diamond { background: #e8f2f5; color: #0d1c42; }
.bundle-code-gold { background: #b88a32; color: #fff; }
.bundle-code-cappucino { background: #b37c5d; color: #fff; }
.bundle-code-esspresso { background: #553426; color: #fff; }
.bundle-duration { position: absolute; right: 9px; bottom: 9px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 99px; background: rgba(252, 241, 208, .94); color: #010736; font-size: .62rem; font-weight: 600; }
.bundle-card-body { display: flex; min-height: 250px; align-items: flex-start; flex-direction: column; padding: 14px; }
.bundle-card-body h3 { margin: 0; color: #010736; font-size: 1.05rem; }
.bundle-tagline { min-height: 3.8em; margin: .35rem 0 .55rem; color: var(--fm-muted); font-size: .72rem; line-height: 1.45; }
.bundle-meta { display: grid; width: 100%; gap: .25rem; color: #344054; font-size: .68rem; }
.bundle-meta span { display: flex; align-items: center; gap: .35rem; }
.bundle-meta i { color: #d8a2a2; }
.chip { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 99px; background: #fcf1d0; color: var(--fm-primary-700); font-size: .68rem; font-weight: 600; }
.price-label { display: block; margin-top: .5rem; color: var(--fm-muted); font-size: .7rem; }
.price-old { margin-right: 4px; color: #98a2b3; font-size: .72rem; text-decoration: line-through; }
.price-discount { padding: 1px 5px; border-radius: 4px; background: #dcfae6; color: #079455; font-size: .68rem; font-weight: 700; }
.price-now { display: block; color: #010736; font-size: 1rem; font-weight: 700; }
.bundle-detail { display: flex; width: 100%; min-height: 42px; align-items: center; justify-content: center; gap: .45rem; margin-top: auto; padding: 0 1rem; border: 0; border-radius: 12px; background: var(--fm-primary); color: #fcf1d0; font-size: .8rem; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.bundle-detail:hover { background: var(--fm-primary-600); color: #fff; }
.package-modal .modal-content { overflow: hidden; border: 0; border-radius: 20px; }
.package-modal-image { width: 100%; height: auto; aspect-ratio: 4 / 3; margin-bottom: 1rem; border-radius: 14px; object-fit: cover; }
.package-price-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1rem 0; padding: .9rem 1rem; border-radius: 12px; background: #fcf1d0; color: #010736; }
.package-price-row span { color: #667085; font-size: .78rem; }
.package-price-row strong { font-size: 1.1rem; }
.package-benefits { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.package-benefits li { display: flex; align-items: flex-start; gap: .55rem; color: #344054; font-size: .82rem; }
.package-benefits i { margin-top: .1rem; color: #8ea66b; }
.package-note { display: flex; align-items: flex-start; gap: .55rem; margin: 1rem 0 0; padding: .75rem; border-radius: 10px; background: #fff7f7; color: #667085; font-size: .72rem; }
.bundle-shell .track-footer { color: #fcf1d0; }
.bundle-shell .track-dot { background: rgba(252, 241, 208, .42); }
.bundle-shell .track-dot.is-active { background: #fcf1d0; }
.bundle-shell .track-nav button { background: rgba(255, 255, 255, .86); }
.bundle-shell .track-nav button:last-child { background: var(--fm-primary-700); color: #fff; }

/* Katalog buku */
.catalog-section {
    --section-tint: #f8f5ed;
    border-block: 0;
    background: linear-gradient(180deg, #fff 0, var(--section-tint) var(--section-fade), var(--section-tint) calc(100% - var(--section-fade)), #fff 100%);
}
.catalog-section-new-release { --section-tint: #f2f5fb; }
.search-note { display: flex; align-items: center; gap: .75rem; margin-top: 1.5rem; padding: .85rem 1rem; border: 1px solid #e5d7ad; border-radius: var(--fm-radius); background: var(--fm-primary-50); }
.search-note > i { color: var(--fm-primary-600); font-size: 1.2rem; }
.search-note span { display: block; color: var(--fm-muted); font-size: .8rem; }
.catalog-promo { position: relative; flex: 0 0 170px; overflow: hidden; border: 1px solid rgba(13, 28, 66, .1); border-radius: 12px; background: var(--fm-gradient); box-shadow: 0 18px 34px -18px rgba(1, 7, 54, .48), 0 3px 9px rgba(1, 7, 54, .1); }
.catalog-promo img { width: 100%; height: 100%; min-height: 290px; object-fit: cover; }
.catalog-promo::after { display: none; }
.testimonial-promo img { object-fit: cover; }
.catalog-layout { display: grid; gap: 1rem; }
.catalog-books { min-width: 0; }
.book-card { position: relative; flex: 0 0 210px; overflow: hidden; border: 1px solid rgba(13, 28, 66, .12); border-radius: 12px; background: #fff; box-shadow: 0 16px 30px -18px rgba(1, 7, 54, .46), 0 3px 9px rgba(1, 7, 54, .08); }
.book-cover { position: relative; display: block; width: 100%; padding: 9px; overflow: hidden; border: 0; aspect-ratio: 3 / 2; background: linear-gradient(145deg, #0d1c42 0 12%, #fcf1d0 12% 88%, #d8a2a2 88%); cursor: pointer; }
.book-cover::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(255, 255, 255, .68); border-radius: 10px; pointer-events: none; }
.book-cover::after { content: "\2726"; position: absolute; top: 11px; right: 14px; z-index: 2; color: #fff; font-size: .9rem; line-height: 1; text-shadow: 0 2px 7px rgba(1, 7, 54, .35); pointer-events: none; }
.catalog-section-new-release .book-cover { background: linear-gradient(145deg, #22396f 0 12%, #f5f7fb 12% 88%, #0d1c42 88%); }
.book-cover img { position: relative; z-index: 1; width: 100%; height: 100%; border-radius: 8px; object-fit: cover; box-shadow: 0 8px 18px -10px rgba(1, 7, 54, .6); transition: transform .25s ease; }
.book-card:hover .book-cover img { transform: scale(1.03); }
.book-body { padding: 10px 10px 12px; }
.book-title { margin: 0 0 2px; min-height: 2.9em; font-size: .8rem; font-weight: 600; line-height: 1.45; color: var(--fm-ink-strong); }
.book-author { margin-bottom: .35rem; overflow: hidden; color: #98a2b3; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.book-action { position: absolute; right: 8px; bottom: 10px; display: grid; width: 32px; height: 32px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: #f2f4f7; color: #667085; }
.book-action:hover { background: var(--fm-primary-50); color: var(--fm-primary-700); }



/* Program */
.program-section { background: linear-gradient(180deg, #fff 0, #f7f8fc var(--section-fade), #f7f8fc calc(100% - var(--section-fade)), #fff 100%); }
.program-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem; margin-bottom: 1.25rem; }
.program-head h2 { margin: 0 0 .2rem; font-size: clamp(1.2rem, 1.05rem + .7vw, 1.55rem); }
.program-head p { margin: 0; color: var(--fm-muted); }
.program-grid { display: grid; gap: .7rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.program-carousel { min-width: 0; }
.program-track { display: flex; gap: .7rem; overflow-x: auto; padding: .2rem .1rem 1rem; scroll-padding-inline: .1rem; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.program-track::-webkit-scrollbar { display: none; }
.program-track .program-card { flex: 0 0 calc((100% - .65rem) / 2); scroll-snap-align: start; }
.program-card { position: relative; overflow: hidden; border: 1px solid var(--fm-line); border-radius: var(--fm-radius-lg); background: #fff; box-shadow: var(--fm-shadow-sm); }
.program-card-image { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--fm-gradient); }
.program-card-image img { width: 100%; height: 100%; object-fit: cover; }
.program-type { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .92); color: #13444e; font-size: .7rem; font-weight: 600; }
.program-price { position: absolute; top: 10px; right: 10px; padding: 4px 10px; border-radius: 99px; color: #fcf1d0; background: rgba(1, 7, 54, .92); font-size: .7rem; font-weight: 700; }
.program-card-body { padding: 1rem; }
.program-card-body h3 { margin: 0 0 .5rem; font-size: .98rem; line-height: 1.45; }
.program-meta { display: flex; align-items: center; gap: .4rem; margin-bottom: .75rem; color: var(--fm-muted); font-size: .78rem; }
.program-link { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 600; }
.program-empty { grid-column: 1 / -1; }
.program-track-footer { margin-top: .1rem; }

/* Postingan tepat di bawah Program Pilihan. */
.home-post-section { background: linear-gradient(180deg, #fff 0, #faf6e8 52%, #fff 100%); }
.home-post-carousel { min-width: 0; }
.home-post-track { display: flex; gap: .8rem; overflow-x: auto; padding: .75rem .7rem 2rem; scroll-padding-inline: .7rem; scroll-snap-type: x mandatory; overscroll-behavior-inline: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.home-post-track::-webkit-scrollbar { display: none; }
.home-post-card { position: relative; display: grid; flex: 0 0 min(88vw, 380px); grid-template-columns: 108px minmax(0, 1fr); min-height: 140px; overflow: hidden; border: 2px solid rgba(252, 241, 208, .9); border-radius: 20px; background: linear-gradient(135deg, #010736 0%, #0d1c42 58%, #22396f 100%); color: #fff; box-shadow: 0 18px 34px -18px rgba(1, 7, 54, .72); scroll-snap-align: start; scroll-snap-stop: always; transition: transform .22s ease, box-shadow .22s ease; }
.home-post-card::after { position: absolute; top: -48px; right: -45px; width: 105px; height: 105px; border: 18px solid rgba(252, 241, 208, .08); border-radius: 50%; content: ""; pointer-events: none; }
.home-post-card:hover { box-shadow: 0 24px 42px -23px rgba(1, 7, 54, .9); transform: translateY(-3px); }
.home-post-image { position: relative; z-index: 1; display: block; min-height: 0; align-self: stretch; margin: 6px; overflow: hidden; border: 1px solid rgba(252, 241, 208, .5); border-radius: 14px; background: #010736; }
.home-post-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.home-post-card:hover .home-post-image img { transform: scale(1.04); }
.home-post-image > span { display: grid; width: 100%; height: 100%; min-height: 124px; place-items: center; color: #fcf1d0; font-size: 2rem; }
.home-post-copy { position: relative; z-index: 1; display: flex; min-width: 0; flex-direction: column; padding: .7rem .8rem .55rem .25rem; }
.home-post-tag { align-self: flex-start; padding: .18rem .45rem; border-radius: 999px; background: rgba(252, 241, 208, .14); color: #fcf1d0; font-size: .64rem; font-weight: 600; }
.home-post-copy h3 { margin: .1rem 0 .3rem; overflow: hidden; color: #fff; font-size: .95rem; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.home-post-copy h3 a { color: inherit; }
.home-post-copy p { display: -webkit-box; margin: 0; overflow: hidden; color: rgba(255, 255, 255, .72); font-size: .7rem; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.home-post-link { display: inline-flex; align-items: center; justify-content: flex-end; gap: .45rem; margin-top: auto; color: #fcf1d0; font-size: .58rem; font-weight: 600; }
.home-post-link i { font-size: 1.25rem; transition: transform .2s ease; }
.home-post-link:hover { color: #fff; }
.home-post-link:hover i { transform: translateX(3px); }

/* Halaman baca postingan. */
.public-post { max-width: 920px; margin-inline: auto; }
.public-post-back { display: inline-flex; align-items: center; gap: .45rem; margin-bottom: 1rem; color: var(--fm-muted); font-size: .82rem; font-weight: 600; }
.public-post-hero { display: block; width: 100%; max-height: 500px; object-fit: cover; border-radius: 24px 24px 0 0; background: #0d1c42; }
.public-post-body { padding: clamp(1.25rem, 4vw, 3rem); border: 1px solid var(--fm-line); border-top: 0; border-radius: 0 0 24px 24px; background: #fff; box-shadow: 0 24px 50px -36px rgba(1, 7, 54, .6); }
.public-post-body .home-post-tag { display: inline-flex; padding: .35rem .7rem; border-radius: 999px; background: #fcf1d0; color: #22396f; }
.public-post-body h1 { margin: .8rem 0 .45rem; font-size: clamp(1.6rem, 1.2rem + 2vw, 2.6rem); }
.public-post-date { display: flex; align-items: center; gap: .4rem; color: var(--fm-muted); font-size: .78rem; }
.public-post-content { margin-top: 1.5rem; color: var(--fm-ink); font-size: 1rem; line-height: 1.9; }
.public-post-content > :first-child { margin-top: 0; }
.public-post-content h2, .public-post-content h3, .public-post-content h4 { margin: 1.65em 0 .55em; color: var(--fm-ink-strong); line-height: 1.25; }
.public-post-content img { display: block; max-width: 100%; height: auto; margin: 1.25rem auto; border-radius: 18px; }
.public-post-content blockquote { margin: 1.25rem 0; padding: .9rem 1rem; border-left: 4px solid var(--fm-primary-600); border-radius: 0 12px 12px 0; background: var(--fm-primary-50); }
.public-post-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.public-post-content th, .public-post-content td { padding: .6rem .75rem; border: 1px solid var(--fm-line); }
.public-post-related { max-width: 920px; margin: 2.5rem auto 0; }
.public-post-related h2 { font-size: 1.15rem; }
.public-post-related-grid { display: grid; gap: .7rem; }
.public-post-related-grid a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem 1rem; align-items: center; padding: 1rem; border: 1px solid var(--fm-line); border-radius: 14px; background: #fff; color: var(--fm-ink); box-shadow: var(--fm-shadow-sm); }
.public-post-related-grid span { color: var(--fm-muted); font-size: .65rem; }
.public-post-related-grid strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.public-post-related-grid i { grid-column: 2; grid-row: 1 / 3; }

/* Direktori dan detail program publik. */
.program-directory-hero { position: relative; overflow: hidden; margin-bottom: 2rem; padding: clamp(1.4rem, 4vw, 2.6rem); border-radius: 24px; background: linear-gradient(120deg, #010736, #0d1c42 55%, #22396f); box-shadow: 0 24px 52px -34px rgba(1, 7, 54, .7); }
.program-directory-hero::after { position: absolute; right: -55px; bottom: -90px; width: 240px; height: 240px; border: 38px solid rgba(252, 241, 208, .08); border-radius: 50%; content: ""; }
.program-directory-hero .home-eyebrow { color: #fcf1d0; }
.program-directory-hero h1 { max-width: 720px; margin: .75rem 0 .35rem; color: #fff; }
.program-directory-hero > p { max-width: 680px; margin: 0; color: rgba(255, 255, 255, .8); }
.program-directory-filter { position: relative; z-index: 1; display: grid; gap: .65rem; margin-top: 1.4rem; padding: .75rem; border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; background: rgba(255, 255, 255, .1); backdrop-filter: blur(8px); }
.program-directory-filter .form-control, .program-directory-filter .form-select { border-color: rgba(255, 255, 255, .7); background-color: #fff; }
.program-directory-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.program-directory-head span { color: #22396f; font-size: .68rem; font-weight: 700; letter-spacing: .11em; }
.program-directory-head h2 { margin: .15rem 0 0; font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem); }
.program-directory-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.program-directory-grid .program-empty { grid-column: 1 / -1; }

.program-detail-grid { display: grid; gap: 1.4rem; align-items: start; }
.program-detail-poster, .program-detail-card, .program-registration { overflow: hidden; border: 1px solid var(--fm-line); border-radius: 22px; background: #fff; box-shadow: 0 22px 46px -34px rgba(1, 7, 54, .62); }
.program-detail-poster img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.program-poster-empty { display: grid; aspect-ratio: 16 / 9; place-items: center; color: #fcf1d0; background: var(--fm-gradient); font-size: 3rem; }
.program-detail-card { padding: clamp(1.2rem, 3vw, 2rem); }
.program-detail-badges { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.program-detail-card h1 { margin: 1rem 0; font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.35rem); }
.program-date-grid { display: grid; gap: .85rem; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 1.25rem; padding: 1rem; border-radius: 16px; background: #f7f8fc; }
.program-description { margin-bottom: 1.35rem; line-height: 1.75; }
.program-description img { max-width: 100%; }
.program-video { position: relative; overflow: hidden; margin: 0 0 1.35rem; border-radius: 16px; aspect-ratio: 16 / 9; background: #010736; box-shadow: 0 18px 38px -28px rgba(1, 7, 54, .75); }
.program-registration-success { display: flex; align-items: center; gap: .8rem; padding: 1rem; border: 1px solid #b9dfc8; border-radius: 16px; background: #f0faf4; }
.program-registration-success > span { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border-radius: 50%; background: #2f7d50; color: #fff; font-size: 1.2rem; }
.program-registration-success strong { display: block; color: #185f39; }
.program-registration-success p { margin: .1rem 0 0; color: #416b53; font-size: .82rem; }
.program-registration { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 1.4rem; scroll-margin-top: calc(var(--fm-header-h) + 18px); }
.program-registration-intro { padding: clamp(1.3rem, 4vw, 2.3rem); color: #fff; background: linear-gradient(145deg, #010736, #0d1c42 60%, #22396f); }
.program-registration-intro > span { display: inline-flex; align-items: center; gap: .4rem; color: #fcf1d0; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.program-registration-intro h2 { margin: .7rem 0 .35rem; color: #fff; }
.program-registration-intro p { margin: 0; color: rgba(255, 255, 255, .8); }
.program-registration-intro ul { display: grid; gap: .5rem; margin: 1.35rem 0 0; padding: 0; list-style: none; }
.program-registration-intro li { display: flex; align-items: center; gap: .55rem; color: rgba(255, 255, 255, .9); font-size: .8rem; }
.program-registration-intro li i { color: #fcf1d0; }
.program-registration-form { padding: clamp(1.3rem, 4vw, 2.3rem); }
.program-consent { padding: .85rem .9rem .85rem 2.5rem; border: 1px solid #e5d7ad; border-radius: 13px; background: #fffaf0; }
.program-participant-entry { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .8rem; margin-top: 1rem; padding: .8rem; border: 1px solid rgba(34, 57, 111, .16); border-radius: 16px; background: linear-gradient(135deg, #f7f8fc, #fffaf0); }
.program-participant-entry > i { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; background: var(--fm-primary-700); color: #fcf1d0; font-size: 1.1rem; }
.program-participant-entry strong, .program-participant-entry span { display: block; }
.program-participant-entry strong { color: var(--fm-ink-strong); font-size: .86rem; }
.program-participant-entry span { color: var(--fm-muted); font-size: .72rem; line-height: 1.45; }
.program-participant-entry .btn { white-space: nowrap; }
.program-register-button { margin-top: .25rem; }
.program-ticket-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .85rem; align-items: center; padding: 1rem; border: 1px solid #b9dfc8; border-radius: 18px; background: linear-gradient(135deg, #f0faf4, #fffdf7); }
.program-ticket-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 15px; color: #fff; background: #2f7d50; font-size: 1.25rem; }
.program-ticket-card small, .program-ticket-card span { display: block; color: var(--fm-muted); font-size: .72rem; }
.program-ticket-card strong { display: block; overflow-wrap: anywhere; color: var(--fm-ink-strong); font-size: .9rem; }
.program-ticket-actions { display: flex; grid-column: 1 / -1; gap: .45rem; }

/* Akses dan halaman khusus peserta program. */
.participant-program-hero > div > span { display: inline-flex; align-items: center; gap: .45rem; color: #fcf1d0; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.program-access-form { display: grid; min-width: 0; align-content: center; gap: 1rem; padding: clamp(1.4rem, 5vw, 3rem); }
.program-access-form h2 { margin: 0; font-size: 1.25rem; }
.program-access-form > .col-12 { padding: 0; }
.participant-program-hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; padding: clamp(1.4rem, 4vw, 2.5rem); border-radius: 26px; color: #fff; background: linear-gradient(120deg, #010736, #0d1c42 60%, #22396f); box-shadow: 0 28px 60px -42px rgba(1, 7, 54, .8); }
.participant-program-hero h1 { margin: .65rem 0 .25rem; color: #fff; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem); }
.participant-program-hero p { margin: 0; color: rgba(255, 255, 255, .76); }
.participant-ticket-mini { display: grid; grid-template-columns: minmax(0, 1fr) auto; min-width: min(100%, 330px); padding: .85rem 1rem; border: 1px solid rgba(255, 255, 255, .16); border-radius: 15px; background: rgba(255, 255, 255, .1); }
.participant-ticket-mini small { grid-column: 1 / -1; color: rgba(255, 255, 255, .65); }
.participant-ticket-mini strong { align-self: center; overflow-wrap: anywhere; color: #fcf1d0; font-size: .85rem; }
.participant-ticket-mini .btn { color: #fff; }
.participant-announcement { position: relative; overflow: hidden; margin-bottom: 1.4rem; padding: clamp(1.15rem, 3vw, 2rem); border: 1px solid rgba(34, 57, 111, .14); border-radius: 24px; background: linear-gradient(135deg, #fff9e6 0%, #fffdf7 48%, #eef1f8 100%); box-shadow: 0 24px 50px -38px rgba(1, 7, 54, .58); }
.participant-announcement::after { position: absolute; top: -92px; right: -78px; width: 250px; height: 250px; border: 34px solid rgba(34, 57, 111, .06); border-radius: 50%; content: ""; pointer-events: none; }
.participant-announcement-heading, .participant-announcement .rich-text { position: relative; z-index: 1; }
.participant-announcement-heading { margin-bottom: 1rem; }
.participant-announcement-heading span { display: inline-flex; align-items: center; gap: .45rem; color: var(--fm-primary-600); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.participant-announcement-heading h2 { margin: .4rem 0 0; color: var(--fm-ink-strong); font-size: clamp(1.15rem, 1rem + .8vw, 1.55rem); }
.participant-announcement .rich-text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, 280px); gap: .75rem 1.5rem; align-items: start; }
.participant-announcement .rich-text > * { grid-column: 1; }
.participant-announcement .rich-text > img,
.participant-announcement .rich-text > :has(> img) { grid-column: 2; grid-row: 1 / span 20; margin: 0; justify-self: end; }
.participant-announcement .rich-text > img,
.participant-announcement .rich-text > :has(> img) img { width: 100%; max-width: 280px; max-height: 340px; margin: 0; object-fit: contain; border: 1px solid rgba(34, 57, 111, .12); border-radius: 16px; box-shadow: 0 18px 34px -24px rgba(1, 7, 54, .58); }
.participant-program-grid { display: grid; gap: 1.2rem; align-items: start; }
.participant-content h2, .participant-resources h2 { margin: .5rem 0 1rem; font-size: 1.2rem; }
.participant-resource { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .75rem; padding: .85rem 0; border-bottom: 1px solid var(--fm-line); color: var(--fm-ink-strong); }
.participant-resource > i:first-child { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; color: var(--fm-primary-700); background: #eef1f8; }
.participant-resource span, .participant-resource small { display: block; }
.participant-resource small { color: var(--fm-muted); font-size: .7rem; }

/* Ajakan penulis & langkah */
.writer-cta { position: relative; overflow: hidden; color: #fff; background: linear-gradient(112deg, #010736 0%, #0d1c42 52%, #22396f 100%); }
.writer-banner { position: relative; display: grid; gap: 1rem; margin-bottom: 2rem; padding: 1.25rem; overflow: hidden; border-radius: var(--fm-radius-lg); background: rgba(255, 255, 255, .97); color: var(--fm-ink); box-shadow: 0 12px 30px rgba(18, 91, 112, .13); isolation: isolate; }
.writer-banner::before { position: absolute; inset: -70% -12% -76% 42%; z-index: 0; background: repeating-radial-gradient(ellipse at 68% 46%, transparent 0 15px, rgba(34, 57, 111, .13) 16px 17px, transparent 18px 29px), repeating-radial-gradient(ellipse at 28% 72%, transparent 0 21px, rgba(216, 162, 162, .16) 22px 23px, transparent 24px 38px); content: ""; opacity: .82; pointer-events: none; transform: rotate(-8deg) translate3d(0, 0, 0); animation: writer-topography 15s ease-in-out infinite alternate; }
.writer-banner > * { position: relative; z-index: 1; }
.writer-banner > .cta-primary { justify-self: start; } /* lebar tombol tetap; hanya posisinya yang pindah ke bawah teks di ponsel */
.writer-banner h2 { margin: 0 0 .2rem; font-size: 1.2rem; }
.writer-banner p { margin: 0; color: var(--fm-muted); font-size: .88rem; }
.how-heading { margin-bottom: 1.5rem; text-align: center; }
.how-heading h2 { margin: 0 0 .3rem; color: #fff; font-size: clamp(1.2rem, 1.05rem + .8vw, 1.6rem); }
.how-heading p { margin: 0; color: rgba(255, 255, 255, .85); font-size: .88rem; }
.how-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.how-step { display: flex; gap: .85rem; }
.how-step-icon { position: relative; display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .16); color: #fff; font-size: 1.35rem; }
.how-step-number { position: absolute; top: -8px; left: -8px; display: grid; width: 21px; height: 21px; place-items: center; border: 2px solid #fff; border-radius: 50%; background: var(--fm-accent); color: #263846; font-size: .62rem; font-weight: 700; }
.how-step h3 { margin: 0 0 .2rem; color: #fff; font-size: .92rem; }
.how-step p { margin: 0; color: rgba(255, 255, 255, .85); font-size: .8rem; line-height: 1.55; }
.how-action { margin-top: 1.75rem; text-align: center; }

@media (min-width: 576px) {
    .how-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .program-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .book-card { flex-basis: 225px; }
    .catalog-promo { flex-basis: 200px; }
    .catalog-promo img { min-height: 320px; }
}

@media (min-width: 768px) {
    .responsive-picture img { object-position: var(--image-position-tablet, center center); }
    .home-banner-slide { flex-basis: calc((100% - .75rem) / 2); }
    .benefit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
    .benefit-item { padding: 1.5rem 0; }
    .benefit-item + .benefit-item { border-top: 0; }
    .writer-banner { grid-template-columns: 1fr auto; align-items: center; padding: 1.5rem 2rem; }
    .bundle-shell { padding: 2.25rem 2.5rem 1.25rem; }
    .bundle-script, .bundle-premium { font-size: 2.9rem; }
    .bundle-card { flex-basis: 235px; }
    .program-directory-filter { grid-template-columns: minmax(0, 1fr) minmax(170px, .34fr) auto; }
    .program-directory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .program-registration { grid-template-columns: minmax(270px, .75fr) minmax(0, 1.25fr); }
    .program-ticket-card { grid-template-columns: auto minmax(0, 1fr) auto; }
    .program-ticket-actions { grid-column: auto; }
    .participant-program-grid { grid-template-columns: minmax(0, 1.5fr) minmax(280px, .5fr); }
}

@media (min-width: 992px) {
    .responsive-picture img { object-position: var(--image-position-desktop, center center); }
    .home-banner-slide { flex-basis: calc((100% - 2.25rem) / 4); }
    .home-hero-grid { grid-template-columns: 7fr 5fr; }
    .home-hero-copy { padding: 3rem 0; text-align: left; }
    .home-copy { margin-left: 0; }
    .home-hero-actions { justify-content: flex-start; }
    .hero-visual, .home-hero::before { display: block; }
    .bundle-shell { min-height: 470px; padding: 0; }
    .bundle-grid-wrap { min-height: 470px; grid-template-columns: minmax(360px, 4fr) minmax(0, 7fr); gap: 0; }
    .bundle-left { min-height: 470px; overflow: hidden; padding: 3.25rem 2rem 0; }
    .bundle-script, .bundle-premium { position: relative; z-index: 2; }
    .bundle-script { font-size: clamp(3rem, 3.8vw, 4.2rem); line-height: .8; }
    .bundle-premium { font-size: clamp(2.7rem, 3.5vw, 3.9rem); line-height: 1; }
    .bundle-subtitle { position: relative; z-index: 2; max-width: 320px; color: rgba(252, 241, 208, .84); }
    .bundle-presenter {
        right: auto;
        bottom: -440px;
        left: 50%;
        display: block;
        width: 520px;
        height: 780px;
        max-width: none;
        object-fit: contain;
        transform: translateX(-50%);
        filter: drop-shadow(0 22px 28px rgba(1, 7, 54, .42));
        animation: bundle-presenter-float 7.5s ease-in-out infinite;
    }
    .bundle-packages { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: 0 1.15rem; }
    .bundle-track { flex: 0 0 auto; align-items: stretch; padding: 3.9rem 1rem 1.9rem; scroll-padding-inline: 1rem; }
    .bundle-card { min-width: 210px; flex-basis: calc((100% - 1.7rem) / 3); border-radius: 15px; }
    .bundle-card-body { min-height: 258px; padding: 15px 18px 17px; }
    .bundle-card-body .bundle-detail { margin-top: auto; }
    .bundle-card-body .price-now { font-size: 1.1rem; }
    .bundle-packages .track-footer { margin: 0; padding: 0 1rem 1.25rem; }
    .program-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .program-track .program-card { flex-basis: calc((100% - 2.1rem) / 4); }
    .home-post-card { flex-basis: calc((100% - 1.6rem) / 3); }
    .public-post-related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .program-directory-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .program-detail-grid { grid-template-columns: minmax(340px, 5fr) minmax(0, 7fr); }
    .program-detail-poster { position: sticky; top: calc(var(--fm-header-h) + 20px); }
    .how-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .book-card { flex-basis: 235px; }
    .catalog-promo { flex-basis: 225px; }
    .catalog-promo img { min-height: 345px; }
}

/* Penyesuaian khusus smartphone sesuai susunan visual beranda. */
@media (max-width: 767.98px) {
    .home-hero-grid { gap: 0; }
    .home-hero-copy { padding-bottom: .7rem; }
    .hero-visual {
        display: block;
        min-height: 330px;
        margin-inline: calc(0px - var(--fm-container-pad));
        overflow: hidden;
    }
    .hero-presenter-desktop { display: none; }
    .hero-presenter-mobile {
        display: block;
        bottom: -2px;
        width: 500px;
        height: 330px;
        animation: home-presenter-breathe 6.5s ease-in-out infinite;
    }
    .hero-presenter-mobile.is-left { --hero-model-shift: clamp(68px, 18vw, 76px); clip-path: inset(0 50% 0 0); }
    .hero-presenter-mobile.is-right { --hero-model-shift: clamp(-76px, -18vw, -68px); clip-path: inset(0 0 0 50%); }
    .hero-device {
        bottom: 24px;
        width: 128px;
        height: 218px;
        padding: 7px;
        border-width: 4px;
        border-radius: 23px;
        animation: home-device-float 5.5s ease-in-out infinite;
    }
    .hero-device-screen { border-radius: 14px; }
    .hero-device .device-top { height: 29px; padding: 5px 6px; }
    .hero-device .device-logo { --size: 17px; }
    .hero-device .device-banner { margin: 7px; padding: 8px 6px; font-size: 7px; }
    .hero-device .device-grid { gap: 5px; padding-inline: 7px; }
    .hero-device .device-card { height: 55px; padding: 5px; }
    .hero-device .device-card::before { height: 33px; }
    .hero-chip { width: 38px; height: 38px; border-radius: 12px; font-size: 1rem; }
    .hero-chip.is-1 { top: 82px; left: 13%; }
    .hero-chip.is-2 { top: 30px; right: 9%; }
    .hero-chip.is-3 { right: 13%; bottom: 76px; width: 34px; height: 34px; font-size: .82rem; }
    .hero-dot.is-1 { top: 58px; left: 8%; width: 25px; height: 25px; animation: home-dot-float 4.8s ease-in-out infinite; }
    .hero-dot.is-2 { top: 176px; left: 3%; width: 34px; height: 34px; animation: home-dot-float 6.2s ease-in-out -1.5s infinite reverse; }
    .hero-dot.is-3 { right: 5%; bottom: 16px; width: 24px; height: 24px; }

    .home-copy { max-width: 100%; overflow-wrap: anywhere; }
    .home-banner-carousel { padding-bottom: 48px; overflow: hidden; }
    .home-banner-caption { right: 9px; bottom: 8px; left: 9px; padding: .45rem .5rem .45rem .7rem; }
    .home-banner-caption a { width: 27px; height: 27px; flex-basis: 27px; }
    .home-banner-controls { bottom: 0; }
    .home-banner-slide { min-height: 190px; }
    .home-post-track { margin-inline: -.7rem; }
    .home-post-carousel .track-footer { margin-top: -.55rem; }
    .benefit-grid {
        display: flex;
        gap: .75rem;
        overflow-x: auto;
        padding-block: .85rem 1rem;
        scroll-padding-inline: var(--fm-container-pad);
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .benefit-grid::-webkit-scrollbar { display: none; }
    .benefit-item {
        flex: 0 0 min(82vw, 310px);
        padding: .9rem;
        border-radius: 14px;
        background: rgba(255, 255, 255, .58);
        scroll-snap-align: start;
    }
    .benefit-item + .benefit-item { border-top: 0; }
    .benefit-slider-controls {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .75rem;
        padding-bottom: .8rem;
        color: var(--fm-primary-700);
        font-size: .7rem;
        font-weight: 600;
    }
    .benefit-slider-controls .slider-swipe-cue { display: inline-flex; }
    .benefit-slider-controls .track-dots { justify-content: flex-end; }

    .bundle-shell { padding: 0; }
    .bundle-grid-wrap { gap: 0; }
    .bundle-left {
        min-height: 300px;
        overflow: hidden;
        padding: 1.65rem 1rem 0;
        border-bottom: 1px solid rgba(252, 241, 208, .32);
        text-align: center;
    }
    .bundle-script {
        position: relative;
        z-index: 2;
        font-size: 2.7rem;
        line-height: .85;
    }
    .bundle-premium {
        position: relative;
        z-index: 2;
        font-size: 2.55rem;
        line-height: 1;
    }
    .bundle-subtitle { display: none; }
    .bundle-presenter {
        right: auto;
        bottom: -390px;
        left: 50%;
        display: block;
        width: 460px;
        height: 690px;
        max-width: none;
        object-fit: contain;
        transform: translateX(-50%);
        filter: drop-shadow(0 14px 18px rgba(1, 7, 54, .32));
    }
    .bundle-packages { padding: 1rem .7rem .75rem; }
    .bundle-card { box-shadow: 0 10px 20px -5px rgba(1, 7, 54, .32); }

    .program-grid { gap: .65rem; }
    .program-card { border-radius: 12px; }
    .program-type { top: 6px; left: 6px; padding: 3px 7px; font-size: .64rem; }
    .program-price { top: 6px; right: 6px; padding: 3px 7px; font-size: .64rem; }
    .program-card-body { padding: .65rem; }
    .program-card-body h3 { margin-bottom: .35rem; font-size: .76rem; line-height: 1.35; }
    .program-meta { gap: .25rem; margin-bottom: .45rem; font-size: .62rem; line-height: 1.35; }
    .program-link { gap: .25rem; font-size: .74rem; }
    .program-date-grid { grid-template-columns: 1fr; }
    .program-directory-filter { grid-template-columns: 1fr; }
    .program-directory-grid { gap: .65rem; }

    .catalog-layout { gap: 1rem; }
    .catalog-promo {
        width: 100%;
        min-width: 0;
        min-height: 0;
        flex-basis: auto;
    }
    .catalog-section-rekomendasi .catalog-promo,
    .catalog-section-new-release .catalog-promo { width: min(100%, 335px); margin-inline: auto; }
    .catalog-promo img {
        display: block;
        width: 100%;
        height: auto;
        min-height: 0;
        aspect-ratio: 3 / 2;
        object-fit: cover;
    }
    .testimonial-promo { width: min(100%, 335px); margin-inline: auto; }
}

/* Motion ringan: reveal [data-reveal] ada di app.css; di sini mikro-interaksi elemen beranda. */

.program-card, .book-card, .catalog-promo { transition: transform .22s ease, box-shadow .22s ease; }
.program-card:hover, html.reveal-ready .program-card[data-reveal].is-revealed:hover { box-shadow: 0 18px 34px -24px rgba(1, 7, 54, .48); transform: translateY(-4px); }
.book-card:hover { box-shadow: 0 16px 30px -22px rgba(1, 7, 54, .5); transform: translateY(-3px); }
.catalog-promo:hover { box-shadow: 0 18px 35px -25px rgba(1, 7, 54, .55); transform: translateY(-2px); }
.program-card-image img, .catalog-promo-image { transition: transform .45s ease; }
.program-card:hover .program-card-image img, .catalog-promo:hover .catalog-promo-image { transform: scale(1.025); }

@media (min-width: 992px) {
    .hero-presenter { animation: home-presenter-breathe 6.5s ease-in-out infinite; }
    .hero-device { animation: home-device-float 5.5s ease-in-out infinite; }
    .hero-dot.is-1 { animation: home-dot-float 4.8s ease-in-out infinite; }
    .hero-dot.is-2 { animation: home-dot-float 6.2s ease-in-out -1.5s infinite reverse; }
}

@keyframes home-presenter-breathe {
    0%, 100% { transform: translateX(calc(-50% + var(--hero-model-shift, 0px))) translateY(0); }
    50% { transform: translateX(calc(-50% + var(--hero-model-shift, 0px))) translateY(-6px); }
}
@keyframes home-device-float {
    0%, 100% { transform: translateX(-50%) rotate(-2deg) translateY(0); }
    50% { transform: translateX(-50%) rotate(-.5deg) translateY(-8px); }
}
@keyframes home-dot-float {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(4px, -8px, 0); }
}
@keyframes bundle-particles {
    0%, 100% { opacity: .55; transform: translate3d(0, 0, 0); }
    50% { opacity: .95; transform: translate3d(0, -8px, 0); }
}
@keyframes bundle-halo {
    0%, 100% { opacity: .72; transform: translateX(-50%) scale(.96); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.04); }
}
@keyframes bundle-presenter-float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-7px); }
}
@keyframes writer-topography {
    0% { transform: rotate(-8deg) translate3d(-2%, 1%, 0) scale(1); }
    50% { transform: rotate(-5deg) translate3d(2%, -1.5%, 0) scale(1.035); }
    100% { transform: rotate(-9deg) translate3d(4%, 1%, 0) scale(1.015); }
}

/* Ikon animasi: hanya transform/opacity (diproses GPU, tanpa JS & tanpa aset tambahan).
   Jeda bertingkat dari --i membuat ikon bergerak bergantian, bukan serempak. */
.home-eyebrow > i { color: var(--fm-primary); font-size: .95rem; animation: home-twinkle 3s ease-in-out infinite; }
.benefit-icon { position: relative; }
.benefit-icon::after { content: ""; position: absolute; inset: 0; border: 2px solid rgba(34, 57, 111, .38); border-radius: 50%; opacity: 0; animation: home-ring 3s ease-out calc(var(--i, 0) * .9s) infinite; }
.benefit-icon > i { animation: fm-bob 3s ease-in-out calc(var(--i, 0) * .9s) infinite; }
.how-step-icon > i { animation: home-pop 4.8s ease-in-out calc(var(--i, 0) * .7s) infinite; }
.how-step-number { animation: home-ping 4.8s ease-in-out calc(var(--i, 0) * .7s) infinite; }
.home-hero .cta-primary > .bi-arrow-right { animation: home-nudge 1.8s ease-in-out infinite; }
.cta-primary > i, .cta-outline > i, .bundle-detail > i, .program-link > i { transition: transform .2s ease; }
.cta-primary:hover > i, .cta-outline:hover > i, .bundle-detail:hover > i, .program-link:hover > i { transform: translateX(3px); }
.slider-swipe-cue > i { animation: home-swipe 2.4s ease-in-out infinite; }
.bottom-nav .is-primary i { position: relative; }
.bottom-nav .is-primary i::after { content: ""; position: absolute; inset: -3px; border: 2px solid var(--fm-primary); border-radius: 50%; opacity: 0; animation: home-ring 2.6s ease-out 1s infinite; }
.hero-chip { animation: home-chip 5s ease-in-out infinite; }
.hero-chip.is-2 { animation-duration: 4.4s; animation-delay: -1.2s; }
.hero-chip.is-3 { animation-duration: 5.6s; animation-delay: -2.4s; }
.hero-chip > i { animation: home-pop 5s ease-in-out infinite; }
.hero-chip.is-2 > i { animation-delay: 1.6s; }
.hero-chip.is-3 > i { animation-name: home-ring-bell; animation-delay: 3.2s; }

@keyframes home-twinkle {
    0%, 100% { opacity: 1; transform: scale(1) rotate(0); }
    50% { opacity: .7; transform: scale(1.2) rotate(14deg); }
}
@keyframes home-ring {
    0% { opacity: .6; transform: scale(1); }
    70%, 100% { opacity: 0; transform: scale(1.5); }
}
@keyframes home-pop {
    0%, 20%, 100% { transform: none; }
    8% { transform: translateY(-5px) scale(1.14); }
    14% { transform: translateY(0) scale(.96); }
}
@keyframes home-ping {
    0%, 20%, 100% { transform: none; }
    8% { transform: scale(1.25); }
}
@keyframes home-nudge {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
}
@keyframes home-swipe {
    0%, 100% { transform: translateX(0) rotate(0); }
    50% { transform: translateX(6px) rotate(-10deg); }
}
@keyframes home-chip {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-10px) rotate(3deg); }
}
@keyframes home-ring-bell {
    0%, 16%, 100% { transform: rotate(0); }
    4% { transform: rotate(16deg); }
    8% { transform: rotate(-14deg); }
    12% { transform: rotate(8deg); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-presenter, .hero-device, .hero-dot, .bundle-presenter, .bundle-left::before, .bundle-left::after, .writer-banner::before, .hero-chip, .hero-chip > i, .home-eyebrow > i, .benefit-icon > i, .benefit-icon::after, .how-step-icon > i, .how-step-number, .home-hero .cta-primary > .bi-arrow-right, .slider-swipe-cue > i, .bottom-nav .is-primary i::after, .testimonial-quote { animation: none !important; }
    .program-card, .book-card, .catalog-promo, .program-card-image img, .catalog-promo-image, .testimonial-card, .testimonial-photo img { transition: none; }
    .program-card:hover, html.reveal-ready .program-card[data-reveal].is-revealed:hover, .book-card:hover, .catalog-promo:hover, .testimonial-card:hover { transform: none; }
}

@media (min-width: 768px) {
    .catalog-layout {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
    }
    .catalog-promo { min-width: 0; }
    .catalog-promo img {
        display: block;
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 7;
    }
}

@media (min-width: 992px) {
    .catalog-layout {
        grid-template-columns: minmax(270px, 320px) minmax(0, 1fr);
        align-items: start;
    }
    .catalog-promo { min-width: 0; aspect-ratio: 4 / 5; }
    .catalog-promo img {
        width: 100%;
        height: 100%;
        min-height: 0;
        object-fit: cover;
    }
    .testimonial-promo img { object-fit: cover; }
}

@media (max-width: 575.98px) {
    .program-participant-entry { grid-template-columns: auto minmax(0, 1fr); }
    .program-participant-entry .btn { grid-column: 1 / -1; width: 100%; }
    .participant-announcement { padding: 1rem; border-radius: 20px; }
    .participant-announcement .rich-text { grid-template-columns: minmax(0, 1fr); }
    .participant-announcement .rich-text > *,
    .participant-announcement .rich-text > img,
    .participant-announcement .rich-text > :has(> img) { grid-column: 1; grid-row: auto; }
    .participant-announcement .rich-text > img,
    .participant-announcement .rich-text > :has(> img) { width: min(100%, 290px); margin-top: .5rem; justify-self: center; }
}

/* Tablet: 3 kolom keunggulan terlalu sempit untuk ikon + teks berdampingan;
   ikon dipindah ke atas teks (posisi berubah, ukuran tetap). */
@media (min-width: 768px) and (max-width: 991.98px) {
    .benefit-item { flex-direction: column; align-items: flex-start; gap: .6rem; }
}
