/* ===========================
   FESTIVAL CARD STYLES - COMPACT
   =========================== */

.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.card-hover:hover::before {
    left: 100%;
}

.card-hover:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(27, 60, 83, 0.25);
}

/* Image Container - Fixed Height */
.card-hover > div:first-child {
    position: relative;
    overflow: hidden;
    padding: 10px;
    background-color: #fff;
}

.card-hover img {
    width: 100%;
    height: 250px !important; /* Potong lebih pendek lagi */
    object-fit: cover !important;
    transition: transform 0.5s ease;
    border-radius: 8px;
}

.card-hover:hover img {
    transform: scale(1.08);
}

/* Card Body - Sangat Compact */
.card-hover .card-body {
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
    padding: 12px 16px 12px 16px !important; /* Minimal padding */
    flex-grow: 0;
}

.card-hover .card-title {
    color: #1B3C53;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px !important; /* Minimal space */
    line-height: 1.3;
    transition: color 0.3s ease;
}

.card-hover:hover .card-title {
    color: #2563eb;
}

/* Tanggal */
.card-hover .small {
    margin-bottom: 0 !important; /* Hilangkan space bawah */
    color: #1B3C53;
}

/* Deskripsi - HIDE untuk save space */
.card-hover .card-text {
    display: none !important; /* Sembunyikan deskripsi untuk hemat space */
}


/* ===========================
   MODAL STYLES
   =========================== */

.modal-backdrop.show {
    backdrop-filter: blur(15px);
    background-color: rgba(27, 60, 83, 0.75);
}

.modal-content {
    animation: modalFadeIn 0.4s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* ===========================
   SIDEBAR CARD STYLES
   =========================== */

.card {
    border-radius: 16px !important;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

.card-header {
    border-radius: 16px 16px 0 0 !important;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    letter-spacing: 0.3px;
}

.list-group-item {
    border: none;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    padding-left: 1.5rem;
    border-left: 4px solid #1B3C53;
}

.list-group-item:last-child {
    border-bottom: none;
    border-radius: 0 0 16px 16px;
}

.list-group-item img {
    transition: transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

.list-group-item h6 {
    color: #1B3C53;
    font-weight: 600;
    margin-bottom: 0.25rem;
}


/* ===========================
   INSTAGRAM CARD STYLES
   =========================== */

.card-header[style*="gradient"] {
    position: relative;
    overflow: hidden;
}

.card-header[style*="gradient"]::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}


/* ===========================
   BERITA POPULER STYLES
   =========================== */

.bg-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 50%, #1e3a8a 100%);
}

.list-group-item a,
a.list-group-item {
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

a.list-group-item:hover {
    background: linear-gradient(to right, #f8f9fa 0%, #e9ecef 100%);
    color: #1B3C53;
    font-weight: 500;
}


/* ===========================
   VIDEO PARIWISATA STYLES
   =========================== */

.bg-danger {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 50%, #1e3a8a 100%);
}

.ratio {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}


/* ===========================
   BUTTON STYLES
   =========================== */

.btn-outline-primary {
    border: 2px solid #2563eb;
    color: #2563eb;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3);
}

.btn-close-white {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 0.75rem;
    opacity: 1;
    transition: all 0.3s ease;
}

.btn-close-white:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}


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

@media (max-width: 768px) {
    .card-hover:hover {
        transform: translateY(-8px) scale(1.01);
    }
    
    .card-hover img {
        height: 220px !important;
    }
    
    .card-hover .card-body {
        padding: 10px 14px 10px 14px !important;
    }
    
    .list-group-item:hover {
        padding-left: 1.25rem;
    }
}

@media (max-width: 576px) {
    .card-hover img {
        height: 200px !important;
    }
    
    .card-hover .card-body {
        padding: 8px 12px 8px 12px !important;
    }
}


/* ===========================
   SCROLL ANIMATIONS
   =========================== */

[data-aos] {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}


/* ===========================
   ADDITIONAL ENHANCEMENTS
   =========================== */

.shadow-lg {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12) !important;
}

.shadow-sm {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

/* Smooth text rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===========================
   FESTIVAL WARNING HEADER
   =========================== */

.bg-warning {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%) !important;
}