/* ==============================================
   DIREKTORI CAROUSEL — [direktori_carousel]
   ============================================== */

.att-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    user-select: none;
}

/* ── Track ───────────────────────────────────── */
.att-carousel__track-wrap {
    overflow: hidden;
    width: 100%;
}

.att-carousel__track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.att-carousel__slide {
    display: flex;
    gap: 16px;
    flex: 0 0 100%;
    width: 100%;
    padding: 4px 2px 16px;
    box-sizing: border-box;
    align-items: stretch; /* semua card ikuti tinggi tertinggi */
}

/* ── Card ────────────────────────────────────── */
.att-carousel__card {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.10);
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    height: 100%; /* ikuti tinggi slide (align-items: stretch) */
}

a.att-carousel__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,17,136,0.15);
}

.att-carousel__card,
.att-carousel__card:hover,
.att-carousel__card:focus,
.att-carousel__card:visited {
    text-decoration: none !important;
}

.att-carousel__card *,
.att-carousel__card:hover *,
.att-carousel__card:focus * {
    text-decoration: none !important;
}

/* ── Foto ────────────────────────────────────── */
.att-carousel__photo-wrap {
    width: 100%;
    flex: 1;
    overflow: hidden;
    background: #e8eaf6;
    min-height: 0; /* biarkan flex yang atur tinggi */
}

.att-carousel__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.35s ease;
}

a.att-carousel__card:hover .att-carousel__photo {
    transform: scale(1.04);
}

.att-carousel__photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #001188;
    color: #ffcc00;
    font-size: 48px;
    font-weight: 900;
}

/* ── Info (jabatan + nama) ───────────────────── */
.att-carousel__info {
    background: #ffcc00;
    padding: 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
    box-sizing: border-box;
    justify-content: center;
}

.att-carousel__jabatan {
    font-size: 11px;
    font-weight: 700;
    color: #001188;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.8;
}

.att-carousel__nama {
    font-size: 14px;
    font-weight: 800;
    color: #001188;
    line-height: 1.3;
}

/* ── Dots ────────────────────────────────────── */
.att-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 4px;
    padding-bottom: 4px;
}

.att-carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccd;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.att-carousel__dot.active {
    background: #001188;
    transform: scale(1.35);
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 768px) {
    .att-carousel__slide {
        gap: 10px;
    }
    .att-carousel__nama {
        font-size: 12px;
    }
    .att-carousel__jabatan {
        font-size: 10px;
    }
    .att-carousel__info {
        padding: 8px 10px;
    }
    .att-carousel__btn {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .att-carousel__slide {
        gap: 8px;
    }
}
