/* =======================
   VARIABLES
======================= */
:root {
    --primary-color: #d4a017;
    --secondary-color: #28a745;
    --danger-color: #dc3545;
    --bg-dark: #111;
    --text-light: #fff;
    --text-secondary: #999;
}

/* =======================
   BODY
======================= */
body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    margin: 0;
}

/* =======================
   NAVBAR
======================= */
.navbar-hasco {
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.navbar {
    padding: 1rem 0;
    transition: 0.3s;
}

.nav-link {
    color: rgba(255,255,255,0.75) !important;
    font-weight: 500;
    margin: 0 12px;
    transition: 0.3s;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-toggler {
    color: #fff;
    font-size: 1.5rem;
}

/* MOBILE NAVIGATION */
@media (max-width:991px) {
    .navbar-collapse {
        background: var(--bg-dark);
        padding: 20px;
        border-radius: 20px;
        margin-top: 15px;
    }

    .nav-link {
        margin: 10px 0;
    }
}

/* =======================
   LOGO
======================= */
.logo-hasco {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-light);
    text-decoration: none;
}

.logo-hasco span {
    color: var(--primary-color);
}

/* =======================
   HERO SECTION
======================= */
.hero-section {
    height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

/* =======================
   BUTTON
======================= */
.btn-hasco {
    background: var(--primary-color);
    color: #000;
    border-radius: 14px;
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    border: none;
    transition: 0.3s;
}

.btn-hasco:hover {
    background: #f1bc28;
    color: #000;
}

/* =======================
   CARD
======================= */
.card-hasco {
    background: var(--bg-dark);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.3s, border-color 0.3s;
}

.card-hasco:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.card-hasco img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* CARD HEADINGS */
.card-hasco h4 {
    font-size: 1.3rem;
}

.card-hasco h3 {
    font-size: 1.8rem;
}

/* =======================
   BADGES
======================= */
.badge-unit {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-color);
    color: #000;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.75rem;
    z-index: 2;
    white-space: nowrap;
}

.badge-unit.ready {
    background-color: var(--secondary-color);
    color: #fff;
}

.badge-unit.sold {
    background-color: var(--danger-color);
    color: #fff;
}

/* Badge untuk jumlah views */
.badge-unit.views-badge {
    top: 20px;
    right: 20px;
    left: auto; /* agar tidak menimpa badge status */
    background-color: #17a2b8; /* biru untuk views */
    color: #fff;
    z-index: 2;
    font-size: 0.75rem;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 4px; /* spasi antara ikon dan angka */
}

/* Ikon mata kecil untuk badge views h4 p-4 fw-bold*/
.badge-unit.views-badge i.fas.fa-eye {
    font-size: 0.75rem;
}

/* Responsif untuk layar kecil */
@media(max-width: 576px){
    .badge-unit,
    .badge-unit.views-badge {
        top: 10px;
        padding: 4px 10px;
        font-size: 0.65rem;
    }
}
/* =======================
   SECTION PADDING
======================= */
.section-padding {
    padding: 6rem 0;
}

.section-padding-sm {
    padding: 3rem 0;
}

/* =======================
   CATEGORY BOX
======================= */
.category-box {
    background: var(--bg-dark);
    border-radius: 30px;
    padding: 3rem 2rem;
    border: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.3s, border-color 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.category-box:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: rgba(212,160,23,0.12);
    border-radius: 50%;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
}

/* =======================
   ABOUT ITEM
======================= */
.about-item {
    background: var(--bg-dark);
    padding: 1rem 1.2rem;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
}

/* =======================
   DETAIL / SPEC BOX
======================= */
.detail-image {
    position: relative;
}

.spec-box {
    background: var(--bg-dark);
    border-radius: 25px;
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.08);
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-wrap: wrap;
}

.spec-item:last-child {
    border-bottom: 0;
}

.spec-item span {
    color: var(--text-secondary);
}

.spec-item strong {
    color: var(--text-light);
}

/* =======================
   RESPONSIVE IMAGES & TEXT
======================= */
img, video {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6, p, span, label {
    word-wrap: break-word;
    line-height: 1.4;
}

@media(max-width:1200px){
    .card-hasco img {
        height: 220px;
    }
}

@media(max-width:991px){
    .card-hasco img {
        height: 180px;
    }

    .category-box {
        padding: 2rem 1rem;
    }

    .category-icon {
        width: 70px;
        height: 70px;
        font-size: 1.5rem;
    }

    .hero-section {
        height: 70vh;
    }
}


/* =======================
   RESPONSIVE TEXT
======================= */
@media (max-width: 576px) {
    /* Judul unit */
    .p-4 h4.fw-bold {
        font-size: 1rem; /* dari 1.25rem atau 22px di desktop */
    }

    /* Tahun atau teks sekunder */
    .p-4 span.text-secondary {
        font-size: 0.75rem;
    }

    /* Harga */
    .p-4 h3.text-warning {
        font-size: 1.25rem; /* dari 1.5rem atau 28px di desktop */
    }

    /* Tombol */
    .p-4 .btn-hasco {
        font-size: 0.75rem;
        padding: 8px 16px;
    }
}

@media(max-width:576px){
    .card-hasco img {
        height: 150px;
    }

    .category-box {
        padding: 1.5rem 1rem;
    }

    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }

    .hero-section {
        height: 60vh;
    }

    .badge-unit {
        padding: 4px 12px;
        font-size: 0.65rem;
    }

    .card-hasco h4 {
        font-size: 1.1rem;
    }

    .card-hasco h3 {
        font-size: 1.4rem;
    }
}