body {
    background-color: #D7E6FA;
}

.visitor-table td {
    vertical-align: left;
}

.visitor-table>:not(caption)>*>* {
    padding-left: 0rem !important;
    padding-right: 0rem !important;
    padding-top: 0.3rem !important;
    padding-bottom: 0.3rem !important;
}

.visitor-stats .badge {
    font-size: 0.85rem;
    border-radius: 0.4rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.navbar-custom {
    background-color: #01357d !important;
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
    padding-left: 1rem;
    padding-right: 1rem;
    border-bottom: 8px solid #ffd700;
}

@media (min-width: 768px) and (max-width: 991px) {
    .navbar-custom {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 767.98px) {
    .navbar-custom {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

.navbar-brand img {
    border-radius: 50%;
    margin-right: 0.5rem;
}

.navbar-brand div {
    margin-left: 0.5rem;
    line-height: 1.1;
}

.navbar-brand span:first-child {
    font-weight: 600;
    color: #ffffff;
}

.navbar-brand span:last-child {
    text-transform: uppercase;
    font-size: 0.85rem;
    color: #dfe6f3;
}

.navbar-custom .nav-link {
    color: #ffffff !important;
    font-weight: 500;
    margin-right: 0.75rem;
    transition: color 0.3s ease;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: #ffd700 !important;
}

.navbar-custom .dropdown-menu {
    background-color: #012a63;
    border: none;
    border-radius: 0.5rem;
    min-width: 220px;
    padding: 0.5rem 0.75rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(10px);
    visibility: hidden;
    transition: all 0.25s ease;
}

.navbar-custom .dropdown-item {
    color: #ffffff;
    padding: 0.6rem 1rem;
    border-radius: 0.3rem;
    transition: background-color 0.2s ease;
}

.navbar-custom .dropdown-item:hover {
    background-color: #0145a2;
    color: #ffd700;
}

.navbar-custom .dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.navbar-custom .form-control {
    border-radius: 20px;
}

.navbar-custom .btn-outline-success {
    color: #ffffff;
    border-color: #ffffff;
}

.navbar-custom .btn-outline-success:hover {
    background-color: #ffd700;
    color: #01357d;
    border-color: #ffd700;
}

.navbar-custom .navbar-toggler {
    border-color: #ffffff;
}

.navbar-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar-custom .navbar-toggler:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-custom .navbar-toggler:focus {
    text-decoration: none;
    outline: 0;
    box-shadow: none;
}

.carousel-full {
    width: 100%;
    height: 70vh;
    overflow: hidden;
}

.carousel-full .carousel-item img {
    object-fit: cover;
    width: 100%;
    height: 70vh;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.4);
    padding: 1rem 2rem;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .carousel-full {
        height: 35vh;
    }

    .carousel-full .carousel-item img {
        height: 35vh;
    }

    .carousel-caption {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .carousel-full {
        height: 35vh;
    }

    .carousel-full .carousel-item img {
        height: 35vh;
    }
}

.marquee-container {
    width: 100%;
    background-color: #01357d;
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
    padding: 0.5rem 0;
    position: relative;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
}

.marquee {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 25s linear infinite;
}

.marquee span {
    font-weight: 500;
    font-size: 1rem;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

@media (max-width: 768px) {
    .marquee span {
        font-size: 0.9rem;
    }
}

.card:hover {
    transform: translateY(-4px);
    transition: 0.3s ease;
}

.btn-selengkapnya {
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 8px;
    margin-top: 1rem;
}

.card-pejabat {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
}

.card-pejabat img.pejabat-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.pejabat-info h6 {
    font-weight: 600;
    margin-bottom: 0;
}

.pejabat-info small {
    color: #6c757d;
}

.tautan-terkait {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 1rem;
    border-radius: 0 0 12px 12px;
}

.tautan-terkait h6 {
    font-weight: 600;
    color: #01357d;
    margin-bottom: 0.75rem;
}

.tautan-terkait .link-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: start;
}

.tautan-terkait .link-images a img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tautan-terkait .link-images a img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(1, 53, 125, 0.4);
}

@media (max-width: 768px) {
    .tautan-terkait .link-images a img {
        width: 70px;
        height: 70px;
    }
}

.section-heading {
    position: relative;
    z-index: 1;
    margin-bottom: 30px;
    color: #fff;
    background-color: #01357d;
    padding: 7px 10px;
    border-left: 10px solid #ffd700;
}

.pagination .page-link {
    color: #fff;
    /* warna teks (biru Bootstrap, bisa ubah misal #198754 untuk hijau) */
    background-color: #01357d;
    /* warna background default */
    border: 1px solid #01357d;
    /* border tipis */
}

/* Hover */
.pagination .page-link:hover {
    color: #000;
    background-color: #ffd700;
    /* warna biru saat hover */
    border-color: #ffd700;
}

/* Aktif */
.pagination .page-item.active .page-link {
    color: #000;
    background-color: #ffd700;
    /* warna aktif */
    border-color: #ffd700;
}

/* Disabled */
.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.pagination .page-link {
    border-radius: 6px;
    transition: all 0.2s ease;
}

.pagination .page-item {
    margin: 0 2px;
    /* ubah 4px jadi lebih besar/kecil sesuai kebutuhan */
}

/* Nested dropdown */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu>.dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
    display: none;
}

.dropdown-submenu:hover>.dropdown-menu {
    display: block;
}

/* Panah submenu */
.dropdown-submenu>.dropdown-toggle::after {
    float: right;
    margin-top: 7px;
    transform: rotate(-90deg);
}