.navbar-container-sticky {
    position: sticky;
    top: 0;
    width: 100%;
    margin-top: 0;

    .main-navbar {
        margin-top: 0;
    }

    z-index: 1;
}

.main-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    /* Adjust this value to match the margin-bottom of logo-container */
    height: 40px;
    position: sticky;
}

.main-navbar ul {
    display: flex;
    /* Going left to right */
    list-style: none;
    /* Delete the dot list */
    justify-content: space-around;
    margin: 0 0 0 6.5rem;
    font-weight: bold;
}

.main-navbar li {
    position: relative;
    white-space: nowrap;
    /* Prevent line break */
}

.main-navbar a {
    text-decoration: none;
    color: #2c2b51;
    transition: color 0.25s ease, background-color 0.25s ease;
    padding: 8px 12px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    border-radius: 6px;
    position: relative;
}

.main-navbar li:hover a {
    color: #ffffff;
    background-color: #2c2b51;
    padding: 8px 12px;
    border-radius: 6px;
}

.main-navbar a.active {
    color: #ffffff;
    background-color: #2c2b51;
    padding: 8px 12px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(44, 43, 81, 0.2);
}

/* Navbar CTA button */
.navbar-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: #eda720;
    color: #2c2b51;
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(237, 167, 32, 0.25);
    margin-right: 16px;
}

.navbar-cta-btn:hover {
    background: #f5b530;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(237, 167, 32, 0.35);
    color: #2c2b51;
    text-decoration: none;
}

.navbar-cta-btn:active {
    transform: scale(0.97);
}

.navbar-cta-btn i {
    font-size: 0.75rem;
}

.logo_only {
    width: 30px;
    /* Adjust the width as needed */
    height: 30px;
    /* Adjust the height as needed */
}

.search-button-mobile {
    display: none;
}

.mobile-navbar-sticky {
    position: -webkit-sticky;
    /* For Safari */
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 10px 0;
    text-align: center;
    /* background-color: rgba(237, 167, 32, 1);  Change opacity here */
}

.hamburger {
    display: none;
}

.mobile-navbar {
    display: none;
}

.logo-mobile-navbar {
    display: none;
}

/* Legacy (mobile search, kept) */
.search-box {
    display: none;
}

.search-box-mobile {
    display: none;
}

/* ─────────────────────────────────────────
   INTERACTIVE SEARCH BAR (desktop)
   Always visible, with live suggestions
───────────────────────────────────────── */
.navbar-search {
    position: relative;
    flex-shrink: 0;
    margin-left: 3rem; /* Added spacing from Contact */
}

.navbar-search-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: #f0eff8;
    border: 1.5px solid transparent;
    border-radius: 999px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    width: 220px;
}

.navbar-search-input-wrap:focus-within {
    border-color: #eda720;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(237, 167, 32, 0.12);
    width: 280px;
}

.navbar-search-icon {
    color: #888;
    font-size: 0.8rem;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.navbar-search-input-wrap:focus-within .navbar-search-icon {
    color: #eda720;
}

.navbar-search-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.85rem;
    color: #1A1A2E;
    font-family: 'Figtree', sans-serif;
    width: 100%;
    min-width: 0;
}

.navbar-search-input::placeholder {
    color: #aaa;
    font-size: 0.82rem;
}

.navbar-search-clear {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    color: #aaa;
    font-size: 0.8rem;
    display: none;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.navbar-search-clear:hover {
    color: #c11111;
}

.navbar-search-clear.visible {
    display: flex;
}

/* ─── Suggestions dropdown ─── */
.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 100;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.search-suggestions.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.search-suggestions-inner {
    padding: 8px 0;
    max-height: 380px;
    overflow-y: auto;
}

/* Suggestion item */
.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.12s ease;
    cursor: pointer;
}

.suggestion-item:hover,
.suggestion-item.highlighted {
    background-color: #faf9f5;
    text-decoration: none;
}

.suggestion-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f0eff8;
}

.suggestion-thumb-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #2c2b51, #3a396e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(237, 167, 32, 0.7);
    font-size: 1rem;
}

.suggestion-body {
    min-width: 0;
    flex: 1;
}

.suggestion-category {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #eda720;
    margin-bottom: 2px;
}

.suggestion-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1A1A2E;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-meta {
    font-size: 0.72rem;
    color: #999;
    margin-top: 2px;
}

/* Loading state */
.suggestion-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    color: #888;
    font-size: 0.85rem;
}

.suggestion-loading::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid #eda720;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    flex-shrink: 0;
}

/* Empty state */
.suggestion-empty {
    padding: 20px 16px;
    text-align: center;
    color: #999;
    font-size: 0.85rem;
}

.suggestion-empty i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 6px;
    opacity: 0.4;
}

/* "See all results" footer */
.suggestion-footer {
    padding: 10px 16px;
    border-top: 1px solid #f0eff8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.suggestion-see-all {
    font-size: 0.82rem;
    font-weight: 600;
    color: #eda720;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s ease;
}

.suggestion-see-all:hover {
    color: #c8890f;
    text-decoration: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.login-btn-container {
    position: absolute;
    top: 55px;
    right: 90px;
    margin-top: 10px;
    /* Margin yang digunakan apabila tanpa announcement */
    /*margin-top: 70px;*/
    /* Adjust if needed */
    margin-right: 50px;
    /* Adjust if needed */
}

.seo-hidden {
    position: absolute;
    left: -9999px;
    /* Alternatively, you could use:
    visibility: hidden;
    opacity: 0;
    height: 0;
    overflow: hidden;
    */
}

/* Dark Mode Toggle Start */
label.darkmode-label {
    width: 50px;
    /* Reduced width */
    height: 25px;
    /* Reduced height */
    position: fixed;
    top: 10px;
    /* Distance from top */
    right: 10px;
    /* Distance from right */
    background: #ebebeb;
    border-radius: 25px;
    /* Adjusted to match new height */
    box-shadow: inset 0px 5px 15px rgba(0, 0, 0, 0.4),
        inset 0px -5px 15px rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: 0.3s;
    z-index: 1001;
}

label.darkmode-label:after {
    content: "";
    width: 20px;
    /* Reduced width */
    height: 20px;
    /* Reduced height */
    position: absolute;
    top: 2.5px;
    left: 2.5px;
    background: linear-gradient(180deg, #ffcc89, #eda720);
    border-radius: 20px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

label.darkmode-label:active:after {
    width: 25px;
}

input#darkmode-toggle {
    position: absolute;
    /* Remove from normal document flow */
    width: 0;
    height: 0;
    visibility: hidden;
}

input#darkmode-toggle:checked+label.darkmode-label {
    background: #2c2b51;
}

input#darkmode-toggle:checked+label.darkmode-label:after {
    left: 45px;
    transform: translateX(-100%);
    background: linear-gradient(180deg, #777, #2c2b51);
}

div.background {
    width: 100vw;
    height: 100vh;
    background: #fff;
    z-index: -1;
    position: absolute;
    transition: 0.3s;
}

input#darkmode-toggle:checked+label.darkmode-label+div.background {
    background: #202c33;
}

/* Dark mode toggle end */

/* Desktop Navbar Wrapper - Logo and Navbar side by side */
.desktop-navbar-wrapper {
    display: flex;
    align-items: center;
    margin: 0 0 0 9rem;
    margin-top: 1rem;
    padding-bottom: 24px;
}

/* Desktop Logo Container */
.logo-container-desktop {
    width: 250px;
    height: 83px;
    flex-shrink: 0;
    margin: 0;
    margin-bottom: 0;
}

/* Desktop Navbar Container */
.navbar-container-desktop {
    flex: 1;
    margin-left: 2rem;
    position: relative;
}

@media screen and (min-width: 1281px) {
    .line-nav {
        display: none;
    }

    .sticky-elements {
        display: none;
        /* Hide on desktop */
    }

    .sticky-elements.desktop {
        display: block;
        /* Display on desktop */
    }

    .logo-container-mobile {
        display: none;
    }

    /* Hide old logo container on desktop */
    .logo-container {
        display: none;
    }

    .desktop-navbar-wrapper {
        display: flex;
    }

    /* Adjust main navbar for horizontal layout */
    .main-navbar {
        margin-top: 0;
        height: 83px;
        align-items: center;
        width: 100%;
        position: relative;
        justify-content: flex-start;
        /* Align menu items to the left */
    }

    .login-btn-container {
        top: 1rem;
        height: 83px;
        display: flex;
        align-items: center;
        margin-top: 0;
    }

    .main-navbar ul {
        margin: 0 0 0 2rem;
        flex: 0 1 auto;
        /* Don't grow, allow shrink, auto basis */
        max-width: calc(100% - 600px);
        /* Reserve space for search area (400px box + 125px button + 75px spacing) */
    }

    /* Adjust search box positioning for horizontal layout - left side of search button */
    /* Override base styles to prevent duplication */
    .navbar-container-desktop .search-box {
        position: absolute !important;
        right: 175px !important;
        /* Position to the left of search button (125px + 50px spacing) */
        width: 400px !important;
        /* Fixed width */
        max-width: 400px !important;
        height: 40px !important;
        display: flex !important;
        align-items: center;
        background-color: #ffffff;
        border-radius: 6px;
        padding: 0 10px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        margin: 0 !important;
        /* Override base margin */
    }

    .navbar-container-desktop .search-box input {
        width: 390px !important;
        padding: 8px 10px;
        margin: 0 !important;
        /* Override base margin */
        border: none;
        outline: none;
        border-radius: 6px;
        background-color: transparent;
        font-size: 14px;
        color: #2c2b51;
        /* Default text color for light mode */
    }

    .search-close-button {
        position: absolute;
        right: 125px;
        z-index: 10;
        /* Ensure search button is above search box */
    }
}

@media screen and (max-width: 1280px) {
    .desktop-navbar-wrapper {
        display: none;
    }

    .logo-container-desktop {
        display: none;
    }

    .navbar-container-desktop {
        display: none;
    }
}

/* Responsive Breakpoint */

/* Tablet Size */
@media screen and (max-width: 1280px) {
    .login-btn-container {
        display: none;
        /* Hide the login button on smaller screens */
    }

    .logo-container {
        display: none;
    }

    .desktop-navbar-wrapper {
        display: none;
    }

    .logo-container-desktop {
        display: none;
    }

    .navbar-container-desktop {
        display: none;
    }

    .mainMenu {
        display: none;
    }

    .search-box-mobile {
        display: none;
        justify-content: center;
        opacity: 0;
        transition: all 0.3s;
    }

    .search-box-mobile.openSearchMobile {
        display: flex;
        opacity: 1;
        width: 100%;
        margin-top: 20px;
    }

    .search-box-mobile .col-md-6 {
        width: 350px;
        /* This should match the Bootstrap medium breakpoint (col-md-6) */
    }

    nav .mainMenu {
        height: 100vh;
        position: fixed;
        top: 0px;
        right: 0px;
        left: 0px;
        z-index: 1;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: rgb(0, 0, 0);
        transition: top 1s ease 0s;
        display: none;
    }

    nav .mainMenu .closeMenu {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
    }

    nav .openMenu {
        display: block;
    }

    nav .mainMenu li a:hover {
        background: none;
        color: rgb(255, 123, 0);
    }

    .main-navbar {
        display: none;
    }

    .logo-container-mobile {
        display: block;
        justify-content: space-between;
        align-items: center;
        width: 200px;
        height: 83px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: -55px;
        /* Adjust this value as needed */
    }

    .ads {
        display: none;
    }

    .article {
        margin-top: 20px;
    }

    .line-nav {
        margin-top: 50px;
    }

    .search-button-mobile {
        display: flex;
        flex-direction: column;
        height: 50px;
        justify-content: space-between;
        align-items: flex-end;
        margin-top: -20px;
        margin-left: auto;
        margin-right: 20px;
        /* Add some right margin for spacing */
        width: max-content;
        z-index: 1;
        cursor: pointer;
    }

    a.search-button-mobile {
        text-decoration: none;
        /* Remove underlining */
        color: inherit;
        /* Inherit text color */
        border: none;
        /* Remove border */
        background: none;
        /* Remove background */
    }

    /* Hamburger Menu */
    .hamburger {
        position: relative;
        display: block;
        width: 45px;
        cursor: pointer;

        appearance: none;
        background: none;
        outline: none;
        border: none;
    }

    .hamburger .bar,
    .hamburger:after,
    .hamburger:before {
        content: "";
        display: block;
        width: 100%;
        height: 5px;
        background-color: #444444;
        margin: 6px 0px;
        transition: 0.4s;
    }

    .hamburger.is-active:before {
        transform: translate(0px, 11px) rotate(-45deg);
    }

    .hamburger.is-active:after {
        transform: translate(0px, -11px) rotate(45deg);
    }

    .hamburger.is-active .bar {
        opacity: 0;
    }

    .mobile-navbar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        min-height: 100vh;
        display: block;
        z-index: 100;
        background-color: #fff;
        padding-top: 120px;
        transition: 0.5s;
        text-align: right;
    }

    .mobile-navbar.is-active {
        right: 0;
    }

    .mobile-navbar a {
        display: block;
        width: 100%;
        margin: 0 auto 16px;
        text-align: right;
        margin-bottom: 20px;
        padding-right: 20px;
        /* Add some padding on the right for better spacing */
        font-weight: bold;
        /* Apply bold font weight */
        color: #2c2b51;
        text-decoration: none;
    }

    .mobile-navbar a:hover {
        background-color: #eda720;
    }

    .logo-mobilenavbar {
        width: 200px;
        height: 83px;
        margin: 0 auto;
        margin-top: 20px;
        /* Adjust this value as needed */
        background-color: none;
    }

    .mobile-navbar .logo a:hover {
        background-color: transparent;
        /* Remove background color on hover */
    }

    .sticky-elements {
        position: -webkit-sticky;
        /* For Safari */
        position: sticky;
        top: 0;
        z-index: 99;
        /* Ensure it's above other content */
        background-color: #ffffff;
        /* Adjust background color if needed */
        padding: 10px 0;
        /* Adjust padding as needed */
        display: block;
        /* Display on smaller screens */
    }

    /* Reset Sticky Styles for Larger Screens */
    .sticky-elements.desktop {
        display: none;
        /* Hide on desktop */
        position: static;
        /* Reset position */
        padding: 0;
        /* Reset padding */
        background-color: transparent;
        /* Reset background */
    }
}
