@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Poppins:wght@300;400;600&display=swap');

:root {
    --primary: #c5a059;
    --secondary: #1a1a1a;
    --light: #f9f9f9;
}

body {
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
.font-serif {
    font-family: 'Playfair Display', serif;
}

.carousel-item {
    display: none;
    transition: opacity 0.8s ease-in-out;
}

.carousel-item.active {
    display: block;
}

.gallery-img {
    transition: transform 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.05);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================
   Panel / Accordion Carousel
   ===================== */
.carousel-container {
    display: flex;
    width: 100%;
    height: 500px;
    overflow: hidden;
    gap: 10px;
    padding: 0 24px;
    box-sizing: border-box;
    max-width: 1280px;
    margin: 0 auto;
}

.panel {
    flex: 1;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: flex 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.1) 50%, transparent 100%);
    border-radius: 20px;
    transition: background 0.4s ease;
}

.panel.active {
    flex: 4;
}

.panel.active::before {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.05) 60%, transparent 100%);
}

.badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    z-index: 2;
    flex-shrink: 0;
}

.name {
    position: absolute;
    bottom: 22px;
    left: 68px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s;
    z-index: 2;
    font-family: 'Poppins', sans-serif;
}

.panel.active .name {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .carousel-container {
        flex-direction: column;
        height: 600px;
        gap: 10px;
        padding: 0 16px;
    }

    .panel {
        border-radius: 15px;
    }

    .panel::before {
        border-radius: 15px;
    }

    .badge {
        bottom: 14px;
        left: 14px;
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .name {
        bottom: 18px;
        left: 56px;
        font-size: 0.95rem;
    }
}
