/* --- KOLOM KIRI: DETAIL BERITA --- */
.detail-berita {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.detail-berita .badge-kategori {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff !important;
    text-decoration: none;
}

.detail-berita h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #0a58ca;
    margin: 15px 0;
}

.detail-berita .meta-info {
    color: #6c757d;
    font-size: 0.9rem;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.detail-berita .meta-info i {
    margin-right: 5px;
}

.detail-berita .meta-info .separator {
    margin: 0 10px;
}

/* .detail-berita .featured-image {
    border-radius: 12px;
    width: 100%;
    max-height: 400px;
    object-fit: fill;
    margin-bottom: 20px;
} */

.detail-berita .isi-berita {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #2d3436;
}

.detail-berita .isi-berita p {
    margin-bottom: 18px;
}

.detail-berita .isi-berita img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

.detail-berita .isi-berita blockquote {
    border-left: 4px solid var(--tenant-primary);
    padding-left: 20px;
    margin: 20px 0;
    color: #555;
    font-style: italic;
}

.detail-berita .isi-berita h2,
.detail-berita .isi-berita h3,
.detail-berita .isi-berita h4 {
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 600;
}

.detail-berita .isi-berita ul,
.detail-berita .isi-berita ol {
    margin-bottom: 18px;
    padding-left: 25px;
}

.detail-berita .isi-berita ul li,
.detail-berita .isi-berita ol li {
    margin-bottom: 8px;
}

.detail-berita .tag-container {
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
    margin-top: 25px;
}

.detail-berita .tag-container .tag {
    display: inline-block;
    background: #e9ecef;
    padding: 4px 14px;
    border-radius: 15px;
    font-size: 0.8rem;
    color: #495057;
    margin-right: 6px;
    margin-bottom: 6px;
    text-decoration: none;
    transition: 0.3s;
}

.detail-berita .tag-container .tag:hover {
    background: var(--tenant-primary);
    color: white;
}

/* --- SHARE BUTTONS --- */
.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-buttons .btn-share {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    border: none;
    transition: 0.3s;
    color: white;
    text-decoration: none;
}

.share-buttons .btn-share:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-buttons .btn-facebook {
    background: #1877f2;
}

.share-buttons .btn-twitter {
    background: #000000;
}

.share-buttons .btn-whatsapp {
    background: #25d366;
}

.share-buttons .btn-copy {
    background: #6c757d;
}

/* --- SIDEBAR --- */
.sidebar-card {
    background: white;
    border-radius: .75rem;
    padding: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 1.2rem;
}

.sidebar-card .card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--tenant-primary);
    border-bottom: 3px solid var(--tenant-secondary);
    padding-bottom: .75rem;
    margin-bottom: .75rem;
}

.sidebar-card .card-title i {
    margin-right: 8px;
}

/* Berita Terbaru di Sidebar */
.berita-sidebar-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f3f5;
    transition: 0.3s;
}

.berita-sidebar-item:hover {
    background: #f8f9fa;
    padding-left: 10px;
    border-radius: 8px;
}

.berita-sidebar-item:last-child {
    border-bottom: none;
}

.berita-sidebar-item .thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.berita-sidebar-item .info h6 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.berita-sidebar-item .info h6 a {
    color: #2d3436;
    text-decoration: none;
}

.berita-sidebar-item .info h6 a:hover {
    color: var(--tenant-primary);
}

.berita-sidebar-item .info small {
    font-size: 0.75rem;
    color: #6c757d;
}

.berita-sidebar-item .info .badge-kategori {
    font-size: 0.65rem;
    padding: 2px 10px;
    border-radius: 10px;
}

/* Navigasi Berita */
.nav-berita {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-berita .nav-item {
    flex: 1;
    min-width: 150px;
}

.nav-berita .nav-item a {
    display: block;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
}

.nav-berita .nav-item a:hover {
    background: var(--tenant-primary);
    color: white !important;
}

.nav-berita .nav-item a:hover .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.nav-berita .nav-item a:hover .text-primary {
    color: white !important;
}

/* Responsive */
@media (max-width: 767px) {
    .detail-berita h1 {
        font-size: 1.5rem;
    }

    .detail-berita {
        padding: 20px;
    }

    .share-buttons .btn-share {
        padding: 6px 14px;
        font-size: 0.75rem;
    }

    .berita-sidebar-item .thumb {
        width: 55px;
        height: 55px;
    }

    .nav-berita .nav-item {
        min-width: 100%;
    }
}

/* Styling kalender */
#eventCalendarDefault {
    max-width: 100%;
}

.fc {
    font-size: 12px;
}

.fc .fc-toolbar-title {
    font-size: 14px;
    font-weight: 600;
}

.fc .fc-button {
    font-size: 10px;
    padding: 3px 8px;
    background-color: #0d6efd;
    border-color: #0d6efd;
    border-radius: 4px;
}

.fc .fc-button:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.fc .fc-daygrid-day-number {
    font-size: 11px;
    color: #495057;
}

.fc .fc-daygrid-day.fc-day-today {
    background-color: #f8f9fa;
}

.fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
    background-color: #0d6efd;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2px auto;
}

.fc .fc-daygrid-event {
    border-radius: 4px;
    padding: 2px 4px;
    font-size: 9px;
    font-weight: 500;
    border: none;
    margin: 1px 2px;
}

.fc .fc-daygrid-block-event .fc-event-title {
    padding: 1px 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== EVENT LIST (5 KEGIATAN TERDEKAT) ===== */
.event-list-section {
    margin-top: 16px;
    border-top: 2px solid #f1f3f5;
    padding-top: 14px;
}

.event-list-title {
    font-size: 13px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
}

.event-list-title i {
    color: #0d6efd;
    margin-right: 6px;
}

.event-list-item {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    margin-bottom: 4px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #0d6efd;
    transition: all 0.2s ease;
    cursor: pointer;
}

.event-list-item {
    position: relative;
}

.event-list-item:hover {
    background: #e9ecef;
    transform: translateX(3px);
}

/* .event-list-item:hover::after {
        content: "Klik untuk detail";
        position: absolute;
        right: 10px;
        font-size: 9px;
        color: #6c757d;
    } */

.event-list-item .event-date {
    font-size: 10px;
    font-weight: 600;
    color: #6c757d;
    min-width: 65px;
    margin-right: 10px;
}

.event-list-item .event-date i {
    font-size: 10px;
    margin-right: 3px;
}

.event-list-item .event-title {
    font-size: 11px;
    font-weight: 500;
    color: #212529;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-list-item .event-badge {
    font-size: 8px;
    padding: 2px 8px;
    border-radius: 10px;
    color: white;
    font-weight: 500;
    flex-shrink: 0;
}

.event-list-empty {
    text-align: center;
    padding: 15px;
    color: #adb5bd;
    font-size: 12px;
}

.event-list-empty i {
    font-size: 20px;
    display: block;
    margin-bottom: 6px;
    color: #dee2e6;
}

@media (max-width: 768px) {
    .event-list-item {
        flex-wrap: wrap;
    }

    .event-list-item .event-date {
        min-width: 60px;
        font-size: 10px;
    }
}

/* --- STYLE KOMENTAR --- */
.komentar-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-top: 30px;
}

.komentar-section .komentar-title {
    font-weight: 700;
    color: #2d3436;
    border-bottom: 2px solid var(--tenant-primary);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.komentar-section .komentar-title .badge {
    font-size: 0.8rem;
    margin-left: 8px;
}

/* Item Komentar */
.komentar-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f1f3f5;
}

.komentar-item:last-child {
    border-bottom: none;
}

.komentar-item .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--tenant-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.komentar-item .avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.komentar-item .komentar-body {
    flex: 1;
}

.komentar-item .komentar-body .nama {
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 2px;
}

.komentar-item .komentar-body .tanggal {
    font-size: 0.75rem;
    color: #6c757d;
}

.komentar-item .komentar-body .isi {
    margin-top: 8px;
    color: #555;
    line-height: 1.6;
}

.komentar-item .komentar-body .btn-balas {
    font-size: 0.8rem;
    padding: 2px 12px;
    border-radius: 15px;
    background: #e9ecef;
    border: none;
    color: #495057;
    transition: 0.3s;
    margin-top: 5px;
}

.komentar-item .komentar-body .btn-balas:hover {
    background: var(--tenant-primary);
    color: white;
}

/* Balasan Komentar */
.komentar-balasan {
    margin-left: 65px;
    padding-left: 20px;
    border-left: 3px solid #e9ecef;
}

.komentar-balasan .komentar-item:last-child {
    border-bottom: none;
}

/* Form Komentar */
.form-komentar {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
}

.form-komentar .form-control {
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: 0.3s;
}

.form-komentar .form-control:focus {
    border-color: var(--tenant-primary);
    box-shadow: 0 0 0 3px rgba(var(--tenant-primary-rgb), 0.1);
}

.form-komentar .btn-submit {
    background: var(--tenant-primary);
    border: none;
    padding: 10px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
}

.form-komentar .btn-submit:hover {
    background: var(--tenant-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(var(--tenant-primary-rgb), 0.3);
}

.form-komentar .btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Komentar Pending */
.komentar-pending {
    font-size: 0.8rem;
    color: #fd7e14;
    font-style: italic;
    margin-top: 4px;
}

/* No Comment */
.no-komentar {
    text-align: center;
    padding: 30px;
    color: #adb5bd;
}

.no-komentar i {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
    color: #dee2e6;
}

/* Toast Notification */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
}

.toast-custom {
    background: white;
    border-radius: 12px;
    padding: 16px 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-left: 4px solid var(--tenant-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.5s ease;
    margin-bottom: 10px;
    min-width: 300px;
}

.toast-custom.success {
    border-left-color: #28a745;
}

.toast-custom.error {
    border-left-color: #dc3545;
}

.toast-custom i {
    font-size: 1.5rem;
}

.toast-custom .toast-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #6c757d;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Responsive */
@media (max-width: 767px) {
    .komentar-section {
        padding: 20px;
    }
    
    .komentar-balasan {
        margin-left: 30px;
        padding-left: 15px;
    }
    
    .komentar-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .komentar-item .avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .form-komentar {
        padding: 15px;
    }
    
    .toast-custom {
        min-width: auto;
        max-width: 90vw;
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}