/* ==========================================================================
   EXACT KOMDIGI NEWS AGGREGATOR WIDGET STYLING (MATCHING REFERENCE SCREENSHOT)
   ========================================================================== */

.komdigi-exact-wrapper {
    background-color: #23221b;
    border-radius: 1rem;
    padding: 12px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    height: 100%;
}

/* Inner White Container Card */
.komdigi-exact-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 8px 8px 8px 12px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/*
   ==========================================================================
   PENTING: TAMPILKAN BERITA SECARA PENUH & BISA DI-SCROLL
   ==========================================================================
*/
.komdigi-exact-body {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    padding-right: 12px;
    padding-top: 6px;
    padding-bottom: 6px;
}

/* Exact Custom Scrollbar */
.komdigi-exact-body::-webkit-scrollbar {
    width: 7px;
}

.komdigi-exact-body::-webkit-scrollbar-track {
    background: #f1f3f5;
    border-radius: 4px;
}

.komdigi-exact-body::-webkit-scrollbar-thumb {
    background-color: #8c9ba5;
    border-radius: 4px;
}

.komdigi-exact-body::-webkit-scrollbar-thumb:hover {
    background-color: #6c7a86;
}

/* Scroll Arrow Buttons (Up & Down) */
.komdigi-scroll-btn {
    position: absolute;
    right: 6px;
    background: transparent;
    border: none;
    color: #6c7a86;
    cursor: pointer;
    padding: 2px 4px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
}

.komdigi-scroll-btn:hover {
    color: #b1a75c;
}

.btn-scroll-up {
    top: 2px;
}

.btn-scroll-down {
    bottom: 2px;
}

/* Item Wrapper */
.komdigi-exact-item {
    padding: 12px 0;
}

.komdigi-exact-item.has-dotted-divider {
    border-bottom: 1px dotted #8c9ba5;
}

/* Left Circle Badge */
.komdigi-exact-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #b1a75c;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.komdigi-exact-circle:hover {
    transform: scale(1.05);
}

/* Category & Timestamp */
.komdigi-exact-category {
    font-size: 0.8rem;
    font-weight: 700;
    color: #b1a75c;
    letter-spacing: -0.01em;
}

.komdigi-exact-date {
    font-size: 0.72rem;
    font-weight: 500;
    color: #556285;
}

/* News Title Text */
.komdigi-exact-title {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.38;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 2px;
    transition: color 0.15s ease;
}

.komdigi-exact-title:hover {
    color: #b1a75c;
    text-decoration: underline !important;
}

/* Dark Mode Support (Bootstrap 5) */
[data-bs-theme="dark"] .komdigi-exact-card {
    background-color: #ffffff;
}

[data-bs-theme="dark"] .komdigi-exact-title {
    color: #1a1a1a;
}

/* Hover Effect & Scaled Desktop Preview SIMSALABIM Widget */
.card-simsalabim-hover {
    transition: none;
}

/* Hover Effect & Native Styling SIMSALABIM Widget */
.simsalabim-widget-card {
    height: 230px;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 1.25rem !important;
    background: linear-gradient(135deg, #131b46 0%, #1e293b 60%, #0f172a 100%);
    position: relative;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease;
    cursor: pointer;
    overflow: hidden;
}

.simsalabim-widget-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45) !important;
}

.simsalabim-card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 13px 15px;
}

.simsalabim-badge-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: none;
    flex-shrink: 0;
}

.simsalabim-card-tag {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #fde047;
    text-transform: uppercase;
    display: block;
    line-height: 1.1;
}

.simsalabim-card-title {
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #ffffff;
    line-height: 1.2;
}

.simsalabim-card-desc {
    font-size: 0.71rem;
    color: #cbd5e1;
    line-height: 1.3;
    margin-top: 2px;
}

.simsalabim-status-pill {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 2.5px 8px;
    font-size: 0.68rem;
    font-weight: 600;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.simsalabim-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: simsalabim-pulse 1.8s infinite;
}

@keyframes simsalabim-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.simsalabim-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin: 6px 0;
}

.simsalabim-stat-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 8px;
    padding: 5px 3px;
    text-align: center;
    backdrop-filter: blur(4px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.simsalabim-widget-card:hover .simsalabim-stat-item {
    background: rgba(255, 255, 255, 0.14);
}

.simsalabim-stat-num {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fef08a;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.simsalabim-stat-label {
    font-size: 0.6rem;
    color: #cbd5e1;
    margin-top: 1px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 600;
}

.simsalabim-cta-btn {
    background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    transition: all 0.2s ease;
}

.simsalabim-widget-card:hover .simsalabim-cta-btn {
    background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
    transform: translateY(-1px);
}

.simsalabim-card-watermark {
    position: absolute;
    right: -10px;
    bottom: -15px;
    font-size: 7.5rem;
    color: rgba(255, 255, 255, 0.035);
    pointer-events: none;
    z-index: 1;
    line-height: 1;
}

@media (max-width: 991.98px) {
    .komdigi-exact-wrapper {
        min-height: 420px !important;
        height: 420px !important;
    }
}

@media (max-width: 767.98px) {
    .simsalabim-widget-card {
        height: auto;
        min-height: 200px;
    }
}

@media (max-width: 575.98px) {
    .komdigi-exact-wrapper {
        min-height: 380px !important;
        height: 380px !important;
    }
}
