/* =========================================================
   PC PERGUNU KABUPATEN KENDAL
   STYLE.CSS
   ========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #222;
}

/* ================= PREHEADER ================= */

.preheader {
    width: 100%;
    background: #fff;
    border-bottom: 4px solid #126b4b;
}

.preheader-inner {
    width: 100%;
    min-height: 145px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 10px 18px;
    overflow: hidden;
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.brand-logo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.logo-left {
    width: 120px;
}

.logo-nu {
    width: 120px;
}

.brand-title {
    min-width: 340px;
    flex: 1 1 420px;
    color: #08704e;
    line-height: 1.1;
    text-align: left;
}

.title-main {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 1px;
}

.title-sub {
    font-size: 27px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.title-location {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 2px;
}

.header-photo {
    width: 150px;
    height: 118px;
    flex: 0 0 150px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ================= NAVBAR ================= */

.navbar {
    width: 100%;
    background: #30343a;
    position: relative;
    z-index: 1000;
}

.nav-inner {
    width: 100%;
    max-width: 1400px;
    margin: auto;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.nav-link {
    color: #f4f4f4;
    text-decoration: none;
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0 17px;
    font-size: 16px;
    white-space: nowrap;
    transition: background .25s ease, color .25s ease;
}

.nav-link:hover,
.nav-link.active {
    background: #146c4d;
    color: #fff;
}

.nav-item {
    position: relative;
}

.arrow {
    font-size: 13px;
    margin-left: 5px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: #30343a;
    box-shadow: 0 7px 16px rgba(0,0,0,.22);
    border-top: 3px solid #146c4d;
}

.dropdown-menu a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 12px 15px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.dropdown-menu a:hover {
    background: #146c4d;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 27px;
    padding: 8px 15px;
    cursor: pointer;
}

/* ================= SLIDER ================= */

.slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #064e37;
}

.slides {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 1;
    min-height: 260px;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .65s ease-in-out;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 60px;
    border: 0;
    border-radius: 4px;
    background: rgba(0,0,0,.25);
    color: #fff;
    font-size: 25px;
    cursor: pointer;
    z-index: 10;
    transition: background .25s ease;
}

.slider-btn:hover {
    background: rgba(0,0,0,.55);
}

.slider-btn.prev {
    left: 15px;
}

.slider-btn.next {
    right: 15px;
}

.dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: rgba(255,255,255,.35);
    cursor: pointer;
    padding: 0;
}

.dot.active {
    background: #fff;
    transform: scale(1.15);
}

/* ================= CONTENT ================= */

.welcome {
    padding: 38px 20px 45px;
    background: #fff;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: auto;
    text-align: center;
}

.welcome h1 {
    color: #116d4e;
    font-size: 28px;
    margin-bottom: 12px;
}

.welcome p {
    max-width: 900px;
    margin: auto;
    line-height: 1.7;
    color: #555;
    font-size: 16px;
}

/* ================= FOOTER ================= */

.footer {
    background: #30343a;
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 14px;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1200px) {
    .preheader-inner {
        gap: 12px;
    }

    .logo-left,
    .logo-nu {
        width: 95px;
    }

    .brand-title {
        min-width: 250px;
    }

    .title-main {
        font-size: 16px;
    }

    .title-sub {
        font-size: 20px;
    }

    .title-location {
        font-size: 22px;
    }

    .header-photo {
        width: 110px;
        height: 95px;
        flex-basis: 110px;
    }

    .nav-link {
        padding: 0 10px;
        font-size: 14px;
    }
}

@media (max-width: 900px) {
    .preheader-inner {
        min-height: 105px;
        gap: 10px;
        padding: 8px;
    }

    .logo-left,
    .logo-nu {
        width: 70px;
    }

    .brand-title {
        min-width: 180px;
    }

    .title-main {
        font-size: 12px;
    }

    .title-sub {
        font-size: 15px;
    }

    .title-location {
        font-size: 17px;
    }

    .header-photo {
        width: 75px;
        height: 75px;
        flex-basis: 75px;
    }

    .nav-inner {
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .nav-link {
        font-size: 13px;
        padding: 0 7px;
    }
}

@media (max-width: 700px) {
    .preheader-inner {
        min-height: 90px;
        justify-content: space-between;
    }

    .logo-left {
        width: 55px;
    }

    .logo-nu {
        width: 55px;
    }

    .brand-title {
        min-width: 0;
        flex: 1;
        text-align: center;
    }

    .title-main {
        font-size: 9px;
    }

    .title-sub {
        font-size: 12px;
        letter-spacing: .4px;
    }

    .title-location {
        font-size: 14px;
        letter-spacing: .8px;
    }

    .header-photo {
        display: none;
    }

    .nav-inner {
        min-height: 50px;
        justify-content: flex-end;
    }

    .nav-inner > .nav-link,
    .nav-inner > .nav-item {
        display: none;
    }

    .nav-inner.mobile-open > .nav-link,
    .nav-inner.mobile-open > .nav-item {
        display: block;
        width: 100%;
    }

    .nav-inner.mobile-open {
        display: block;
    }

    .nav-inner.mobile-open .nav-link {
        min-height: 44px;
        padding: 0 18px;
    }

    .nav-item .dropdown-menu {
        position: static;
        box-shadow: none;
        width: 100%;
    }

    .nav-item.mobile-open .dropdown-menu {
        display: block;
    }

    .menu-toggle {
        display: block;
    }

    .slides {
        aspect-ratio: 16 / 9;
        min-height: 210px;
    }

    .slider-btn {
        width: 35px;
        height: 48px;
        font-size: 19px;
    }

    .dots {
        bottom: 9px;
        gap: 5px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .welcome h1 {
        font-size: 22px;
    }

    .welcome p {
        font-size: 14px;
    }
}

@media (max-width: 430px) {
    .title-main {
        font-size: 8px;
    }

    .title-sub {
        font-size: 10px;
    }

    .title-location {
        font-size: 12px;
    }

    .logo-left,
    .logo-nu {
        width: 45px;
    }

    .slides {
        min-height: 190px;
    }
}
