:root {
    --color-text-dark: #1C1C1E;
    --color-blue-accent: #CCF2FF; /* Warna biru untuk background frame kategori */
    --color-gold-accent: #FFE199;
    --color-background-overall: #FFFAFA; /* Background putih */
    --color-white-element: #FFFFFF;
    --font-family-primary: 'Montserrat', sans-serif;
}

/* Section Talent */
#talent {
    text-align: center;
    padding: 50px;
    background-color: var(--color-background-overall); /* Background putih */
    color: var(--color-text-dark);
}

#talent h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--color-text-dark);
}

.talent-category {
    margin-bottom: 40px;
}

.talent-container {
    overflow-x: auto;
    white-space: nowrap;
    padding: 20px 0;
    width: 100%;
}

.talent-slider {
    display: flex;
    gap: 20px;
    padding: 0 20px;
    width: max-content;
    flex-wrap: nowrap;
}

.talent-card {
    display: inline-block;
    width: 180px;
    min-width: 180px;
    margin-bottom: 20px;
    text-align: center;
    background: var(--color-white-element);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    transition: transform 0.3s ease, background-color 0.3s ease;
    color: var(--color-text-dark);
}

/* Mengubah background untuk semua kategori */
.talent-category .talent-card {
    background-color: var(--color-blue-accent); /* Warna biru untuk frame semua kategori */
}

.talent-card:hover {
    transform: scale(1.05);
    background-color: var(--color-blue-accent);
}

.talent-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
}

.talent-card h3 {
    font-size: 1.1rem;
    margin: 10px 0;
    color: var(--color-text-dark);
}

.watch-btn,
button.schedule-btn {
    background-color: var(--color-gold-accent);
    color: var(--color-text-dark);
    border: none;
    border-radius: 5px;
    padding: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
    max-width: 300px;
    text-align: center;
}

.watch-btn:hover,
button.schedule-btn:hover {
    background-color: #E0C780;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

button.schedule-btn {
    border-radius: 8px;
    padding: 12px 24px;
    width: auto;
    display: inline-block;
    margin-top: 10px;
}

button.schedule-btn:focus {
    outline: none;
}

.category-title {
    font-size: 24px;
    font-weight: bold;
    text-align: left;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--color-text-dark);
}

.talent-image {
    width: 100%;
    height: auto;
}

img {
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
}

/* Responsif Tablet */
@media screen and (max-width: 768px) {
    .talent-card {
        width: 180px;
        min-width: 180px;
    }

    .category-title {
        font-size: 20px;
    }
}

/* Responsif Mobile */
@media screen and (max-width: 480px) {
    .talent-card {
        width: 180px;
        min-width: 180px;
    }

    .category-title {
        font-size: 18px;
    }

    .talent-slider {
        flex-direction: row;
        gap: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: #bbb;
    text-decoration: none;
}

@media only screen and (max-width: 700px) {
    .lightbox-content {
        width: 100%;
    }
}
