/* =========================================================
   LAYANAN NJA EXPRESS
   File: css/layanan.css
========================================================= */

.section-layanan {
    background: #ffffff;
    padding: 50px 20px 60px;
}

.section-layanan .section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* judul section */
.section-layanan .section-title {
    text-align: center;
    font-size: 26px;
    font-weight: 800;
    color: var(--accent, #ff1b1c);
    margin-bottom: 34px;
}

/* grid layanan */
.layanan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    align-items: stretch;
}

/* =========================
   CARD LAYANAN
========================= */
.layanan-card {
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;

    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);

    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.layanan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.14);
}

/* gambar atas */
.layanan-img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

/* body */
.layanan-body {
    padding: 18px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* judul card */
.layanan-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-dark, #003b99);
    margin: 0;
}

/* deskripsi */
.layanan-text {
    font-size: 14px;
    line-height: 1.65;
    color: #374151;
    margin: 0;
}

/* =========================
   RESPONSIVE
========================= */

/* tablet: jadi 2 kolom */
@media (max-width: 992px) {
    .layanan-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }
}

/* mobile: scroll horizontal (biar mirip gaya modern) */
@media (max-width: 640px) {
    .layanan-grid {
        display: flex;
        gap: 18px;

        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 12px;

        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .layanan-grid::-webkit-scrollbar {
        height: 6px;
    }
    .layanan-grid::-webkit-scrollbar-track {
        background: #f3f4f6;
        border-radius: 999px;
    }
    .layanan-grid::-webkit-scrollbar-thumb {
        background: #cbd5f5;
        border-radius: 999px;
    }

    .layanan-card {
        flex: 0 0 86%;
        max-width: 360px;
        scroll-snap-align: start;
    }
}
