/* ==================================================
       1. NAVIGASI TAB (Tombol Rapi & Tidak Bertumpuk)
       ================================================== */
ul.custom-tab-reset {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    border-bottom: none !important;
    padding: 0 !important;
    margin: 0 0 40px 0 !important;
    list-style: none !important;
}

ul.custom-tab-reset .nav-item {
    float: none !important;
    margin: 0 !important;
}

ul.custom-tab-reset .nav-link {
    border-radius: 50px !important;
    padding: 12px 35px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    transition: all 0.3s ease !important;
}

ul.custom-tab-reset .nav-link:hover,
ul.custom-tab-reset .nav-link.active {
    background: #ff3c00 !important;
    color: #ffffff !important;
    border-color: #ff3c00 !important;
    box-shadow: 0 0 15px rgba(255, 60, 0, 0.5) !important;
    transform: translateY(-2px) !important;
}

/* ==================================================
       2. STABILITAS LAYOUT (Mencegah Hilang/Gepeng)
       ================================================== */
.tab-content {
    min-height: 150px !important;
    position: relative;
    width: 100%;
}

.tab-pane {
    transition: opacity 0.3s ease-in-out;
}

/* ==================================================
       3. CARD DESIGN (Modern: Judul di Gambar)
       ================================================== */
.clean-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    margin: 15px 5px;
    /* Jarak aman kiri-kanan */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.clean-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* --- AREA GAMBAR & JUDUL --- */
.clean-card .image-box {
    position: relative;
    width: 100%;
    height: 250px !important;
    /* Tinggi gambar tetap */
    overflow: hidden;
    background-color: #2a2a2a;
}

.clean-card .image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.clean-card:hover .image-box img {
    transform: scale(1.08);
    /* Zoom saat hover */
}

/* Overlay Gradient (Agar Judul Terbaca) */
.clean-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Gradasi hitam transparan di bawah */
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 40%,
        rgba(0, 0, 0, 0.9) 100%
    );
    z-index: 2;
    transition: background 0.3s;
}

.clean-card:hover .overlay {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 30%,
        rgba(0, 0, 0, 0.95) 100%
    );
}

/* Badge Kategori */
.clean-card .cat-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 30px;
    background: #ff3c00;
    /* Warna Merah */
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    z-index: 5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Judul (Posisi di atas gambar) */
.clean-card .title-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 3;
}

.clean-card .title-wrapper h4 {
    margin: 0;
    line-height: 1.3;
}

.clean-card .title-wrapper h4 a {
    color: #ffffff;
    /* Teks Putih */
    text-decoration: none;
    font-size: 19px;
    font-weight: 700;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    transition: color 0.3s ease;
}

.clean-card:hover .title-wrapper h4 a {
    color: #ffcc00;
    /* Emas saat hover */
}

/* --- KONTEN BAWAH (Deskripsi & Tombol) --- */
.clean-card .lower-content {
    padding: 20px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
}

.clean-card .lower-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    /* Batasi teks 2 baris */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.clean-card .read-more {
    font-size: 12px;
    font-weight: 700;
    color: #ff3c00;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.5px;
}

.clean-card .read-more i {
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.clean-card:hover .read-more i {
    transform: translateX(5px);
}

/* ==================================================
       4. FIX OWL CAROUSEL NAV
       ================================================== */
.owl-carousel .owl-nav.disabled {
    display: none !important;
}

.owl-theme .owl-dots {
    margin-top: 30px !important;
}

.owl-theme .owl-dots .owl-dot span {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.2) !important;
    margin: 5px;
    transition: all 0.3s ease;
}

.owl-theme .owl-dots .owl-dot.active span {
    background: #ff3c00 !important;
    width: 30px;
}
/* Bintang Rating */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 8px;
    font-size: 2.5rem;
    /* Ukuran bintang diperbesar */
}

.star-rating input {
    display: none;
}

.star-rating label {
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s;
}

.form-check-label {
    color: #170b0b;
}

.star-rating label:before {
    content: "\2605";
}

/* Hover Effects */
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #ffc107;
    transform: scale(1.1);
}

.star-rating input:checked ~ label {
    color: #ffc107;
}

/* Custom Radio Button agar lebih cantik */
.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.form-check-input {
    cursor: pointer;
}
