/* ===== Global Styles ===== */
* {
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
}

/* ===== Topbar ===== */
.topbar {
    background-color: #0c2c63;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 55px;
    flex-wrap: wrap;
    gap: 10px;
}

.search-box {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    height: 32px;
}

.search-box input {
    padding: 6px 12px;
    border: none;
    border-radius: 20px 0 0 20px;
    outline: none;
    color: black;
    height: 100%;
    font-size: 12px;
}

.search-box button {
    padding: 0 12px;
    border: none;
    background: white;
    cursor: pointer;
    height: 100%;
    font-size: 14px;
    border-radius: 0 20px 20px 0;
}

.office-hours {
    font-size: 12px;
    text-align: center;
}

.social-icons a {
    color: white;
    margin-right: 10px;
    font-size: 18px;
    text-decoration: none;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #f7941e;
}

/* ===== Main Navigation ===== */
.main-nav {
    background: white;
    border-top: 3px solid #f7941e;
    padding: 0 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
}

.logo {
    height: 60px;
    display: flex;
    align-items: center;
}

.logo img {
    height: 100%;
    object-fit: contain;
}

/* ===== Hamburger Menu (Mobile) ===== */
.menu-toggle {
    display: none;
    font-size: 22px;
    background: none;
    border: none;
    color: #0c2c63;
    cursor: pointer;
}

/* ===== Navigation Links ===== */
.nav-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: #0c2c63;
    font-weight: bold;
    padding: 8px 10px;
    display: inline-block;
    font-size: 14px;
}

.nav-links a:hover,
.nav-links a.active {
    color: #f7941e;
}

/* ===== Dropdown Menus ===== */
.dropdown-menu,
.dropdown-submenu {
    display: none;
    position: absolute;
    background: white;
    top: 100%;
    left: 0;
    min-width: 160px;
    width: 90px;
    word-wrap: break-word;
    white-space: normal;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding: 5px 0;
}

.dropdown-submenu {
    top: 0;
    left: 100%;
}

/* Dropdown Link Styling */
.dropdown-menu li a,
.dropdown-submenu li a {
    color: #0c2c63;
    padding: 10px 12px;
    display: block;
    text-decoration: none;
    font-size: 14px;
    white-space: normal;
}

.dropdown-menu li a:hover,
.dropdown-submenu li a:hover {
    background: #f7941e;
    color: white;
}

/* Caret Icons */
.fa-caret-down,
.fa-caret-right {
    font-size: 10px;
    margin-left: 4px;
}

/* ===== Desktop Hover (>=768px) ===== */
@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }

    .nav-links {
        display: flex !important;
        flex-direction: row;
        justify-content: flex-end;
    }

    .dropdown:hover>.dropdown-menu,
    .submenu-parent:hover>.dropdown-submenu {
        display: block;
    }
}

/* ===== Mobile Toggle (<768px) ===== */
@media (max-width: 767px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        background: white;
        display: none;
        margin-top: 10px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links>li {
        width: 100%;
    }

    .dropdown-menu,
    .dropdown-submenu {
        position: relative;
        top: 0;
        left: 0;
        box-shadow: none;
        width: 100%;
    }

    .dropdown.open>.dropdown-menu,
    .submenu-parent.open>.dropdown-submenu {
        display: block;
    }

    .dropdown-menu li a,
    .dropdown-submenu li a {
        padding-left: 20px;
    }
}

.berita {
    padding: 60px;
}

.search-group {
    margin-top: -20px;
    max-width: 1500px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.search-group .form-control {
    border: none;
    padding: 12px 16px;
    font-size: 15px;
}

.search-group .input-group-text {
    border: none;
    background-color: transparent;
    padding-left: 16px;
}

.search-group .form-control:focus {
    box-shadow: none;
    border-color: transparent;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-filter {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 20px;
    border: 1px solid #18417F;
    background-color: white;
    color: #18417F;
    transition: all 0.3s ease;
}

.btn-filter:hover {
    background-color: #FF6B00;
    border-color: #FF6B00;
    color: white;
}

.btn-filter.active {
    background-color: #18417F;
    color: white;
    border-color: #18417F;
}

.hero-carousel {
    border-radius: 20px;
    overflow: hidden;
    height: 700px;
    position: relative;
}

.hero-carousel .carousel-item {
    position: relative;
    height: 700px;
}

.hero-carousel .bg-carousel {
    height: 100%;
    width: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-carousel .carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    background: linear-gradient(to top, #000000, rgba(0, 0, 0, 0));
    z-index: 2;
    text-align: left;
    transition: background 1s ease-in-out;
}

.hero-carousel .carousel-item:hover .carousel-caption {
    background: linear-gradient(to top, #18417F, rgba(0, 0, 0, 0));
}

.hero-carousel .meta {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.hero-carousel h5 {
    font-size: 25px;
    font-weight: 600;
    color: white;
    margin-bottom: 0;
}

.hero-carousel .carousel-indicators {
    position: absolute;
    bottom: 15px;
    justify-content: center;
    margin: 0 auto;
    width: 100%;
    z-index: 3;
}

.hero-carousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.6);
    transition: background-color 0.3s ease;
}

.hero-carousel .carousel-indicators .active {
    background-color: #fff;
}

.card-news {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 420px;
    color: white;
    transition: 0.3s ease;
}

.card-news .image {
    background-size: cover;
    background-position: center;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.card-news .overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, #000000, rgba(0, 0, 0, 0));
    transition: 0.3s ease;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.card-news:hover .overlay {
    background: linear-gradient(to top, #18417F, rgba(0, 0, 0, 0));
}

.card-news .meta {
    font-size: 14px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.card-news .eye-counter {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 2px 12px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.section-layanan {
    min-height: 50vh;
    display: flex;
    align-items: center;
    padding: 60px;
}

.text-area-layanan {
    padding-left: 60px;
}

.pictures-layanan {
    position: relative;
    border-radius: 12px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.30);
}

.pictures-layanan a {
    text-decoration: none;
}

.pictures-layanan img {
    width: 100%;
    height: auto;
    max-height: 600px;
    border-radius: 12px;
    object-fit: cover;
}

.img-wrapper {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
}

.img-hover-effect {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    transition: 0.3s ease-in-out;
}

.hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    border-radius: 12px;
}

.img-wrapper:hover .hover-overlay {
    opacity: 1;
}

.overlay-text {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    padding: 12px 24px;
}

.btn-kunjungi {
    margin-top: 50px;
    background-color: #18417F;
    color: #ffffff;
    font-weight: 500;
    padding: 12px;
    border-radius: 8px;
    transition: 0.3s ease;
    width: 100%;
}

.btn-kunjungi:hover {
    background-color: #1450A3;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.section-layanan h1 {
    font-size: 30px;
    font-weight: 700;
}

.section-layanan p {
    font-size: 18px;
    line-height: 1.6;
    text-align: justify;
}

.icon-list-layanan i {
    margin-right: 12px;
    color: #6c63ff;
}

.icon-list-layanan p {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.berita-content p {
    margin-bottom: 1rem;
}
