/* Portal Berita YNTB — desain publik editorial yang berkelas */
:root {
    --portal-navy: #0e2138;
    --portal-navy-2: #16304f;
    --portal-gold: #c0932f;
    --portal-gold-soft: #e9d9ae;
    --portal-ink: #22303f;
    --portal-muted: #75808d;
    --portal-bg: #faf8f3;
    --portal-line: #e7e0cf;
    --portal-serif: "Fraunces", "Playfair Display", Georgia, serif;
    --portal-sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

body.portal-body {
    background: var(--portal-bg);
    color: var(--portal-ink);
    font-family: var(--portal-sans);
    font-size: 1.02rem;
}

.portal-body h1, .portal-body h2, .portal-body h3,
.portal-body .serif {
    font-family: var(--portal-serif);
    font-weight: 600;
    letter-spacing: .1px;
}

/* ---------- Bilah atas & kepala ---------- */
.portal-topbar {
    background: var(--portal-navy);
    color: #cfd9e6;
    font-size: .83rem;
    letter-spacing: .2px;
}

.portal-topbar a { color: #cfd9e6; text-decoration: none; }
.portal-topbar a:hover { color: #fff; }

.portal-header {
    background: #fffdf8;
    border-bottom: 3px solid var(--portal-gold);
    box-shadow: 0 1px 0 rgba(14, 33, 56, .05);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.portal-brand {
    display: flex;
    align-items: center;
    gap: .85rem;
    text-decoration: none;
    color: var(--portal-navy);
}

.portal-brand img { height: 54px; width: auto; }

.portal-brand .nama {
    font-family: var(--portal-serif);
    font-weight: 700;
    font-size: 1.32rem;
    line-height: 1.12;
}

.portal-brand .slogan {
    font-size: .74rem;
    color: var(--portal-gold);
    letter-spacing: 3.2px;
    text-transform: uppercase;
    font-weight: 600;
}

.portal-nav .nav-link {
    color: var(--portal-ink);
    font-weight: 600;
    font-size: .92rem;
    letter-spacing: .4px;
    padding: .95rem .75rem;
    position: relative;
}

.portal-nav .nav-link:hover,
.portal-nav .nav-link.active { color: var(--portal-gold); }

.portal-nav .nav-link::after {
    content: "";
    position: absolute;
    left: .75rem; right: .75rem; bottom: .55rem;
    height: 2px;
    background: var(--portal-gold);
    transform: scaleX(0);
    transition: transform .22s ease;
}

.portal-nav .nav-link:hover::after { transform: scaleX(1); }

/* ---------- Lencana & meta ---------- */
.lencana {
    display: inline-block;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    padding: .3rem .55rem;
    border-radius: 2px;
}

.lencana-kategori { background: var(--portal-gold); color: #fff; }
.lencana-unit { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.4); }
.lencana-unit-gelap { background: transparent; color: var(--portal-gold); border: 1px solid var(--portal-gold-soft); }

.meta-kecil { color: var(--portal-muted); font-size: .84rem; letter-spacing: .2px; }

.kicker {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 2.6px;
    text-transform: uppercase;
    color: var(--portal-gold);
}

/* ---------- Strip pengumuman ---------- */
.strip-pengumuman {
    background: var(--portal-navy);
    color: #e8edf3;
    border-radius: 4px;
    padding: .85rem 1.1rem;
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    box-shadow: 0 8px 22px rgba(14, 33, 56, .14);
}

.strip-pengumuman .ikon {
    color: var(--portal-gold);
    font-size: 1.25rem;
    line-height: 1;
    padding-top: .15rem;
}

.strip-pengumuman strong { color: #fff; font-family: var(--portal-serif); font-size: 1.02rem; }
.strip-pengumuman a { color: var(--portal-gold-soft); font-weight: 600; text-decoration: none; white-space: nowrap; }
.strip-pengumuman a:hover { color: #fff; text-decoration: underline; }
.strip-pengumuman .lingkup {
    font-size: .68rem; letter-spacing: 1.6px; text-transform: uppercase;
    border: 1px solid rgba(255,255,255,.35); border-radius: 2px; padding: .12rem .45rem; color: #dbe4f0;
}

/* ---------- Hero editorial ---------- */
.portal-hero {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    min-height: 430px;
    background: var(--portal-navy);
    display: block;
    text-decoration: none;
    box-shadow: 0 18px 38px rgba(14, 33, 56, .18);
}

.portal-hero img.sampul {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .8s ease;
}

.portal-hero:hover img.sampul { transform: scale(1.03); }

.portal-hero .lapisan {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(14,33,56,.06) 34%, rgba(14,33,56,.72) 68%, rgba(14,33,56,.94) 100%);
}

.portal-hero .isi {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 1.9rem 2rem;
    color: #fff;
}

.portal-hero .isi h2 {
    font-size: 2.15rem;
    line-height: 1.18;
    margin: .55rem 0 .5rem;
}

.portal-hero .isi .ringkas {
    color: #d9e1ec;
    max-width: 92%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rel-sorotan {
    background: #fffdf8;
    border: 1px solid var(--portal-line);
    border-top: 3px solid var(--portal-navy);
    border-radius: 4px;
    height: 100%;
    padding: 1.15rem 1.25rem;
}

.rel-sorotan h4 {
    font-size: 1.05rem;
    margin-bottom: .4rem;
    color: var(--portal-navy);
}

.sorotan-item {
    display: flex;
    gap: .9rem;
    padding: .85rem 0;
    border-bottom: 1px solid var(--portal-line);
    text-decoration: none;
    color: inherit;
}

.sorotan-item:last-child { border-bottom: none; }

.sorotan-item .nomor {
    font-family: var(--portal-serif);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--portal-gold-soft);
    line-height: 1;
    min-width: 2.1rem;
}

.sorotan-item .judul {
    font-family: var(--portal-serif);
    font-weight: 600;
    font-size: 1.04rem;
    line-height: 1.3;
    color: var(--portal-navy);
}

.sorotan-item:hover .judul { color: var(--portal-gold); }

/* ---------- Judul bagian ---------- */
.portal-section-title {
    font-size: 1.65rem;
    color: var(--portal-navy);
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin: 2.6rem 0 1.2rem;
}

.portal-section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--portal-line);
    align-self: center;
}

.portal-section-title .tautan-semua {
    font-family: var(--portal-sans);
    font-size: .86rem;
    font-weight: 600;
    letter-spacing: .3px;
    color: var(--portal-gold);
    text-decoration: none;
    white-space: nowrap;
}

.portal-section-title .tautan-semua:hover { text-decoration: underline; }

/* ---------- Kartu berita ---------- */
.kartu-berita {
    background: #fffdf8;
    border: 1px solid var(--portal-line);
    border-radius: 4px;
    overflow: hidden;
    height: 100%;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.kartu-berita:hover {
    transform: translateY(-4px);
    border-color: var(--portal-gold-soft);
    box-shadow: 0 16px 30px rgba(14, 33, 56, .12);
}

.kartu-berita .sampul {
    height: 185px;
    width: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, var(--portal-navy-2), var(--portal-navy));
}

.kartu-berita .tanpa-gambar {
    height: 185px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--portal-navy-2), var(--portal-navy));
    color: rgba(255,255,255,.55);
    font-size: 2.4rem;
}

.kartu-berita .judul {
    font-family: var(--portal-serif);
    font-weight: 600;
    font-size: 1.14rem;
    line-height: 1.32;
    color: var(--portal-navy);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kartu-berita .judul:hover { color: var(--portal-gold); }

.kartu-berita .ringkas {
    color: var(--portal-muted);
    font-size: .93rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- Pita statistik ---------- */
.pita-statistik {
    background: var(--portal-navy);
    border-radius: 6px;
    color: #dbe4f0;
    padding: 1.7rem 1rem;
    margin-top: 2.6rem;
    background-image: radial-gradient(ellipse at 85% -30%, rgba(192,147,47,.28), transparent 55%);
}

.pita-statistik .angka {
    font-family: var(--portal-serif);
    font-size: 2.3rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.pita-statistik .label {
    font-size: .74rem;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: var(--portal-gold-soft);
    margin-top: .4rem;
}

/* ---------- Bagian per unit (majalah) ---------- */
.unit-utama {
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    min-height: 320px;
    display: block;
    background: var(--portal-navy);
    text-decoration: none;
}

.unit-utama img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.unit-utama .lapisan { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 36%, rgba(14,33,56,.92)); }
.unit-utama .isi { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.3rem 1.5rem; color: #fff; }
.unit-utama .isi h4 { font-size: 1.45rem; line-height: 1.25; margin: .4rem 0 .3rem; }

.unit-item {
    display: flex; gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--portal-line);
    text-decoration: none; color: inherit;
}

.unit-item:last-child { border-bottom: none; }
.unit-item img { width: 118px; height: 86px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.unit-item .judul { font-family: var(--portal-serif); font-weight: 600; font-size: 1.08rem; line-height: 1.3; color: var(--portal-navy); }
.unit-item:hover .judul { color: var(--portal-gold); }

/* ---------- Kegiatan & agenda ---------- */
.kartu-kegiatan {
    background: #fffdf8;
    border: 1px solid var(--portal-line);
    border-radius: 4px;
    height: 100%;
    padding: 1.2rem;
    display: flex;
    gap: 1.05rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.kartu-kegiatan:hover { border-color: var(--portal-gold-soft); box-shadow: 0 12px 24px rgba(14,33,56,.09); }

.tanggal-insignia {
    text-align: center;
    background: var(--portal-navy);
    color: #fff;
    border-radius: 4px;
    padding: .65rem 0 .5rem;
    width: 74px;
    flex-shrink: 0;
    height: fit-content;
}

.tanggal-insignia .hari { font-family: var(--portal-serif); font-size: 1.75rem; font-weight: 700; line-height: 1; }
.tanggal-insignia .bulan { font-size: .68rem; letter-spacing: 1.8px; text-transform: uppercase; color: var(--portal-gold-soft); }

.kartu-kegiatan .judul {
    font-family: var(--portal-serif);
    font-weight: 600;
    font-size: 1.14rem;
    line-height: 1.3;
    color: var(--portal-navy);
    text-decoration: none;
}

.kartu-kegiatan .judul:hover { color: var(--portal-gold); }

.pilihan-item { text-decoration: none; color: inherit; display: flex; gap: .9rem; padding: .85rem 0; border-bottom: 1px solid var(--portal-line); }
.pilihan-item:last-child { border-bottom: none; }
.pilihan-item img { width: 96px; height: 70px; object-fit: cover; border-radius: 4px; }
.pilihan-item .judul { font-family: var(--portal-serif); font-weight: 600; color: var(--portal-navy); line-height: 1.3; }
.pilihan-item:hover .judul { color: var(--portal-gold); }

.galeri-tile { position: relative; border-radius: 4px; overflow: hidden; display: block; }
.galeri-tile img { height: 210px; width: 100%; object-fit: cover; transition: transform .6s ease; }
.galeri-tile:hover img { transform: scale(1.05); }
.galeri-tile .lapisan { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(14,33,56,.88)); }
.galeri-tile .isi { position: absolute; left: 0; right: 0; bottom: 0; padding: .9rem 1rem; color: #fff; }
.galeri-tile .isi .judul { font-family: var(--portal-serif); font-weight: 600; font-size: 1.05rem; line-height: 1.25; }

/* ---------- Artikel ---------- */
.isi-artikel { font-size: 1.07rem; line-height: 1.8; }
.isi-artikel img { max-width: 100%; height: auto; border-radius: 6px; }
.isi-artikel h2, .isi-artikel h3, .isi-artikel h4 { color: var(--portal-navy); margin-top: 1.4em; }
.isi-artikel blockquote {
    border-left: 3px solid var(--portal-gold);
    padding: .4rem 1rem;
    color: var(--portal-muted);
    font-style: italic;
    font-family: var(--portal-serif);
}

/* ---------- Kaki ---------- */
.portal-footer {
    background: var(--portal-navy);
    color: #bfcede;
    margin-top: 4rem;
    border-top: 4px solid var(--portal-gold);
}

.portal-footer a { color: #bfcede; text-decoration: none; }
.portal-footer a:hover { color: #fff; text-decoration: underline; }
.portal-footer h6 {
    color: #fff;
    font-family: var(--portal-serif);
    font-size: 1.08rem;
    letter-spacing: .3px;
}
