@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

.info-section {
    background: #f9fafb;
    padding: 56px 0 80px;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

.info-container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 16px;
}

.info-title {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #111827;
    padding-left: 14px;
    border-left: 4px solid #dc2626;
    margin: 0 0 22px;
}

.info-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 28px;
    line-height: 1.6;
}

.info-card {
    position: relative;
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 10px;
    padding: 22px 28px;
    margin-bottom: 18px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
    transition: box-shadow .2s, transform .2s;
}

.info-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
    transform: translateY(-2px);
}

.info-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: .3px;
}

.badge-red {
    background: #fee2e2;
    color: #dc2626;
}

.badge-orange {
    background: #ffedd5;
    color: #ea580c;
}

.badge-green {
    background: #dcfce7;
    color: #16a34a;
}

.badge-blue {
    background: #dbeafe;
    color: #2563eb;
}

.badge-gray {
    background: #f3f4f6;
    color: #6b7280;
}

.info-badge-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Badge Sasaran / Target Informasi */
.badge-sasaran {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 9999px;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    letter-spacing: .1px;
    white-space: nowrap;
}

.badge-sasaran i {
    font-size: 10px;
}

/* Status Pill & Animasi Berlangsung */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 9999px;
    letter-spacing: .2px;
    white-space: nowrap;
}

.status-dot {
    width: 6.5px;
    height: 6.5px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.status-berlangsung {
    background-color: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.status-berlangsung .status-dot {
    background-color: #dc2626;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.25);
    animation: statusPulse 1.8s infinite ease-in-out;
}

@keyframes statusPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.25);
    }
    50% {
        transform: scale(1.25);
        box-shadow: 0 0 0 5px rgba(220, 38, 38, 0.08);
    }
}

.status-segera {
    background-color: #ede9fe;
    color: #6366f1;
    border: 1px solid #ddd6fe;
}

.status-segera .status-dot {
    background-color: #6366f1;
}

.status-selesai {
    background-color: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.status-selesai .status-dot {
    background-color: #94a3b8;
}

.status-draft {
    background-color: #fef3c7;
    color: #d97706;
    border: 1px solid #fde68a;
}

.status-draft .status-dot {
    background-color: #d97706;
}

/* Tabs Filter Publik */
.info-public-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    position: relative;
}

.info-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 9999px;
    text-decoration: none;
    color: #4b5563;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.info-tab-btn:hover {
    background: #f3f4f6;
    color: #111827;
    border-color: #d1d5db;
}

.info-tab-btn:focus-visible {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
}

.info-tab-btn.active {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.28);
}

.info-tab-count {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 9999px;
    background: rgba(0, 0, 0, .06);
    line-height: 1.2;
    transition: all .2s;
}

.info-tab-btn.active .info-tab-count {
    background: rgba(255, 255, 255, .28);
    color: #ffffff;
}

/* Titik animasi HANYA pada tab Sedang Berlangsung */
.tab-live-dot {
    width: 7.5px;
    height: 7.5px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    background-color: #dc2626;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.3);
    animation: tabPulseRed 1.8s infinite ease-in-out;
}

.info-tab-btn.active .tab-live-dot {
    background-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
    animation: tabPulseWhite 1.5s infinite ease-in-out;
}

@keyframes tabPulseWhite {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
    }
    50% {
        transform: scale(1.35);
        box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12);
    }
}

@keyframes tabPulseRed {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.3);
    }
    50% {
        transform: scale(1.3);
        box-shadow: 0 0 0 5px rgba(220, 38, 38, 0.08);
    }
}

/* Gaya Redup / Abu-abu untuk Tab dengan Jumlah 0 */
.info-tab-btn.tab-zero {
    color: #94a3b8;
    background: #f8fafc;
    border-color: #e2e8f0;
    opacity: 0.72;
}

.info-tab-btn.tab-zero:hover {
    color: #64748b;
    background: #f1f5f9;
    opacity: 0.92;
}

.info-tab-btn.tab-zero .info-tab-count {
    background: #e2e8f0;
    color: #94a3b8;
}

.info-tab-btn.tab-zero.active {
    opacity: 1;
}

/* Tab Tambahan Selesai: diletakkan paling kanan dengan gaya paling netral */
.info-tab-btn.tab-neutral {
    margin-left: auto;
    color: #64748b;
    background: #f8fafc;
    border-color: #e2e8f0;
}

.info-tab-btn.tab-neutral:hover {
    background: #f1f5f9;
    color: #334155;
    border-color: #cbd5e1;
}

.info-tab-btn.tab-neutral:focus-visible {
    outline-color: #334155;
}

.info-tab-btn.tab-neutral.active {
    background: #334155;
    border-color: #334155;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(51, 65, 85, 0.25);
}

.info-tab-btn.tab-neutral.active .info-tab-count {
    background: rgba(255, 255, 255, .25);
    color: #ffffff;
}


@media (max-width: 575.98px) {
    .info-tab-btn.tab-neutral {
        margin-left: 0;
    }
}

/* Arsip Toolbar & Filter Tanggal */
.info-archive-bar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 22px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.info-archive-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.info-archive-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-archive-hint {
    font-size: 12px;
    color: #64748b;
}

.info-date-filter-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
}

.info-date-input-group {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: #475569;
}

.info-date-field {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    color: #1e293b;
    background: #ffffff;
}

.info-date-field:focus {
    outline: none;
    border-color: #334155;
    box-shadow: 0 0 0 2px rgba(51, 65, 85, 0.15);
}

.btn-archive-filter {
    background: #334155;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}

.btn-archive-filter:hover {
    background: #1e293b;
}

.btn-archive-reset {
    color: #dc2626;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
}

.btn-archive-reset:hover {
    text-decoration: underline;
}

.info-meta-bar {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #334155;
    margin-bottom: 18px;
}

.info-periode-tag {
    font-size: 12px;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.info-date {
    font-size: 12px;
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.info-card-title {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px;
}

.info-card-desc {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 22px;
}

.info-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f3f4f6;
    padding-top: 14px;
    font-size: 12.5px;
}

.info-nomor {
    color: #374151;
}

.info-download {
    position: relative;
    z-index: 2;
    color: #dc2626;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.info-download:hover {
    text-decoration: underline;
}

.info-lihat {
    color: #dc2626;
    font-weight: 700;
    font-size: 12.5px;
}

.info-empty {
    text-align: center;
    color: #9ca3af;
    padding: 40px 0;
}

.info-pagination {
    margin-top: 24px;
}

/* ===== Kartu bisa diklik ===== */
.info-card-link {
    color: inherit;
    text-decoration: none;
}

.info-card-link::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
}

.info-card:hover .info-card-title {
    color: #dc2626;
}

/* ===== Halaman detail ===== */
.info-back {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-decoration: none;
    margin-bottom: 16px;
}

.info-back:hover {
    color: #dc2626;
}

.info-detail:hover {
    transform: none;
}

.info-detail-title {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    line-height: 1.4;
    margin: 0 0 12px;
}

.info-detail-body {
    font-size: 14.5px;
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 18px;
}

/* ===== Popup Surat Edaran ===== */
body.modal-open-surat {
    overflow: hidden;
}

.surat-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(17, 24, 39, .55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.surat-overlay.open {
    display: flex;
    animation: suratFade .18s ease;
}

@keyframes suratFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.surat-modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 720px;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
}

.surat-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid #eef0f3;
}

.surat-modal-head h3 {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.surat-close {
    flex: none;
    background: none;
    border: 0;
    color: #4b5563;
    cursor: pointer;
    padding: 4px;
    line-height: 0;
    border-radius: 6px;
}

.surat-close:hover {
    background: #f3f4f6;
    color: #111827;
}

.surat-modal-body {
    overflow-y: auto;
    padding: 24px 32px 32px;
}

.surat-kop {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #374151;
    margin-bottom: 20px;
}

.surat-kop img {
    width: 70px;
    height: 56px;
    object-fit: contain;
    flex: none;
}

.surat-kop-text {
    flex: 1;
    text-align: center;
}

.surat-kop-text strong {
    display: block;
    font-size: 15px;
    letter-spacing: .2px;
    color: #111827;
}

.surat-kop-text .merah {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    color: #dc2626;
    margin: 2px 0;
}

.surat-kop-text small {
    display: block;
    font-size: 9.5px;
    color: #6b7280;
}

.surat-judul {
    text-align: center;
    margin-bottom: 18px;
}

.surat-judul h4 {
    font-size: 17px;
    font-weight: 800;
    text-decoration: underline;
    margin: 0 0 3px;
    color: #111827;
    letter-spacing: .5px;
}

.surat-judul span {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
}

.surat-meta {
    font-size: 12px;
    color: #111827;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.surat-meta td {
    padding: 2px 0;
    vertical-align: top;
}

.surat-meta td:first-child {
    width: 80px;
    font-weight: 600;
}

.surat-meta td:nth-child(2) {
    width: 16px;
}

.surat-meta .perihal {
    font-weight: 700;
}

.surat-isi {
    font-size: 12.5px;
    color: #1f2937;
    line-height: 1.75;
}

.surat-isi p {
    margin: 0 0 12px;
}

.surat-isi ol {
    margin: 0 0 12px;
    padding-left: 22px;
}

.surat-isi li {
    margin-bottom: 6px;
    padding-left: 4px;
}

.surat-ttd {
    margin-top: 24px;
    font-size: 12.5px;
    color: #1f2937;
}

.surat-ttd .ruang {
    height: 54px;
}

@media (max-width: 575.98px) {
    .info-card {
        padding: 18px 16px;
    }

    .surat-modal-body {
        padding: 20px 18px 24px;
    }

    .surat-kop {
        flex-direction: column;
        gap: 6px;
    }
}