/* Override lebar dropdown menu biar mengikuti panjang teks */
.navbar .nav-item .dropdown-menu {
    width: auto;
    min-width: 220px;
    max-width: 400px;
    white-space: nowrap;
}

.navbar .nav-item .dropdown-menu .dropdown-item {
    white-space: nowrap;
}

.course-details {
    text-align: justify;
}

.course-single-area .course-details img,
.course-single-area>.container img.img-fluid.rounded {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
}

.course-item .course-img {
    position: relative;
    width: 250px;
    height: 220px;
    /* overflow: hidden dihapus dari sini */
}

.course-item .course-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    height: 40px;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.course-item .course-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* border-radius: ; */
    /* crop-nya pindah ke sini */
    display: block;
}

/* ===== Aktivitas (blog-item) - belum ada aturan, ditambahkan ===== */
.blog-item-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ===== Pengumuman (course-item) - selaraskan tinggi dengan yang lain ===== */
/* .course-item .course-img {
    height: 200px;
} */

/* ===== Agenda (event-item) - selaraskan tinggi ===== */
.event-img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center top;
}

.team-item .team-img img {
    width: 100%;
    height: 288px;
    max-width: 100% !important;
    object-fit: cover;
    display: block;
}


.team-item .team-img img.img-guru {
    width: 246px;
    height: 330px;
    object-fit cover;
    display: block;
}
.team-item .team-img img.img-kepsek {
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.team-content .team-bio{
    height: 80px;
}

.logo-program {
    width: 200px;
    /* height: 100px; */
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* HAPUS/jangan taruh line-clamp di h4 langsung */
.event-item .event-title {
    line-height: 1.4;
}

/* PINDAHKAN ke <a> di dalamnya */
.event-item .event-title a {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

/* PINDAHKAN ke <a> di dalamnya */
.blog-item-info .blog-title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    height: 60px;
}


/* ===== Running Text / Marquee ===== */
.running-text-wrapper {
    background-color: var(--theme-color, #0F172A);
    padding: 6px 0;
    border-top: 2px solid var(--theme-color2, #C0A060);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.running-text-wrapper .container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.running-text-label {
    color: var(--theme-color2, #C0A060);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.running-text-label i {
    font-size: 16px;
}

.running-text-content {
    overflow: hidden;
    flex: 1;
    position: relative;
}

.running-text-content .marquee-track {
    display: inline-block;
    white-space: nowrap;
    animation: marquee-scroll 25s linear infinite;
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
}

.running-text-content .marquee-track span {
    margin: 0 40px;
}

.running-text-content .marquee-track a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.running-text-content .marquee-track a:hover {
    color: var(--theme-color2, #C0A060);
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Hentikan animasi saat hover agar mudah dibaca */
.running-text-content:hover .marquee-track {
    animation-play-state: paused;
}

/* Responsive */
@media (max-width: 767.98px) {
    .running-text-wrapper .container {
        flex-wrap: wrap;
        gap: 5px;
    }

    .running-text-label {
        font-size: 12px;
    }

    .running-text-content .marquee-track {
        font-size: 12px;
    }

    .running-text-content .marquee-track span {
        margin: 0 20px;
    }
}

/* Untuk layar sangat kecil, label bisa disembunyikan */
@media (max-width: 480px) {
    .running-text-label span {
        display: none;
    }
}