/* ==========================================================================
   Beranda (/)
   Memakai pb-* (publikasi.css) dan hp-* (halaman.css) untuk kartu berita,
   kartu dosen, ikon, dan kicker. Kelas khusus beranda memakai awalan bh-.
   ========================================================================== */

.bh-section { padding: 5rem 0; background: var(--sin-bg); }
.bh-section-soft { background: linear-gradient(180deg, #eef3fb, var(--sin-bg)); }
.bh-section-tight { padding-top: 1rem; }
.bh-title { margin: .55rem 0 0; color: var(--sin-text); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; line-height: 1.18; letter-spacing: -.03em; }
.bh-text { margin: 1rem 0 0; color: var(--sin-text-2); font-size: 1.02rem; line-height: 1.8; }
.bh-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.bh-head-center { flex-direction: column; align-items: center; text-align: center; }
.bh-more { display: inline-flex; align-items: center; gap: .4rem; padding: .6rem 1.1rem; border: 1px solid var(--sin-border); border-radius: 999px; background: var(--sin-surface); color: var(--sin-primary); font-size: .88rem; font-weight: 700; text-decoration: none; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.bh-more:hover { border-color: var(--sin-primary); background: var(--sin-primary); color: #fff; }
.bh-more .icon { width: 17px; height: 17px; }

.bh-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .9rem 1.5rem; border-radius: 999px; font-size: .95rem; font-weight: 800; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.bh-btn .icon { width: 18px; height: 18px; }
.bh-btn:hover { transform: translateY(-2px); }
.bh-btn-light { background: #fff; color: var(--sin-navy); box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .5); }
.bh-btn-light:hover { color: var(--sin-primary); }
.bh-btn-accent { background: var(--sin-accent); color: var(--sin-navy); box-shadow: 0 16px 30px -14px rgba(244, 207, 69, .8); }
.bh-btn-accent:hover { color: var(--sin-navy); }
.bh-btn-outline { border: 1px solid rgba(255, 255, 255, .4); color: #fff; }
.bh-btn-outline:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* Hero --------------------------------------------------------------------- */
.bh-hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: min(88vh, 860px); padding: 6rem 0 9rem; overflow: hidden; color: #fff; background: var(--sin-navy); }
.bh-hero-slides { position: absolute; inset: 0; z-index: -2; }
.bh-hero-scrim { position: absolute; inset: 0; z-index: -1; background:
    radial-gradient(circle at 85% 15%, rgba(244, 207, 69, .22), transparent 35%),
    linear-gradient(100deg, rgba(4, 24, 58, .95) 0%, rgba(5, 44, 101, .86) 42%, rgba(7, 85, 181, .45) 100%),
    linear-gradient(0deg, rgba(4, 24, 58, .75), transparent 40%); }
.bh-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(rgba(255, 255, 255, .1) 1px, transparent 1.2px) 0 0 / 24px 24px; mask-image: linear-gradient(90deg, #000, transparent 60%); -webkit-mask-image: linear-gradient(90deg, #000, transparent 60%); pointer-events: none; }
.bh-hero-inner { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .8fr); align-items: center; gap: 3rem; }
.bh-badge { display: inline-flex; align-items: center; gap: .55rem; padding: .45rem 1rem; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: .85rem; font-weight: 600; backdrop-filter: blur(8px); }
.bh-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sin-accent); box-shadow: 0 0 0 4px rgba(244, 207, 69, .25); animation: bh-pulse 2.2s ease-in-out infinite; }
@keyframes bh-pulse { 50% { box-shadow: 0 0 0 8px rgba(244, 207, 69, 0); } }
.bh-hero h1 { margin: 1.1rem 0 1rem; color: #fff; font-family: inherit; font-size: clamp(2.5rem, 5.6vw, 4.6rem); font-weight: 800; line-height: 1.04; letter-spacing: -.045em; text-wrap: balance; }
.bh-hero h1 span { background: linear-gradient(90deg, var(--sin-accent), #ffe58f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bh-hero-tagline { margin: 0; color: var(--sin-accent); font-size: 1.05rem; font-weight: 700; }
.bh-hero-sub { max-width: 38rem; margin: .9rem 0 0; color: rgba(255, 255, 255, .85); font-size: 1.05rem; line-height: 1.7; }
.bh-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.bh-hero-card { padding: 1.5rem; border: 1px solid rgba(255, 255, 255, .2); border-radius: 26px; background: rgba(255, 255, 255, .1); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.bh-hero-card-head { display: flex; align-items: center; gap: .8rem; padding-bottom: 1.1rem; margin-bottom: 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.bh-hero-card-head .hp-icon-tile { color: var(--sin-navy); background: var(--sin-accent); box-shadow: none; }
.bh-hero-card-head strong { display: block; font-size: 1.05rem; }
.bh-hero-card-head small { color: rgba(255, 255, 255, .7); font-size: .8rem; }
.bh-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 0; padding: 0; list-style: none; }
.bh-stats li { padding: 1rem; border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px; background: rgba(4, 24, 58, .35); }
.bh-stat-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .12); color: var(--sin-accent); }
.bh-stat-icon .icon { width: 18px; height: 18px; }
.bh-stats strong { display: block; margin-top: .7rem; font-size: 2rem; font-weight: 800; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.bh-stats small { display: block; margin-top: .3rem; color: rgba(255, 255, 255, .75); font-size: .8rem; }

.bh-hero-nav { position: absolute; left: 50%; bottom: 6.6rem; z-index: 2; display: flex; align-items: center; gap: .8rem; width: min(1180px, calc(100% - 2rem)); transform: translateX(-50%); }
.bh-hero-arrow { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; backdrop-filter: blur(6px); transition: background .2s ease; }
.bh-hero-arrow:hover { background: rgba(255, 255, 255, .2); }
.bh-hero-dots { display: flex; gap: .45rem; }
.bh-hero-counter { margin-left: auto; color: rgba(255, 255, 255, .75); font-size: .8rem; font-weight: 700; letter-spacing: .1em; font-variant-numeric: tabular-nums; }

/* Akses cepat -------------------------------------------------------------- */
.bh-quick-wrap { position: relative; z-index: 3; margin-top: -4.5rem; background: transparent; }
.bh-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.bh-quick a { display: flex; align-items: center; gap: .9rem; padding: 1.3rem 1.2rem; border: 1px solid var(--sin-border); border-radius: 22px; background: var(--sin-surface); color: inherit; text-decoration: none; box-shadow: 0 24px 46px -26px rgba(6, 44, 101, .55); transition: transform .25s ease, border-color .25s ease; }
.bh-quick a:hover { border-color: var(--sin-primary); transform: translateY(-5px); }
.bh-quick strong { display: block; color: var(--sin-text); font-size: 1rem; }
.bh-quick small { display: block; color: var(--sin-muted); font-size: .8rem; }

/* Tentang ------------------------------------------------------------------ */
.bh-about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 4rem; }
.bh-about-media { position: relative; padding: 0 2.5rem 2.5rem 0; }
.bh-about-frame { overflow: hidden; border-radius: 26px; box-shadow: 0 30px 60px -32px rgba(6, 44, 101, .6); }
.bh-about-frame-main .pb-media { --pb-ratio: 4 / 3.4; }
.bh-about-frame-small { position: absolute; right: 0; bottom: 0; width: 46%; border: 6px solid var(--sin-bg); }
.bh-about-frame-small .pb-media { --pb-ratio: 1 / 1; }
.bh-about-chip { position: absolute; top: 1.4rem; left: -1rem; display: flex; align-items: center; gap: .7rem; padding: .75rem 1rem .75rem .75rem; border-radius: 18px; background: var(--sin-surface); box-shadow: 0 20px 40px -20px rgba(6, 44, 101, .55); animation: bh-float 6s ease-in-out infinite; }
.bh-about-chip .hp-icon-tile { width: 40px; height: 40px; border-radius: 12px; }
.bh-about-chip strong { display: block; color: var(--sin-text); font-size: .92rem; }
.bh-about-chip small { color: var(--sin-muted); font-size: .75rem; }
@keyframes bh-float { 50% { transform: translateY(-8px); } }
.bh-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin: 1.6rem 0 2rem; padding: 0; list-style: none; }
.bh-checks li { display: flex; align-items: center; gap: .65rem; padding: .75rem .85rem; border: 1px solid var(--sin-border); border-radius: 14px; background: var(--sin-surface); color: var(--sin-text); font-size: .9rem; font-weight: 600; }
.bh-checks li > span { display: inline-grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 10px; background: var(--sin-primary-50); color: var(--sin-primary); }
.bh-checks .icon { width: 17px; height: 17px; }

/* Visi --------------------------------------------------------------------- */
.bh-vision-wrap { padding: 0 0 5rem; background: var(--sin-bg); }
.bh-vision { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2.5rem; overflow: hidden; padding: 3rem; border-radius: 30px; color: #fff; background: linear-gradient(125deg, var(--sin-navy), #0a3f8f 55%, var(--sin-primary)); box-shadow: 0 36px 70px -36px rgba(6, 44, 101, .8); }
.bh-vision::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 100% 0%, rgba(244, 207, 69, .3), transparent 35%), radial-gradient(rgba(255, 255, 255, .1) 1px, transparent 1.2px) 0 0 / 22px 22px; }
.bh-vision .hp-kicker { color: var(--sin-accent); }
.bh-vision blockquote { margin: 1rem 0 1.5rem; color: #fff; font-size: clamp(1.2rem, 2.2vw, 1.6rem); font-weight: 700; line-height: 1.5; }
.bh-link-light { display: inline-flex; align-items: center; gap: .4rem; color: var(--sin-accent); font-weight: 700; text-decoration: none; }
.bh-link-light:hover { color: #fff; }
.bh-link-light .icon { width: 17px; height: 17px; }
.bh-mission { display: grid; gap: .7rem; align-content: center; margin: 0; padding: 0; list-style: none; counter-reset: bh-misi; }
.bh-mission li { position: relative; padding: .95rem 1rem .95rem 3.4rem; border: 1px solid rgba(255, 255, 255, .15); border-radius: 16px; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .9); font-size: .9rem; line-height: 1.6; }
.bh-mission li:not(.bh-mission-more)::before { counter-increment: bh-misi; content: counter(bh-misi, decimal-leading-zero); position: absolute; top: .9rem; left: 1rem; color: var(--sin-accent); font-weight: 800; }
.bh-mission-more { padding-left: 1rem !important; background: transparent !important; border-style: dashed !important; text-align: center; }
.bh-mission-more a { color: #fff; font-weight: 700; text-decoration: none; }

/* Keunggulan --------------------------------------------------------------- */
.bh-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.bh-feature { position: relative; overflow: hidden; padding: 1.8rem 1.5rem; border: 1px solid var(--sin-border); border-radius: 24px; background: var(--sin-surface); box-shadow: 0 12px 30px -24px rgba(6, 44, 101, .45); transition: transform .3s ease, box-shadow .3s ease, background .3s ease; }
.bh-feature::before { content: ''; position: absolute; inset: 0; z-index: 0; background: linear-gradient(150deg, var(--sin-navy), var(--sin-primary)); opacity: 0; transition: opacity .3s ease; }
.bh-feature > * { position: relative; z-index: 1; }
.bh-feature:hover { box-shadow: 0 30px 50px -28px rgba(6, 44, 101, .7); transform: translateY(-6px); }
.bh-feature:hover::before { opacity: 1; }
.bh-feature:hover h3, .bh-feature:hover p { color: #fff; }
.bh-feature:hover .hp-icon-tile { color: var(--sin-navy); background: var(--sin-accent); }
.bh-feature-no { position: absolute !important; top: 1rem; right: 1.2rem; color: var(--sin-primary-50); font-size: 2.8rem; font-weight: 800; line-height: 1; transition: color .3s ease; }
.bh-feature:hover .bh-feature-no { color: rgba(255, 255, 255, .12); }
.bh-feature h3 { margin: 1.2rem 0 .5rem; color: var(--sin-text); font-size: 1.08rem; transition: color .3s ease; }
.bh-feature p { margin: 0; color: var(--sin-muted); font-size: .9rem; line-height: 1.65; transition: color .3s ease; }

/* Berita ------------------------------------------------------------------- */
.bh-news { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 1.4rem; }
.bh-news-main { grid-row: span 2; }
.bh-news-main .pb-media { --pb-ratio: 4 / 3; }
.bh-news-main h3 { font-size: 1.35rem; }
.bh-news-side { display: grid; grid-template-columns: 42% minmax(0, 1fr); }
.bh-news-side .pb-media { --pb-ratio: auto; height: 100%; min-height: 200px; }
.bh-news-side .pb-card-body { padding: 1.1rem 1.2rem; }
.bh-news-side p { -webkit-line-clamp: 2; }

/* Galeri ------------------------------------------------------------------- */
.bh-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 210px; gap: 1rem; }
.bh-gallery-item { position: relative; display: block; overflow: hidden; padding: 0; border: 0; border-radius: 20px; background: var(--sin-navy); cursor: zoom-in; font: inherit; text-align: left; box-shadow: 0 16px 34px -24px rgba(6, 44, 101, .6); }
.bh-gallery-item .pb-media { --pb-ratio: auto; height: 100%; }
.bh-gallery-item:hover .pb-media-img { transform: scale(1.04); }
/* Pola mosaik diatur per jumlah foto agar tidak ada sel kosong. */
.bh-gallery-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 240px; }
.bh-gallery-6 .bh-gallery-item:nth-child(1), .bh-gallery-5 .bh-gallery-item:nth-child(1), .bh-gallery-4 .bh-gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.bh-gallery-4 .bh-gallery-item:nth-child(4) { grid-column: span 2; }
.bh-gallery-1, .bh-gallery-2, .bh-gallery-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 280px; }
.bh-gallery-1 { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 420px; }
.bh-gallery-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 340px; }
.bh-gallery-cap { position: absolute; inset: auto 0 0; display: grid; gap: .15rem; padding: 2.4rem 1rem 1rem; color: #fff; background: linear-gradient(to top, rgba(4, 18, 44, .9), transparent); opacity: 0; transform: translateY(8px); transition: opacity .25s ease, transform .25s ease; }
.bh-gallery-item:hover .bh-gallery-cap, .bh-gallery-item:focus-visible .bh-gallery-cap { opacity: 1; transform: none; }
.bh-gallery-cap small { color: var(--sin-accent); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.bh-gallery-cap strong { font-size: .92rem; line-height: 1.35; }
.bh-gallery-item:focus-visible { outline: 3px solid var(--sin-accent); outline-offset: 3px; }

/* CTA ---------------------------------------------------------------------- */
.bh-cta { position: relative; isolation: isolate; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; overflow: hidden; padding: 2.8rem 3rem; border-radius: 30px; color: #fff; background: linear-gradient(120deg, var(--sin-navy), var(--sin-primary)); }
.bh-cta::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 95% 50%, rgba(244, 207, 69, .35), transparent 35%), radial-gradient(rgba(255, 255, 255, .1) 1px, transparent 1.2px) 0 0 / 22px 22px; }
.bh-cta .hp-kicker { color: var(--sin-accent); }
.bh-cta h2 { max-width: 34rem; margin: .5rem 0 .4rem; color: #fff; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.25; }
.bh-cta p { margin: 0; color: rgba(255, 255, 255, .8); }
.bh-cta-actions { display: flex; flex-wrap: wrap; gap: .7rem; }

/* Animasi muncul saat discroll (diaktifkan oleh beranda.js) -------------- */
.bh-anim [data-bh-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.bh-anim [data-bh-reveal].is-visible { opacity: 1; transform: none; }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 1100px) {
    .bh-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bh-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bh-gallery-4, .bh-gallery-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .bh-gallery-4 .bh-gallery-item:nth-child(4) { grid-column: span 3; }
    .bh-gallery-5 .bh-gallery-item:nth-child(1) { grid-row: span 1; grid-column: span 3; }
}
@media (max-width: 900px) {
    .bh-hero { padding: 4.5rem 0 8.5rem; min-height: 0; }
    .bh-hero-inner, .bh-about, .bh-vision, .bh-news { grid-template-columns: 1fr; }
    .bh-hero-card { max-width: 520px; }
    .bh-about { gap: 2.5rem; }
    .bh-news-main { grid-row: auto; }
    .bh-vision { padding: 2rem 1.6rem; }
    .bh-section { padding: 3.5rem 0; }
}
@media (max-width: 640px) {
    .bh-hero h1 { font-size: 2.3rem; }
    .bh-hero-nav { bottom: 5.8rem; }
    .bh-hero-counter { display: none; }
    .bh-btn { padding: .8rem 1.2rem; font-size: .9rem; }
    .bh-quick { gap: .7rem; }
    .bh-quick a { flex-direction: column; align-items: flex-start; gap: .6rem; padding: 1rem; }
    .bh-about-media { padding: 0 1.2rem 1.2rem 0; }
    .bh-about-chip { left: .5rem; top: .8rem; }
    .bh-checks, .bh-features { grid-template-columns: 1fr; }
    .bh-news-side { grid-template-columns: 1fr; }
    .bh-news-side .pb-media { --pb-ratio: 4 / 3; height: auto; min-height: 0; }
    .bh-gallery, .bh-gallery[class*="bh-gallery-"] { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; gap: .6rem; }
    .bh-gallery .bh-gallery-item[class] { grid-column: auto; grid-row: auto; }
    /* Jumlah ganjil: foto pertama selebar dua kolom. */
    .bh-gallery-1 .bh-gallery-item:nth-child(1), .bh-gallery-3 .bh-gallery-item:nth-child(1), .bh-gallery-5 .bh-gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
    .bh-gallery-item { border-radius: 14px; }
    .bh-gallery-cap { opacity: 1; transform: none; padding: 1.6rem .6rem .6rem; }
    .bh-gallery-cap strong { display: none; }
    .bh-cta { padding: 2rem 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
    .bh-anim [data-bh-reveal] { opacity: 1; transform: none; transition: none; }
    .bh-about-chip, .bh-badge-dot { animation: none; }
}
