/* ==========================================================================
   DG PORTAL — beranda & detail berita (tampilan portal berita yang bersih)
   Kelas berawalan pt- (beranda/komponen bersama) dan dt- (detail berita).
   Warna & font mengikuti variabel --dg-* di dg-modern.css.
   ========================================================================== */

.pt-home,
.dt-page {
    --pt-line: #e6e8ec;
    --pt-soft: #f6f7f9;
    --pt-mute: #6b7280;
    --pt-ink: #111827;
    background: #fff;
    color: #374151;
}

.pt-home {
    padding: 16px 0 56px;
}

.dt-page {
    padding: 22px 0 64px;
}

/* ---------- Judul bagian ---------- */
.pt-h {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--pt-line);
}

.pt-h::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 44px;
    height: 2px;
    background: var(--dg-primary);
}

.pt-h h2 {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--pt-ink);
}

.pt-h a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--pt-mute) !important;
}

.pt-h a:hover {
    color: var(--dg-primary) !important;
}

.pt-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 12px;
    font-size: 12px;
    color: var(--pt-mute);
}

.pt-meta .dg-rel {
    color: var(--pt-mute);
}

/* ---------- Ticker ---------- */
.pt-ticker.dg-ticker {
    margin: 0 0 20px;
    border: 1px solid var(--pt-line);
    border-radius: 6px;
    box-shadow: none;
}

/* ---------- Banner ---------- */
.pt-banner {
    margin: 0 0 24px;
}

.pt-banner .dg-slider {
    border-radius: 8px;
}

/* ---------- Berita utama + terbaru ---------- */
.pt-top {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    margin-bottom: 28px;
}

.pt-lead-img {
    display: block;
    aspect-ratio: 16 / 9;
    background: #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
}

.pt-lead-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pt-lead-body {
    padding-top: 16px;
}

.pt-kat {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--dg-primary) !important;
}

.pt-home .pt-lead-title {
    margin: 6px 0 10px;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.32;
    letter-spacing: -.005em;
}

.pt-lead-title a {
    color: var(--pt-ink) !important;
}

.pt-lead-title a:hover {
    color: var(--dg-primary) !important;
}

.pt-lead-ex {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.65;
    color: #4b5563;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* daftar ringkas (dipakai di Berita Terbaru & per kategori) */
.pt-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 0;
    border-bottom: 1px solid var(--pt-line);
}

.pt-item:last-child {
    border-bottom: 0;
}

.pt-item-txt {
    flex: 1;
    min-width: 0;
    display: block;
}

.pt-item-txt small {
    display: block;
    margin-bottom: 3px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--dg-primary);
}

.pt-item-txt b {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.42;
    color: var(--pt-ink);
}

.pt-item:hover .pt-item-txt b {
    color: var(--dg-primary);
}

.pt-item-img {
    flex: none;
    width: 100px;
    height: 70px;
    border-radius: 4px;
    overflow: hidden;
    background: #e5e7eb;
}

.pt-item-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pt-item.is-sm {
    padding: 13px 0;
}

.pt-item.is-sm:first-child {
    padding-top: 0;
}

.pt-item.is-sm .pt-item-txt b {
    font-size: 14.5px;
}

.pt-item.is-sm .pt-item-img {
    width: 88px;
    height: 62px;
}

/* ---------- Menu kategori ---------- */
.pt-cats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 14px 0;
    margin-bottom: 30px;
    border-top: 1px solid var(--pt-line);
    border-bottom: 1px solid var(--pt-line);
}

.pt-cats-l {
    margin-right: 6px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--pt-mute);
}

.pt-cats a {
    padding: 6px 14px;
    border: 1px solid var(--pt-line);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #374151 !important;
    background: #fff;
    transition: border-color .2s, color .2s, background .2s;
}

.pt-cats a:hover {
    border-color: var(--dg-primary);
    color: var(--dg-primary) !important;
}

.pt-cats a.is-all {
    margin-left: auto;
    border-color: transparent;
    background: var(--pt-soft);
}

/* ---------- Layout 2 kolom ---------- */
.pt-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 44px;
    align-items: start;
}

.pt-main {
    min-width: 0;
}

.pt-side {
    display: grid;
    gap: 26px;
    min-width: 0;
}

/* ---------- Berita per kategori ---------- */
.pt-sec {
    margin-bottom: 38px;
    scroll-margin-top: 90px;
}

.pt-sec-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
    margin-top: 18px;
    align-items: start;
}

.pt-feat-img {
    display: block;
    aspect-ratio: 16 / 10;
    background: #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
}

.pt-feat-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pt-home .pt-feat h3 {
    margin: 12px 0 6px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}

.pt-feat h3 a {
    color: var(--pt-ink) !important;
}

.pt-feat h3 a:hover {
    color: var(--dg-primary) !important;
}

/* ---------- Kartu sidebar ---------- */
.pt-card {
    padding: 18px 18px 8px;
    border: 1px solid var(--pt-line);
    border-radius: 8px;
    background: #fff;
}

.pt-pop {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--pt-line);
}

.pt-pop:last-child,
.pt-note:last-child,
.pt-agenda:last-child {
    border-bottom: 0;
}

.pt-pop-n {
    flex: none;
    width: 22px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.15;
    color: #c4c9d2;
}

.pt-pop-t b,
.pt-note b,
.pt-agenda-t b {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--pt-ink);
}

.pt-pop-t small,
.pt-note small,
.pt-agenda-t small {
    display: block;
    margin-top: 3px;
    font-size: 11.5px;
    color: var(--pt-mute);
}

.pt-pop:hover b,
.pt-note:hover b,
.pt-agenda:hover b {
    color: var(--dg-primary);
}

.pt-note {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--pt-line);
}

.pt-agenda {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--pt-line);
}

.pt-agenda-d {
    flex: none;
    width: 44px;
    padding: 5px 0 6px;
    text-align: center;
    line-height: 1.1;
    border: 1px solid var(--pt-line);
    border-radius: 6px;
    background: var(--pt-soft);
}

.pt-agenda-d b {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: var(--dg-primary);
}

.pt-agenda-d small {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--pt-mute);
}

.pt-empty {
    padding: 14px 0 12px;
    font-size: 13px;
    color: var(--pt-mute);
}

/* jadwal sholat: lebih tenang */
.pt-side .dg-sholat {
    border-radius: 8px;
    box-shadow: none;
}

/* ---------- Video Shorts ---------- */
.pt-shorts.dg-reels {
    margin-top: 46px;
    padding: 0;
}

.pt-shorts .pt-h {
    margin-bottom: 16px;
}

.pt-shorts .dg-reel {
    border-radius: 8px;
}

/* ---------- Layanan ---------- */
.pt-svc {
    margin-top: 46px;
}

.pt-svc .pt-h {
    margin-bottom: 16px;
}

.pt-svc .dg-tile {
    min-height: 70px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13.5px;
}

.pt-svc .dg-tile:hover {
    transform: none;
    box-shadow: none;
}

/* ==========================================================================
   DETAIL BERITA
   ========================================================================== */
.dt-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 52px;
    align-items: start;
}

.dt-article {
    min-width: 0;
}

.dt-crumb {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
    font-size: 12.5px;
    color: var(--pt-mute);
}

.dt-crumb a {
    color: var(--pt-mute) !important;
}

.dt-crumb a:hover {
    color: var(--dg-primary) !important;
}

.dt-kat {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--dg-primary) !important;
}

.dt-page .dt-title {
    margin: 8px 0 18px;
    font-size: clamp(22px, 2.3vw, 28px);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -.005em;
    color: var(--pt-ink);
}

.dt-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding: 14px 0;
    margin-bottom: 20px;
    border-top: 1px solid var(--pt-line);
    border-bottom: 1px solid var(--pt-line);
}

.dt-author {
    display: flex;
    align-items: center;
    gap: 11px;
}

.dt-author img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    background: #e5e7eb;
}

.dt-author b {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--pt-ink);
}

.dt-author small {
    display: block;
    font-size: 12px;
    color: var(--pt-mute);
}

.dt-meta-r {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    font-size: 12.5px;
    color: var(--pt-mute);
}

.dt-meta-r span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dt-meta-r .dg-rel {
    color: var(--pt-mute);
}

.dt-figure {
    margin: 0 0 18px;
}

.dt-figure img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    border-radius: 6px;
    background: #e5e7eb;
}

.dt-figure figcaption {
    margin-top: 8px;
    font-size: 12.5px;
    font-style: italic;
    color: var(--pt-mute);
}

.dt-share {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 18px 0 22px;
}

.dt-share>span {
    margin-right: 4px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--pt-mute);
}

.dt-share a,
.dt-share button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 34px;
    padding: 0 11px;
    border: 1px solid var(--pt-line);
    border-radius: 6px;
    background: #fff;
    color: #4b5563 !important;
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .2s, color .2s;
}

.dt-share a:hover,
.dt-share button:hover {
    border-color: var(--dg-primary);
    color: var(--dg-primary) !important;
}

.dt-share em {
    font-style: normal;
}

/* isi berita */
.dt-body {
    font-size: 17px;
    line-height: 1.85;
    color: #1f2937;
    overflow-wrap: anywhere;
}

.dt-body p {
    margin: 0 0 1.15em;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

.dt-body h1,
.dt-body h2,
.dt-body h3,
.dt-body h4 {
    margin: 1.6em 0 .6em;
    font-weight: 700;
    line-height: 1.35;
    color: var(--pt-ink);
}

.dt-body h1,
.dt-body h2 {
    font-size: 22px;
}

.dt-body h3 {
    font-size: 19px;
}

.dt-body h4 {
    font-size: 17px;
}

.dt-body a {
    color: var(--dg-primary) !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

.dt-body img,
.dt-body video,
.dt-body iframe {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.dt-body iframe {
    aspect-ratio: 16 / 9;
}

.dt-body ul,
.dt-body ol {
    margin: 0 0 1.15em;
    padding-left: 1.4em;
}

.dt-body ul {
    list-style: disc;
}

.dt-body ol {
    list-style: decimal;
}

.dt-body li {
    margin-bottom: .35em;
}

.dt-body blockquote {
    margin: 1.4em 0;
    padding: 4px 0 4px 18px;
    border-left: 3px solid var(--dg-primary);
    color: #4b5563;
    font-style: italic;
}

.dt-body table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    margin: 0 0 1.15em;
    font-size: 15px;
}

.dt-body th,
.dt-body td {
    padding: 8px 12px;
    border: 1px solid var(--pt-line);
}

.dt-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--pt-line);
}

.dt-tags a {
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--pt-soft);
    font-size: 12.5px;
    font-weight: 600;
    color: #4b5563 !important;
}

.dt-tags a:hover {
    background: var(--dg-primary-50);
    color: var(--dg-primary) !important;
}

.dt-ads {
    margin-top: 24px;
}

.dt-ads img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* berita terkait */
.dt-related {
    margin-top: 40px;
}

.dt-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 18px;
}

.dt-rel-img {
    display: block;
    aspect-ratio: 16 / 10;
    margin-bottom: 10px;
    border-radius: 6px;
    overflow: hidden;
    background: #e5e7eb;
}

.dt-rel-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dt-rel b {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--pt-ink);
}

.dt-rel:hover b {
    color: var(--dg-primary);
}

.dt-rel small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--pt-mute);
}

/* komentar */
.dt-comments {
    margin-top: 44px;
}

.dt-comment {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--pt-line);
}

.dt-comment>img {
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
}

.dt-comment b {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--pt-ink);
}

.dt-comment small {
    margin-left: 8px;
    font-size: 12px;
    color: var(--pt-mute);
}

.dt-comment p {
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.65;
}

.dt-reply {
    margin-top: 10px;
    padding: 10px 14px;
    border-left: 3px solid var(--dg-primary);
    background: var(--pt-soft);
    border-radius: 0 6px 6px 0;
}

.dt-note {
    margin: 12px 0 14px;
    font-size: 13px;
    color: var(--pt-mute);
}

.dt-form .form-control {
    border: 1px solid var(--pt-line);
    border-radius: 6px;
    font-size: 14px;
    box-shadow: none;
}

.dt-form .form-control:focus {
    border-color: var(--dg-primary);
}

.dt-form-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.dt-form-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 14px;
}

.dt-form .btnkomen {
    padding: 10px 22px;
    border: 0;
    border-radius: 6px;
    background: var(--dg-primary);
    color: #fff;
    font: inherit;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
}

.dt-form .btnkomen:hover {
    background: var(--dg-primary-600);
}

/* sidebar detail */
.dt-catlist li a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--pt-line);
    font-size: 13.5px;
    font-weight: 600;
    color: #374151 !important;
}

.dt-catlist li:last-child a {
    border-bottom: 0;
}

.dt-catlist li a:hover {
    color: var(--dg-primary) !important;
}

.dt-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px 0 10px;
}

.dt-info img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--pt-line);
}

@media (min-width: 1001px) {
    .dt-side {
        position: sticky;
        top: 84px;
    }
}

/* ---------- Responsif ---------- */
@media (max-width: 1000px) {

    .pt-top,
    .pt-layout,
    .dt-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 34px;
    }

    .dt-related-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .pt-home .pt-lead-title {
        font-size: 22px;
    }

    .pt-sec-body {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .pt-item.is-sm:first-child {
        padding-top: 13px;
    }

    .pt-cats a.is-all {
        margin-left: 0;
    }

    .dt-related-grid,
    .dt-form-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .dt-body {
        font-size: 16px;
    }

    .dt-share em {
        display: none;
    }
}

/* ==========================================================================
   Penyesuaian v6: Shorts di atas, slideshow utama, pemutar suara di bawah judul
   ========================================================================== */

/* Video Shorts tepat di bawah ticker */
.pt-shorts.dg-reels.dg-reels-mini {
    margin: 0 0 30px;
    padding: 0;
}

/* Slideshow berita utama (tampilan slider seperti semula, lebih tenang) */
.pt-top {
    align-items: stretch;
}

.pt-top .pt-hero {
    margin-top: 0;
    min-width: 0;
}

.pt-hero .dg-slider {
    border-radius: 8px;
    box-shadow: none;
}

.pt-hero .dg-slide-body h2 {
    font-size: clamp(19px, 1.9vw, 25px);
    font-weight: 700;
    line-height: 1.38;
}

.pt-hero .dg-slide-ex {
    font-size: 13.5px;
}

/* Pemutar "Dengarkan berita" di bawah judul */
.dt-page .dg-audio {
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid var(--pt-line);
    border-radius: 8px;
    background: var(--pt-soft);
    justify-content: flex-start;
    gap: 10px 18px;
}

.dt-page .dg-audio .dg-audio-btn {
    height: 40px;
    padding: 0 18px;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: none;
}

.dt-page .dg-audio .dg-audio-speed {
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--pt-mute);
}

.dt-page .dg-audio .dg-audio-speed select {
    height: 38px;
    min-width: 0;
    max-width: 220px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.dt-page .dg-audio-bar {
    height: 3px;
}

@media (max-width: 560px) {
    .dt-page .dg-audio .dg-audio-speed select {
        max-width: none;
    }
}

/* ==========================================================================
   PENGUMUMAN — ticker "Info" & kartu sidebar dirapikan
   ========================================================================== */
.pt-ticker.dg-ticker {
    align-items: center;
    min-height: 46px;
    margin: 14px 0 20px;
    border: 1px solid var(--pt-line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.pt-ticker .dg-ticker-label {
    align-self: stretch;
    gap: 7px;
    padding: 0 16px;
    background: var(--dg-primary);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: none;
}

.pt-ticker .dg-ticker-label svg {
    flex: none;
}

.pt-ticker .dg-ticker-track {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 40px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 40px), transparent 100%);
}

.pt-ticker .dg-ticker-inner {
    padding: 0;
    --dg-tick-dur: 60s;
}

.pt-ticker .dg-ticker-item {
    gap: 9px;
    padding: 13px 28px 13px 0;
    margin-right: 28px;
    border-right: 1px solid var(--pt-line);
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1;
    color: var(--pt-ink);
    text-decoration: none;
    transition: color .15s;
}

.pt-ticker .dg-ticker-item:hover .dg-ticker-tx {
    color: var(--dg-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pt-ticker .dg-ticker-dot {
    flex: none;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--dg-accent);
}

.pt-ticker .dg-ticker-date {
    flex: none;
    padding: 3px 9px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
}

/* kartu Pengumuman (sidebar): judul maks. 2 baris, jarak seragam */
.pt-note {
    padding: 12px 8px;
    margin: 0 -8px;
    border-radius: 6px;
    transition: background .15s;
}

.pt-note:hover {
    background: #f6f8f7;
}

.pt-note b {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pt-note small {
    font-size: 11.5px;
}

/* halaman detail pengumuman */
.dt-attach {
    margin: 22px 0 0;
}

.dt-attach .dg-sbtn i {
    margin-right: 6px;
}

.dt-related {
    margin-top: 36px;
    padding-top: 8px;
    border-top: 1px solid var(--pt-line);
}

@media (max-width: 640px) {
    .pt-ticker .dg-ticker-label span {
        display: none;
    }

    .pt-ticker .dg-ticker-label {
        padding: 0 12px;
    }

    .pt-ticker .dg-ticker-date {
        display: none;
    }
}

/* ---------- Video YouTube + Infografis (beranda) ---------- */
.pt-ytrow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
    align-items: start;
    margin-top: 46px;
}

.pt-yt {
    min-width: 0;
}

.pt-yt-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.pt-yt-item {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.pt-yt-item iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.pt-yt-one {
    aspect-ratio: 16 / 9;
}

.pt-info {
    padding-bottom: 16px;
}

.pt-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-top: 14px;
}

.pt-info-grid img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--pt-line);
    transition: transform .15s, box-shadow .15s;
}

.pt-info-grid a:hover img {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(16, 24, 40, .12);
}

@media (max-width: 1000px) {
    .pt-ytrow {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }
}

@media (max-width: 640px) {
    .pt-yt-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ==========================================================================
   BERITA PER KATEGORI (beranda) — kartu besar + daftar bergambar, font Lato
   ========================================================================== */
.pt-sec .kc {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 30px;
    margin-top: 20px;
    align-items: stretch;
    font-family: 'Lato', 'Plus Jakarta Sans', Arial, sans-serif;
}

/* kartu besar */
.kc-feat {
    position: relative;
    min-height: 300px;
    overflow: hidden;
    background: #1f2937;
    border-radius: 5px;
}

.kc-feat-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.kc-feat::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, .22) 0%, rgba(0, 0, 0, .55) 55%, rgba(0, 0, 0, .78) 100%);
}

.kc-feat-link {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.kc-feat-body {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 20px 20px 18px;
    text-align: left;
    pointer-events: none;
}

.kc-feat-body a {
    pointer-events: auto;
}

.kc-label {
    display: inline-block;
    padding: 4px 10px;
    background: #f0483e;
    color: #fff !important;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .02em;
    text-transform: uppercase;
    border-radius: 3px;
}

.kc-label:hover {
    background: #d93a31;
}

.pt-home .kc-feat h3 {
    margin: 10px 0 8px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0;
}

.kc-feat h3 a {
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .45);
}

.kc-feat h3 a:hover {
    color: #fff !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.kc-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 4px 14px;
    font-size: 12px;
    font-style: italic;
    line-height: 1.3;
    color: rgba(255, 255, 255, .88);
}

.kc-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.kc-meta svg {
    flex: none;
    opacity: .9;
}

/* daftar kanan */
.kc-list {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.kc-item {
    display: flex;
    flex: 1 1 0;
    align-items: flex-start;
    gap: 16px;
    padding: 0 0 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid #e8e8e8;
    text-decoration: none;
}

.kc-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.kc-thumb {
    flex: none;
    width: 113px;
    height: 80px;
    overflow: hidden;
    border-radius: 5px;
    background: #e5e7eb;
}

.kc-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kc-txt {
    display: block;
    min-width: 0;
}

.kc-txt em {
    display: block;
    margin-bottom: 2px;
    font-size: 12.5px;
    font-style: italic;
    font-weight: 400;
    line-height: 1.35;
    color: #8a8f98;
}

.kc-txt b {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.45;
    color: #222;
}

.kc-item:hover .kc-txt b {
    color: var(--dg-primary);
}

.kc-txt small {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 5px;
    font-size: 12.5px;
    font-weight: 400;
    color: #9a9fa8;
}

@media (max-width: 760px) {
    .pt-sec .kc {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .kc-feat {
        min-height: 280px;
    }

    .pt-home .kc-feat h3 {
        font-size: 16px;
    }

    .kc-thumb {
        width: 96px;
        height: 70px;
    }

    .kc-txt b {
        font-size: 14px;
    }
}

.pt-home .pt-sec .kc,
.pt-home .pt-sec .kc * {
    font-family: 'Lato', 'Plus Jakarta Sans', Arial, sans-serif !important;
}

.kc-txt small .kc-jam {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 4px;
    padding-left: 11px;
    border-left: 1px solid #dcdfe4;
}

@media (max-width: 420px) {
    .kc-txt small {
        flex-wrap: wrap;
    }
}

/* ---------- Infografis: slideshow satu per satu, bisa digeser ---------- */
.pt-info-slider {
    position: relative;
    margin-top: 14px;
}

.pt-info-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    border-radius: 6px;
    cursor: grab;
}

.pt-info-track::-webkit-scrollbar {
    display: none;
}

.pt-info-track.drag {
    cursor: grabbing;
    scroll-snap-type: none;
}

.pt-info-slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    display: block;
    aspect-ratio: 3 / 4;
    background: #f3f4f6;
    border: 1px solid var(--pt-line);
    border-radius: 6px;
    overflow: hidden;
}

.pt-info-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.pt-info-btn {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-top: -16px;
    padding: 0;
    border: 1px solid rgba(17, 24, 39, .08);
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #374151;
    box-shadow: 0 1px 4px rgba(16, 24, 40, .18);
    cursor: pointer;
    transition: background .15s, color .15s, box-shadow .15s;
}

.pt-info-btn:hover {
    background: #fff;
    color: var(--dg-primary);
    box-shadow: 0 2px 8px rgba(16, 24, 40, .25);
}

.pt-info-btn:focus-visible {
    outline: 2px solid var(--dg-primary);
    outline-offset: 2px;
}

.pt-info-btn.prev {
    left: 8px;
}

.pt-info-btn.next {
    right: 8px;
}

.pt-info-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}

.pt-info-dots i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: background .2s, width .2s;
}

.pt-info-dots i.on {
    width: 20px;
    border-radius: 4px;
    background: var(--dg-primary);
}

/* ==========================================================================
   PERAPIAN: tombol ke atas, menu mobile, video & infografis sejajar
   ========================================================================== */

/* ---------- Tombol kembali ke atas: lingkaran sempurna ---------- */
.dg-scope.dg-totop,
.dg-totop {
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    min-width: 0;
    padding: 0;
    line-height: 1;
    right: 16px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    border: 0;
    border-radius: 50%;
    background: var(--dg-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .25);
}

.dg-totop svg {
    display: block;
    width: 18px;
    height: 18px;
}

.dg-totop:hover {
    background: #096a3a;
    color: #fff;
}

/* ---------- Video YouTube & Infografis: dua kartu sama tinggi, sejajar ---------- */
.pt-ytrow {
    align-items: stretch;
}

.pt-yt.pt-card,
.pt-info.pt-card {
    display: flex;
    flex-direction: column;
    padding: 18px;
}

.pt-yt-grid {
    margin-top: 14px;
}

.pt-yt-one {
    margin-top: 14px;
}

.pt-info {
    min-width: 0;
}

.pt-info-slider {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.pt-info-track {
    flex: 1;
    min-height: 260px;
}

.pt-info-slide {
    position: relative;
    aspect-ratio: auto;
}

.pt-info-slide img {
    position: absolute;
    inset: 0;
}

/* panah & titik tidak boleh keluar dari kartu infografis (tidak menembus pop-up) */
.pt-info-slider {
    isolation: isolate;
}

.pt-info-btn {
    z-index: 1;
}

@media (max-width: 1000px) {
    .pt-info-track {
        flex: none;
        min-height: 0;
        aspect-ratio: 3 / 4;
    }
}

/* ---------- Menu mobile (drawer): simpel, rata kiri, tidak blur ---------- */
@media (max-width: 991px) {

    /* layar gelap tanpa blur */
    .dg-overlay {
        background: rgba(15, 23, 42, .5);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    /* header ikut di atas layar gelap agar menu tidak tertutup (penyebab menu blur) */
    .dg-nav-open .dg-hdr {
        z-index: 1200;
    }

    .dg-nav-open .dg-hdr::after {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 1050;
        background: rgba(15, 23, 42, .5);
        pointer-events: none;
    }

    .dg-hdr .dg-navbar {
        width: min(84vw, 320px);
        background: #fff;
        box-shadow: none;
    }

    .dg-hdr .dg-navbar.is-open {
        box-shadow: 0 0 40px rgba(15, 23, 42, .3);
    }

    .dg-hdr .dg-nav-head {
        position: sticky;
        top: 0;
        z-index: 2;
        padding: 14px 14px 14px 20px;
        background: #fff;
        color: #111827;
        border-bottom: 1px solid #eceef1;
        font-size: 15px;
        font-weight: 700;
        letter-spacing: 0;
    }

    .dg-scope .dg-hdr .dg-nav-head button {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: #f3f4f6;
        color: #374151;
    }

    .dg-hdr .dg-menu {
        display: block;
        padding: 10px 12px 28px;
    }

    .dg-hdr .dg-menu>li {
        margin: 2px 0;
    }

    .dg-hdr .dg-menu>li>a {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        height: auto;
        margin: 0;
        padding: 13px 12px;
        border-radius: 10px;
        color: #1f2937;
        font-size: 15px;
        font-weight: 600;
        line-height: 1.3;
        letter-spacing: 0;
        text-align: left;
        text-transform: none;
    }

    /* ikon menu disembunyikan agar semua baris lurus & rapi */
    .dg-hdr .dg-menu>li>a>i {
        display: none;
    }

    .dg-hdr .dg-menu>li>a .dg-chev {
        flex: none;
        margin-left: auto;
        opacity: .5;
    }

    .dg-hdr .dg-menu>li>a:hover,
    .dg-hdr .dg-menu>li>a:active {
        background: #f4f6f5;
        color: #111827;
    }

    .dg-hdr .dg-menu>li>a.active {
        background: #e8f4ed;
        color: var(--dg-primary);
    }

    .dg-hdr .dg-menu li.is-open>a {
        color: var(--dg-primary);
    }

    .dg-hdr .dg-sub,
    .dg-hdr .dg-sub .dg-sub {
        margin: 2px 0 6px 18px;
        padding: 0 0 0 10px;
        border-left: 2px solid #e5e7eb;
    }

    .dg-hdr .dg-sub a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 10px 12px;
        border-radius: 8px;
        color: #4b5563;
        font-size: 14px;
        font-weight: 500;
        line-height: 1.35;
        text-transform: none;
    }

    .dg-hdr .dg-sub a>span>i {
        display: none;
    }

    .dg-hdr .dg-sub a:hover {
        background: #f4f6f5;
        color: var(--dg-primary);
    }
}

/* ==========================================================================
   FOOTER — dirapikan
   ========================================================================== */
.dg-footer {
    background: var(--dg-primary-900);
    color: #d4e6da;
    font-size: 14px;
}

.dg-footer a {
    color: #d4e6da;
    text-decoration: none;
    transition: color .15s, background .15s, transform .15s;
}

.dg-footer a:hover {
    color: #fff;
}

.dg-footer-top.is-3 {
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 48px;
    padding: 56px 0 44px;
}

/* logo: tampil dalam kartu putih agar logo berlatar apa pun tetap jelas */
.dg-footer-logo {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 10px 16px;
    margin-bottom: 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}

.dg-footer-brand .dg-footer-logo img {
    display: block;
    max-width: 240px;
    max-height: 56px;
    width: auto;
    height: auto;
    margin: 0;
    filter: none;
    opacity: 1;
}

.dg-footer-name {
    display: block;
    margin-bottom: 18px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

/* kontak: ikon dalam bulatan, teks rata */
.dg-footer .dg-contact {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dg-footer .dg-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    line-height: 1.6;
}

.dg-contact-ic {
    flex: none;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .09);
    color: var(--dg-accent);
}

.dg-footer .dg-contact li>span:not(.dg-contact-ic),
.dg-footer .dg-contact li>a {
    padding-top: 4px;
    min-width: 0;
    overflow-wrap: anywhere;
}

/* judul kolom dengan garis aksen */
.dg-footer h4 {
    position: relative;
    margin: 0 0 20px;
    padding-bottom: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .02em;
}

.dg-footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 3px;
    border-radius: 2px;
    background: var(--dg-accent);
}

/* daftar tautan */
.dg-footer .dg-footlinks {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dg-footer .dg-footlinks li {
    margin: 0;
}

.dg-footer .dg-footlinks a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 0;
    line-height: 1.4;
}

.dg-footer .dg-footlinks a svg {
    flex: none;
    color: var(--dg-accent);
}

.dg-footer .dg-footlinks a:hover {
    transform: translateX(3px);
}

/* media sosial: tombol kapsul */
.dg-footer .dg-follow {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dg-footer .dg-follow li {
    margin: 0;
}

.dg-footer .dg-follow a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 16px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    font-weight: 500;
    line-height: 1;
}

.dg-footer .dg-follow a:hover {
    background: var(--dg-accent);
    border-color: var(--dg-accent);
    color: #2a1a00;
}

/* baris hak cipta */
.dg-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding: 18px 0;
    font-size: 13px;
    color: #b9d2c1;
}

.dg-footer-bottom .dg-container {
    gap: 10px 24px;
}

@media (max-width: 1100px) {
    .dg-footer-top.is-3 {
        grid-template-columns: 1fr 1fr;
        gap: 36px 32px;
    }

    .dg-footer-top.is-3 .dg-footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .dg-footer-top.is-3 {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 0 32px;
    }

    .dg-footer-bottom .dg-container {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}

/* ---------- Gambar pada detail pengumuman ---------- */
.dt-figure {
    margin: 4px 0 22px;
    text-align: center;
}

.dt-figure a {
    display: inline-block;
    max-width: 100%;
}

.dt-figure img {
    display: block;
    max-width: 100%;
    max-height: 720px;
    width: auto;
    height: auto;
    margin: 0 auto;
    border: 1px solid var(--pt-line);
    border-radius: 10px;
    background: #f3f4f6;
}

/* ---------- Infografis di sidebar (detail berita): bingkai portrait ---------- */
.pt-info-slider.is-ratio .pt-info-track {
    flex: none;
    min-height: 0;
    aspect-ratio: 3 / 4;
}

.pt-card.pt-info {
    padding-bottom: 16px;
}

/* ==========================================================================
   NAVIGASI DESKTOP — ukuran diperkecil
   ========================================================================== */
@media (min-width: 992px) {
    .dg-hdr-in {
        min-height: 64px;
        gap: 18px;
    }

    .dg-hdr .dg-logo {
        padding: 5px 12px;
        border-radius: 8px;
    }

    .dg-hdr .dg-logo img {
        max-height: 36px;
    }

    .dg-hdr .dg-menu {
        gap: 2px;
    }

    .dg-hdr .dg-menu>li>a {
        margin: 0;
        padding: 8px 12px;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 500;
        line-height: 1.3;
    }

    .dg-hdr .dg-menu>li>a.active {
        font-weight: 600;
    }

    .dg-hdr .dg-menu>li>a .dg-chev {
        width: 13px;
        height: 13px;
    }

    .dg-hdr .dg-sub {
        top: calc(100% - 2px);
        min-width: 210px;
        padding: 6px;
        border-radius: 10px;
    }

    .dg-hdr .dg-sub a {
        padding: 8px 12px;
        border-radius: 7px;
        font-size: 13.5px;
        line-height: 1.35;
    }

    /* tombol cari & bahasa */
    .dg-hdr .dg-act-btn {
        height: 38px;
        padding: 0 9px;
        border-radius: 9px;
    }

    .dg-hdr .dg-act-ico svg {
        width: 20px;
        height: 20px;
    }

    .dg-hdr .dg-lang .dg-act-btn {
        gap: 7px;
        font-size: 12.5px;
        letter-spacing: .02em;
    }

    .dg-hdr .dg-lang .dg-act-btn svg {
        width: 18px;
        height: 18px;
    }

    .dg-hdr .dg-lang .dg-act-btn svg:last-child {
        width: 14px;
        height: 14px;
    }

    .dg-hdr .dg-lang-menu button {
        padding: 8px 14px;
        font-size: 13.5px;
    }
}

@media (min-width: 992px) and (max-width: 1280px) {
    .dg-hdr .dg-menu>li>a {
        padding: 8px 9px;
        font-size: 13.5px;
    }
}

/* ==========================================================================
   POJOK KEMENAG (beranda) — desktop: strip ringkas 4 berita sejajar; mobile: 2 berita
   ========================================================================== */
.pt-pojok {
    margin: 24px 0 6px;
}

.pt-pojok-in {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 118px;
    gap: 16px;
    align-items: stretch;
    padding: 18px 0 0 28px;
    border: 1.5px solid #cfe6d6;
    border-radius: 16px;
    overflow: hidden;
    background:
        radial-gradient(circle at 1px 1px, rgba(11, 122, 67, .10) 1px, transparent 1.6px) 0 0 / 16px 16px,
        linear-gradient(135deg, #e3f2e9 0%, #f6faf6 42%, #fcfbf3 78%, #f6edc8 100%);
}

.pt-pojok-in::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #0b7a43, rgba(11, 122, 67, .1));
}

.pt-pojok-main {
    min-width: 0;
    padding-bottom: 16px;
}

.pt-pojok-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.pt-home .pt-pojok-head h2 {
    position: relative;
    margin: 0;
    padding-bottom: 11px;
    color: #0b7a43;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: .01em;
    text-transform: uppercase;
}

.pt-pojok-head h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 44px;
    height: 4px;
    border-radius: 2px;
    background: #0b7a43;
}

.pt-pojok-more {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 0;
    padding: 6px 2px 6px 10px;
    color: #0b7a43 !important;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.pt-pojok-more svg {
    width: 16px;
    height: 16px;
    transition: transform .15s;
}

.pt-pojok-more::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 50%;
    width: 30px;
    height: 30px;
    margin-top: -15px;
    border: 1.5px solid rgba(11, 122, 67, .2);
    border-radius: 6px;
    transform: rotate(45deg);
    z-index: -1;
}

.pt-pojok-more:hover {
    color: #096a3a !important;
}

.pt-pojok-more:hover svg {
    transform: translateX(3px);
}

/* desktop: empat berita berjajar */
.pt-pojok-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 28px;
}

.pt-pojok-item {
    display: block;
    min-width: 0;
    text-decoration: none;
}

.pt-pojok-item b {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #1f2a44;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    transition: color .15s;
}

.pt-pojok-item:hover b {
    color: #0b7a43;
}

.pt-pojok-item small {
    display: block;
    margin-top: 4px;
    color: #8b93a1;
    font-size: 13px;
    line-height: 1.4;
}

/* foto kepala kantor: kecil, menempel di dasar kartu */
.pt-pojok-fig {
    position: relative;
    align-self: end;
    margin: 0 24px 0 0;
    line-height: 0;
}

.pt-pojok-fig img {
    display: block;
    width: 92px;
    height: 112px;
    object-fit: cover;
    object-position: 50% 8%;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -3px 12px rgba(11, 122, 67, .14);
}

.pt-pojok-fig figcaption {
    display: none;
}

/* tablet: dua kolom berita */
@media (max-width: 1023px) {
    .pt-pojok-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 24px;
    }
}

/* mobile: dua berita berjajar ke bawah, foto di pojok kanan bawah (meniru kemenag.go.id) */
@media (max-width: 640px) {
    .pt-pojok {
        margin-top: 18px;
    }

    .pt-pojok-in {
        display: block;
        padding: 18px 16px 4px 20px;
        border: 1px solid #cfe6d6;
        border-radius: 16px;
    }

    .pt-pojok-in::before {
        width: 4px;
    }

    .pt-pojok-head {
        align-items: flex-start;
        margin-bottom: 14px;
    }

    .pt-home .pt-pojok-head h2 {
        padding-bottom: 0;
        font-size: 22px;
        font-weight: 300;
        line-height: 1.25;
        letter-spacing: 0;
    }

    .pt-pojok-head h2::after {
        position: static;
        display: block;
        width: 72px;
        height: 5px;
        margin-top: 9px;
        border-radius: 3px;
        background: #0b7a43;
    }

    .pt-pojok-more {
        margin-top: 2px;
        padding: 6px 2px 6px 14px;
        font-size: 15px;
        font-weight: 400;
    }

    .pt-pojok-more svg {
        width: 17px;
        height: 17px;
    }

    .pt-pojok-more::before {
        left: -8px;
        width: 40px;
        height: 40px;
        margin-top: -20px;
        border-radius: 8px;
    }

    .pt-pojok-main {
        padding-bottom: 12px;
    }

    .pt-pojok-list {
        display: block;
    }

    .pt-pojok-item:nth-child(n+3) {
        display: none;
    }

    .pt-pojok-item {
        padding: 0;
        margin-top: 16px;
    }

    .pt-pojok-item:first-child {
        margin-top: 0;
        padding-top: 0;
    }

    .pt-pojok-item b {
        font-size: 16px;
        font-weight: 550;
        line-height: 1.5;
    }

    .pt-pojok-item small {
        margin-top: 5px;
        font-size: 14px;
        font-weight: 400;
        line-height: 1.4;
    }

    .pt-pojok-item:nth-child(2) {
        padding-right: 92px;
    }

    .pt-pojok-fig {
        position: absolute;
        right: 18px;
        bottom: 0;
        margin: 0;
    }

    .pt-pojok-fig img {
        width: 84px;
        height: 108px;
        border-radius: 14px 14px 0 0;
    }
}


/* ==========================================================================
   SEMUA BERITA — daftar modern & elegan + pager
   ========================================================================== */
.sb-head {
    margin-bottom: 8px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--pt-line);
}

.sb-head h1 {
    position: relative;
    margin: 0;
    padding-bottom: 12px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.01em;
    color: var(--pt-ink);
}

.sb-head h1::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 4px;
    border-radius: 2px;
    background: var(--dg-primary);
}

.sb-head p {
    margin: 8px 0 0;
    font-size: 14px;
    color: var(--pt-mute);
}

.sb-main {
    min-width: 0;
}

.sb-card {
    display: grid;
    grid-template-columns: 236px minmax(0, 1fr);
    gap: 24px;
    padding: 22px 0;
    border-bottom: 1px solid var(--pt-line);
}

.sb-thumb {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 12px;
    background: #e5e7eb;
}

.sb-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.sb-card:hover .sb-thumb img {
    transform: scale(1.05);
}

.sb-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.sb-cat {
    align-self: flex-start;
    padding: 4px 11px;
    border-radius: 999px;
    background: #e8f4ed;
    color: var(--dg-primary) !important;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background .15s, color .15s;
}

.sb-cat:hover {
    background: var(--dg-primary);
    color: #fff !important;
}

.pt-home .sb-body h2,
.sb-body h2 {
    margin: 10px 0 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -.005em;
}

.sb-body h2 a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--pt-ink) !important;
    text-decoration: none;
    transition: color .15s;
}

.sb-card:hover .sb-body h2 a {
    color: var(--dg-primary) !important;
}

.sb-ex {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: #5b6472;
}

.sb-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 12px;
    font-size: 12.5px;
    color: var(--pt-mute);
}

.sb-meta a,
.sb-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--pt-mute) !important;
    text-decoration: none;
}

.sb-meta a:hover {
    color: var(--dg-primary) !important;
}

.sb-meta svg {
    flex: none;
    opacity: .8;
}

.sb-empty {
    margin-top: 24px;
    padding: 36px 20px;
    border: 1px dashed var(--pt-line);
    border-radius: 12px;
    text-align: center;
    color: var(--pt-mute);
}

/* ---------- Pager modern ---------- */
.sb-pager {
    margin-top: 30px;
}

.pg-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.pg-modern ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pg-modern li {
    margin: 0;
}

.pg-num,
.pg-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    border: 1px solid var(--pt-line);
    border-radius: 10px;
    background: #fff;
    color: #374151 !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s;
}

.pg-num {
    min-width: 40px;
    padding: 0 10px;
}

.pg-nav {
    gap: 6px;
    padding: 0 14px;
}

.pg-num:hover,
.pg-nav:hover {
    border-color: var(--dg-primary);
    color: var(--dg-primary) !important;
    box-shadow: 0 4px 12px rgba(11, 122, 67, .12);
    transform: translateY(-1px);
}

.pg-num.is-active {
    border-color: var(--dg-primary);
    background: var(--dg-primary);
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(11, 122, 67, .28);
    transform: none;
}

.pg-nav.is-off {
    opacity: .45;
    cursor: default;
    pointer-events: none;
}

.pg-gap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 40px;
    color: var(--pt-mute);
}

.pg-info {
    margin: 0;
    font-size: 12.5px;
    color: var(--pt-mute);
}

@media (max-width: 1000px) {
    .sb-card {
        grid-template-columns: 200px minmax(0, 1fr);
        gap: 18px;
    }
}

@media (max-width: 720px) {
    .sb-head h1 {
        font-size: 24px;
    }

    .sb-card {
        grid-template-columns: 116px minmax(0, 1fr);
        gap: 14px;
        padding: 16px 0;
    }

    .sb-thumb {
        aspect-ratio: 4 / 3;
        border-radius: 10px;
    }

    .sb-body h2 {
        margin-top: 8px;
        font-size: 14.5px;
        line-height: 1.4;
    }

    /* ringkasan hanya tampil di desktop */
    .sb-ex {
        display: none;
    }

    .sb-meta {
        margin-top: 8px;
        gap: 4px 12px;
        font-size: 12px;
    }

    .pg-nav span {
        display: none;
    }

    .pg-nav {
        padding: 0 11px;
    }

    .pg-num,
    .pg-nav,
    .pg-gap {
        height: 38px;
    }

    .pg-num {
        min-width: 38px;
    }
}

/* ---------- Daftar kategori (sidebar halaman kategori) ---------- */
.sb-cats {
    display: grid;
    gap: 4px;
    margin-top: 12px;
}

.sb-cats a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #374151 !important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s, color .15s;
}

.sb-cats a svg {
    flex: none;
    opacity: .45;
    transition: transform .15s, opacity .15s;
}

.sb-cats a:hover {
    background: #f4f6f5;
    color: var(--dg-primary) !important;
}

.sb-cats a:hover svg {
    opacity: .9;
    transform: translateX(2px);
}

.sb-cats a.is-active {
    background: #e8f4ed;
    color: var(--dg-primary) !important;
    font-weight: 700;
}

.sb-cats a.is-active svg {
    opacity: 1;
}

/* ---------- PDF pada halaman ---------- */
.dt-pdf {
    margin-top: 22px;
}

.dt-pdf iframe {
    display: block;
    width: 100%;
    height: 720px;
    border: 1px solid var(--pt-line);
    border-radius: 10px;
    background: #f3f4f6;
}

@media (max-width: 720px) {
    .dt-pdf iframe {
        height: 480px;
    }
}


/* ==========================================================================
   HALAMAN MENU INFORMASI — Layanan, Pengumuman, Agenda, Bank Data,
   Produk Hukum, Infografis, Transparansi (tampilan modern)
   ========================================================================== */
.sb-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 16px 0 4px;
    padding: 12px 16px;
    border: 1px solid #cfe6d6;
    border-radius: 10px;
    background: #f3faf5;
    color: #2f5d43;
    font-size: 13.5px;
    line-height: 1.55;
}

.sb-note svg {
    flex: none;
    margin-top: 2px;
    color: var(--dg-primary);
}

.sb-note a {
    color: var(--dg-primary) !important;
    font-weight: 700;
}

.sb-empty a {
    color: var(--dg-primary) !important;
    font-weight: 600;
}

/* daftar baris (pengumuman, layanan, agenda, bank data) */
.ls-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.ls-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--pt-line);
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}

.ls-item:hover {
    border-color: #b9dcc6;
    box-shadow: 0 6px 18px rgba(11, 122, 67, .10);
    transform: translateY(-1px);
}

.ls-ic {
    flex: none;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #e8f4ed;
    color: var(--dg-primary);
}

.ls-tx {
    flex: 1;
    min-width: 0;
}

.ls-tx b {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--pt-ink);
}

.ls-item:hover .ls-tx b {
    color: var(--dg-primary);
}

.ls-tx small {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin-top: 6px;
    font-size: 12.5px;
    color: var(--pt-mute);
}

.ls-tx small span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ls-go {
    flex: none;
    color: #9ca3af;
    transition: color .15s, transform .15s;
}

.ls-item:hover .ls-go {
    color: var(--dg-primary);
    transform: translateX(2px);
}

/* kotak tanggal agenda */
.ls-date {
    flex: none;
    width: 54px;
    overflow: hidden;
    border: 1px solid #cfe6d6;
    border-radius: 12px;
    background: #fff;
    text-align: center;
}

.ls-date em {
    display: block;
    padding: 3px 0;
    background: var(--dg-primary);
    color: #fff;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ls-date b {
    display: block;
    padding: 6px 0 7px;
    font-size: 20px;
    line-height: 1;
    color: var(--pt-ink);
}

/* tombol unduh */
.ls-dl {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 14px;
    border-radius: 9px;
    background: var(--dg-primary);
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s;
}

.ls-dl:hover {
    background: #096a3a;
}

/* produk hukum (akordeon) */
.ph-acc {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.ph-acc details {
    overflow: hidden;
    border: 1px solid var(--pt-line);
    border-radius: 12px;
    background: #fff;
}

.ph-acc summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    list-style: none;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--pt-ink);
}

.ph-acc summary::-webkit-details-marker {
    display: none;
}

.ph-acc summary .ls-ic {
    width: 38px;
    height: 38px;
    border-radius: 10px;
}

.ph-acc summary .ph-chev {
    margin-left: auto;
    color: #9ca3af;
    transition: transform .2s;
}

.ph-acc details[open] summary {
    border-bottom: 1px solid var(--pt-line);
    background: #f8faf9;
}

.ph-acc details[open] summary .ph-chev {
    transform: rotate(90deg);
}

.ph-body {
    padding: 8px 12px 14px;
}

.ph-sec {
    margin: 8px 0 2px;
    padding: 8px 6px 4px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #374151;
}

.ph-file {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    color: #1f2937 !important;
    font-size: 14px;
    line-height: 1.45;
    text-decoration: none;
}

.ph-file svg {
    flex: none;
    margin-top: 2px;
    color: var(--dg-primary);
}

.ph-file:hover {
    background: #f4f6f5;
    color: var(--dg-primary) !important;
}

/* infografis (kisi) */
.ig-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.ig-card {
    display: block;
    overflow: hidden;
    border: 1px solid var(--pt-line);
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: box-shadow .15s, transform .15s, border-color .15s;
}

.ig-card:hover {
    border-color: #b9dcc6;
    box-shadow: 0 8px 22px rgba(11, 122, 67, .12);
    transform: translateY(-2px);
}

.ig-img {
    display: block;
    aspect-ratio: 3 / 4;
    background: #f3f4f6;
}

.ig-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ig-cap {
    display: block;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--pt-ink);
}

/* transparansi */
.tr-filter {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) auto;
    gap: 10px;
    margin-top: 16px;
    padding: 14px;
    border: 1px solid var(--pt-line);
    border-radius: 12px;
    background: #fff;
}

.tr-filter select {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    border-radius: 9px;
    background: #fff;
    font-size: 14px;
    color: var(--pt-ink);
}

.tr-filter select:focus {
    border-color: var(--dg-primary);
    outline: 2px solid rgba(11, 122, 67, .18);
}

.tr-btn {
    height: 42px;
    padding: 0 22px;
    border: 0;
    border-radius: 9px;
    background: var(--dg-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}

.tr-btn:hover {
    background: #096a3a;
}

.tr-chart {
    margin-top: 16px;
    padding: 16px;
    overflow-x: auto;
    border: 1px solid var(--pt-line);
    border-radius: 12px;
    background: #fff;
    text-align: center;
}

@media (max-width: 720px) {
    .ls-item {
        gap: 12px;
        padding: 12px;
    }

    .ls-ic {
        width: 40px;
        height: 40px;
    }

    .ls-tx b {
        font-size: 14.5px;
    }

    .ls-dl span {
        display: none;
    }

    .ls-dl {
        padding: 0 12px;
    }

    .ig-grid {
        gap: 12px;
    }

    .tr-filter {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ==========================================================================
   Tombol silang menu mobile & tombol "Cari" yang lebih halus
   ========================================================================== */
@media (max-width: 991px) {
    .dg-hdr .dg-navbar .dg-nav-head {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .dg-hdr .dg-navbar .dg-nav-head .dg-nav-x {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        flex: none;
        width: 38px;
        height: 38px;
        margin-left: auto;
        padding: 0;
        border: 1px solid #e5e7eb !important;
        border-radius: 50% !important;
        background: #fff !important;
        color: #374151 !important;
        opacity: 1 !important;
        visibility: visible !important;
        cursor: pointer;
        transition: background .15s, color .15s, border-color .15s;
    }

    .dg-hdr .dg-navbar .dg-nav-head .dg-nav-x:hover,
    .dg-hdr .dg-navbar .dg-nav-head .dg-nav-x:active {
        background: #f3f4f6 !important;
        color: #111827 !important;
    }

    .dg-hdr .dg-navbar .dg-nav-head .dg-nav-x svg {
        display: block;
        width: 18px;
        height: 18px;
        stroke: currentColor;
    }
}

/* tombol Cari pada kotak pencarian: tidak menonjol (gaya tipis) */
.dg-scope .dg-sm-field .dg-sm-go {
    height: 38px;
    padding: 0 16px;
    border: 1px solid #d6e9dd;
    border-radius: 10px;
    background: #eef6f1;
    color: var(--dg-primary);
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: none;
}

.dg-scope .dg-sm-field .dg-sm-go:hover {
    border-color: #bcdcc9;
    background: #e1f0e7;
    color: #096a3a;
}

@media (max-width: 640px) {
    .dg-scope .dg-sm-field .dg-sm-go {
        height: 36px;
        padding: 0 13px;
    }
}

/* ---------- Video Shorts (Reels Instagram) ---------- */
.dg-vframe video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.dg-vtitle .dg-vlink {
    display: block;
    margin-top: 6px;
    color: #fff !important;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    opacity: .85;
}

.dg-vtitle .dg-vlink:hover {
    opacity: 1;
}

.ig-follow {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    padding: 18px 20px;
    border: 1px solid var(--pt-line);
    border-radius: 14px;
    background: linear-gradient(135deg, #fff7ec 0%, #fdeef6 55%, #f1eefd 100%);
    text-decoration: none;
    transition: box-shadow .15s, transform .15s;
}

.ig-follow:hover {
    box-shadow: 0 8px 22px rgba(131, 58, 180, .14);
    transform: translateY(-1px);
}

.ig-follow-ic {
    flex: none;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: linear-gradient(45deg, #f9a43e, #e1306c 55%, #833ab4);
    color: #fff;
}

.ig-follow-tx {
    flex: 1;
    min-width: 0;
}

.ig-follow-tx b {
    display: block;
    font-size: 15.5px;
    font-weight: 700;
    color: var(--pt-ink);
}

.ig-follow-tx small {
    display: block;
    margin-top: 3px;
    font-size: 13px;
    color: var(--pt-mute);
}

.ig-follow-go {
    flex: none;
    color: #833ab4;
}

/* ---------- Video Shorts: Facebook ---------- */
.dg-reel-ph {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(160deg, #1877f2, #0b3d91);
    color: rgba(255, 255, 255, .9);
}

.ig-follow.is-facebook {
    background: linear-gradient(135deg, #eef4ff 0%, #f5f9ff 100%);
}

.ig-follow.is-facebook .ig-follow-ic {
    background: #1877f2;
}

.ig-follow.is-facebook .ig-follow-go {
    color: #1877f2;
}

.ig-follow.is-facebook:hover {
    box-shadow: 0 8px 22px rgba(24, 119, 242, .16);
}

.dg-vframe iframe {
    border: 0;
    background: #000;
}

/* ---------- Video Shorts: timeline Halaman Facebook (tanpa token) ---------- */
.fb-fallback {
    display: grid;
    grid-template-columns: minmax(0, 500px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    margin-top: 16px;
}

.fb-plugin {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--pt-line);
    border-radius: 12px;
    background: #fff;
}

.fb-plugin iframe {
    display: block;
    width: 100%;
    max-width: 500px;
    height: 520px;
    border: 0;
}

.fb-fallback .ig-follow {
    margin-top: 0;
    flex-direction: column;
    justify-content: center;
    min-height: 200px;
    text-align: center;
}

@media (max-width: 860px) {
    .fb-fallback {
        grid-template-columns: minmax(0, 1fr);
    }

    .fb-fallback .ig-follow {
        min-height: 0;
        flex-direction: row;
        text-align: left;
    }
}


/* ==========================================================================
   HALAMAN LAYANAN — kartu layanan digital (ikon bulat, nama, label)
   ========================================================================== */
.ly-hero {
    position: relative;
    margin: 6px 0 28px;
    padding: 34px 22px 30px;
    overflow: hidden;
    border: 1.5px solid #cfe6d6;
    border-radius: 22px;
    text-align: center;
    background:
        radial-gradient(circle at 1px 1px, rgba(11, 122, 67, .10) 1px, transparent 1.6px) 0 0 / 18px 18px,
        linear-gradient(135deg, #e3f2e9 0%, #f6faf6 45%, #fcfbf3 80%, #f6edc8 100%);
}

.ly-hero::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #0b7a43, rgba(11, 122, 67, .1));
}

.ly-hero::after {
    content: '';
    position: absolute;
    right: 9%;
    top: -34px;
    width: 76px;
    height: 76px;
    border: 1.5px solid rgba(11, 122, 67, .2);
    border-radius: 12px;
    transform: rotate(45deg);
}

.pt-home .ly-hero h1,
.ly-hero h1 {
    position: relative;
    z-index: 1;
    margin: 0 auto;
    max-width: 880px;
    font-size: clamp(22px, 4.6vw, 34px);
    font-weight: 300;
    line-height: 1.25;
    letter-spacing: .005em;
    text-transform: uppercase;
    color: #1f6b3b;
}

.ly-hero > p {
    position: relative;
    z-index: 1;
    margin: 12px 0 0;
    font-size: 15px;
    color: #6b7280;
}

.ly-bar {
    display: block;
    width: 88px;
    height: 6px;
    margin: 18px auto 26px;
    border-radius: 3px;
    background: #1f6b3b;
}

.ly-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    text-align: left;
}

.ly-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    border: 1px solid #dfe8e2;
    border-radius: 18px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 6px 18px rgba(15, 23, 42, .06);
    color: inherit;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}

.ly-card.is-link:hover {
    transform: translateY(-2px);
    border-color: #b9dcc6;
    box-shadow: 0 12px 26px rgba(11, 122, 67, .14);
}

.ly-ic {
    flex: none;
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border: 3px solid #d6e9dd;
    border-radius: 50%;
    background: #eef5f0;
}

.ly-ic-in {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    overflow: hidden;
    border-radius: 50%;
    background: #fff;
    color: var(--dg-primary);
}

.ly-ic-in img {
    display: block;
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.ly-tx {
    flex: 1;
    min-width: 0;
}

.ly-tx b {
    display: block;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
    color: #1f2a44;
}

.ly-tx em {
    display: inline-block;
    margin-top: 9px;
    padding: 5px 13px;
    border-radius: 999px;
    background: #e5f1e9;
    color: #1f6b3b;
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.ly-empty {
    position: relative;
    z-index: 1;
    margin: 6px 0 0;
    color: #6b7280;
}

.ly-info {
    margin-top: 8px;
}

@media (max-width: 1023px) {
    .ly-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ly-hero {
        padding: 28px 16px 22px;
        border-radius: 22px;
    }

    .ly-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .ly-card {
        gap: 16px;
        padding: 16px 18px;
    }

    .ly-ic {
        width: 86px;
        height: 86px;
    }

    .ly-ic-in {
        width: 66px;
        height: 66px;
    }

    .ly-tx b {
        font-size: 18px;
    }
}

/* ---------- Video Shorts: Instagram ---------- */
.dg-reel-ph.is-instagram {
    background: linear-gradient(45deg, #f9a43e, #e1306c 55%, #833ab4);
}

.ig-fallback .fb-plugin iframe {
    height: 560px;
}

/* ---------- Galeri (Foto, Detail Album, Video) ---------- */
.gl-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.gl-card {
    display: block;
    overflow: hidden;
    border: 1px solid var(--pt-line);
    border-radius: 14px;
    background: #fff;
    text-decoration: none;
    transition: box-shadow .15s, transform .15s, border-color .15s;
}

.gl-card:hover {
    border-color: #b9dcc6;
    box-shadow: 0 8px 22px rgba(11, 122, 67, .12);
    transform: translateY(-2px);
}

.gl-card.is-empty {
    opacity: .65;
    cursor: default;
}

.gl-card.is-empty:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--pt-line);
}

.gl-img {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f3f4f6;
}

.gl-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s;
}

.gl-card:hover .gl-img img {
    transform: scale(1.05);
}

.gl-count {
    position: absolute;
    left: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(17, 24, 39, .72);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.gl-cap {
    display: -webkit-box;
    padding: 12px 14px 14px;
    overflow: hidden;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--pt-ink);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.gl-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin: -27px 0 0 -27px;
    border-radius: 50%;
    background: rgba(255, 0, 51, .92);
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
    transition: transform .2s;
}

.gl-card:hover .gl-play {
    transform: scale(1.1);
}

.gl-photos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.gl-photo {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
    background: #f3f4f6;
    cursor: zoom-in;
}

.gl-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s;
}

.gl-photo:hover img {
    transform: scale(1.06);
}

.gl-photo-cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 22px 10px 8px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .65));
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.3;
    opacity: 0;
    transition: opacity .2s;
}

.gl-photo:hover .gl-photo-cap {
    opacity: 1;
}

.gl-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    padding: 9px 16px;
    border: 1px solid var(--pt-line);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--pt-ink);
    text-decoration: none;
    transition: border-color .15s, color .15s;
}

.gl-back:hover {
    border-color: var(--dg-primary);
    color: var(--dg-primary);
}

.gl-back-ic {
    transform: rotate(180deg);
}

.gl-mini {
    display: grid;
    gap: 10px;
}

.gl-mini a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.gl-mini img {
    flex: none;
    width: 84px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.gl-mini span {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--pt-ink);
}

.gl-mini a:hover span {
    color: var(--dg-primary);
}

@media (max-width: 720px) {
    .gl-grid {
        grid-template-columns: 1fr;
    }

    .gl-photos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
}

/* ---------- Artikel: grid kartu modern ---------- */
.sb-list.ar-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 18px;
}

.ar-grid .sb-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--pt-line);
    border-radius: 14px;
    background: #fff;
    transition: box-shadow .15s, transform .15s, border-color .15s;
}

.ar-grid .sb-card:hover {
    border-color: #b9dcc6;
    box-shadow: 0 8px 22px rgba(11, 122, 67, .12);
    transform: translateY(-2px);
}

.ar-grid .sb-thumb {
    border-radius: 0;
}

.ar-grid .sb-body {
    flex: 1;
    justify-content: flex-start;
    padding: 16px 18px 18px;
}

.ar-grid .sb-meta {
    margin-top: auto;
    padding-top: 14px;
}

@media (max-width: 720px) {
    .sb-list.ar-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Buku Digital (Ebook) ---------- */
.eb-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.eb-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--pt-line);
    border-radius: 14px;
    background: #fff;
    transition: box-shadow .15s, transform .15s, border-color .15s;
}

.eb-card:hover {
    border-color: #b9dcc6;
    box-shadow: 0 8px 22px rgba(11, 122, 67, .12);
    transform: translateY(-2px);
}

.eb-cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f3f4f6;
}

.eb-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s;
}

.eb-card:hover .eb-cover img {
    transform: scale(1.04);
}

.eb-cat {
    position: absolute;
    left: 10px;
    top: 10px;
    max-width: calc(100% - 20px);
    padding: 4px 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: var(--dg-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.eb-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 14px 16px 16px;
}

.eb-body h2 {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--pt-ink);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.eb-body .sb-meta {
    margin-top: 8px;
}

.eb-read {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: auto;
    padding: 9px 14px;
    border-radius: 999px;
    background: var(--dg-primary);
    color: #fff !important;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: filter .15s;
}

.eb-body .sb-meta + .eb-read,
.eb-body h2 + .eb-read {
    margin-top: 14px;
}

.eb-read:hover {
    filter: brightness(.92);
}

@media (max-width: 900px) {
    .eb-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .eb-grid {
        gap: 12px;
    }
}

/* ---------- Terpopuler (foto + nomor + kategori + dibaca) ---------- */
.pt-terpopuler .pt-pop-foto {
    align-items: center;
    gap: 14px;
    padding: 14px 0;
}

.pt-pop-img {
    position: relative;
    flex: none;
    width: 78px;
    height: 78px;
    overflow: hidden;
    border-radius: 12px;
    background: #e5e7eb;
}

.pt-pop-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.pt-pop-foto:hover .pt-pop-img img {
    transform: scale(1.08);
}

.pt-pop-img .pt-pop-n {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 0 0 8px 0;
    background: var(--dg-primary);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
}

.pt-pop-foto .pt-pop-t {
    min-width: 0;
}

.pt-pop-foto .pt-pop-t b {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.4;
}

.pt-pop-foto .pt-pop-t small {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
    margin-top: 6px;
    font-size: 11.5px;
    font-weight: 600;
}

.pt-pop-cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: var(--pt-ink);
}

.pt-pop-cat::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f5b400;
}

.pt-pop-hit {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--pt-mute);
}

/* ---------- Efek zoom foto berita di beranda (sama seperti Semua Berita) ---------- */
.pt-item-img img,
.kc-thumb img,
.kc-feat-img {
    transition: transform .35s ease;
}

.pt-item:hover .pt-item-img img,
.kc-item:hover .kc-thumb img,
.kc-feat:hover .kc-feat-img {
    transform: scale(1.05);
}

/* ==========================================================================
   HERO BERANDA — "Yuk, Manfaatkan Layanan Kemenag!" + kartu Layanan Digital
   ========================================================================== */
.hl {
    --hl-sw: clamp(300px, 39.5vw, 820px);   /* lebar foto komposit */
    --hl-top: 450px;                        /* tinggi area atas (sampai garis gelombang) */
    --hl-green: #0a7a1c;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 62% 58% at 18% 0%, #fdf1bf 0%, rgba(253, 241, 191, 0) 72%),
        radial-gradient(ellipse 36% 40% at 88% 0%, #fdf6d6 0%, rgba(253, 246, 214, 0) 72%),
        #fff;
}

.hl-top {
    position: relative;
    height: var(--hl-top);
}

.hl-text {
    position: relative;
    z-index: 3;
    max-width: 560px;
    padding-top: 116px;
}

.hl .hl-text h1 {
    margin: 0;
    font-size: 56px;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.02em;
    color: #064b29;
}

.hl-u {
    position: relative;
    display: inline-block;
    color: #0b7b1f;
}

.hl-u::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 10px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 12' preserveAspectRatio='none'%3E%3Cpath d='M2 9 C 70 3, 170 3, 298 7' fill='none' stroke='%23f2b705' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.hl .hl-text p {
    max-width: 520px;
    margin: 26px 0 0;
    font-size: 18px;
    line-height: 1.8;
    color: #4b5a6b;
}

/* foto komposit: latar kantor + 2 foto tanpa latar */
.hl-stage {
    position: absolute;
    z-index: 1;
    right: calc(50% - 50vw);
    bottom: calc(var(--hl-sw) * -0.127);
    width: var(--hl-sw);
    aspect-ratio: 1376 / 768;
}

.hl-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-top-left-radius: 56px;
    background: #dfe8e0;
}

.hl-bg img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hl-woman,
.hl-man {
    position: absolute;
    display: block;
    height: auto;
}

.hl-woman {
    left: -17.2%;
    top: 26.5%;
    width: 48%;
}

.hl-man {
    left: 50.9%;
    top: -8%;
    width: 59.4%;
}

/* gelombang + kartu */
.hl-bottom {
    position: relative;
    z-index: 2;
    height: 168px;
}

.hl-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 237px;
    display: block;
}

.hl-wave-m {
    display: none;
}

.hl-cards-wrap {
    position: relative;
    height: 100%;
}

.hl-cards {
    display: grid;
    grid-template-columns: repeat(var(--hl-n), minmax(0, 196px));
    justify-content: start;
    align-content: start;
    align-items: start;
    gap: 14px;
}

.hl-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 132px;
    padding: 14px 8px;
    border-radius: 14px;
    background: #fff;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(4, 50, 20, .14);
    transition: transform .2s ease, box-shadow .2s ease;
}

a.hl-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 26px rgba(4, 50, 20, .22);
}

.hl-ic {
    display: grid;
    place-items: center;
    flex: none;
    width: 60px;
    height: 60px;
    border: 3px solid #dcebe0;
    border-radius: 50%;
    background: #eef5f0;
}

.hl-ic-in {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    overflow: hidden;
    border-radius: 50%;
    background: #fff;
    color: var(--dg-primary);
}

.hl-ic-in img {
    display: block;
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.hl-ic-all {
    border-color: transparent;
    background: #0b7b1f;
    color: #fff;
}

.hl-nm {
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.35;
    color: #1f2937;
}

.hl-all .hl-nm {
    font-weight: 600;
    color: #0b7b1f;
}

.hl-dots {
    display: none;
}

/* ---------- tablet: kartu bisa digeser ---------- */
@media (max-width: 1023px) {
    .hl {
        --hl-sw: clamp(300px, 42vw, 560px);
        --hl-top: 400px;
    }

    .hl .hl-text h1 {
        font-size: 40px;
    }

    .hl-text {
        max-width: 54vw;
        padding-top: 72px;
    }

    .hl .hl-text p {
        margin-top: 18px;
        font-size: 16px;
    }

    .hl-bottom {
        height: 164px;
    }

    .hl-wave-d {
        height: 232px;
    }

    .hl-cards {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        padding: 4px 2px 10px;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .hl-cards::-webkit-scrollbar {
        display: none;
    }

    .hl-card {
        flex: none;
        box-sizing: border-box;
        width: 124px;
        height: 124px;
        min-height: 0;
        scroll-snap-align: start;
    }

    .hl-dots {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 2px;
        display: flex;
        justify-content: center;
        gap: 6px;
    }
}

.hl-dots button {
    width: 14px;
    height: 5px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .45);
    transition: width .2s, background .2s;
    cursor: pointer;
}

.hl-dots button.is-on {
    width: 30px;
    background: #f2b705;
}

/* ---------- HP: teks di atas, foto di bawah ---------- */
@media (max-width: 767px) {
    .hl {
        --hl-sw: 85.4vw;
    }

    .hl-top {
        height: auto;
        padding-top: 22px;
        padding-bottom: 0;
    }

    .hl-text {
        max-width: none;
        padding-top: 0;
    }

    .hl .hl-text h1 {
        font-size: clamp(26px, 7.4vw, 36px);
        line-height: 1.2;
    }

    .hl .hl-text p {
        max-width: none;
        margin-top: 14px;
        font-size: 15px;
        line-height: 1.7;
    }

    .hl-stage {
        position: relative;
        right: auto;
        bottom: auto;
        margin: 30px -20px 0 auto;
    }

    .hl-bg {
        border-top-left-radius: 36px;
    }

    .hl-bottom {
        height: auto;
        margin-top: calc(var(--hl-sw) / 1.79 * -0.3);
        padding: 30px 0 22px;
    }

    .hl-wave-d {
        display: none;
    }

    .hl-wave-m {
        display: block;
        height: 100%;
    }

    .hl-cards-wrap {
        height: auto;
    }

    .hl-cards {
        padding: 0 20px 14px;
        margin: 0 -20px;
        scroll-padding-left: 20px;
    }

    /* kartu layanan berbentuk kotak (lebar = tinggi), tidak memanjang ke bawah */
    .hl-card {
        box-sizing: border-box;
        width: 96px;
        height: 96px;
        min-height: 0;
        aspect-ratio: 1 / 1;
        gap: 6px;
        padding: 8px 4px;
        border-radius: 14px;
    }

    .hl-ic {
        width: 40px;
        height: 40px;
        border-width: 2px;
    }

    .hl-ic-in {
        width: 32px;
        height: 32px;
    }

    .hl-ic-in img {
        width: 24px;
        height: 24px;
    }

    .hl-nm {
        font-size: 11px;
        line-height: 1.25;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        overflow-wrap: anywhere;
    }

    .hl-dots {
        position: static;
        margin-top: 4px;
    }
}

/* ---------- Bagikan (Facebook, X, WhatsApp, Telegram, Salin, Cetak) ---------- */
.bg-share {
    margin: 22px 0 26px;
}

.bg-share .bg-share-h {
    margin: 0 0 14px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--pt-ink, #111827);
}

.bg-share-b {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.bg-share-b a,
.bg-share-b button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 6px;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}

.bg-share-b a:hover,
.bg-share-b button:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 6px 14px rgba(15, 23, 42, .16);
}

.bg-share-b .bg-fb {
    background: #1877f2;
    color: #fff !important;
}

.bg-share-b .bg-x {
    background: #000;
    color: #fff !important;
}

.bg-share-b .bg-wa {
    background: #25d366;
    color: #fff !important;
}

.bg-share-b .bg-tg {
    background: #0088cc;
    color: #fff !important;
}

.bg-share-b .bg-cp {
    background: #e5e7eb;
    color: #111827;
}

.bg-share-b .bg-pr {
    background: #fee2e2;
    color: #ef1c1c;
}

.bg-share-b .bg-cp.is-ok::after {
    content: 'Tersalin';
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 10px;
    border-radius: 6px;
    background: #111827;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .bg-share-b {
        gap: 10px;
    }

    .bg-share-b a,
    .bg-share-b button {
        width: 48px;
    }
}

@media print {
    .bg-share {
        display: none;
    }
}


/* ==========================================================================
   Penyesuaian detail berita: tombol bagikan lebih kecil, header menempel,
   cetak hanya judul sampai isi berita
   ========================================================================== */
.bg-share {
    margin: 18px 0 22px;
}

.bg-share .bg-share-h {
    margin: 0 0 8px;
    font-size: 15px;
}

.bg-share-b {
    gap: 8px;
}

.bg-share-b a,
.bg-share-b button {
    width: 40px;
    height: 30px;
    border-radius: 5px;
}

.bg-share-b svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 480px) {
    .bg-share-b {
        gap: 6px;
    }

    .bg-share-b a,
    .bg-share-b button {
        width: 38px;
    }
}

/* Header tetap terlihat saat scroll: overflow-x:hidden pada body membuat
   position:sticky tidak berfungsi, jadi diganti clip (tidak membuat scroll container). */
html {
    overflow-x: visible !important;
}

body {
    overflow-x: clip !important;
}

.dg-hdr {
    position: sticky !important;
    top: 0;
    z-index: 1000;
}

/* Cetak: hanya judul, info penulis/tanggal, foto, dan isi berita */
@media print {
    body:has(#dgArtikel) {
        background: #fff !important;
    }

    body:has(#dgArtikel)>*:not(main) {
        display: none !important;
    }

    body:has(#dgArtikel) .dt-side,
    body:has(#dgArtikel) .dt-article>*:not(.dt-title):not(.dt-meta):not(.dt-figure):not(.dt-body) {
        display: none !important;
    }

    body:has(#dgArtikel) .dt-layout {
        display: block !important;
    }

    body:has(#dgArtikel) .dt-page,
    body:has(#dgArtikel) .dg-container,
    body:has(#dgArtikel) .dt-article {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        border: 0 !important;
    }

    body:has(#dgArtikel) .dt-title {
        margin: 0 0 10px;
    }

    body:has(#dgArtikel) .dt-figure,
    body:has(#dgArtikel) .dt-figure img {
        max-width: 100%;
        break-inside: avoid;
    }
}


/* Header selalu terlihat saat scroll (fixed, tidak bergantung pada elemen induk).
   Tinggi header diukur otomatis oleh skrip di v_menu.php -> --dg-hdr-h */
.dg-hdr {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}

body.dg-body {
    padding-top: var(--dg-hdr-h, 76px) !important;
}

html {
    scroll-padding-top: calc(var(--dg-hdr-h, 76px) + 12px);
}

@media print {
    .dg-hdr {
        display: none !important;
    }

    body.dg-body {
        padding-top: 0 !important;
    }
}


/* Terpopuler: judul maksimal 2 baris (dipotong ...), foto tetap persegi */
.pt-terpopuler .pt-pop-foto {
    align-items: flex-start;
}

.pt-terpopuler .pt-pop-img {
    flex: 0 0 78px;
    width: 78px;
    height: 78px;
    min-width: 78px;
    aspect-ratio: 1 / 1;
    align-self: flex-start;
}

.pt-terpopuler .pt-pop-foto .pt-pop-t {
    flex: 1 1 auto;
    min-width: 0;
}

.pt-terpopuler .pt-pop-foto .pt-pop-t b {
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: anywhere;
}

.pt-terpopuler .pt-pop-foto .pt-pop-t small {
    flex-wrap: nowrap;
    min-width: 0;
}

.pt-terpopuler .pt-pop-cat {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pt-terpopuler .pt-pop-hit {
    flex: none;
}


/* Terpopuler: daftar rapi (kategori, judul 2 baris, tanggal + jam) */
.pt-terpopuler .pt-pop-row {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--pt-line, #e5e7eb);
    text-decoration: none;
}

.pt-terpopuler .pt-pop-row:last-child {
    border-bottom: 0;
    padding-bottom: 4px;
}

.pt-terpopuler .pt-pop-kat {
    display: block;
    margin-bottom: 4px;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.3;
    text-transform: uppercase;
    color: var(--dg-primary, #0b7a43);
}

.pt-terpopuler .pt-pop-jdl {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: anywhere;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--pt-ink, #111827);
    transition: color .15s ease;
}

.pt-terpopuler .pt-pop-row:hover .pt-pop-jdl {
    color: var(--dg-primary, #0b7a43);
}

.pt-terpopuler .pt-pop-tgl {
    display: block;
    margin-top: 6px;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--pt-mute, #6b7280);
}


/* Terpopuler: foto + nomor tetap ada, teks mengikuti gaya daftar (kategori, judul 2 baris, tanggal + jam, dibaca) */
.pt-terpopuler .pt-pop-foto {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
}

.pt-terpopuler .pt-pop-foto .pt-pop-t {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
}

.pt-terpopuler .pt-pop-foto .pt-pop-kat {
    margin-bottom: 3px;
    font-size: 11.5px;
}

.pt-terpopuler .pt-pop-foto .pt-pop-jdl {
    font-size: 14.5px;
    line-height: 1.35;
}

.pt-terpopuler .pt-pop-foto .pt-pop-tgl {
    margin-top: 5px;
    font-size: 11.5px;
}

.pt-terpopuler .pt-pop-foto .pt-pop-hit {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--pt-mute, #6b7280);
}


/* Terpopuler: tanggal dan jumlah dibaca (ikon mata) sebaris */
.pt-terpopuler .pt-pop-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
    margin-top: 5px;
}

.pt-terpopuler .pt-pop-foto .pt-pop-meta .pt-pop-tgl,
.pt-terpopuler .pt-pop-foto .pt-pop-meta .pt-pop-hit {
    margin-top: 0;
}

.pt-terpopuler .pt-pop-meta .pt-pop-hit {
    flex: none;
}


/* ==========================================================================
   FOOTER terang (gaya Kemenag): latar hijau muda lembut agar tidak menyatu
   dengan konten di atasnya
   ========================================================================== */
.dg-footer.dg-ft {
    margin-top: 40px;
    border-top: 1px solid #cfe3d6;
    background: linear-gradient(180deg, #e8f3ec 0%, #dcece2 100%);
    color: #1f2937;
    font-size: 14px;
}

.dg-ft a {
    color: #374151;
    text-decoration: none;
    transition: color .15s ease;
}

.dg-ft a:hover {
    color: var(--dg-primary, #0b7a43);
}

.dg-ft-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 48px 0 40px;
}

.dg-ft-logo {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .08);
}

.dg-ft-logo img {
    display: block;
    max-width: 240px;
    max-height: 48px;
    width: auto;
    height: auto;
}

.dg-ft-addr {
    margin: 0 0 14px;
    color: #4b5563;
    line-height: 1.6;
}

.dg-ft-line {
    margin: 0 0 6px;
    color: #111827;
    overflow-wrap: anywhere;
}

.dg-ft-line b {
    font-weight: 600;
}

.dg-ft-line a {
    color: #111827;
}

.dg-ft-col h4 {
    margin: 4px 0 16px;
    padding: 0;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.dg-ft-col h4::after {
    display: none;
}

.dg-ft-col ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dg-ft-col li {
    margin: 0;
}

.dg-ft-col li a {
    display: inline-block;
    padding: 6px 0;
    line-height: 1.4;
    color: #4b5563;
}

.dg-ft-col .dg-ft-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
}

.dg-ft-col .dg-ft-social a {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    color: #111827;
}

.dg-ft-col .dg-ft-social a:hover {
    background: rgba(11, 122, 67, .12);
    color: var(--dg-primary, #0b7a43);
}

.dg-ft-bottom {
    border-top: 1px solid #c4dccb;
    padding: 18px 0;
    font-size: 13px;
    color: #4b5563;
    text-align: center;
}

.dg-ft-bottom .dg-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 24px;
}

@media (max-width: 1100px) {
    .dg-ft-top {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 32px;
    }

    .dg-ft-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .dg-ft-top {
        grid-template-columns: 1fr 1fr;
        padding: 36px 0 28px;
    }
}

.dg-ft-bottom .dg-online {
    background: rgba(11, 122, 67, .1);
    color: #1f2937;
}


/* ---- Footer: perbaikan stabilitas & tampilan HP ---- */
/* style.css lama memberi "footer { float:left }" yang membuat kotak footer terpotong di Safari HP */
.dg-footer.dg-ft {
    float: none !important;
    clear: both;
    display: flow-root;
    width: 100%;
    overflow: visible;
}

.dg-ft-top.no-social {
    grid-template-columns: 2fr 1fr 1fr;
}

.dg-ft-col .dg-ft-social a svg {
    display: block;
}

@media (max-width: 1100px) {
    .dg-ft-top.no-social {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .dg-ft-top,
    .dg-ft-top.no-social {
        grid-template-columns: 1fr 1fr;
        gap: 28px 20px;
        padding: 32px 0 24px;
    }

    .dg-ft-brand {
        grid-column: 1 / -1;
    }

    .dg-ft-logo {
        margin-bottom: 14px;
    }

    .dg-ft-logo img {
        max-width: 200px;
        max-height: 42px;
    }

    .dg-ft-addr {
        font-size: 13.5px;
        margin-bottom: 10px;
    }

    .dg-ft-line {
        font-size: 13.5px;
    }

    .dg-ft-col h4 {
        margin-bottom: 8px;
        font-size: 13px;
    }

    .dg-ft-col li a {
        padding: 5px 0;
        font-size: 14px;
    }

    /* Ikuti Kami: satu baris penuh di bawah */
    .dg-ft-top .dg-ft-col:last-child:nth-child(4) {
        grid-column: 1 / -1;
    }

    .dg-ft-col .dg-ft-social {
        gap: 6px 8px;
    }

    .dg-ft-col .dg-ft-social a {
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, .6);
    }

    .dg-ft-bottom {
        padding: 14px 0 18px;
        font-size: 12.5px;
    }

    .dg-ft-bottom .dg-container {
        flex-direction: column;
        gap: 8px;
    }
}

/* ==========================================================================
   Revisi: footer 3 kolom (Online sejajar Ikuti Kami), hero, foto pimpinan, agenda
   ========================================================================== */

/* ---- Footer ---- */
.dg-footer.dg-ft .dg-ft-top {
    grid-template-columns: 2fr 1fr 1.4fr;
    gap: 40px;
}

.dg-ft-follow {
    min-width: 0;
}

.dg-ft-follow-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 14px;
}

.dg-ft-follow-row .dg-ft-social {
    margin: 0;
}

.dg-ft-follow-row .dg-online {
    margin-left: auto;
    padding: 5px 12px;
    font-size: 13px;
    white-space: nowrap;
    background: rgba(11, 122, 67, .1);
    color: #1f2937;
}

.dg-ft-follow:not(:has(h4)) .dg-ft-follow-row {
    padding-top: 4px;
}

@media (max-width: 1100px) {
    .dg-footer.dg-ft .dg-ft-top {
        grid-template-columns: 1fr 1fr;
        gap: 28px 32px;
    }

    .dg-footer.dg-ft .dg-ft-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .dg-footer.dg-ft .dg-ft-top {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 30px 0 22px;
    }

    /* Informasi: tautan berjajar menyamping agar ringkas */
    .dg-footer.dg-ft .dg-ft-col:not(.dg-ft-follow) ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0 20px;
    }

    .dg-footer.dg-ft .dg-ft-col:not(.dg-ft-follow) li a {
        padding: 6px 0;
    }

    .dg-ft-follow-row {
        flex-wrap: nowrap;
        gap: 8px;
    }

    .dg-ft-col .dg-ft-social {
        gap: 6px;
    }

    .dg-ft-col .dg-ft-social a {
        width: 36px;
        height: 36px;
    }

    .dg-ft-col .dg-ft-social a svg {
        width: 20px;
        height: 20px;
    }

    .dg-ft-follow-row .dg-online {
        padding: 4px 10px;
        font-size: 12px;
    }

    .dg-ft-bottom .dg-container {
        flex-direction: row;
    }
}

/* ---- Hero: "2 hari lalu" putih ---- */
.dg-slide .dg-rel,
.dg-slide-top .dg-rel,
.dg-stamp .dg-rel {
    color: #fff;
}

/* ---- Foto pimpinan: latar foto transparan menyatu dengan kartu ---- */
.pt-pojok-fig,
.pt-pojok-fig img {
    background: transparent;
}

.pt-pojok-fig img {
    border-radius: 0;
    box-shadow: none;
    /* putih/krem pada foto menjadi bening di atas gradasi kartu */
    mix-blend-mode: multiply;
}

/* ---- Agenda: tahun ikut tampil ---- */
.pt-agenda-d {
    width: 56px;
}

.pt-agenda-d small {
    display: block;
    font-size: 9.5px;
    letter-spacing: .03em;
    white-space: nowrap;
}

.ls-date {
    width: 64px;
}

.ls-date em {
    font-size: 10.5px;
    letter-spacing: .02em;
    white-space: nowrap;
}

/* ---------- Slideshow iklan beranda (di bawah berita, di atas Layanan) ---------- */
.pt-iklan {
    margin: 6px 0 0;
}

.pt-iklan .dg-slider {
    height: auto;
    aspect-ratio: 1280 / 210;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .12);
    background: #eef2ee;
}

.pt-iklan .dg-slide::after {
    display: none;
}

.pt-iklan .dg-slide>img,
.pt-iklan .dg-slide.is-active>img {
    transform: none;
    object-fit: cover;
}

/* panah selalu terlihat: bulat putih kecil di kiri-kanan */
.pt-iklan .dg-slider-btn {
    width: 30px;
    height: 30px;
    margin-top: -15px;
    opacity: 1;
    border: 0;
    background: rgba(255, 255, 255, .92);
    color: #1f2937;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
    backdrop-filter: none;
}

.pt-iklan .dg-slider-btn:hover {
    background: #fff;
}

.pt-iklan .dg-slider-btn.prev {
    left: 10px;
}

.pt-iklan .dg-slider-btn.next {
    right: 10px;
}

/* titik penunjuk di tengah bawah */
.pt-iklan .dg-dots {
    left: 50%;
    right: auto;
    bottom: 8px;
    transform: translateX(-50%);
    gap: 6px;
}

.pt-iklan .dg-dots button {
    width: 7px;
    height: 7px;
    background: rgba(255, 255, 255, .75);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
}

.pt-iklan .dg-dots button.is-active {
    width: 22px;
    background: #fff;
}

@media (max-width: 640px) {
    .pt-iklan .dg-slider {
        border-radius: 8px;
    }

    .pt-iklan .dg-slider-btn {
        display: none;
    }

    .pt-iklan .dg-dots {
        bottom: 5px;
    }

    .pt-iklan .dg-dots button {
        width: 6px;
        height: 6px;
    }

    .pt-iklan .dg-dots button.is-active {
        width: 16px;
    }
}

/* ---------- Video YouTube: klik-untuk-putar (gambar sampul) ---------- */
.pt-yt-lazy {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: #0f172a;
    cursor: pointer;
    display: block;
    overflow: hidden;
}

.pt-yt-lazy img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease, opacity .2s;
}

.pt-yt-lazy:hover img {
    transform: scale(1.05);
}

.pt-yt-lazy::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .78) 100%);
}

.pt-yt-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 46px;
    height: 46px;
    margin: -23px 0 0 -23px;
    border-radius: 50%;
    background: rgba(220, 38, 38, .95);
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
    transition: transform .2s;
}

.pt-yt-lazy:hover .pt-yt-play {
    transform: scale(1.1);
}

.pt-yt-cap {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 8px;
    z-index: 2;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pt-yt-lazy-list {
    background: linear-gradient(135deg, #0f172a, #14532d);
}

@media (max-width: 640px) {
    .pt-yt-play {
        width: 40px;
        height: 40px;
        margin: -20px 0 0 -20px;
    }

    .pt-yt-cap {
        font-size: 11px;
    }
}

/* tombol hijau "Kembali ke atas" disembunyikan (posisi kanan bawah dipakai tombol aksesibilitas) */
.dg-totop,
.dg-totop.is-show {
    display: none !important;
}

/* ---------- Halaman tagar berita ---------- */
.sb-hash {
    margin-right: 2px;
    color: var(--dg-primary);
}

.sb-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.sb-tags a {
    display: inline-flex;
    align-items: center;
    padding: 7px 13px;
    border: 1px solid var(--pt-line);
    border-radius: 999px;
    background: #f8fafc;
    color: var(--pt-ink);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s, color .15s, border-color .15s;
}

.sb-tags a:hover {
    background: var(--dg-primary);
    border-color: var(--dg-primary);
    color: #fff;
}

/* ---------- Halaman penulis / kontributor ---------- */
.au-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 24px;
    margin-bottom: 18px;
    border: 1px solid var(--pt-line);
    border-radius: 16px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 60%);
    box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
}

.au-ava {
    position: relative;
    flex: none;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--dg-primary), #15803d);
    box-shadow: 0 0 0 4px #fff, 0 0 0 6px rgba(21, 128, 61, .25);
}

.au-ava img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.au-ava span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 38px;
    font-weight: 800;
}

.au-info {
    min-width: 0;
}

.au-info h1 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 800;
    color: var(--pt-ink);
}

.au-ok {
    flex: none;
    color: #2563eb;
}

.au-role {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 11px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 12.5px;
    font-weight: 700;
}

.au-stat {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 13.5px;
}

.au-stat b {
    color: var(--pt-ink);
}

@media (max-width: 640px) {
    .au-card {
        flex-direction: column;
        text-align: center;
        gap: 14px;
        padding: 20px 16px;
    }

    .au-info h1 {
        justify-content: center;
        font-size: 21px;
    }

    .au-ava {
        width: 88px;
        height: 88px;
    }
}

/* ===== Status agenda: akan datang / sedang berlangsung / selesai ===== */
.ag-st {
    display: inline-block;
    margin: 0 0 4px;
    padding: 2px 8px;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .02em;
    border-radius: 999px;
    white-space: nowrap;
}

.ag-st--berlangsung {
    color: #15803d;
    background: #dcfce7;
}

.ag-st--akan {
    color: #1d4ed8;
    background: #dbeafe;
}

.ag-st--selesai {
    color: #6b7280;
    background: #f3f4f6;
}

.pt-agenda.is-selesai .pt-agenda-d,
.ls-item.is-selesai .ls-date {
    filter: grayscale(1);
    opacity: .7;
}

.pt-agenda.is-selesai .pt-agenda-t b,
.ls-item.is-selesai .ls-tx b {
    color: #6b7280;
}

.pt-agenda.is-berlangsung .pt-agenda-d,
.ls-item.is-berlangsung .ls-date {
    border-color: #86efac;
}

/* ===== Kalender agenda ===== */
.ag-tabs {
    display: inline-flex;
    gap: 4px;
    margin: 14px 0 12px;
    padding: 4px;
    border: 1px solid var(--pt-line);
    border-radius: 10px;
    background: var(--pt-soft);
}

.ag-tabs button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--pt-mute);
    background: transparent;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
}

.ag-tabs button.is-on {
    color: #fff;
    background: var(--dg-primary);
}

.ag-cal[hidden],
#agLst[hidden] {
    display: none;
}

.ag-cal-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.ag-cal-bar h2 {
    flex: 1;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    color: var(--pt-ink);
}

.ag-nav,
.ag-today-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    min-width: 34px;
    padding: 0 10px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--pt-ink);
    background: #fff;
    border: 1px solid var(--pt-line);
    border-radius: 8px;
    cursor: pointer;
}

.ag-nav:hover,
.ag-today-btn:hover {
    color: var(--dg-primary);
    border-color: var(--dg-primary);
}

.ag-cal-dow,
.ag-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.ag-cal-dow span {
    padding: 8px 0;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    color: var(--pt-mute);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ag-cal-dow span:nth-child(n+6) {
    color: #dc2626;
}

.ag-cal-grid {
    border-top: 1px solid var(--pt-line);
    border-left: 1px solid var(--pt-line);
    border-radius: 10px 0 0 0;
}

.ag-cell {
    position: relative;
    min-height: 104px;
    padding: 6px;
    overflow: hidden;
    background: #fff;
    border-right: 1px solid var(--pt-line);
    border-bottom: 1px solid var(--pt-line);
    cursor: pointer;
    outline: none;
}

.ag-cell:hover,
.ag-cell:focus-visible {
    background: #f0fdf4;
}

.ag-cell.is-weekend {
    background: #fafafa;
}

.ag-cell.is-out {
    opacity: .45;
}

.ag-cell.is-sel {
    background: #ecfdf5;
    box-shadow: inset 0 0 0 2px var(--dg-primary);
}

.ag-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    font-size: 13px;
    font-weight: 700;
    color: var(--pt-ink);
    border-radius: 999px;
}

.ag-cell.is-weekend .ag-num {
    color: #dc2626;
}

.ag-cell.is-today .ag-num {
    color: #fff;
    background: var(--dg-primary);
}

.ag-chips {
    display: block;
    margin-top: 4px;
}

.ag-chip {
    display: block;
    width: 100%;
    margin: 0 0 3px;
    padding: 2px 6px;
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 0;
    border-left: 3px solid;
    border-radius: 4px;
    cursor: pointer;
}

.ag-chip--berlangsung {
    color: #15803d;
    background: #dcfce7;
    border-color: #16a34a;
}

.ag-chip--akan {
    color: #1d4ed8;
    background: #dbeafe;
    border-color: #2563eb;
}

.ag-chip--selesai {
    color: #6b7280;
    background: #f3f4f6;
    border-color: #9ca3af;
}

.ag-chip:hover {
    filter: brightness(.95);
    text-decoration: underline;
}

.ag-more {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--pt-mute);
}

.ag-dots {
    display: none;
    gap: 3px;
    margin-top: 4px;
}

.ag-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.ag-dot--berlangsung {
    background: #16a34a;
}

.ag-dot--akan {
    background: #2563eb;
}

.ag-dot--selesai {
    background: #9ca3af;
}

.ag-cal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 10px 0 0;
    font-size: 12px;
    color: var(--pt-mute);
}

.ag-cal-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ag-cal-panel {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid var(--pt-line);
    border-radius: 12px;
    background: #fff;
}

.ag-cal-panel h3 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--pt-ink);
}

.ag-item {
    display: block;
    width: 100%;
    padding: 10px 0;
    font: inherit;
    text-align: left;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--pt-line);
    cursor: pointer;
}

.ag-item b {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--pt-ink);
}

.ag-item small {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: var(--pt-mute);
}

.ag-item:hover b {
    color: var(--dg-primary);
}

.ag-item.is-selesai b {
    color: #6b7280;
}

.ag-empty {
    margin: 0;
    font-size: 13px;
    color: var(--pt-mute);
}

@media (max-width: 640px) {
    .ag-cell {
        min-height: 54px;
        padding: 4px 2px;
        text-align: center;
    }

    .ag-chips {
        display: none;
    }

    .ag-dots {
        display: flex;
        justify-content: center;
    }

    .ag-cal-bar h2 {
        font-size: 16px;
    }

    .ag-today-btn {
        padding: 0 8px;
    }
}

/* ==========================================================================
   SIDEBAR PROFIL — menu saudara (mis. Profil: Sejarah, Visi dan Misi, ...)
   ========================================================================== */
.pf-card {
    padding-bottom: 10px;
}

.pf-nav {
    display: flex;
    flex-direction: column;
    padding: 4px 0 6px;
}

.pf-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 4px;
    font-size: 15px;
    line-height: 1.35;
    color: var(--dg-ink) !important;
    text-decoration: none !important;
    border-radius: 8px;
    transition: color .15s ease, background-color .15s ease, padding-left .15s ease;
}

.pf-nav a svg {
    flex: none;
    color: var(--dg-ink);
    transition: color .15s ease, transform .15s ease;
}

.pf-nav a:hover,
.pf-nav a.is-active {
    color: var(--dg-primary) !important;
}

.pf-nav a:hover {
    padding-left: 8px;
}

.pf-nav a:hover svg,
.pf-nav a.is-active svg {
    color: var(--dg-primary);
}

.pf-nav a.is-active {
    font-weight: 700;
}


/* ==========================================================================
   BANK DATA — pencarian, kartu dokumen, preview PDF
   ========================================================================== */
.bd-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 520px;
    margin: 22px 0 0;
    padding: 0 14px;
    height: 46px;
    border: 1px solid var(--pt-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
    color: var(--dg-muted);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.bd-search:focus-within {
    border-color: var(--dg-primary);
    box-shadow: 0 0 0 3px rgba(11, 122, 67, .14);
}

.bd-search svg {
    flex: none;
}

.bd-search input[type="search"] {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 14.5px;
    color: var(--dg-ink);
    box-shadow: none;
}

.bd-search input[type="search"]::placeholder {
    color: #94a3b8;
}

.bd-reset {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: var(--dg-muted) !important;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
}

.bd-reset:hover {
    background: var(--dg-primary-50);
    color: var(--dg-primary) !important;
}

.bd-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.bd-chips a {
    padding: 6px 14px;
    border: 1px solid var(--pt-line);
    border-radius: 999px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: var(--dg-text) !important;
    text-decoration: none !important;
    transition: all .15s ease;
}

.bd-chips a:hover {
    border-color: var(--dg-primary);
    color: var(--dg-primary) !important;
}

.bd-chips a.is-active {
    border-color: var(--dg-primary);
    background: var(--dg-primary);
    color: #fff !important;
}

.bd-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 20px 0 22px;
    padding: 10px 14px;
    border: 1px solid var(--pt-line);
    border-radius: 12px;
    background: #f8fafc;
    font-size: 12.5px;
    color: var(--dg-muted);
}

.bd-bar-l {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.bd-bar-l svg {
    color: var(--dg-primary);
}

.bd-bar b {
    color: var(--dg-ink);
}

.bd-bar-r {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: none;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--dg-primary-50);
    color: var(--dg-primary);
    font-weight: 700;
}

.bd-bar-r b {
    color: var(--dg-primary);
}

.bd-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.bd-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px 18px 14px;
    border: 1px solid #cfe6d6;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.bd-card:hover {
    transform: translateY(-2px);
    border-color: var(--dg-primary);
    box-shadow: 0 14px 28px -16px rgba(11, 122, 67, .45);
}

.bd-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.bd-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border: 1px solid var(--pt-line);
    border-radius: 999px;
    background: #f1f5f9;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #334155;
}

.bd-tag i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #64748b;
}

.bd-jenis {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--dg-primary);
    text-align: right;
}

.bd-mid {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--pt-line);
}

.bd-ic {
    flex: none;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--pt-line);
    border-radius: 12px;
    background: #f8fafc;
    color: #64748b;
}

.bd-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--dg-ink);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.bd-card:hover .bd-title {
    color: var(--dg-primary-900);
}

.bd-foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}

.bd-date {
    display: flex;
    flex-direction: column;
    gap: 1px;
    font-size: 12px;
    color: var(--dg-muted);
}

.bd-date small {
    font-size: 11px;
    color: #94a3b8;
}

.bd-act {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 0;
    border-radius: 999px;
    background: var(--dg-primary-50);
    color: var(--dg-primary) !important;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .15s ease, color .15s ease;
}

.bd-act:hover,
.bd-act:focus-visible {
    background: var(--dg-primary);
    color: #fff !important;
}

/* modal preview */
.bd-modal[hidden] {
    display: none;
}

.bd-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.bd-modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .62);
    backdrop-filter: blur(2px);
}

.bd-modal-box {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(1040px, 100%);
    height: min(88vh, 900px);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .5);
    overflow: hidden;
}

.bd-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--pt-line);
}

.bd-modal-head h3 {
    margin: 0;
    min-width: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--dg-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bd-modal-act {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: none;
}

.bd-x {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #334155;
    cursor: pointer;
}

.bd-x:hover {
    background: #fee2e2;
    color: var(--dg-danger);
}

.bd-modal-body {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: auto;
    background: #e5e7eb;
    text-align: center;
}

.bd-modal-body iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

.bd-modal-body img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.bd-fallback {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 6px 12px;
    background: rgba(255, 255, 255, .92);
    font-size: 12px;
    color: var(--dg-muted);
    pointer-events: none;
}

.bd-lock {
    overflow: hidden;
}

@media (max-width: 991px) {
    .bd-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .bd-grid {
        grid-template-columns: 1fr;
    }

    .bd-search {
        max-width: none;
    }

    .bd-bar {
        font-size: 12px;
    }

    .bd-modal {
        padding: 0;
    }

    .bd-modal-box {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}

