html, body {
    height: 100%;
}

body {
    background-color: #f4f6f9;
    display: flex;
    flex-direction: column;
}

/* ================= NAVBAR ================= */
.navbar-custom {
    background: linear-gradient(90deg, #0b1f3a, #142f57);
    border: none;
    padding: 20px 0;
    transition: all 0.4s ease;
    position: fixed;
    width: 100%;
    z-index: 999;
}

/* Brand */
.navbar-custom .navbar-brand {
    color: #fff !important;
    font-weight: bold;
    font-size: 22px;
    letter-spacing: 0.5px;
    transition: 0.3s;
}

/* Menu navbar (desktop) */
.navbar-custom .navbar-nav > li > a {
    color: #fff !important;
    font-weight: 500;
    padding: 15px 12px;
    transition: 0.3s;
}

.navbar-custom .navbar-nav > li > a:hover {
    color: #ffd54f !important;
}

/* Search bar di navbar */
.navbar-custom .navbar-form {
    display: flex;
    align-items: center;
}

.navbar-custom .navbar-form .form-control {
    width: 250px;
    border-radius: 20px;
    padding: 6px 15px;
    border: none;
    outline: none;
}

.navbar-custom .navbar-form .btn {
    border-radius: 20px;
    padding: 6px 15px;
    background: #ffd54f;
    color: #0b1f3a;
    border: none;
    font-weight: bold;
    transition: 0.3s;
}

.navbar-custom .navbar-form .btn:hover {
    background: #ffc107;
    color: #0b1f3a;
}

/* ================= NAVBAR SAAT SCROLL ================= */
.navbar-custom.scrolled {
    padding: 10px 0;
    background: #0b1f3a;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.navbar-custom.scrolled .navbar-brand {
    font-size: 20px;
}

/* ================= CONTAINER LEBAR ================= */
.custom-container {
    max-width: 1500px;
    margin: 0 auto;
}

/* Hamburger mobile */
.menu-toggle {
    position: fixed;
    top: 12px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: #0b1f3a;
    border-radius: 5px;
    cursor: pointer;
    z-index: 10000;
    display: none; /* default hidden desktop */
    align-items: center;
    justify-content: center;
}

.menu-toggle span {
    font-size: 22px;
    color: #fff;
}

/* Sidebar mobile */
.sidebar-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: #0b1f3a;
    transition: 0.4s ease;
    z-index: 9999;
    padding-top: 60px;
    overflow-y: auto;
}

.sidebar-menu.active {
    right: 0;
}

/* Sidebar links */
.sidebar-menu a {
    display: block;
    padding: 15px 25px;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-menu a:hover {
    background: #142f57;
}

/* Sidebar search */
.sidebar-menu .sidebar-search {
    display: flex;
    margin: 15px 20px;
}

.sidebar-menu .sidebar-search input {
    flex: 1;
    padding: 6px 12px;
    border-radius: 20px;
    border: none;
    outline: none;
    margin-right: 5px;
}

.sidebar-menu .sidebar-search button {
    padding: 6px 12px;
    border-radius: 20px;
    border: none;
    background: #ffd54f;
    color: #0b1f3a;
    font-weight: bold;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 9998;
}

.overlay.active {
    display: block;
}

/* ================= CARD ================= */
.section-card {
    background: #fff;
    padding: 25px;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    margin: 30px 0;
}

.section-title {
    border-left: 5px solid #0b1f3a;
    padding-left: 10px;
    margin-bottom: 20px;
    font-weight: bold;
    color: #0b1f3a;
}

.section-card p,
.konten-berita {
    text-align: justify;
    line-height: 1.7;
}

/* ================= BERITA ================= */
.berita-item {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.berita-img {
    max-width: 100%;
    margin-bottom: 20px;
    border-radius: 5px;
}

/* ================= RUNNING TEXT ================= */
.running-text {
    background: #0b1f3a;
    color: #fff;
    padding: 8px;
    font-weight: 500;
}

/* ================= CAROUSEL ================= */
.carousel-caption {
    background: rgba(11,31,58,0.7);
    padding: 20px;
    border-radius: 6px;
}

.carousel-inner .item {
    background: transparent;
    text-align: center;
}

.carousel-inner .item img {
    max-width: 100%;
    height: auto;
    max-height: 450px;
    margin: 0 auto;
}

/* ================= TABLE ================= */
.table th, 
.table td {
    font-size: 12px;
    text-align: center;
}

/* ================= SEARCH ================= */
.navbar-form .form-control {
    width: 220px;
}

.search-desktop {
    display: block;
}

.search-mobile {
    display: none;
}

/* ================= FOOTER ================= */
.footer {
    background: #0b1f3a;
    color: #ffffff;
    padding: 25px 0;
    border-top: 4px solid #142f57;
    font-size: 14px;
    margin-top: auto;
}

.footer .footer-content {
    max-width: 1500px;
    margin: auto;
}

.footer a {
    color: #ffffff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* ================= SOSIAL ================= */
.social-icons i {
    font-size: 22px;
    margin-right: 12px;
    color: #0b1f3a;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 991px) {
    .search-desktop { display: none; }
    .navbar-custom .navbar-nav,
    .navbar-custom .navbar-form { display: none; }
    .menu-toggle { display: flex; }
}

@media (max-width: 768px) {
    .carousel-inner .item img {
        max-height: 250px;
    }

    .navbar-form {
        padding: 10px 15px;
    }

    #donutChart {
        max-width: 200px;
        margin: auto;
    }
}