/* ===== GALLERY PAGE STYLES ===== */

.gallery-hero {
    padding: 140px 48px 80px;
    background: linear-gradient(135deg, rgba(255, 247, 248, 0.9), rgba(255, 227, 189, 0.3));
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.gallery-hero h1 {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--color-foreground);
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: -1px;
}

.gallery-hero p {
    font-size: 1.15rem;
    color: var(--color-muted-foreground);
    max-width: 600px;
    margin: 0 auto 32px; /* Ditambah margin bottom */
    line-height: 1.6;
}

.gallery-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 8px;
}

.filter-btn {
    border: 1px solid var(--color-border);
    background: #fff;
    color: var(--color-foreground);
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}

.filter-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--color-primary), #ff7ca8);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 14px rgba(212, 129, 108, 0.25);
}

.gallery-section {
    padding: 80px 48px;
    background: var(--color-background);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 40px;
}

/* ===== GALLERY CARD WITH IMAGE SLIDER ===== */
.gallery-card {
    background: #fff;
    border: 2px solid var(--color-border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(92, 61, 58, 0.06);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(212, 129, 108, 0.15);
    border-color: var(--color-primary);
}

/* Image Slider Container */
.image-slider {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: var(--color-secondary);
}

.slider-container {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.slider-image {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    background: #fdf4ee;
    flex-shrink: 0;
}

/* Slider Navigation Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--color-foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.slider-btn:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: 12px;
}

.slider-btn.next {
    right: 12px;
}

/* Slider Dots Indicator */
.slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.dot.active {
    background: white;
    width: 32px;
    border-radius: 99px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

/* Card Content */
.gallery-card .card-content {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gallery-card h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--color-foreground);
    font-weight: 700;
    margin-bottom: 4px;
}

.design-type {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.design-desc {
    font-size: 0.95rem;
    color: var(--color-muted-foreground);
    line-height: 1.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .gallery-hero {
        padding: 120px 24px 60px;
    }

    .gallery-hero h1 {
        font-size: 2.2rem;
    }

    .gallery-filter-buttons {
        gap: 8px;
    }

    .gallery-section {
        padding: 60px 24px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .filter-btn {
        padding: 10px 14px;
        font-size: 14px;
    }

    .image-slider {
        height: 280px;
    }

    .slider-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .gallery-hero h1 {
        font-size: 1.8rem;
    }

    .gallery-hero p {
        font-size: 1rem;
    }

    .image-slider {
        height: 240px;
    }

    .gallery-card .card-content {
        padding: 20px 18px;
    }

    .gallery-card h3 {
        font-size: 1.2rem;
    }
}
