/* ================================
   CUSTOMER KATEGORI – FINAL CLEAN
   ================================ */

body {
    font-family: "Poppins", sans-serif;
    background: #ffffff;
    color: #000000;
    min-height: 100vh;
}

/* ================================
   NAVBAR
   ================================ */
.navbar {
    background: #0f5b3a !important;
    box-shadow: 0 2px 10px rgba(0,0,0,.15);
}

.navbar .nav-link,
.navbar .nav-title,
.navbar span,
.navbar div {
    color: #ffffff !important;
    font-weight: 500;
}

.navbar .btn-login,
.navbar .btn-success {
    background: #146c43;
    border: none;
    font-weight: 600;
}

/* ================================
   PAGE TITLE (AMAN, GA RUSAK CARD)
   ================================ */
.category-title {
    display: inline-block;

    padding: 8px 26px;
    border-radius: 999px;

    margin: 0 auto 40px auto;

    background: rgba(19, 95, 58, 0.15);
    border: 2px solid rgba(19, 95, 58, 0.35);
    color: #000;
    font-weight: 600;
}

/* ================================
   CATEGORY ROW (4 COLUMNS LAYOUT)
   ================================ */
.category-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 0 15px;
}

/* Ensure Bootstrap grid works properly for 4 columns */
.category-row > div {
    display: flex;
    justify-content: center;
    flex: 0 0 auto;
}

/* Force 4 columns on large screens */
@media (min-width: 1200px) {
    .category-row .col-xl-3 {
        flex: 0 0 23%;
        max-width: 23%;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .category-row .col-lg-3 {
        flex: 0 0 23%;
        max-width: 23%;
    }
}

/* ================================
   CARD (OPTIMIZED FOR 4 COLUMNS)
   ================================ */
.card {
    width: 100%;
    max-width: 280px;
    background: rgba(19, 95, 58, 0.12);
    border-radius: 18px;
    border: 1px solid rgba(19, 95, 58, 0.25);
    padding: 18px;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
    transition: all .35s ease;
    margin: 0 auto;
}

.card:hover {
    transform: translateY(-6px);
    background: rgba(19, 95, 58, 0.18);
    box-shadow: 0 15px 35px rgba(0,0,0,.3);
}

.card h4 {
    color: #000000;
    font-size: 18px;
    font-weight: 600;
    margin-top: 14px;
}

/* ================================
   IMAGE
   ================================ */
.category-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    background: #f8f9fa;
}

/* ==============*
/* ================================
   CATEGORY CARDS HOVER EFFECTS
   ================================ */

/* Category image hover effects */
.category-image {
    transition: transform 0.3s ease;
}

.category-image.scale-110 {
    transform: scale(1.1);
}

/* Card hover effects */
.card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-5px);
}

/* Empty state styling */
.text-muted i {
    opacity: 0.5;
}

/* Info text styling */
.text-center .text-muted {
    font-size: 0.9rem;
}

/* Dynamic category cards */
.category-row .card {
    border: 1px solid rgba(19, 95, 58, 0.1);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.category-row .card h4 {
    color: #135f3a;
    font-weight: 600;
    margin: 15px 0;
}

.category-row .category-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}