/* ===========================
   CLEAN & MINIMAL SIDEBAR STYLES
   =========================== */

/* Card Base - Clean White Card */
.col-md-4 .card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: visible;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    margin-bottom: 24px;
}

.col-md-4 .card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Card Header - Simple with Underline */
.col-md-4 .card-header {
    background: transparent !important;
    border: none;
    padding: 20px 24px 16px 24px;
    font-weight: 700;
    font-size: 1.25rem;
    color: #1e293b !important;
    letter-spacing: -0.02em;
    position: relative;
    border-radius: 12px 12px 0 0;
}

/* Underline dibawah judul - Biru seperti website */
.col-md-4 .card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 24px;
    right: 24px;
    height: 3px;
    background: linear-gradient(to right, #2563eb, #3b82f6);
    border-radius: 2px;
}

/* Remove icon dari header kalau ada */
.col-md-4 .card-header i {
    display: none;
}

/* Card Body - Clean Padding */
.col-md-4 .card-body {
    padding: 24px;
    background: #ffffff;
}

/* ===========================
   PENGUMUMAN STYLING
   =========================== */

.col-md-4 .card-body p {
    display: block;
    padding: 16px 0;
    margin-bottom: 0;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.col-md-4 .card-body p:last-child {
    border-bottom: none;
}

.col-md-4 .card-body p:hover {
    background: #f8fafc;
    padding-left: 12px;
    padding-right: 12px;
    margin-left: -12px;
    margin-right: -12px;
    border-radius: 8px;
}

/* Konten text pengumuman */
.col-md-4 .card-body p strong {
    display: block;
    color: #0f172a;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 4px;
}

.col-md-4 .card-body p small.text-muted {
    display: flex;
    align-items: center;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 400;
}

/* Icon calendar di tanggal */
.col-md-4 .card-body p small.text-muted::before {
    content: '📅';
    margin-right: 6px;
    font-size: 0.9rem;
}

/* Empty state pengumuman */
.col-md-4 .card-body p.text-muted {
    display: block;
    text-align: center;
    padding: 32px 16px;
    color: #94a3b8;
    border: none;
}

.col-md-4 .card-body p.text-muted::before {
    display: none;
}

/* ===========================
   BERITA POPULER STYLING
   =========================== */

.col-md-4 .list-group {
    border-radius: 0 0 12px 12px;
}

.col-md-4 .list-group-item {
    border: none;
    border-bottom: 1px solid #f1f5f9;
    padding: 16px 24px;
    background: transparent;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 16px;
}

.col-md-4 .list-group-item:hover {
    background: #f8fafc;
    padding-left: 28px;
}

.col-md-4 .list-group-item:last-child {
    border-bottom: none;
}

.col-md-4 .list-group-item img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease;
}

.col-md-4 .list-group-item:hover img {
    transform: scale(1.05);
}

.col-md-4 .list-group-item span {
    color: #334155;
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.5;
    flex: 1;
}

.col-md-4 .list-group-item:hover span {
    color: #1e40af;
}

/* ===========================
   VIDEO PARIWISATA STYLING
   =========================== */

.col-md-4 .card-body .card {
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    margin-bottom: 16px;
    box-shadow: none;
    overflow: hidden;
}

.col-md-4 .card-body .card:hover {
    border-color: #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.col-md-4 .ratio {
    border-radius: 0;
    box-shadow: none;
}

.col-md-4 .card-body .card .card-body {
    padding: 12px 16px;
    background: #fafafa;
}

.col-md-4 .card-body .card .card-text {
    color: #475569;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
}

/* ===========================
   FESTIVAL STYLING
   =========================== */

#festivalCarousel {
    position: relative;
}

#festivalCarousel .carousel-inner {
    border-radius: 10px;
    overflow: hidden;
}

#festivalCarousel img {
    border-radius: 10px;
    transition: transform 0.3s ease;
}

#festivalCarousel .carousel-item:hover img {
    transform: scale(1.02);
}

#festivalCarousel h6 {
    color: #1e293b;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 16px;
    text-align: center;
    line-height: 1.4;
}

/* Carousel controls - Simple & Clean */
#festivalCarousel .carousel-control-prev,
#festivalCarousel .carousel-control-next {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    top: 40%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#festivalCarousel:hover .carousel-control-prev,
#festivalCarousel:hover .carousel-control-next {
    opacity: 1;
}

#festivalCarousel .carousel-control-prev {
    left: 8px;
}

#festivalCarousel .carousel-control-next {
    right: 8px;
}

#festivalCarousel .carousel-control-prev-icon,
#festivalCarousel .carousel-control-next-icon {
    width: 16px;
    height: 16px;
    filter: invert(1);
}

#festivalCarousel .carousel-control-prev:hover,
#festivalCarousel .carousel-control-next:hover {
    background: #2563eb;
    border-color: #2563eb;
}

#festivalCarousel .carousel-control-prev:hover .carousel-control-prev-icon,
#festivalCarousel .carousel-control-next:hover .carousel-control-next-icon {
    filter: invert(0);
}

/* ===========================
   DOKUMEN PUBLIK STYLING
   =========================== */

.col-md-4 .list-group-item-action {
    color: #334155;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.col-md-4 .list-group-item-action::before {
    content: '📄';
    font-size: 1.2rem;
    margin-right: 12px;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dbeafe;
    border-radius: 6px;
}

.col-md-4 .list-group-item-action:hover {
    background: #f8fafc;
    color: #1e40af;
    padding-left: 28px;
}

/* Empty state dokumen */
.col-md-4 .list-group-item.text-muted {
    text-align: center;
    padding: 32px 24px;
    color: #94a3b8;
    display: block;
}

/* ===========================
   STATISTIK STYLING
   =========================== */

.col-md-4 .card-body.text-center img {
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
    border: 1px solid #f1f5f9;
}

.col-md-4 .card-body.text-center img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ===========================
   SELENGKAPNYA BUTTON (optional)
   =========================== */

.col-md-4 .text-center a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2563eb;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.col-md-4 .text-center a:hover {
    background: #eff6ff;
    color: #1e40af;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 768px) {
    .col-md-4 .card {
        border-radius: 10px;
        margin-bottom: 20px;
    }

    .col-md-4 .card-header {
        padding: 16px 20px 12px 20px;
        font-size: 1.1rem;
    }

    .col-md-4 .card-header::after {
        left: 20px;
        right: 20px;
    }

    .col-md-4 .card-body {
        padding: 20px;
    }

    .col-md-4 .list-group-item {
        padding: 14px 20px;
    }

    .col-md-4 .list-group-item img {
        width: 60px;
        height: 60px;
    }
}

/* ===========================
   SMOOTH ANIMATIONS
   =========================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.col-md-4 .card {
    animation: fadeInUp 0.5s ease-out backwards;
}

.col-md-4 .card:nth-child(1) { animation-delay: 0.05s; }
.col-md-4 .card:nth-child(2) { animation-delay: 0.1s; }
.col-md-4 .card:nth-child(3) { animation-delay: 0.15s; }
.col-md-4 .card:nth-child(4) { animation-delay: 0.2s; }
.col-md-4 .card:nth-child(5) { animation-delay: 0.25s; }
.col-md-4 .card:nth-child(6) { animation-delay: 0.3s; }