/* --- HERBIE HEADER & MENU STYLES --- */
.herbie-header * { box-sizing: border-box; }
.herbie-header { position: relative; z-index: 99; background: #2f005c; border-bottom: 3px solid #FFD700; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
.herbie-header-container { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; max-width: 1200px; margin: 0 auto; width: 100%; position: relative; }
.herbie-logo img { max-height: 55px; width: auto; display: block; }
.herbie-logo-text { font-size: 24px; font-weight: 900; color: #fff; text-decoration: none; letter-spacing: 0.5px; }

/* TOP HEADER PROMO ANIMATION */
.herbie-top-header { display: flex; justify-content: center; align-items: center; padding: 10px 15px; background: #b30000; color: #fff; font-size: 14px; font-weight: 700; font-family: 'Segoe UI', sans-serif; text-align: center; }
.herbie-text-rotator { position: relative; height: 20px; width: 100%; max-width: 800px; overflow: hidden; display: inline-block; }
.herbie-text-rotator span { position: absolute; left: 0; right: 0; top: 0; opacity: 0; transform: translateY(15px); transition: all 0.5s ease; text-align: center; width: 100%; }
.herbie-text-rotator span.active { opacity: 1; transform: translateY(0); }

/* AUTO POP UP BANNER */
.herbie-popup-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 999999; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: all 0.4s ease; padding: 20px; }
.herbie-popup-overlay.show { opacity: 1; visibility: visible; }
.herbie-popup-content { position: relative; max-width: 500px; width: 100%; transform: scale(0.8); transition: all 0.4s ease; text-align: center; }
.herbie-popup-overlay.show .herbie-popup-content { transform: scale(1); }
.herbie-popup-img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 15px 35px rgba(0,0,0,0.3); display: block; }
.herbie-popup-close { position: absolute; top: -15px; right: -15px; width: 35px; height: 35px; background: #FFD700; color: #000; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 20px; font-weight: bold; cursor: pointer; text-decoration: none; box-shadow: 0 4px 10px rgba(0,0,0,0.2); transition: 0.3s; }
.herbie-popup-close:hover { background: #fff; transform: scale(1.1); }

/* TAMPILAN DESKTOP MENU */
@media (min-width: 769px) {
    .herbie-menu-toggle { display: none !important; }
    .herbie-main-nav { display: flex; align-items: center; }
    .herbie-main-nav ul { display: flex; flex-direction: row; gap: 8px; list-style: none; margin: 0; padding: 0; align-items: center; }
    .herbie-main-nav ul li { position: relative; padding: 10px 2px; }
    .herbie-main-nav ul li a { color: #ffffff; text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 18px; border-radius: 50px; transition: all 0.3s ease; display: block; }
    .herbie-main-nav ul li a:hover, .herbie-main-nav ul li.current-menu-item > a { background: rgba(255, 215, 0, 0.15); color: #FFD700; }
    .herbie-main-nav ul li.menu-item-has-children > a::after { content: '▼'; font-size: 10px; margin-left: 6px; vertical-align: middle; }
    .herbie-main-nav ul li ul.sub-menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(15px); background: #ffffff; min-width: 220px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); border-radius: 12px; opacity: 0; visibility: hidden; display: flex; flex-direction: column; padding: 12px 0; transition: all 0.3s ease; border: 1px solid #f0f0f0; z-index: 999; }
    .herbie-main-nav ul li:hover ul.sub-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
    .herbie-main-nav ul li ul.sub-menu li { padding: 0; width: 100%; }
    .herbie-main-nav ul li ul.sub-menu li a { padding: 10px 20px; color: #001D3D; border-radius: 0; display: block; font-weight: 600; background: transparent; }
    .herbie-main-nav ul li ul.sub-menu li a::after { display: none; }
    .herbie-main-nav ul li ul.sub-menu li a:hover { background: #f4f6f8; color: #2f005c; padding-left: 26px; }
    .herbie-btn-contact { background: #FFD700; color: #2f005c; padding: 12px 26px; border-radius: 50px; text-decoration: none; font-weight: 800; font-size: 14px; transition: all 0.3s ease; box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3); margin-left: 15px; display: inline-block; }
    .herbie-btn-contact:hover { background: #ffffff; color: #2f005c; transform: translateY(-3px); box-shadow: 0 6px 15px rgba(255, 255, 255, 0.3); }
    .herbie-header-action { display: flex; align-items: center; }
}

/* TAMPILAN MOBILE MENU */
@media (max-width: 768px) {
    .herbie-top-header { font-size: 12px; padding: 8px 10px; }
    .herbie-btn-contact { display: none !important; }
    .herbie-menu-toggle { display: flex; flex-direction: column; gap: 6px; background: transparent; border: none; cursor: pointer; padding: 5px; z-index: 100001; position: relative; }
    .herbie-menu-toggle span { width: 30px; height: 3px; background: #FFD700; transition: all 0.4s ease; border-radius: 3px; display: block; }
    .herbie-menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .herbie-menu-toggle.active span:nth-child(2) { opacity: 0; }
    .herbie-menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    .herbie-main-nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: #ffffff; box-shadow: 0 15px 30px rgba(0,0,0,0.15); border-top: 3px solid #FFD700; z-index: 999 !important; }
    .herbie-main-nav.active { display: block !important; animation: npdMenuSlide 0.3s ease forwards; }
    @keyframes npdMenuSlide { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

    .herbie-main-nav ul { display: flex !important; flex-direction: column !important; margin: 0 !important; padding: 5px 0 !important; list-style: none !important; }
    .herbie-main-nav > ul > li { width: 100%; position: relative; display: block !important; border-bottom: 1px solid #f9f9f9; }
    .herbie-main-nav > ul > li:last-child { border-bottom: none; }
    .herbie-main-nav > ul > li > a { display: flex !important; align-items: center; justify-content: space-between; padding: 8px 20px !important; color: #001D3D !important; text-decoration: none !important; font-weight: 700 !important; font-size: 14px !important; transition: 0.3s !important; }
    .herbie-main-nav > ul > li.menu-item-has-children > a::after { content: '▼'; font-size: 11px; transition: transform 0.3s; color: #888; }
    .herbie-main-nav > ul > li.menu-item-has-children > a.open::after { transform: rotate(180deg); color: #FFD700; }
    .herbie-main-nav ul li ul.sub-menu { display: none !important; background: #fcfcfc !important; flex-direction: column !important; padding: 0 !important; border-top: 1px solid #f5f5f5 !important; }
    .herbie-main-nav ul li ul.sub-menu.open { display: flex !important; }
    .herbie-main-nav ul li ul.sub-menu li { display: block !important; width: 100%; border-bottom: 1px solid #f5f5f5; }
    .herbie-main-nav ul li ul.sub-menu li:last-child { border-bottom: none; }
    .herbie-main-nav ul li ul.sub-menu li a { padding: 6px 20px 6px 35px !important; font-weight: 600 !important; font-size: 13px !important; color: #555 !important; display: block !important; }
}