/* custom class */
.section-beranda {
    max-width: 600px;
}

.gambar-layanan {
    max-width: 100px;
}

.gambar-portal {
    max-width: 200px;
}

.statistik-box {
    height: 150px;
}

.statistik-overlay {
    width: 60px; 
    height: 60px
}

.section-tentang {
    min-height: 500px;
}

.tombol-lihat-video {
    margin-bottom:50px;
}

.judul-video {
    width:100%; 
    height:10%; 
    text-align:center;
    position:relative; 
    top:40%;
}

.frame-video {
    height: 350px;
}

.grid-berita {
    max-height: 300px;
}

.sidebar-berita {
    width: 100px; 
    height: 100px; 
    object-fit: cover;
}

.column-covid-33 {
    width: 33%;
}

.column-covid-50 {
    width: 50%;
}

.tbody-kasus-covid {
    height: 160px;
}

.table-informasi-dip {
    overflow-x: auto;
}

.informasi-berkala-wrap {
    margin-top: 8px;
}

.informasi-berkala-table {
    margin-bottom: 0;
    border-color: #ebeff4;
    font-size: 15px;
    color: #55586b;
}

.informasi-berkala-table th,
.informasi-berkala-table td {
    border: 0;
    border-bottom: 1px solid #edf1f5;
    vertical-align: middle;
    padding: 0.65rem 0.75rem;
}

.informasi-berkala-table .informasi-berkala-group th {
    background: #031b44;
    color: #fff;
    font-weight: 700;
    border-bottom: 0;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

.informasi-berkala-table td:first-child,
.informasi-berkala-table td:nth-child(2),
.informasi-berkala-table th:first-child {
    text-align: center;
    width: 64px;
    white-space: nowrap;
}

.informasi-berkala-table .informasi-berkala-group th:first-child {
    background: #001437;
    font-weight: 800;
}

.informasi-berkala-table td:nth-child(3) b {
    color: #5f6273;
    font-weight: 700;
}

.informasi-berkala-link {
    display: inline-block;
    min-width: 54px;
    text-align: center;
    color: #fff;
    background: #08a8e2;
    border: 1px solid #08a8e2;
    border-radius: 3px;
    padding: 4px 10px;
    line-height: 1.2;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
}

.informasi-berkala-link:hover {
    color: #fff;
    background: #0995c8;
    border-color: #0995c8;
}

.tr-informasi-dip {
    text-align: center; 
    background: #003f61; 
    color: white;
}

.laporan-row {
    margin-top: 10px; 
    margin-bottom: 30px;
}

.laporan-col {
    display: flex; 
    align-items: center; 
    justify-content: center;
}

.laporan-img {
    width: 120px;
    height: 120px;
    margin-bottom: 10px;
}

.statistik-div {
    height: 190px;
    width: 190px;
}

.form-layanan-input {
    height: 55px
}

.form-layanan-keterangan {
    height: 140px;
}

.gambar-layanan-custom {
    width: 100%;
    object-fit: cover;
}

.justify-ol {
    text-align: justify;
}

.waktu-biaya-a {
    color: #6B6A75;
}

.pers-heading {
    font-weight: 600;
}

.profil-icon-div {
    width: 60px; 
    height: 60px;
}

.kuesioner-div {
    height: 500px;
}

.footer-iframe-peta {
    width: 100%; 
    height: 250px;
}

.hero-section-custom {
    margin-bottom: 90px;
}

.error-title {
    font-size: 18vw !important;
}

.error-images {
    max-width: 100%;
}

.media-card {
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
}

.media-card-button {
    background: #ffffff;
}

.media-card-button:not(.collapsed) {
    background: #f3faff;
}

.media-photo {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
}

.wartawan-directory .wartawan-dir-sec-title {
    position: relative;
    padding-bottom: 0.75rem;
}
.wartawan-directory .wartawan-dir-eyebrow {
    color: #06a3da;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.wartawan-directory .wartawan-dir-heading {
    color: #091e3e;
    font-weight: 800;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.2;
}
.wartawan-directory .wartawan-dir-lead {
    font-size: 1rem;
    line-height: 1.65;
    max-width: 48rem;
}

.wartawan-directory .wartawan-pejabat-card {
    --wartawan-wave: #ffffff;
    --wartawan-red: linear-gradient(135deg, #12b2e8 0%, #06a3da 56%, #0586b5 100%);
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.07);
    transition: transform 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease;
}
.wartawan-directory .wartawan-pejabat-card__wave {
    z-index: 1;
}
.wartawan-directory .wartawan-pejabat-card__avatar {
    z-index: 2;
}
.wartawan-directory .wartawan-pejabat-card:hover,
.wartawan-directory .wartawan-pejabat-card:focus-within {
    --wartawan-wave: var(--wartawan-red);
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.14);
}
.wartawan-directory .wartawan-pejabat-card__trigger {
    cursor: pointer;
    outline: none;
}
.wartawan-directory .wartawan-pejabat-card__trigger:focus-visible {
    box-shadow: 0 0 0 3px rgba(6, 163, 218, 0.35);
    border-radius: 2px;
}

.wartawan-directory .wartawan-pejabat-card__header {
    position: relative;
    height: 115px;
    background: #ffffff;
    transition: background 0.35s ease;
    overflow: visible;
}

.wartawan-directory .wartawan-pejabat-card__wave {
    position: absolute;
    left: 0;
    right: 0;
    top: -24px;
    bottom: -96px;
    height: 220px;
    overflow: hidden;
    pointer-events: none;
}
.wartawan-directory .wartawan-pejabat-card__wave::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: var(--wartawan-wave);
    transition: background 0.35s ease, transform 0.35s ease;
    transform-origin: bottom;
    transform: scaleY(1);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A//www.w3.org/2000/svg'%20viewBox%3D'0%200%201440%20320'%3E%3Cpath%20fill%3D'%23ffffff'%20d%3D'M12%2021.35l-1.45-1.32C5.4%2015.36%202%2012.28%202%208.5%202%205.42%204.42%203%207.5%203c1.74%200%203.41.81%204.5%202.09C13.09%203.81%2014.76%203%2016.5%203%2019.58%203%2022%205.42%2022%208.5c0%203.78-3.4%206.86-8.55%2011.54L12%2021.35z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A//www.w3.org/2000/svg'%20viewBox%3D'0%200%201440%20320'%3E%3Cpath%20fill%3D'%23ffffff'%20d%3D'M12%2021.35l-1.45-1.32C5.4%2015.36%202%2012.28%202%208.5%202%205.42%204.42%203%207.5%203c1.74%200%203.41.81%204.5%202.09C13.09%203.81%2014.76%203%2016.5%203%2019.58%203%2022%205.42%2022%208.5c0%203.78-3.4%206.86-8.55%2011.54L12%2021.35z'/%3E%3C/svg%3E");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
    z-index: 0;
}
/* Motif halus (hati) — terlihat saat area merah */
.wartawan-directory .wartawan-pejabat-card__wave::after {
    content: none;
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.35s ease;
    transform-origin: bottom;
    transform: scaleY(1);
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A//www.w3.org/2000/svg'%20width%3D'24'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20fill%3D'%23ffffff'%20d%3D'M12%2021.35l-1.45-1.32C5.4%2015.36%202%2012.28%202%208.5%202%205.42%204.42%203%207.5%203c1.74%200%203.41.81%204.5%202.09C13.09%203.81%2014.76%203%2016.5%203%2019.58%203%2022%205.42%2022%208.5c0%203.78-3.4%206.86-8.55%2011.54L12%2021.35z'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 90px 90px;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A//www.w3.org/2000/svg'%20viewBox%3D'0%200%201440%20320'%3E%3Cpath%20fill%3D'%23ffffff'%20d%3D'M12%2021.35l-1.45-1.32C5.4%2015.36%202%2012.28%202%208.5%202%205.42%204.42%203%207.5%203c1.74%200%203.41.81%204.5%202.09C13.09%203.81%2014.76%203%2016.5%203%2019.58%203%2022%205.42%2022%208.5c0%203.78-3.4%206.86-8.55%2011.54L12%2021.35z'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A//www.w3.org/2000/svg'%20viewBox%3D'0%200%201440%20320'%3E%3Cpath%20fill%3D'%23ffffff'%20d%3D'M12%2021.35l-1.45-1.32C5.4%2015.36%202%2012.28%202%208.5%202%205.42%204.42%203%207.5%203c1.74%200%203.41.81%204.5%202.09C13.09%203.81%2014.76%203%2016.5%203%2019.58%203%2022%205.42%2022%208.5c0%203.78-3.4%206.86-8.55%2011.54L12%2021.35z'/%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    mask-size: 100% 100%;
}
.wartawan-directory .wartawan-pejabat-card:hover .wartawan-pejabat-card__wave::after,
.wartawan-directory .wartawan-pejabat-card:focus-within .wartawan-pejabat-card__wave::after {
    opacity: 0.12;
    transform: scaleY(1.12);
}

.wartawan-directory .wartawan-pejabat-card:hover .wartawan-pejabat-card__wave::before,
.wartawan-directory .wartawan-pejabat-card:focus-within .wartawan-pejabat-card__wave::before {
    transform: scaleY(1.12);
}

/* Pastikan hover merah FULL tanpa sisa putih di area header */
.wartawan-directory .wartawan-pejabat-card:hover .wartawan-pejabat-card__header,
.wartawan-directory .wartawan-pejabat-card:focus-within .wartawan-pejabat-card__header {
    background: var(--wartawan-red);
}

.wartawan-directory .wartawan-pejabat-card__avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    /* Turunkan avatar agar tidak terlihat setengah */
    bottom: -92px;
    z-index: 2;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.28s ease;
}
.wartawan-directory .wartawan-pejabat-card:hover .wartawan-pejabat-card__avatar {
    box-shadow: 0 6px 20px rgba(6, 163, 218, 0.2);
}

.wartawan-directory .wartawan-pejabat-card__body {
    margin-top: 102px;
    padding: 0 20px 24px;
}
.wartawan-directory .wartawan-pejabat-card__name {
    font-size: 20px;
    font-weight: 600;
    color: #2c2c54;
    margin: 0 0 0.35rem;
    line-height: 1.35;
}
.wartawan-directory .wartawan-pejabat-card__media {
    font-size: 0.95rem;
    font-weight: 600;
    color: #06a3da;
    margin-bottom: 0 !important;
}
.wartawan-directory .wartawan-pejabat-card__rule {
    border: 0;
    border-top: 1px solid #eee;
    margin: 18px 0;
    width: 100%;
    opacity: 1;
}
.wartawan-directory .wartawan-pejabat-card__org {
    font-size: 0.875rem;
    color: #777;
    line-height: 1.45;
}
.wartawan-directory .wartawan-pejabat-card__detail {
    display: block;
    padding-top: 1.1rem;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #06a3da;
}

.wartawan-detail-modal .modal-content {
    border-radius: 12px;
    overflow: visible;
}
.wartawan-detail-modal .wartawan-modal-header {
    background: linear-gradient(135deg,#0283d3 0%, #015aa3 50%, #032748 100%);
    padding: 1.25rem 1.5rem;
    border-bottom: none;
    position: relative;
}
.wartawan-detail-modal .wartawan-modal-kicker,
.wartawan-detail-modal .wartawan-modal-header .modal-title {
    color: rgba(255,255,255,0.95);
}
/* Tombol close putih bulat di pojok */
.wartawan-detail-modal .btn-close.btn-close-white {
    position: absolute;
    right: 1rem;
    top: 1rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #ffffff;
    border: 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}
.wartawan-detail-modal .btn-close.btn-close-white::after {
    content: "\00D7"; /* × */
    font-size: 26px;
    color: #0b2b42;
    line-height: 1;
}

.wartawan-detail-modal .modal-body {
    padding: 1.75rem;
    color: #fff;
}
.wartawan-detail-modal .wartawan-pejabat-card--modal {
    background: transparent;
    color: #fff;
}

.wartawan-detail-modal .wartawan-pejabat-card--modal .flex-shrink-0 {
    background: #ffffff;
    padding: 10px;
    border-radius: 10px;
    width: 120px;
    height: 160px;
    box-shadow: 0 6px 20px rgba(6,163,218,0.12);
}
.wartawan-detail-modal .wartawan-pejabat-card--modal img {
    display: block;
}

.wartawan-detail-modal .wartawan-pejabat-card__name,
.wartawan-detail-modal .wartawan-modal-media {
    color: #ffffff;
}
.wartawan-detail-modal .wartawan-pejabat-card__name {
    font-size: 1.45rem;
    font-weight: 800;
}
.wartawan-detail-modal p.text-muted {
    color: rgba(255,255,255,0.9);
}

.wartawan-detail-modal .badge {
    
    color: #fff !important;
    border: 0;
    font-weight: 700;
}

.wartawan-detail-modal .wartawan-detail-list li {
    color: rgba(255,255,255,0.92);
}
.wartawan-detail-modal .wartawan-detail-list strong {
    color: rgba(255,255,255,0.95);
}

.wartawan-detail-modal .modal-footer {
    background: linear-gradient(135deg,#04486e 0%, #063a63 100%);
    border-top: none;
    justify-content: center;
    padding: 0.7rem 1rem;
    position: relative;
}
.wartawan-detail-modal .modal-footer .btn { display: none; }
.wartawan-detail-modal .modal-footer::before {
    content: "PPID KOTA JAKARTA BARAT";
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.04em;
    font-size: 0.85rem;
}


.idcard-panel {
    background: linear-gradient(180deg,#0e8fd0 0%, #0b63a0 100%);
    border-radius: 10px;
    padding: 22px;
}
.idcard-inner { background: transparent; }
.idcard-photo-box { width: 160px; height: 180px; display:flex; align-items:center; justify-content:center; }
.idcard-sep { border-color: rgba(255,255,255,0.15); margin: 12px 0; }
.idcard-label { color: rgba(255,255,255,0.85); font-weight:700; }
.idcard-value { color: #fff; }
.id-badge { background: rgba(255,255,255,0.12); color: #fff; padding:8px 12px; border-radius:8px; font-weight:800; }
.id-badge.muted { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.8); }
.idcard-footer { background: linear-gradient(135deg,#04486e 0%, #063a63 100%); font-weight:800; }
.wartawan-close-btn { width:64px; height:64px; border-radius:50%; background:#000; color:#fff; border:0; position:absolute; right:1rem; top:-22px; display:flex; align-items:center; justify-content:center; box-shadow:0 10px 30px rgba(0,0,0,0.25); }
.wartawan-close-btn::after { content: "\00D7"; font-size:28px; color:#fff; }

.idcard-vertical { width: 320px; border-radius: 10px; overflow: hidden; }
.idcard-vertical__header { background: transparent; padding: 12px 16px; }
/* remove white body; show content directly on blue background */
.idcard-vertical__body {
    padding: 14px 16px 18px 16px;
    background: transparent;
    color: #fff;
}
.idcard-vertical__body .text-muted { color: rgba(255,255,255,0.75); }
.idcard-vertical__body .fw-semibold { font-weight:700; color:#ffffff; }
.idcard-sep { border-top: 1px solid rgba(255,255,255,0.12); margin: 12px 0; }
/* Photo box stays white so photo pops */
.idcard-vertical__photo { background: #fff; padding:8px; border-radius:8px; }
.idcard-vertical__photo img { border-radius:4px; }
/* badges: light translucent white with dark blue text */
.id-badge-sm { background: rgba(255,255,255,0.18); color: #063a63; padding:6px 12px; border-radius:999px; font-weight:700; }
.id-badge-sm.muted { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.9); }

/* footer keep darker blue */
.idcard-vertical__footer { background: linear-gradient(90deg,#04486e 0%, #063a63 100%); }

/* adjust widths for compact look */
.idcard-vertical { width: 320px; }
@media (max-width:575.98px) { .idcard-vertical { width: 92%; } }

@media (max-width: 767.98px) {
    .wartawan-detail-modal .flex-shrink-0 { width: 140px; height: 160px; }
    .wartawan-detail-modal .modal-body { padding: 1rem; }
    .wartawan-detail-modal .btn-close.btn-close-white { width:44px; height:44px; right:0.75rem; top:0.75rem; }
    .wartawan-close-btn { right:0.75rem; top:-18px; width:52px; height:52px; }
}

@media (max-width: 991.98px) {
    .causes-section-four .sec-title h1 {
        font-size: 34px;
    }
    #donate-popup .team-block-four .inner-box {
        flex-direction: column;
        align-items: center;
    }
    #donate-popup #donate-popup-img {
        width: 200px;
        height: 240px;
    }
}

/* Topbar style untuk kartu */
.idcard-topbar { background: linear-gradient(90deg,#0e86c8 0%, #0b63a0 100%); padding: 12px 16px; color: #fff; }
.idcard-topbar__kicker { color: rgba(255,255,255,0.9); font-weight:700; font-size:12px; letter-spacing:0.06em; }
.idcard-topbar__name { color: #fff; font-weight:900; margin-top:4px; font-size:1.05rem; }

/* ID card large panel inside white container */
.idcard-outer { background: #fff; }
.idcard-panel {
    background: linear-gradient(90deg,#0e86c8 0%, #0b63a0 100%);
    padding: 20px;
    border-radius: 10px;
    color: #fff;
    position: relative;
}
.idcard-kicker { font-weight:900; letter-spacing:0.08em; font-size:0.85rem; }
.idcard-subkicker { color: rgba(255,255,255,0.9); margin-top:4px; }
.idcard-close {
    position: absolute;
    right: -18px; 
    top: -18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 0;
    color: #0b2b42;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(0,0,0,0.16);
    z-index: 1060;
}
.idcard-close::after { content: "\00D7"; font-size:20px; line-height:1; }
.idcard-sep { border-top:1px solid rgba(255,255,255,0.12); margin:14px 0; }
.id-badge-pill { background: rgba(255,255,255,0.12); color:#fff; padding:10px 14px; border-radius:999px; font-weight:800; }
.id-badge-pill.muted { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.9); }
.idcard-footer { background: linear-gradient(90deg,#063a63 0%, #043a5a 100%); color:#fff; padding:10px; font-weight:800; border-radius:6px; }

@media (max-width:991.98px) {
    .modal-dialog.modal-lg { max-width: 760px; }
}

.modal-dialog.modal-md { max-width: 520px; }
.idcard-outer { padding: 8px; }
.idcard-panel { padding: 14px; border-radius:8px; }
.idcard-photo-box img { width:120px; height:140px; }
.idcard-panel .h4 { font-size:1.05rem; }
.id-badge-pill { padding:8px 12px; font-size:13px; }
.idcard-footer { padding:8px; font-size:0.95rem; }


.idcard-info-row .text-white-50 { font-size:12px; }
.idcard-badges-row .id-badge-pill { width:100%; text-align:left; }
.idcard-badges-row .col-6 { display:flex; flex-direction:column; }
.idcard-badges-row .id-badge-pill { padding:10px; border-radius:10px; }
.idcard-vertical .id-badge-pill { background: rgba(255,255,255,0.12); color:#fff; }
.idcard-vertical .id-badge-pill.muted { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.9); }
.idcard-vertical .id-badge-pill { font-weight:700; }

.idcard-panel .row { align-items: flex-start !important; }
.idcard-photo-box { align-self: flex-start; margin-bottom: 0; }
.idcard-panel .col { display: flex; flex-direction: column; justify-content: flex-start; }
/* Badges should not stretch column height */
.idcard-badges-row .col-6 { display: flex; flex-direction: column; align-items: flex-start; }
.idcard-badges-row .id-badge-pill { display: inline-block; width: auto; }
/* Reduce bottom spacing of blocks to make content compact */
.idcard-panel .mb-3 { margin-bottom: 10px !important; }
.idcard-panel .mb-3:last-child { margin-bottom: 4px !important; }
/* Ensure panel doesn't get a forced min-height */
.idcard-panel { min-height: 0 !important; }
/* Keep footer snug under content */
.idcard-footer { margin-top: 8px; padding-top: 8px; padding-bottom: 8px; }

/* Fix badge column alignment so right column doesn't leave empty space */
.idcard-badges-row { align-items: flex-start; margin-top: 6px; }
.idcard-badges-row .col-6 { display: block; align-self: flex-start; }
.idcard-badges-row .id-badge-pill { display: inline-block; width: auto; padding: 10px 14px; border-radius: 10px; vertical-align: top; }
/* Ensure status/diverif row also aligns to top */
.row.g-2.mt-2 > .col-6, .row.g-2.mt-2 > .col-6 .id-badge-pill { align-self: flex-start; }
/* Reduce extra top/bottom spacing around badge groups */
.idcard-badges-row .col-6 .small { margin-bottom: 6px; }
.idcard-panel .idcard-sep { margin-top: 10px; margin-bottom: 8px; }

/* Tweak vertical spacing so right column content moves up beside the photo */
.idcard-panel .row.g-3 { align-items: flex-start; }
.idcard-photo-box { margin-bottom: 0 !important; }
/* Reduce default block spacing to make layout compact */
.idcard-panel .mb-3 { margin-bottom: 6px !important; }
.idcard-panel .mb-3:last-child { margin-bottom: 4px !important; }
.idcard-sep { margin-top: 8px; margin-bottom: 8px; }
/* Bring badge group up */
.idcard-badges-row { margin-top: 4px !important; margin-bottom: 6px !important; }
.idcard-badges-row .col-6 { padding-left: 0.25rem; padding-right: 0.25rem; }
/* Make badges inline and not expand column height */
.idcard-badges-row .id-badge-pill { display: inline-block; vertical-align: top; }
/* Ensure status/diverif align to top */
.row.g-2.mt-2 { margin-top: 6px !important; }
.row.g-2.mt-2 > .col-6 { padding-left: 0.25rem; padding-right: 0.25rem; }

/* If the left photo is taller than content, allow right column to occupy full height but stick items to top */
.idcard-panel .col { display: flex; flex-direction: column; justify-content: flex-start; }

/* Polishing ID card visual */
.idcard-outer { padding: 10px; }
.idcard-panel {
    /* richer blue gradient with subtle texture */
    background: linear-gradient(135deg,#0f84c8 0%, #0b63a0 45%, #063a63 100%);
    border-radius: 12px;
    padding: 18px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(6,40,70,0.18);
}
.idcard-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 18px 18px;
    opacity: 0.18;
    pointer-events: none;
}
.idcard-kicker { font-weight:800; color: rgba(255,255,255,0.95); }
.idcard-subkicker { color: rgba(255,255,255,0.85); margin-top:2px; }

/* Avatar card: lift with soft border and shadow */
.idcard-photo-box { background: #fff; padding: 10px; border-radius: 8px; box-shadow: 0 10px 30px rgba(3,24,50,0.12); }
.idcard-photo-box img { display:block; width:140px; height:160px; object-fit:cover; border-radius:6px; }

/* Make right column content align top and compact */
.idcard-panel .row.g-3 { align-items:flex-start; }
.idcard-panel .col { display:flex; flex-direction:column; justify-content:flex-start; }
.idcard-panel .h4 { margin-bottom:6px; }
.idcard-panel .text-white { color: #f8fbff; }
.idcard-panel .text-white-50 { color: rgba(255,255,255,0.85); }

/* Separator subtle */
.idcard-sep { border-top: 1px solid rgba(255,255,255,0.08); margin: 10px 0; }

/* Modern pill badges with slight glass effect */
.id-badge-pill {
    background: rgba(255,255,255,0.12);
    color: #fff;
    padding: 10px 14px;
    border-radius: 40px;
    font-weight:800;
    box-shadow: inset 0 -6px 12px rgba(255,255,255,0.02), 0 6px 18px rgba(2,12,30,0.06);
    backdrop-filter: blur(4px);
}
.id-badge-pill.muted { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.9); }

/* badges grid: keep compact and left-aligned */
.idcard-badges-row { margin-top:4px; }
.idcard-badges-row .col-6 { display:flex; flex-direction:column; gap:8px; }
.idcard-badges-row .id-badge-pill { width: fit-content; }

/* Status/diverif small pills */
.row.g-2.mt-2 .id-badge-pill { padding:8px 12px; font-size:0.95rem; }

/* Footer */
.idcard-footer { background: linear-gradient(90deg,#063a63 0%, #043a5a 100%); color:#fff; padding:10px; font-weight:800; border-radius:6px; margin-top:12px; }

/* Close button: subtle circle in top-right outside panel */
.idcard-close {
    position:absolute; right:-16px; top:-16px; width:44px; height:44px; border-radius:50%; background:#ffffff; color:#063a63; display:flex; align-items:center; justify-content:center; box-shadow:0 8px 26px rgba(2,18,40,0.18); border:4px solid rgba(255,255,255,0.12);
}
.idcard-close::after { content: "\00D7"; font-size:20px; }

/* Responsive tweaks */
@media (max-width: 767.98px) {
    .idcard-panel { padding: 14px; }
    .idcard-photo-box img { width:120px; height:140px; }
    .idcard-badges-row .col-6 { width:50%; }
    .modal-dialog.modal-md { max-width: 480px; }
}

@media (max-width: 420px) {
    .idcard-panel { padding:12px; }
    .idcard-photo-box { margin: 0 auto 8px; }
    .row.g-3 { flex-direction: column; }
    .idcard-badges-row .col-6 { width:100%; }
}

/* Foto kartu thumbnail di bawah avatar */
.idcard-photo-box + .text-center img { box-shadow: 0 14px 36px rgba(2,12,30,0.12); }
.idcard-photo-box + .text-center .small { color: rgba(255,255,255,0.75); }
/* Modal image - dark overlay */
.modal .btn-close.btn-close-white { background: rgba(0,0,0,0.6); width:44px; height:44px; border-radius:50%; }
.modal .btn-close.btn-close-white::after { color:#fff; }

/* ID card preview full-width styling */
.idcard-preview { margin-top: 10px; }
.idcard-preview-img { width: 100%; height: auto; max-height: 260px; object-fit: cover; border-radius: 12px; box-shadow: 0 18px 40px rgba(2,12,30,0.18); border: 1px solid rgba(255,255,255,0.06); }
.idcard-preview-placeholder { background: rgba(255,255,255,0.04); height: 180px; }

/* Modal for full-size ID card */
.modal-idcard .modal-body { background: transparent; display:flex; align-items:center; justify-content:center; padding:20px; }
.modal-idcard .modal-content { background: transparent; border:0; }
.modal-idcard .modal-body img { max-width: 100%; max-height: 85vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(2,12,30,0.3); }

@media (max-width:767.98px) { .idcard-preview-img { max-height: 200px; } }

.zoom-img {
    max-height: 70vh; 
    max-width: 90%;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
