/* =========================================
   GALLERY PAGE 
   ========================================= */
.works {
    background-color: #f8fafc;
}

/* --- TOMBOL FILTER --- */
.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 8px 20px;
    border: 2px solid #e5e7eb;
    background: white;
    color: #64748b;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn.active, .filter-btn:hover {
    background-color: #2B5490; 
    color: white;
    border-color: #2B5490;
}

/* --- KOTAK PROYEK (KARTU) --- */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.work-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(43, 84, 144, 0.15);
}

/* --- MINI SLIDER PROJECT --- */
.card-slider {
    position: relative;
    overflow: hidden; 
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid #f0f0f0;
}

.card-slides {
    display: flex;
    transition: transform 0.4s ease-in-out;
    width: 100%;
    height: 100%;
}

.card-slides img {
    min-width: 100%; 
    height: 200px;   
    padding: 20px;
    box-sizing: border-box; 
    object-fit: contain; /* PENTING: Agar foto proyek tidak terpotong */
    display: block;
}

/* Tombol Panah Mini */
.mini-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(43, 84, 144, 0.8);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; 
    transition: all 0.3s ease;
    z-index: 5;
}

.card-slider:hover .mini-btn {
    opacity: 1;
}

.mini-btn:hover {
    background-color: #2B5490;
    transform: translateY(-50%) scale(1.1);
}

.mini-btn.prev-btn { left: 10px; }
.mini-btn.next-btn { right: 10px; }

/* --- TEKS DESKRIPSI DI BAWAH KARTU --- */
.work-content {
    padding: 1.5rem;
}

.work-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2B5490;
}

.work-content p {
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 14px;
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.work-tags span {
    padding: 4px 12px;
    background-color: #eef4fc;
    color: #2B5490;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}