@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
    --primary-color: #0d6efd;
    --secondary-color: #f8f9fa;
    --text-color: #495057;
    --heading-color: #212529;
    --primary-blue: #2e51a2;
    --light-blue: #f0f5ff;
    --green-pasuruan: #338d24;
    --red-pasuruan: #f8725ae3;
}

body {
    font-family: "Poppins", sans-serif;
}

@media (max-width: 576px) {
    /* NAVBAR */
    .navbar {
        position: absolute;
        top: 15px;
        left: 50px;
        right: 50px;
        background-color: #fff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        border-radius: 12px;
        padding: 8px 20px;
        z-index: 1000;
    }
}

/* NAVBAR */
.navbar {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 8px 20px;
    z-index: 1000;
}

/* NAVBAR */
/* .navbar {
        position: absolute;
        background-color: #fff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        border-radius: 12px;
        margin: 15px;
        padding: 8px 20px;
        z-index: 1000;
        width: 96vw;
      } */

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: #003366 !important;
}

.navbar-brand img {
    height: 45px;
    margin-right: 10px;
}

.navbar-nav .nav-link {
    color: #6c757d !important;
    font-weight: 500;
    margin-right: 12px;
}

.navbar-nav .nav-link:hover {
    color: #003366 !important;
}

.btn-lang {
    background-color: #007bff;
    color: #fff;
    font-weight: 500;
    border-radius: 10px;
    padding: 6px 14px;
}

.btn-lang:hover {
    background-color: #0069d9;
    color: #fff;
}

.hero {
    position: relative;
    background: url("https://pasuruankab.go.id/download-file/203/banner/gambar_banner/0")
        no-repeat center center/cover;
    min-height: 420px;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
    height: 90vh;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3),
        rgba(0, 0, 0, 0.8)
    );
}

.hero-content {
    position: relative;
    max-width: 600px;
    margin-left: 12%;
    color: #fff;
    z-index: 2;
}

.hero h1 {
    font-weight: 700;
    font-size: 2rem;
    display: inline-block;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Cursor muncul hanya saat mengetik */
.typing {
    border-right: 3px solid #fff;
    animation: blinkCursor 0.7s steps(1) infinite;
}

@keyframes blinkCursor {
    50% {
        border-color: transparent;
    }
}

.hero p {
    color: #ddd;
    font-size: 1rem;
    margin-top: 10px;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 400px;
        text-align: center;
        justify-content: center;
        padding: 40px 20px;
    }

    .hero-content {
        margin: 0;
        max-width: 90%;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }
}

.section-search {
    display: flex;
    justify-content: center;
    margin-top: -20px;
    z-index: 100;
    width: 100%;
    padding: 0 15px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 850px;
    background: white;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 8px 10px;
}

.search-box .search-icon {
    position: absolute;
    left: 25px;
    color: #888;
    font-size: 18px;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 20px 14px 50px;
    border-radius: 30px;
    font-size: 16px;
    min-width: 0;
    width: 100%;
    /* penting agar tidak overflow di HP */
}

.search-box .button-group {
    display: flex;
    gap: 8px;
    margin-left: 8px;
}

.search-box .btn-search,
.search-box .btn-scan {
    border: none;
    border-radius: 30px;
    padding: 10px 20px;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    /* biar teks nggak kepotong */
    transition: background-color 0.3s ease;
}

.search-box .btn-search {
    background-color: var(--red-pasuruan);
}

.search-box .btn-search:hover {
    background-color: #0056b3;
}

.search-box .btn-scan {
    background-color: #28a745;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-box .btn-scan:hover {
    background-color: #1e7e34;
}

/* 📱 Responsive untuk layar kecil */
@media (max-width: 576px) {
    .search-box {
        padding: 6px 8px;
    }

    .search-box input {
        font-size: 14px;
        padding: 10px 15px 10px 40px;
    }

    .search-box .btn-search,
    .search-box .btn-scan {
        padding: 8px 14px;
        font-size: 14px;
    }

    .search-box .search-icon {
        left: 18px;
        font-size: 16px;
    }
}

@media (max-width: 991px) {
    .hero {
        border-radius: 0;
        margin: 0;
        min-height: 500px;
    }

    .hero-content {
        margin: 40px auto;
        text-align: center;
    }

    .card-highlight {
        background-color: var(--primary-blue);
        color: white;
    }

    .card-highlight .btn-warning {
        color: var(--heading-color);
        font-weight: 600;
    }
}

/* ====================== SECTION STEP CARD ====================== */

.section-step {
    min-height: 100vh;
    display: flex;
    align-items: center;
    /* tengah vertikal */
    justify-content: center;
    /* tengah horizontal */
    text-align: center;
    background-color: #fff;
    padding: 60px 0;
}

.section-step .container {
    max-width: 1100px;
}

.text-green-pas h3 {
    color: var(--green-pasuruan);
}

.text-red-pas {
    color: var(--red-pasuruan);
}

.text-green-pas {
    color: var(--green-pasuruan);
}

.step-card {
    border-radius: 15px;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 250px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.effect-shadow {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.effect-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.effect-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.icon-step {
    background-color: var(--red-pasuruan);
    color: #fff;
    font-size: 24px;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin-bottom: 15px;
}

.step-number {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 2rem;
    color: rgba(243, 156, 18, 0.15);
    font-weight: 700;
}

.arrow-next {
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    color: #f39c12;
    font-size: 1.5rem;
}

/* Responsif */
@media (max-width: 768px) {
    .section-step {
        min-height: 100vh;
        padding: 60px 15px;
    }

    .text-green-pas h3 {
        font-size: 1.3rem;
    }

    .step-card {
        min-height: auto;
        padding: 25px 5px;
    }

    .card-title {
        font-size: 10pt;
    }

    .step-number {
        font-size: 1.4rem;
        left: 15px;
    }

    .icon-step {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* ====================== SECTION STEP CARD ====================== */

/* ====================== SECTION BERITA & LAYANAN ====================== */

/* ====================== SECTION Service ====================== */

/* ====================== SECTION Hightlight ====================== */
.section-highlight {
    padding: 60px 0;
    background-color: #198754;
    color: #fff;
}

@media (max-width: 576px) {
    .service-card {
        border-radius: 15px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        background-color: #fff;
        color: #000;
        text-align: center;
        transition: transform 0.3s ease;
    }

    .services-section .card-title,
    .stretched-link {
        font-size: 12pt;
    }

    .services-section .stretched-link {
        font-size: 10pt;
    }
}

.services-section .nav-tabs .nav-link {
    border: 1px solid transparent;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    color: var(--red-pasuruan);
    font-weight: 600;
    margin: 0 0.5rem;
}

.services-section .nav-tabs .nav-link.active {
    background-color: var(--red-pasuruan);
    color: #fff;
    /* border-color: var(--primary-blue); */
}

.services-section {
    /* background-color: #1e5ab9; */
    /* color: #fff; */
    padding: 60px 0;
    display: flex;
    align-items: center;
    /* tengah vertikal */
    justify-content: center;
    /* tengah horizontal */
}

/* .service-card {
        border: none;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
      } */

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(46, 81, 162, 0.15);
}

.service-card .icon-wrapper {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    padding: 0;
    background-color: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red-pasuruan);
}

.service-card .card-title {
    color: var(--heading-color);
    font-weight: 600;
}

.service-card .card-text {
    font-size: 0.9rem;
    min-height: 50px;
}

.service-card .stretched-link {
    text-decoration: none;
    font-weight: 500;
    color: var(--red-pasuruan);
}

.service-card {
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    background-color: #fff;
    color: #000;
    padding: 0px;
    text-align: center;
    transition: transform 0.3s ease;
}

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

/* ====================== SECTION Hightlight ====================== */

/* ====================== SECTION TRANSPARANSI ====================== */
.section-transparency {
    background-color: #198754;
    color: #fff;
    padding: 60px 0;
    display: flex;
    align-items: center;
    /* tengah vertikal */
    justify-content: center;
    /* tengah horizontal */
}

.trans-card {
    background-color: #fff;
    color: #000;
    border-radius: 15px;
    padding: 25px;
    text-align: left;
    height: 100%;
}

/* ====================== SECTION TRANSPARANSI ====================== */

.nav-tabs {
    display: flex;
    flex-wrap: nowrap;
    /* cegah turun ke bawah */
    justify-content: center;
    gap: 8px;
    /* jarak antar tombol */
    overflow-x: auto;
    /* scroll kalau terlalu panjang */
    scrollbar-width: none;
    /* sembunyikan scrollbar di Firefox */
}

.nav-tabs::-webkit-scrollbar {
    display: none;
    /* sembunyikan scrollbar di Chrome/Safari */
}

.nav-tabs .nav-link {
    white-space: nowrap;
    flex: 1 1 auto;
    /* biar ukuran proporsional */
    text-align: center;
    border-radius: 30px;
    border: 1px solid #dee2e6;
    color: #333;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 10px 15px;
}

.nav-tabs .nav-link.active {
    background-color: var(--red-pasuruan);
    color: #fff;
    border-color: var(--red-pasuruan);
}

@media (max-width: 576px) {
    .nav-tabs {
        justify-content: space-between;
        /* ratakan kiri-kanan */
    }

    .nav-tabs .nav-link {
        flex: 0 0 48%;
        /* dua tombol pas di satu baris */
        font-size: 0.9rem;
        padding: 10px 8px;
    }
}

.section-support {
    background-color: #198754;
    color: #fff;
    padding: 60px 0;
}

.avatar.avatar-online {
    position: relative;
}

.avatar.avatar-online::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 2px;
    width: 10px;
    height: 10px;
    background-color: #28a745; /* warna hijau online */
    border: 2px solid #fff;
    border-radius: 50%;
}

.user-info h6 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #212529;
}

.user-info small {
    font-size: 0.75rem;
}

.bg-red-pas,
.bg-red-pas:hover {
    background-color: var(--red-pasuruan);
    border-color: var(--red-pasuruan);
}

.bg-green-pas,
.bg-green-pas:hover {
    background-color: var(--green-pasuruan);
    border-color: var(--green-pasuruan);
}

.navbar-nav .nav-link:hover {
    color: var(--green-pasuruan) !important;
}

.navbar-nav .nav-link.active {
    color: var(--green-pasuruan) !important;
}

.flex-fill-type-layanan:hover {
    border-color: var(--red-pasuruan) !important;
}
