body {

    margin: 0;
    background: #f2f5fa;
    font-size: 15px;
    font-weight: 400;
    color: #8A98AC;
    line-height: 1.5;
}

/* Header */
#header {
    background: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    z-index: 997;

}

/* Logo */
.logo img {
    height: 40px;
}

/* Navbar */
.navbar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;

}

.navbar .nav-link {
    padding: 10px 18px;
    color: #000000;
    font-weight: 600;
    font-size: medium;
    font-style: normal;
}



.navbar .nav-link:hover {
    color: #e91e63;
}

/* Logo center */
.logo-item img {
    height: 40px;
}

/* Megamenu */
.has-megamenu {
    position: static;
}

.megamenu {
    width: 100%;
    left: 0;
    right: 0;
    padding: 20px 30px;
    border: none;
    border-radius: 10;
    font-weight: 600;
}

.image-menu img {
    width: 100%;
    border-radius: 8px;
    background-color: #e8e9eb;
    padding: 50px;
}

.megamenu-item a {
    display: block;
    padding: 10px 0;
    color: #333;
    text-decoration: none;
}

.megamenu-item a:hover {
    color: #e91e63;
}



/* hero */
.hero-full {
    position: relative;
    height: 520px;
    overflow: hidden;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            rgba(180, 0, 0, 0.85),
            rgba(180, 0, 0, 0.45),
            rgba(0, 0, 0, 0.1));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    max-width: 800px;
    text-align: center;
}

.hero-content h1 {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.15;
}

.hero-content p {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.6;
}

/* main */
.section-wrapper {
    padding: 100px 0;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #000000;
    text-align: center;
}

.search-wrapper input:focus,
.search-wrapper select:focus {
    box-shadow: none;
}

.search-wrapper .form-control::placeholder {
    color: #aaa;
}

.search-wrapper select {
    cursor: pointer;
}

.highlight-pdf {
    background-color: #fff8e1;
    border-left: 4px solid #ffc107;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}


/* footer  */
.footer {
    background: rgba(244, 244, 244, 0.85);
    color: #000000;
    padding: 60px 0 30px;
}

.footer-text {
    font-size: 14px;
    line-height: 1.6;
}

.footer-title {
    color: #000000;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-links a {
    color: #000000;
    text-decoration: none;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-link {
    color: #000000;
    text-decoration: none;
    font-size: 14px;
}

.social-link:hover {
    color: #ffffff;
}

.footer-divider {
    border-color: #000000;
    margin: 30px 0 20px;
}

.footer-bottom {
    color: #000000;
    font-size: 13px;
}

.logo-center img {
    height: 36px;
}

/* Rapikan posisi arrow dropdown bahasa */
.nav-item.dropdown>.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    /* jarak flag & panah */
}

.nav-item.dropdown>.nav-link::after {
    margin-left: 0;
    vertical-align: middle;
}

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

/* Tablet & Mobile */
@media (max-width: 991px) {

    /* Header */
    #header {
        padding: 10px 0;
    }

    /* Navbar jadi column */
    .navbar ul {
        flex-direction: column;
        align-items: flex-start;
        background: #fff;
        padding: 15px;
        border-radius: 12px;
    }

    .navbar .nav-link {
        padding: 12px 0;
        width: 100%;
        font-size: 15px;
    }

    /* Logo tengah desktop disembunyikan */
    .logo-item {
        display: none !important;
    }

    /* Dropdown megamenu jadi normal */
    .has-megamenu {
        position: relative;
        width: 100%;
    }

    .megamenu {
        position: static;
        width: 100%;
        padding: 15px;
        box-shadow: none;
    }

    .image-menu {
        display: none;
    }

    .list-megamenu .col-sm-4 {
        width: 100%;
    }

    .megamenu-item a {
        padding: 8px 0;
        font-size: 14px;
    }
}

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

@media (max-width: 768px) {

    .hero-full {
        height: 420px;
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero-content h1 {
        font-size: 34px;
    }

    .hero-content p {
        font-size: 14px;
    }
}

/* ===============================
   MAIN CONTENT RESPONSIVE
================================ */

@media (max-width: 991px) {

    .container-fluid {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* Sidebar full width */
    .sidebar {
        position: relative;
        width: 100%;
        border-right: none;
        margin-bottom: 20px;
    }

    /* Nav pills rapih */
    .sidebar .nav-link {
        font-size: 14px;
        padding: 10px 12px;
    }

    /* Content area full */
    main {
        padding-left: 0 !important;
    }
}

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

@media (max-width: 992px) {
    .pdf-item {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .tab-pane .col-4 {
        width: 100%;
    }
}

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

@media (max-width: 768px) {

    .search-wrapper .row {
        gap: 12px;
    }

    #pdfSearch,
    #yearFilter {
        font-size: 14px;
    }
}

/* ===============================
   LANGUAGE DROPDOWN
================================ */

@media (max-width: 768px) {

    .nav-item.dropdown {
        align-self: flex-start;
    }

    .dropdown-menu {
        min-width: 160px;
    }
}

/* ===============================
   NAVBAR MOBILE FINAL
================================ */

.navbar-toggler {
    padding: 4px 6px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Icon hamburger */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(0,0,0,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* MOBILE ONLY */
@media (max-width: 991px) {

    .navbar-collapse {
        background: #fff;
        margin-top: 12px;
        padding: 16px 18px;
        border-radius: 16px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
    }

    .navbar-nav {
        gap: 6px;
    }

    .navbar-nav .nav-link {
        padding: 12px 6px;
        font-size: 15px;
        font-weight: 600;
    }

    /* Dropdown */
    .dropdown-menu {
        border: none;
        box-shadow: none;
        padding-left: 10px;
    }

    /* Mega menu jadi normal list */
    .megamenu {
        padding: 10px 0;
    }

    .image-menu {
        display: none;
    }

    .megamenu-item a {
        font-size: 14px;
        padding: 6px 0;
    }
}

/* ===============================
   FIX NAVBAR STRUCTURE MOBILE
================================ */

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Mobile only */
@media (max-width: 991px) {

    /* Pastikan logo kiri */
    .navbar-brand {
        margin-right: auto;
        padding: 0;
    }

    /* Hamburger kanan */
    .navbar-toggler {
        margin-left: auto;
    }

    /* UL JANGAN DI-FLEX COLUMN DI ROOT */
    .navbar-collapse .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    /* HAPUS BACKGROUND DI UL (pindah ke collapse) */
    .navbar ul {
        background: transparent;
        padding: 0;
    }
}
