
:root {
    --blue: #2583f8;
    --blue-dark: #1555a0;
    --blue-soft: #eaf4ff;
    --blue-pale: #f4f9ff;
    --text: #18365e;
    --muted: #7186a4;
    --border: #dfebf9;
    --white: #ffffff;
    --body: #f8fbff;
    --shadow: 0 5px 22px rgba(33, 91, 160, .055);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    font-family: "Nunito Sans", Arial, sans-serif;
    background: var(--body);
    color: var(--text);
    font-size: 13px;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(1400px, calc(100% - 64px));
    margin: auto;
}

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.navbar {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 25px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
}

.brand-icon {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    border-radius: 12px;
    background: linear-gradient(135deg, #66b2ff, #1462db);
    color: white;
    font-size: 19px;
    box-shadow: 0 5px 12px #2583f826;
}

.brand strong {
    display: block;
    color: #235da5;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.15;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 11px;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex: 1;
}

.nav-link {
    position: relative;
    padding: 28px 0;
    color: #536b8e;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    transition: color .2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--blue);
}

.nav-link.active::after {
    content: "";
    position: absolute;
    height: 3px;
    bottom: 19px;
    left: 0;
    right: 0;
    background: var(--blue);
    border-radius: 10px;
}

.search-box {
    width: 195px;
    height: 38px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 12px;
    background: var(--blue-pale);
    border: 1px solid var(--border);
    border-radius: 30px;
    color: #7690b3;
}

.search-box input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text);
    font-size: 11px;
}

.search-box button,
.theme-toggle,
.mobile-toggle {
    border: 0;
    background: transparent;
    color: var(--blue-dark);
}

.theme-toggle {
    width: 30px;
    height: 36px;
    font-size: 17px;
}

.mobile-toggle {
    display: none;
    font-size: 20px;
}

/* HERO SLIDER */

main {
    padding: 25px 0 20px;
}

.hero-slider {
    height: 365px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #dcecff;
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 40px 7%;
    background-image: var(--hero-image);
    background-position: center;
    background-size: cover;
    opacity: 0;
    visibility: hidden;
    transition: opacity .65s ease, visibility .65s;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(9, 39, 76, .88) 0%,
        rgba(15, 58, 101, .70) 43%,
        rgba(16, 54, 95, .12) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(550px, 80%);
    color: white;
}

.category-tag {
    display: inline-block;
    padding: 5px 13px;
    border-radius: 20px;
    background: #1680ff;
    color: white;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .3px;
}

.hero-content h1 {
    margin: 13px 0 10px;
    font-size: clamp(25px, 3vw, 35px);
    line-height: 1.22;
    font-weight: 900;
    letter-spacing: -.5px;
}

.hero-content p {
    max-width: 510px;
    margin: 0 0 17px;
    color: rgba(255,255,255,.91);
    font-size: 13px;
    line-height: 1.75;
}

.btn-primary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 10px 19px;
    border: 0;
    border-radius: 30px;
    background: var(--blue);
    color: white;
    font-size: 12px;
    font-weight: 800;
    transition: background .2s, transform .2s;
}

.btn-primary:hover {
    background: #0868df;
    transform: translateY(-1px);
}

.slider-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 37px;
    height: 37px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.6);
    background: rgba(255,255,255,.17);
    color: white;
    transform: translateY(-50%);
    transition: background .2s;
}

.slider-arrow:hover {
    background: rgba(255,255,255,.35);
}

.slider-arrow.prev {
    left: 15px;
}

.slider-arrow.next {
    right: 15px;
}

.slider-dots {
    position: absolute;
    z-index: 4;
    bottom: 16px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 7px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.55);
}

.slider-dot.active {
    width: 20px;
    border-radius: 10px;
    background: white;
}

/* MAIN CONTENT */

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px;
    margin-top: 25px;
    align-items: start;
}

.section-heading {
    min-height: 31px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.section-heading h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 19px;
    font-weight: 900;
    white-space: nowrap;
}

.section-heading h2 i {
    color: var(--blue);
}

.heading-line {
    height: 1px;
    background: var(--border);
    flex: 1;
}

.see-all {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.result-count {
    color: var(--muted);
    font-size: 11px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.news-card {
    overflow: hidden;
    min-width: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 7px;
    box-shadow: 0 3px 12px rgba(35, 90, 150, .025);
    transition: transform .22s, box-shadow .22s, border-color .22s;
}

.news-card:hover {
    transform: translateY(-3px);
    border-color: #bfdcff;
    box-shadow: var(--shadow);
}

.news-card > img {
    width: 100%;
    height: 142px;
    object-fit: cover;
    background: var(--blue-soft);
    transition: transform .35s;
}

.news-card:hover > img {
    transform: scale(1.025);
}

.news-body {
    padding: 12px;
}

.category-label {
    display: inline-block;
    margin-bottom: 7px;
    padding: 3px 9px;
    background: #e6f2ff;
    border-radius: 20px;
    color: #1473df;
    font-size: 9px;
    font-weight: 900;
}

.news-body h3 {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.5;
}

.news-body h3 a:hover {
    color: var(--blue);
}

.news-meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 11px;
    color: #7d94b2;
    font-size: 10px;
}

.news-meta i {
    margin-right: 4px;
    color: #7898c3;
}

.news-body p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.65;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.empty-state {
    padding: 55px 20px;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.empty-state > i {
    color: var(--blue);
    font-size: 30px;
}

.empty-state h3 {
    margin-bottom: 5px;
}

.empty-state p {
    color: var(--muted);
}

/* SIDEBAR */

.sidebar {
    display: grid;
    gap: 14px;
}

.sidebar-panel,
.newsletter-panel {
    overflow: hidden;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--white);
}

.panel-heading {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 13px;
    font-size: 14px;
    font-weight: 900;
}

.panel-heading i {
    color: var(--blue);
    font-size: 16px;
}

.popular-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: popular;
}

.popular-list li {
    position: relative;
    padding: 0 0 12px 36px;
    margin-bottom: 12px;
    border-bottom: 1px solid #edf3fa;
    counter-increment: popular;
}

.popular-list li:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border: 0;
}

.popular-list li::before {
    content: counter(popular);
    position: absolute;
    left: 0;
    top: 2px;
    display: grid;
    place-items: center;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background: #e4f1ff;
    color: var(--blue);
    font-size: 11px;
    font-weight: 900;
}

.popular-list a {
    display: block;
}

.popular-list strong {
    display: block;
    font-size: 11px;
    line-height: 1.5;
    font-weight: 800;
}

.popular-list a:hover strong {
    color: var(--blue);
}

.popular-list small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
}

.category-list {
    display: grid;
    gap: 5px;
}

.category-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 10px;
    background: var(--white);
    border: 1px solid #eaf1fa;
    border-radius: 7px;
    color: #526c90;
    font-size: 11px;
    text-align: left;
    transition: background .2s, border-color .2s;
}

.category-filter:hover,
.category-filter.selected {
    background: var(--blue-soft);
    border-color: #b9d9ff;
    color: #1267c6;
}

.category-filter span {
    display: flex;
    align-items: center;
    gap: 9px;
}

.category-filter i {
    width: 18px;
    color: var(--blue);
}

.category-filter b {
    font-size: 10px;
}

.text-link {
    margin-top: 13px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
}

.text-link i {
    margin-left: 5px;
}

.newsletter-panel {
    background: linear-gradient(145deg, #eaf4ff, #f6faff);
}

.newsletter-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.newsletter-title > i {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    flex-shrink: 0;
    border-radius: 50%;
    background: white;
    color: var(--blue);
    font-size: 17px;
}

.newsletter-title h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 900;
}

.newsletter-panel > p {
    margin: 10px 0;
    color: var(--muted);
    font-size: 10px;
}

.newsletter-panel form {
    display: grid;
    gap: 7px;
}

.newsletter-panel input,
.footer-subscribe input {
    min-width: 0;
    width: 100%;
    height: 36px;
    padding: 0 11px;
    border: 1px solid #d8e6f7;
    border-radius: 6px;
    outline: none;
    background: white;
    color: var(--text);
    font-size: 11px;
}

.newsletter-panel input:focus,
.footer-subscribe input:focus {
    border-color: var(--blue);
}

.newsletter-panel form button {
    height: 35px;
    border: 0;
    border-radius: 6px;
    background: var(--blue);
    color: white;
    font-size: 11px;
    font-weight: 800;
}

.form-message {
    font-size: 10px !important;
}

/* INFORMASI */

.info-section {
    margin-top: 25px;
    padding: 19px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: linear-gradient(120deg, #eaf4ff, #f6faff);
}

.info-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.info-heading-icon,
.info-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 39px;
    height: 39px;
    border-radius: 50%;
    background: #d9ebff;
    color: var(--blue);
    font-size: 17px;
}

.info-heading h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 900;
}

.info-heading p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.info-heading .see-all {
    margin-left: auto;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 1px solid #dceafb;
    border-radius: 8px;
    background: white;
    transition: transform .2s, box-shadow .2s;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.info-card > span:last-child {
    min-width: 0;
}

.info-card strong,
.info-card small,
.info-card b {
    display: block;
}

.info-card strong {
    margin: 2px 0 7px;
    font-size: 11px;
    font-weight: 900;
}

.info-card small {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.6;
}

.info-card b {
    color: var(--blue);
    font-size: 10px;
}

/* FOOTER */

.site-footer {
    margin-top: 20px;
    padding-top: 28px;
    background: #f0f6fd;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr .8fr .9fr 1.25fr;
    gap: 45px;
    padding-bottom: 28px;
}

.footer-about > p,
.footer-subscribe > p {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.75;
}

.footer-about > p {
    max-width: 280px;
    margin: 13px 0;
}

.social-links {
    display: flex;
    gap: 14px;
    margin-top: 15px;
}

.social-links a {
    color: #41658f;
    font-size: 16px;
    transition: color .2s;
}

.social-links a:hover {
    color: var(--blue);
}

.footer-column h4,
.footer-subscribe h4 {
    margin: 4px 0 12px;
    font-size: 12px;
    font-weight: 900;
}

.footer-column a {
    display: block;
    margin: 7px 0;
    color: var(--muted);
    font-size: 11px;
}

.footer-column a:hover,
.footer-bottom a:hover {
    color: var(--blue);
}

.footer-subscribe > p {
    margin: 0 0 12px;
}

.footer-subscribe form {
    display: flex;
    padding: 4px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.footer-subscribe input {
    height: 31px;
    border: 0;
    flex: 1;
}

.footer-subscribe form button {
    width: 31px;
    flex-shrink: 0;
    border: 0;
    border-radius: 5px;
    background: var(--blue);
    color: white;
}

.footer-bottom {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    border-top: 1px solid #dce8f6;
    color: var(--muted);
    font-size: 10px;
}

.footer-bottom div {
    display: flex;
    gap: 12px;
}

/* DARK MODE */

body.dark-mode {
    --text: #e3edfc;
    --muted: #9eb1cc;
    --border: #2c4260;
    --white: #17263b;
    --body: #101c2e;
    --blue-soft: #203b5c;
    --blue-pale: #182b43;
    --shadow: 0 5px 22px rgba(0, 0, 0, .15);
}

.dark-mode .site-header {
    background: rgba(16, 28, 46, .95);
}

.dark-mode .brand strong {
    color: #8bc0ff;
}

.dark-mode .nav-link,
.dark-mode .search-box,
.dark-mode .theme-toggle,
.dark-mode .category-filter {
    color: var(--muted);
}

.dark-mode .category-label,
.dark-mode .popular-list li::before {
    background: #203c5d;
    color: #9dcaff;
}

.dark-mode .newsletter-panel,
.dark-mode .info-section {
    background: #172a42;
}

.dark-mode .info-card,
.dark-mode .newsletter-title > i,
.dark-mode .newsletter-panel input,
.dark-mode .footer-subscribe form {
    background: #17263b;
    border-color: var(--border);
}

.dark-mode .newsletter-panel input,
.dark-mode .footer-subscribe input {
    color: var(--text);
}

.dark-mode .site-footer {
    background: #131f32;
}

.dark-mode .popular-list li {
    border-color: var(--border);
}

.dark-mode .category-filter {
    background: #17263b;
    border-color: var(--border);
}

.dark-mode .category-filter:hover,
.dark-mode .category-filter.selected {
    background: #203b5c;
}

.dark-mode .footer-bottom {
    border-color: var(--border);
}

/* RESPONSIVE */

@media (max-width: 1200px) {
    .container {
        width: calc(100% - 40px);
    }

    .navbar {
        gap: 15px;
    }

    .nav-menu {
        gap: 12px;
    }

    .nav-link {
        font-size: 11px;
    }

    .brand strong {
        font-size: 20px;
    }

    .search-box {
        width: 160px;
    }

    .content-layout {
        grid-template-columns: minmax(0, 1fr) 270px;
        gap: 16px;
    }

    .news-grid {
        gap: 12px;
    }

    .news-card > img {
        height: 125px;
    }

    .news-body {
        padding: 10px;
    }
}

@media (max-width: 980px) {
    .navbar {
        flex-wrap: wrap;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .mobile-toggle {
        display: block;
        margin-left: auto;
    }

    .search-box {
        order: 3;
        flex: 1;
        width: auto;
    }

    .theme-toggle {
        order: 4;
    }

    .nav-menu {
        display: none;
        order: 5;
        width: 100%;
        flex: auto;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 5px;
        padding-top: 8px;
        border-top: 1px solid var(--border);
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-link {
        padding: 9px 12px;
        border-radius: 6px;
    }

    .nav-link.active {
        background: var(--blue-soft);
    }

    .nav-link.active::after {
        display: none;
    }

    .content-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .newsletter-panel {
        grid-column: 1 / -1;
    }

    .info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 25px;
    }
}

@media (max-width: 600px) {
    .container {
        width: calc(100% - 28px);
    }

    main {
        padding-top: 14px;
    }

    .navbar {
        gap: 10px;
    }

    .brand-icon {
        width: 35px;
        height: 35px;
    }

    .brand strong {
        font-size: 19px;
    }

    .brand small {
        font-size: 10px;
    }

    .hero-slider {
        height: 390px;
        border-radius: 9px;
    }

    .hero-slide {
        padding: 30px 23px;
        align-items: flex-end;
        padding-bottom: 55px;
        background-position: center;
    }

    .hero-overlay {
        background: linear-gradient(
            0deg,
            rgba(8, 34, 68, .94) 0%,
            rgba(10, 46, 82, .73) 55%,
            rgba(10, 46, 82, .12) 100%
        );
    }

    .hero-content {
        width: 100%;
    }

    .hero-content h1 {
        font-size: 26px;
    }

    .hero-content p {
        font-size: 12px;
    }

    .slider-arrow {
        top: 18px;
        transform: none;
        width: 31px;
        height: 31px;
    }

    .slider-arrow.prev {
        left: auto;
        right: 55px;
    }

    .slider-arrow.next {
        right: 15px;
    }

    .content-layout {
        margin-top: 20px;
    }

    .section-heading {
        flex-wrap: wrap;
        gap: 8px;
    }

    .section-heading h2 {
        font-size: 17px;
    }

    .heading-line {
        display: none;
    }

    .see-all {
        margin-left: auto;
    }

    .result-count {
        order: 4;
        width: 100%;
    }

    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .news-card > img {
        height: 115px;
    }

    .news-body {
        padding: 9px;
    }

    .news-body h3 {
        font-size: 11px;
    }

    .news-body p {
        font-size: 10px;
        -webkit-line-clamp: 3;
    }

    .news-meta {
        gap: 4px;
        font-size: 9px;
    }

    .sidebar {
        grid-template-columns: 1fr;
    }

    .newsletter-panel {
        grid-column: auto;
    }

    .info-section {
        padding: 13px;
    }

    .info-heading {
        flex-wrap: wrap;
    }

    .info-heading .see-all {
        width: 100%;
        margin-left: 51px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .info-card {
        padding: 12px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 25px 15px;
    }

    .footer-about,
    .footer-subscribe {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        padding: 13px 0;
        justify-content: center;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

/* NAVIGASI DROPDOWN */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    border: 0;
    background: transparent;
    color: #536b8e;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.nav-dropdown-toggle i {
    font-size: 9px;
    transition: transform .2s ease;
}

.nav-dropdown.open .nav-dropdown-toggle {
    color: #2583f8;
}

.nav-dropdown.open .nav-dropdown-toggle i {
    transform: rotate(180deg);
}

.nav-submenu {
    position: absolute;
    top: calc(100% + 10px);
    left: -16px;
    z-index: 1000;

    width: 225px;
    padding: 8px;

    background: #fff;
    border: 1px solid #dfebf9;
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(33, 91, 160, .14);

    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease,
                visibility .2s ease;
}

.nav-dropdown.open .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-submenu a {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 9px 12px;
    border-radius: 7px;

    color: #536b8e;
    font-size: 12px;
    font-weight: 600;

    transition: background .2s ease, color .2s ease;
}

.nav-submenu a:hover,
.nav-submenu a:focus {
    background: #eaf4ff;
    color: #2583f8;
}

.nav-submenu a + a {
    margin-top: 2px;
}

/* MOBILE */
@media (max-width: 950px) {
    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 12px 14px;
    }

    .nav-submenu {
        position: static;
        display: none;
        width: 100%;
        margin: 0;
        padding: 6px;
        border: 0;
        border-radius: 8px;
        box-shadow: none;
        background: #f5f9ff;

        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-dropdown.open .nav-submenu {
        display: block;
    }

    .nav-submenu a {
        padding-left: 22px;
    }
}

   
/* NAVIGASI DROPDOWN */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    border: 0;
    background: transparent;
    color: #536b8e;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.nav-dropdown-toggle i {
    font-size: 9px;
    transition: transform .2s ease;
}

.nav-dropdown.open .nav-dropdown-toggle {
    color: #2583f8;
}

.nav-dropdown.open .nav-dropdown-toggle i {
    transform: rotate(180deg);
}

.nav-submenu {
    position: absolute;
    top: calc(100% + 10px);
    left: -16px;
    z-index: 1000;

    width: 225px;
    padding: 8px;

    background: #fff;
    border: 1px solid #dfebf9;
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(33, 91, 160, .14);

    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease,
                visibility .2s ease;
}

.nav-dropdown.open .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-submenu a {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 9px 12px;
    border-radius: 7px;

    color: #536b8e;
    font-size: 12px;
    font-weight: 600;

    transition: background .2s ease, color .2s ease;
}

.nav-submenu a:hover,
.nav-submenu a:focus {
    background: #eaf4ff;
    color: #2583f8;
}

.nav-submenu a + a {
    margin-top: 2px;
}

/* MOBILE */
@media (max-width: 950px) {
    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 12px 14px;
    }

    .nav-submenu {
        position: static;
        display: none;
        width: 100%;
        margin: 0;
        padding: 6px;
        border: 0;
        border-radius: 8px;
        box-shadow: none;
        background: #f5f9ff;

        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-dropdown.open .nav-submenu {
        display: block;
    }

    .nav-submenu a {
        padding-left: 22px;
    }
}

/* Semua menu navigasi */
.nav-menu .nav-link {
    position: relative;
    text-decoration: none;
}

/* Garis biru: awalnya tersembunyi */
.nav-menu .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #1685ff;
    transition: width 0.25s ease;
}

/* Garis hanya muncul saat hover */
.nav-menu .nav-link:hover::after {
    width: 100%;
}

/* Hilangkan garis statis pada menu aktif */
.nav-menu .nav-link.active::after {
    width: 0;
}

/* Nasional: tetap bisa hover */
.nav-menu .nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    cursor: pointer;
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
    text-decoration: none;
    font: inherit;
}

/* Dropdown */
.nav-menu .nav-dropdown {
    position: relative;
}

.nav-menu .nav-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
}

/* ================================
   MOBILE NAVIGATION
================================ */
@media (max-width: 768px) {

    /* Container menu mobile */
    .nav-menu {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding: 12px 16px;
        gap: 0;
        background: #fff;
        box-sizing: border-box;
    }

    /* Jika menu dibuka menggunakan class active */
    .nav-menu.active {
        display: flex;
    }

    /* Semua link menu */
    .nav-menu > .nav-link,
    .nav-menu .nav-dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 44px;
        padding: 12px 8px;
        box-sizing: border-box;
        text-align: left;
        white-space: normal;
        border: none;
        background: transparent;
    }

    /* Dropdown Nasional */
    .nav-menu .nav-dropdown {
        display: block;
        width: 100%;
        position: relative;
    }

    /* Submenu dalam alur vertikal */
    .nav-menu .nav-submenu {
        display: none;
        position: static;
        width: 100%;
        margin: 0;
        padding: 4px 0 8px 16px;
        box-sizing: border-box;
        background: #f7f9fc;
        border: none;
        box-shadow: none;
    }

    /* Buka submenu saat dropdown aktif */
    .nav-menu .nav-dropdown.open .nav-submenu {
        display: block;
    }

    /* Link di dalam submenu */
    .nav-menu .nav-submenu a {
        display: block;
        padding: 11px 12px;
        line-height: 1.4;
        white-space: normal;
        text-decoration: none;
        border-bottom: 1px solid #edf0f5;
    }

    .nav-menu .nav-submenu a:last-child {
        border-bottom: none;
    }

    /* Garis hover tidak memenuhi lebar menu */
    .nav-menu .nav-link::after,
    .nav-menu .nav-dropdown-toggle::after {
        bottom: 4px;
    }

    .nav-menu .nav-link:hover::after,
    .nav-menu .nav-dropdown-toggle:hover::after {
        width: calc(100% - 16px);
    }
}

@media (max-width: 768px) {
    .nav-menu .nav-dropdown.open .nav-submenu {
        display: block;
    }
}

/* DESKTOP: submenu muncul saat hover */
@media (min-width: 769px) {
    .nav-menu .nav-dropdown {
        position: relative;
    }

    .nav-menu .nav-dropdown:hover .nav-submenu,
    .nav-menu .nav-dropdown:focus-within .nav-submenu,
    .nav-menu .nav-dropdown.open .nav-submenu {
        display: block;
    }

    .nav-menu .nav-submenu {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
        min-width: 200px;
    }
}

/* MOBILE: submenu dibuka dengan klik */
@media (max-width: 768px) {
    .nav-menu .nav-dropdown .nav-submenu {
        display: none;
        position: static;
        width: 100%;
    }

    .nav-menu .nav-dropdown.open .nav-submenu {
        display: block;
    }
}

/* DESKTOP: submenu muncul saat hover */
@media (min-width: 769px) {
    .nav-menu .nav-dropdown {
        position: relative;
    }

    .nav-menu .nav-dropdown:hover .nav-submenu,
    .nav-menu .nav-dropdown:focus-within .nav-submenu,
    .nav-menu .nav-dropdown.open .nav-submenu {
        display: block;
    }

    .nav-menu .nav-submenu {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
        min-width: 200px;
    }
}

/* MOBILE: submenu dibuka dengan klik */
@media (max-width: 768px) {
    .nav-menu .nav-dropdown .nav-submenu {
        display: none;
        position: static;
        width: 100%;
    }

    .nav-menu .nav-dropdown.open .nav-submenu {
        display: block;
    }
}
@media (max-width: 768px) {
    #navMenu .nav-dropdown {
        display: block;
        position: relative;
        width: 100%;
    }

    #navMenu .nav-dropdown-toggle {
        display: flex;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
    }

    #navMenu .nav-dropdown .nav-submenu {
        display: none;
        position: static;
        width: 100%;
        height: auto;
        margin: 0;
        padding: 6px 0 6px 16px;
        background: #f7f9fc;
        box-shadow: none;
        visibility: visible;
        opacity: 1;
        transform: none;
    }

    #navMenu .nav-dropdown.open .nav-submenu {
        display: block !important;
    }
}


/* =================================
   GENKSI NAVBAR - PURE CSS
================================= */

#mainNavbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    background: #ffffff;
    border-bottom: 1px solid #edf1ef;
    box-shadow: 0 3px 15px rgba(35, 65, 55, 0.045);
    font-family: Arial, Helvetica, sans-serif;
}

#mainNavbar * {
    box-sizing: border-box;
}

#mainNavbar .nav-container {
    max-width: 1240px;
    min-height: 70px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* LOGO DAN BRAND */
#mainNavbar .nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    text-decoration: none;
    color: #25483f;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.15px;
}

#mainNavbar .nav-brand img {
    display: block;
    width: auto;
    height: 36px;
    object-fit: contain;
}

/* MENU UTAMA */
#mainNavbar .nav-menu {
    display: flex;
    align-items: center;
    gap: 3px;
}

#mainNavbar .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 10px 11px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #53645e;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

#mainNavbar .nav-link:hover,
#mainNavbar .nav-link:focus-visible,
#mainNavbar .nav-dropdown.is-open > .nav-link {
    color: #168a72;
    background: #f0f8f5;
    outline: none;
}

/* DROPDOWN */
#mainNavbar .nav-dropdown {
    position: relative;
}

#mainNavbar .nav-dropdown-toggle {
    appearance: none;
}

#mainNavbar .nav-arrow {
    width: 7px;
    height: 7px;
    margin-top: -4px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

#mainNavbar .nav-dropdown.is-open .nav-arrow {
    margin-top: 4px;
    transform: rotate(225deg);
}

/* PANEL SUBMENU */
#mainNavbar .nav-submenu {
    display: none;
    position: absolute;
    top: calc(100% + 7px);
    left: 0;
    width: 250px;
    padding: 7px;
    background: #ffffff;
    border: 1px solid #edf1ef;
    border-radius: 11px;
    box-shadow: 0 12px 28px rgba(35, 65, 55, 0.09);
}

#mainNavbar .nav-dropdown.is-open .nav-submenu {
    display: block;
}

#mainNavbar .nav-submenu a {
    display: block;
    padding: 10px 12px;
    border-radius: 7px;
    color: #53645e;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease;
}

#mainNavbar .nav-submenu a:hover,
#mainNavbar .nav-submenu a:focus-visible {
    color: #168a72;
    background: #f0f8f5;
    outline: none;
}

/* TOMBOL HAMBURGER */
#mainNavbar .nav-toggle {
    display: none;
    width: 40px;
    height: 38px;
    padding: 9px;
    border: 1px solid #e4ebe7;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
}

#mainNavbar .nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    border-radius: 2px;
    background: #31594d;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

#mainNavbar .nav-toggle.is-active span:first-child {
    transform: translateY(6px) rotate(45deg);
}

#mainNavbar .nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

#mainNavbar .nav-toggle.is-active span:last-child {
    transform: translateY(-6px) rotate(-45deg);
}

/* TABLET DAN HP */
@media (max-width: 991px) {
    #mainNavbar .nav-container {
        min-height: 64px;
        padding: 0 16px;
        flex-wrap: wrap;
        gap: 0;
    }

    #mainNavbar .nav-brand {
        font-size: 13px;
        gap: 8px;
    }

    #mainNavbar .nav-brand img {
        height: 32px;
    }

    #mainNavbar .nav-toggle {
        display: block;
        flex-shrink: 0;
    }

    #mainNavbar .nav-menu {
        display: none;
        flex: 0 0 100%;
        width: 100%;
        padding: 10px 0 14px;
        flex-direction: column;
        align-items: stretch;
        gap: 3px;
        border-top: 1px solid #f0f3f1;
    }

    #mainNavbar .nav-menu.is-open {
        display: flex;
    }

    #mainNavbar .nav-link {
        display: flex;
        justify-content: space-between;
        width: 100%;
        min-height: 42px;
        padding: 11px 12px;
        text-align: left;
        white-space: normal;
    }

    #mainNavbar .nav-dropdown {
        width: 100%;
    }

    #mainNavbar .nav-submenu {
        position: static;
        width: 100%;
        margin: 3px 0 7px;
        padding: 5px;
        border: 0;
        border-radius: 8px;
        background: #f8fbf9;
        box-shadow: none;
    }

    #mainNavbar .nav-submenu a {
        padding: 11px 14px;
    }
}

/* HP KECIL */
@media (max-width: 380px) {
    #mainNavbar .nav-brand {
        font-size: 11px;
    }

    #mainNavbar .nav-brand img {
        height: 29px;
    }
}



@media (max-width: 991px) {
    body {
        padding-top: 64px;
    }
}



/* ===== PERBAIKAN DROPDOWN SUBMENU ===== */

#mainNavbar .nav-dropdown {
    position: relative;
}

#mainNavbar .nav-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 260px;
    padding: 8px;
    margin: 0;
    background: #ffffff;
    border: 1px solid #edf1ef;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(35, 65, 55, 0.10);
    z-index: 9999;
}

/* Desktop: tampil saat hover atau fokus */
@media (min-width: 992px) {
    #mainNavbar .nav-dropdown:hover .nav-submenu,
    #mainNavbar .nav-dropdown:focus-within .nav-submenu,
    #mainNavbar .nav-dropdown.is-open .nav-submenu {
        display: block !important;
    }
}

/* HP: tampil ketika diklik */
@media (max-width: 991px) {
    #mainNavbar .nav-submenu {
        position: static;
        width: 100%;
        margin-top: 4px;
        box-shadow: none;
        background: #f8fbf9;
    }

    #mainNavbar .nav-dropdown.is-open .nav-submenu {
        display: block !important;
    }
}


/* =====================================
   FIX SUBMENU DESKTOP - HOVER
===================================== */

@media screen and (min-width: 992px) {

    #mainNavbar .nav-menu {
        overflow: visible !important;
    }

    #mainNavbar .nav-dropdown {
        position: relative !important;
    }

    /* Jembatan agar submenu tidak tertutup
       saat mouse bergerak ke bawah */
    #mainNavbar .nav-dropdown::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 12px;
    }

    #mainNavbar .nav-dropdown .nav-submenu {
        display: block !important;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;

        position: absolute !important;
        top: 100% !important;
        left: 0 !important;

        width: 260px;
        margin-top: 8px !important;
        padding: 8px;

        background: #ffffff;
        border: 1px solid #edf1ef;
        border-radius: 10px;
        box-shadow: 0 10px 25px rgba(35, 65, 55, 0.10);

        z-index: 99999;

        transition: opacity 0.18s ease,
                    visibility 0.18s ease;
    }

    /* Munculkan submenu ketika hover */
    #mainNavbar .nav-dropdown:hover .nav-submenu,
    #mainNavbar .nav-dropdown:focus-within .nav-submenu,
    #mainNavbar .nav-dropdown.is-open .nav-submenu {
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}


/* DARK MODE TOGGLE */
#mainNavbar .dark-mode-toggle {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: auto;
    border: 1px solid #e4ebe7;
    border-radius: 50%;
    background: #ffffff;
    color: #53645e;
    font-size: 20px;
    cursor: pointer;
    transition: all .2s ease;
}

#mainNavbar .dark-mode-toggle:hover {
    background: #f0f8f5;
    color: #168a72;
}

/* Posisi tombol dan hamburger di HP */
@media (max-width: 991px) {
    #mainNavbar .dark-mode-toggle {
        margin-left: auto;
        margin-right: 10px;
    }

    #mainNavbar .nav-toggle {
        margin-left: 0;
    }
}

/* DARK MODE HALAMAN */
body.dark-mode {
    background: #17221f;
    color: #e6eeea;
}

body.dark-mode #mainNavbar {
    background: #1d2b26;
    border-bottom-color: #304139;
}

body.dark-mode #mainNavbar .brand-title,
body.dark-mode #mainNavbar .nav-link {
    color: #e1ebe5 !important;
}

body.dark-mode #mainNavbar .nav-link:hover,
body.dark-mode #mainNavbar .nav-link:focus,
body.dark-mode #mainNavbar .nav-dropdown.is-open > .nav-link {
    background: #2b4037;
    color: #8fe0c3 !important;
}

body.dark-mode #mainNavbar .nav-submenu {
    background: #1d2b26;
    border-color: #304139;
}

body.dark-mode #mainNavbar .nav-submenu a {
    color: #d5e1da;
}

body.dark-mode #mainNavbar .nav-submenu a:hover {
    background: #2b4037;
    color: #8fe0c3;
}

body.dark-mode #mainNavbar .nav-toggle,
body.dark-mode #mainNavbar .dark-mode-toggle {
    background: #263a31;
    border-color: #405449;
    color: #f5d77b;
}

body.dark-mode #mainNavbar .nav-toggle span {
    background: #e1ebe5;
}

body.dark-mode #mainNavbar .nav-menu {
    border-top-color: #304139;
}

@media (max-width: 991px) {
    body.dark-mode #mainNavbar .nav-menu {
        background: #1d2b26;
    }

    body.dark-mode #mainNavbar .nav-submenu {
        background: #17221f;
    }
}


/* =========================================
   GENKSI NAVBAR - PERBAIKAN FINAL
========================================= */

#mainNavbar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #edf1ef;
    box-shadow: 0 3px 15px rgba(35, 65, 55, .06);
    font-family: "Nunito Sans", Arial, sans-serif;
}

#mainNavbar,
#mainNavbar * {
    box-sizing: border-box;
}

#mainNavbar .nav-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: 1240px;
    min-height: 70px;
    margin: 0 auto;
    padding: 0 22px;
}

#mainNavbar .nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    color: #25483f;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

#mainNavbar .nav-brand img {
    display: block;
    width: auto;
    height: 36px;
    object-fit: contain;
}

#mainNavbar .nav-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    margin-left: auto;
    overflow: visible;
}

#mainNavbar .nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 10px 11px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #53645e;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

#mainNavbar .nav-link:hover,
#mainNavbar .nav-link:focus-visible,
#mainNavbar .nav-dropdown.is-open > .nav-link {
    color: #168a72;
    background: #f0f8f5;
}

#mainNavbar .nav-dropdown {
    position: relative;
}

#mainNavbar .nav-arrow {
    width: 7px;
    height: 7px;
    margin-top: -4px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s ease;
}

#mainNavbar .nav-dropdown.is-open .nav-arrow {
    margin-top: 4px;
    transform: rotate(225deg);
}

#mainNavbar .nav-submenu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 1100;
    width: 260px;
    margin: 0;
    padding: 8px;
    border: 1px solid #edf1ef;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(35, 65, 55, .10);
}

#mainNavbar .nav-submenu a {
    display: block;
    padding: 10px 12px;
    border-radius: 7px;
    color: #53645e;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
}

#mainNavbar .nav-submenu a:hover,
#mainNavbar .nav-submenu a:focus-visible {
    color: #168a72;
    background: #f0f8f5;
}

#mainNavbar .nav-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
}

#mainNavbar .dark-mode-toggle,
#mainNavbar .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid #e4ebe7;
    border-radius: 50%;
    background: #fff;
    color: #53645e;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

#mainNavbar .dark-mode-toggle {
    font-size: 20px;
}

#mainNavbar .dark-mode-toggle:hover,
#mainNavbar .nav-toggle:hover {
    background: #f0f8f5;
    color: #168a72;
}

#mainNavbar .nav-toggle {
    display: none;
    border-radius: 8px;
}

#mainNavbar .nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 2px;
    background: #31594d;
    transition: transform .2s ease, opacity .2s ease;
}

#mainNavbar .nav-toggle {
    flex-direction: column;
}

#mainNavbar .nav-toggle.is-active span:first-child {
    transform: translateY(6px) rotate(45deg);
}

#mainNavbar .nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

#mainNavbar .nav-toggle.is-active span:last-child {
    transform: translateY(-6px) rotate(-45deg);
}

/* Desktop: submenu melalui hover atau keyboard */
@media (min-width: 992px) {
    #mainNavbar .nav-dropdown:hover > .nav-submenu,
    #mainNavbar .nav-dropdown:focus-within > .nav-submenu,
    #mainNavbar .nav-dropdown.is-open > .nav-submenu {
        display: block;
    }

    #mainNavbar .nav-dropdown::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 10px;
    }
}

/* Tablet dan HP */
@media (max-width: 991px) {
    #mainNavbar .nav-container {
        min-height: 64px;
        flex-wrap: wrap;
        gap: 0;
        padding: 0 14px;
    }

    #mainNavbar .nav-brand {
        max-width: calc(100% - 100px);
        font-size: 12px;
    }

    #mainNavbar .nav-brand img {
        height: 32px;
    }

    #mainNavbar .nav-actions {
        margin-left: auto;
    }

    #mainNavbar .nav-toggle {
        display: inline-flex;
    }

    #mainNavbar .nav-menu {
        display: none;
        flex: 0 0 100%;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        margin: 0;
        padding: 10px 0 14px;
        border-top: 1px solid #edf1ef;
        gap: 3px;
    }

    #mainNavbar .nav-menu.is-open {
        display: flex;
    }

    #mainNavbar .nav-menu > .nav-link,
    #mainNavbar .nav-dropdown-toggle {
        display: flex;
        justify-content: space-between;
        width: 100%;
        min-height: 44px;
        padding: 11px 12px;
        text-align: left;
        white-space: normal;
    }

    #mainNavbar .nav-dropdown {
        width: 100%;
    }

    #mainNavbar .nav-submenu {
        display: none;
        position: static;
        width: 100%;
        margin: 3px 0 7px;
        padding: 5px;
        border: 0;
        border-radius: 8px;
        background: #f8fbf9;
        box-shadow: none;
    }

    #mainNavbar .nav-dropdown.is-open > .nav-submenu {
        display: block;
    }

    #mainNavbar .nav-submenu a {
        padding: 11px 14px;
        white-space: normal;
    }
}

/* Jarak konten di bawah navbar fixed */
body {
    {{-- padding-top: 70px; --}}
}

@media (max-width: 991px) {
    body {
        padding-top: 64px;
    }
}

/* =========================================
   DARK MODE
========================================= */

body.dark-mode {
    background: #17221f;
    color: #e6eeea;
}

body.dark-mode #mainNavbar {
    background: #1d2b26;
    border-bottom-color: #304139;
}

body.dark-mode #mainNavbar .nav-brand,
body.dark-mode #mainNavbar .nav-link {
    color: #e1ebe5;
}

body.dark-mode #mainNavbar .nav-link:hover,
body.dark-mode #mainNavbar .nav-link:focus-visible,
body.dark-mode #mainNavbar .nav-dropdown.is-open > .nav-link {
    color: #8fe0c3;
    background: #2b4037;
}

body.dark-mode #mainNavbar .nav-submenu {
    background: #1d2b26;
    border-color: #304139;
}

body.dark-mode #mainNavbar .nav-submenu a {
    color: #d5e1da;
}

body.dark-mode #mainNavbar .nav-submenu a:hover {
    color: #8fe0c3;
    background: #2b4037;
}

body.dark-mode #mainNavbar .dark-mode-toggle,
body.dark-mode #mainNavbar .nav-toggle {
    background: #263a31;
    border-color: #405449;
    color: #f5d77b;
}

body.dark-mode #mainNavbar .nav-toggle span {
    background: #e1ebe5;
}

body.dark-mode #mainNavbar .nav-menu {
    border-top-color: #304139;
}

@media (max-width: 991px) {
    body.dark-mode #mainNavbar .nav-menu {
        background: #1d2b26;
    }

    body.dark-mode #mainNavbar .nav-submenu {
        background: #17221f;
    }
}
```css
/* =========================================
   HAMBURGER GENKSI - FINAL
========================================= */

#mainNavbar .nav-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
}

#mainNavbar .nav-toggle {
    display: none;
    box-sizing: border-box;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    margin: 0;

    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;

    border: 1px solid #e3ece7;
    border-radius: 9px;
    background: #fff;
    cursor: pointer;

    transition: background .2s ease, border-color .2s ease;
}

#mainNavbar .nav-toggle:hover {
    background: #f0f8f5;
    border-color: #b9dfd1;
}

#mainNavbar .nav-toggle span {
    display: block;
    flex: 0 0 2px;
    width: 17px;
    height: 2px;
    margin: 0;
    padding: 0;
    border-radius: 2px;
    background: #31594d;
    transform-origin: center;
    transition: transform .25s ease, opacity .18s ease;
}

#mainNavbar .nav-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

#mainNavbar .nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

#mainNavbar .nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* MOBILE */
@media (max-width: 991px) {
    #mainNavbar .nav-container {
        min-height: 64px;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 0;
    }

    #mainNavbar .nav-actions {
        margin-left: auto;
        min-height: 64px;
        align-self: stretch;
    }

    #mainNavbar .nav-toggle {
        display: flex;
    }

    #mainNavbar .nav-menu {
        display: none;
        flex: 0 0 100%;
        width: 100%;
        margin: 0;
        padding: 10px 0 14px;
        flex-direction: column;
        align-items: stretch;
        gap: 3px;
        border-top: 1px solid #edf1ef;
    }

    #mainNavbar .nav-menu.is-open {
        display: flex;
    }
}
/* GENKSI ACCOUNT - SOFT BLUE */

.genksi-account {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    font-family: 'Nunito', sans-serif;
}

.genksi-account-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 10px;
    transition: .2s ease;
}

.genksi-account-trigger:hover,
.genksi-account.is-open .genksi-account-trigger {
    color: #2563eb;
    background: #eff6ff;
}

.genksi-account-avatar {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #dbeafe;
}

.genksi-account-guest {
    color: #3b82f6;
    font-size: 21px;
}

.genksi-account-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 225px;
    padding: 7px;
    background: #fff;
    border: 1px solid #e2eaf5;
    border-radius: 13px;
    box-shadow: 0 12px 35px rgba(30, 64, 175, .15);
    z-index: 9999;
}

.genksi-account.is-open .genksi-account-dropdown {
    display: block;
}

.genksi-account-header {
    padding: 12px;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #eff6ff, #f8fbff);
    border-radius: 9px;
}

.genksi-account-header strong,
.genksi-account-header small {
    display: block;
}

.genksi-account-header strong {
    color: #1e40af;
    font-size: 13px;
}

.genksi-account-header small {
    margin-top: 3px;
    color: #64748b;
    font-size: 11px;
    overflow-wrap: anywhere;
}

.genksi-account-dropdown > a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: .2s ease;
}

.genksi-account-dropdown > a > i {
    width: 17px;
    color: #6095e8;
    text-align: center;
    font-size: 15px;
}

.genksi-account-dropdown > a:hover {
    color: #2563eb;
    background: #eff6ff;
}

.genksi-account-divider {
    height: 1px;
    margin: 6px 5px;
    background: #e8eef7;
}

.genksi-account-dropdown > a.genksi-account-logout {
    color: #dc5252;
}

.genksi-account-dropdown > a.genksi-account-logout > i {
    color: #dc5252;
}

.genksi-account-dropdown > a.genksi-account-logout:hover {
    background: #fff1f2;
}

@media (max-width: 767px) {
    .genksi-account {
        display: block;
        width: 100%;
    }

    .genksi-account-trigger {
        padding: 10px 12px;
    }

    .genksi-account-dropdown {
        position: static;
        width: 100%;
        margin-top: 5px;
        box-shadow: none;
    }
}
/* =====================================
   GENKSI ACCOUNT - MOBILE
===================================== */

@media (max-width: 767px) {

    .genksi-account {
        display: block;
        width: 100%;
        margin: 4px 0;
    }

    .genksi-account-trigger {
        display: flex;
        width: 100%;
        box-sizing: border-box;
        padding: 11px 14px;
        gap: 10px;
        border-radius: 10px;
        font-size: 13px;
    }

    .genksi-account-avatar {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
    }

    .genksi-account-trigger span {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        text-align: left;
    }

    .genksi-account-trigger > i:last-child {
        margin-left: auto;
    }

    /* Dropdown masuk ke alur menu mobile */
    .genksi-account-dropdown {
        position: static;
        width: auto;
        margin: 5px 0 8px 10px;
        padding: 7px;
        border: 1px solid #e2eaf5;
        border-radius: 11px;
        background: #f8fbff;
        box-shadow: none;
    }

    .genksi-account.is-open .genksi-account-dropdown {
        display: block;
    }

    .genksi-account-header {
        padding: 10px 12px;
    }

    .genksi-account-dropdown > a {
        padding: 12px;
        font-size: 13px;
    }

    .genksi-account-dropdown > a:hover {
        padding-left: 15px;
    }
}
/* FIX: MEMBER / LOGIN KELUAR DARI HAMBURGER */

@media (max-width: 767px) {

    /* Container hamburger */
    #navMenu {
        position: relative;
    }

    /* Akun harus berada di dalam alur menu */
    #navMenu .genksi-account {
        position: relative !important;
        float: none !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 8px 0 !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;
        box-sizing: border-box;
    }

    #navMenu .genksi-account > .genksi-account-trigger {
        display: flex !important;
        position: relative !important;
        width: 100% !important;
        box-sizing: border-box;
        justify-content: flex-start;
        margin: 0 !important;
        white-space: normal;
    }

    #navMenu .genksi-account .genksi-account-dropdown {
        position: static !important;
        float: none !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 5px 0 8px 12px !important;
        transform: none !important;
        box-sizing: border-box;
    }
}