/* ========================================================
   BERITA OPD HOMEPAGE SECTION - PREMIUM STYLING
   ======================================================== */

.opd-home-section {
    background: #f8fafc;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
    padding: 65px 0 75px;
    position: relative;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.opd-section-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 14px;
}

.opd-section-chip .chip-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
    animation: opdPulse 2s infinite;
}

@keyframes opdPulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.opd-section-title {
    font-size: 30px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
    margin: 0 0 12px;
    font-family: 'Poppins', sans-serif;
}

.opd-section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 3px;
    margin: 0 auto 16px;
}

.opd-section-desc {
    color: #64748b;
    font-size: 14.5px;
    line-height: 1.65;
    max-width: 680px;
    margin: 0 auto;
}

/* Filter Tabs */
.opd-filter-container {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    padding: 8px 12px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px -3px rgba(15, 23, 42, 0.05);
}

.opd-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-size: 13.5px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none !important;
}

.opd-filter-btn:hover {
    color: #059669;
    border-color: #10b981;
    background: #f0fdf4;
    transform: translateY(-2px);
}

.opd-filter-btn.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.opd-filter-count {
    display: inline-block;
    padding: 2px 7px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    background: #f1f5f9;
    color: #475569;
    transition: all 0.25s ease;
}

.opd-filter-btn:hover .opd-filter-count {
    background: #dcfce7;
    color: #059669;
}

.opd-filter-btn.active .opd-filter-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Loading Overlay */
.opd-cards-wrapper {
    position: relative;
    min-height: 250px;
}

.opd-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 14px;
    backdrop-filter: blur(2px);
}

.opd-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #10b981;
    border-radius: 50%;
    animation: opdSpin 0.7s linear infinite;
}

@keyframes opdSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Card Column & Equal Height */
.opd-cards-row {
    display: flex;
    flex-wrap: wrap;
    transition: opacity 0.25s ease;
}

.opd-card-col {
    display: flex;
    flex-direction: column;
}

/* Premium Card */
.opd-card-premium {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05);
    padding: 20px 20px 16px;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.opd-card-premium:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 32px -8px rgba(16, 185, 129, 0.16);
    border-color: #86efac;
}

/* Header & Title */
.opd-card-header {
    margin-bottom: 8px;
}

.opd-type-chip {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.opd-type-chip.badge-opd {
    background: #e0f2fe;
    color: #0284c7;
    border: 1px solid #bae6fd;
}

.opd-type-chip.badge-kec {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #fde68a;
}

.opd-type-chip.badge-pusk {
    background: #dcfce7;
    color: #059669;
    border: 1px solid #bbf7d0;
}

.opd-card-title {
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.45;
    margin: 0;
    min-height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

.opd-card-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.opd-card-title a:hover {
    color: #059669;
}

/* Meta Bar */
.opd-card-meta {
    font-size: 11.5px;
    color: #64748b;
    font-weight: 500;
    margin: 8px 0 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
}

.opd-card-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.opd-card-meta .meta-item i {
    color: #94a3b8;
    font-size: 11px;
}

.opd-card-meta .meta-sep {
    color: #cbd5e1;
}

.opd-card-meta .meta-opd-name {
    font-weight: 600;
    color: #334155;
    text-transform: uppercase;
}

/* Thumbnail Box */
.opd-card-thumb-box {
    width: 100%;
    height: 185px;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
    position: relative;
    margin-bottom: 14px;
}

.opd-thumb-link {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.opd-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.opd-thumb-img.opd-thumb-fallback {
    object-fit: contain;
    padding: 25px;
    background: #f8fafc;
}

.opd-card-premium:hover .opd-thumb-img {
    transform: scale(1.06);
}

/* Card Body & Excerpt */
.opd-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.opd-card-excerpt {
    color: #64748b;
    font-size: 13.5px;
    line-height: 1.6;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 64px;
}

.opd-card-btn-read {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    color: #059669;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
    transition: all 0.2s ease;
}

.opd-card-btn-read i {
    font-size: 16px;
    transition: transform 0.25s ease;
}

.opd-card-premium:hover .opd-card-btn-read {
    color: #047857;
}

.opd-card-premium:hover .opd-card-btn-read i {
    transform: translateX(4px);
}

/* Empty Box */
.opd-empty-box {
    background: #ffffff;
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    padding: 45px 25px;
    text-align: center;
    color: #64748b;
    margin: 20px 0;
}

.opd-empty-icon {
    font-size: 44px;
    color: #94a3b8;
    margin-bottom: 12px;
}

.opd-empty-box h4 {
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 6px;
}

/* Bottom Button More */
.opd-btn-more-premium {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 32px;
    border-radius: 50px;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: 0.3px;
}

.opd-btn-more-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45);
    color: #ffffff !important;
}

.opd-btn-more-premium i {
    font-size: 13px;
    transition: transform 0.25s ease;
}

.opd-btn-more-premium:hover i {
    transform: translateX(4px);
}

/* Mobile Responsiveness */
@media (max-width: 767px) {
    .opd-home-section {
        padding: 45px 0 55px;
    }
    .opd-section-title {
        font-size: 23px;
    }
    .opd-filter-container {
        border-radius: 16px;
        width: 100%;
    }
    .opd-filter-btn {
        flex: 1 1 45%;
        justify-content: center;
        padding: 8px 12px;
        font-size: 12.5px;
    }
    .opd-card-col {
        margin-bottom: 25px;
    }
}
