  /* =========================
     GLOBAL RESET
     ========================= */
   * {
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  /* Remove focus outline from navbar elements */
  .navbar *:focus,
  .navbar a:focus,
  .navbar button:focus,
  .navbar .nav-links a:focus,
  .navbar .dropdown a:focus {
    outline: none !important;
    box-shadow: none !important;
  }
  
  body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    padding-top: 80px; /* default padding - bisa disesuaikan via JS */
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fff;
    color: rgba(0, 0, 0, 0.835);
    display: flex;
    flex-direction: column;
  }
  
  /* =========================
     NAVBAR UNIVERSAL STYLING
     ========================= */
.navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
  width: 100%;
    z-index: 1050;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
    padding: 5px 20px;
    min-height: 80px;
  font-weight: bold;
  }
  
  /* =========================
     LOGO
     ========================= */
  .logo {
  display: flex;
  align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
  }
  
  .logo:hover {
    opacity: 0.9;
}

.logo img {
    height: 80px !important;
    width: auto;
    max-width: none;
    margin-left: 20px;
    transition: all 0.3s ease;
    object-fit: contain;
    object-position: center;
    display: block;
  }
  
  

  
  /* =========================
     NAVIGATION LINKS
     ========================= */
  .nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0;
    padding: 0;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-links li {
  position: relative;
    margin: 0;
}

.nav-links li a {
  text-decoration: none;
    color: #000000;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: block;
  }
  
  .nav-links li a:hover {
    color: #000000;
    background-color: rgba(0, 0, 0, 0.1);
  }
  
  /* =========================
     BLUE BUTTON NAVBAR
     ========================= */
  .blue-button-navbar {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    color: white !important;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 102, 204, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .blue-button-navbar:hover {
    background: linear-gradient(135deg, #0052a3 0%, #003875 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
    text-decoration: none;
    color: white !important;
  }
  
  /* =========================
     DROPDOWN
     ========================= */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: #fff;
    min-width: 240px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 1100;
    top: 100%;
    left: 0;
    border-radius: 8px;
    padding: 8px 0;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
  }
  
  .dropdown-content li {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .dropdown-content a {
    display: block;
    padding: 12px 20px;
    color: #000000;
    text-decoration: none;
    font-size: 14px;
    font-weight: normal;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
  }
  
  .dropdown-content a:hover {
    background: #f8f9fa;
    color: #000000;
    border-left-color: #000000;
  }
  
  .dropdown > a .fa {
    margin-left: 5px;
    transition: transform 0.3s ease;
    color: #000000;
  }
  
  .dropdown:hover > a .fa {
    transform: rotate(180deg);
    color: #000000;
  }
  
  .dropdown.active > a .fa {
    transform: rotate(180deg);
    color: #000000;
  }
  
@media (min-width: 769px) {
    .dropdown:hover .dropdown-content {
        display: block;
        animation: fadeInDropdown 0.3s ease forwards;
    }
    
    @keyframes fadeInDropdown {
        from { opacity: 0; transform: translateY(-10px) scale(0.95); }
        to { opacity: 1; transform: translateY(0) scale(1); }
    }
  }
  
  /* =========================
     HAMBURGER MENU
     ========================= */
  .hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1051;
    background: transparent;
    border: none;
    padding: 0;
    margin-right: 10px;
  }
  
  .hamburger span {
    width: 100%;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
    position: relative;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
  }
  
  .hamburger.active span:nth-child(2) {
            opacity: 0;
    transform: scale(0);
  }
  
  .hamburger.active span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
  }
  
  .hamburger:hover span {
    background: #666;
  }
  
  .hamburger.active:hover span {
    background: #666;
  }
  
  /* =========================
     RESPONSIVE
     ========================= */
  @media (min-width: 992px) and (max-width: 1024px) {
    .nav-links li a { padding: 8px 10px; font-size: 14px; }
    .logo img { height: 70px; margin-left: 15px; }
    .blue-button-navbar { padding: 10px 18px; font-size: 13px; }
    .nav-links { gap: 8px; }
  }
  
    @media (max-width: 768px) {
    body { 
        padding-top: 80px; 
        /* Hapus transform karena tidak perlu slide halaman */
    }
    .navbar { min-height: 80px; padding: 5px 15px; }
    .logo img { height: 80px; margin-left: 10px; }
    .hamburger { display: flex !important; }
  
        .nav-links {
      position: fixed !important;
      top: 0 !important;
      right: 0 !important;
      background: rgba(255, 255, 255, 0.98);
      backdrop-filter: blur(10px);
      flex-direction: column;
      width: 100vw !important;
      max-width: 100% !important;
      height: 100vh;
      overflow-y: auto;
            opacity: 1;
      visibility: visible;
      box-shadow: -8px 0 25px rgba(0, 0, 0, 0.15);
      z-index: 1000;
      padding: 80px 0 0 0; /* Sesuaikan dengan tinggi navbar yang lebih tinggi */
      transform: translateX(100%) !important; /* Mulai tersembunyi di kanan */
      transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    }
    .nav-links.show {
        transform: translateX(0) !important; /* Menu muncul */
    }
  }
  
  @media (max-width: 480px) {
    body { 
        padding-top: 80px; 
        /* Hapus transform karena tidak perlu slide halaman */
    }
    .navbar { min-height: 80px; padding: 4px 10px; }
    .logo img { height: 80px; margin-left: 5px; }
    .nav-links { 
        top: 0 !important; 
        padding-top: 80px !important; /* Sesuaikan dengan tinggi navbar mobile kecil */
        width: 100vw !important; /* Full screen untuk mobile kecil */
        max-width: 100% !important;
    }
    .hamburger { width: 26px; height: 20px; display: flex !important; }
    .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  }
  
  /* Galaxy Fold 4 dan HP landscape kecil - tetap tampilkan hamburger */
  @media (orientation: landscape) and (max-width: 768px) {
    body.landscape-mode { 
        padding-top: 70px; 
    }
    
    .navbar { 
        min-height: 70px; 
        padding: 5px 15px; 
        flex-direction: row !important;
        align-items: center !important;
    }
    
    .logo img { 
        height: 60px; 
        margin: 5px 10px; 
    }
    
    /* Tampilkan hamburger untuk HP landscape kecil */
    .hamburger { 
        display: flex !important; 
        width: 28px;
        height: 20px;
        margin-right: 8px;
    }
    
    /* CRITICAL: Force text visibility dengan cara yang lebih agresif */
    .nav-links li a,
    .sub-menu li a,
    .back-menu a,
    .submenu-title {
        color: #2c3e50 !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif !important;
        line-height: 1.5 !important;
        text-decoration: none !important;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: clip !important;
        word-wrap: break-word !important;
        padding: 18px 30px !important;
        margin: 0 !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        background: transparent !important;
        position: relative !important;
        z-index: 999 !important;
        transform: none !important;
        animation: none !important;
        transition: all 0.3s ease !important;
    }
    
    /* Force parent elements */
    .nav-links li,
    .sub-menu li {
        opacity: 1 !important;
        visibility: visible !important;
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: nowrap !important;
        transform: none !important;
        animation: none !important;
    }
    
    /* Nav-links tetap menggunakan mobile style dengan full screen */
    .nav-links { 
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        width: 100vw !important;
        max-width: 100% !important;
        height: 100vh;
        overflow-y: auto;
        opacity: 1;
        visibility: visible;
        box-shadow: -8px 0 25px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        padding: 70px 0 20px 0;
        transform: translateX(100%) !important;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    }
    
    .nav-links.show {
        transform: translateX(0) !important;
    }
    
    /* Menu items styling untuk landscape - ensure text is visible */
    .nav-links li {
        text-align: left;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        width: 100%;
        position: relative;
        overflow: visible;
        padding: 0;
        margin: 0;
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links li a {
        padding: 18px 30px;
        color: #2c3e50 !important;
        font-weight: 600;
        font-size: 16px;
        transition: all 0.3s ease;
        border-radius: 0;
        margin: 0;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        box-sizing: border-box;
        opacity: 1;
        visibility: visible;
        text-decoration: none;
        white-space: nowrap;
        overflow: visible;
    }
    
    .nav-links li a:hover {
        background: rgba(0, 0, 0, 0.05);
        color: #000000 !important;
    }
    
    /* Sub-menu juga full screen di landscape */
    .sub-menu {
      padding: 70px 0 20px 0;
    }
    
    /* Sub-menu items styling untuk landscape */
    .sub-menu li {
        text-align: left;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        width: 100%;
        position: relative;
        overflow: visible;
        padding: 0;
        margin: 0;
        opacity: 1;
        visibility: visible;
    }
    
    .sub-menu li a {
        padding: 18px 30px;
        color: #2c3e50 !important;
        font-weight: 600;
        font-size: 16px;
        transition: all 0.3s ease;
        border-radius: 0;
        margin: 0;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        box-sizing: border-box;
        opacity: 1;
        visibility: visible;
        text-decoration: none;
        white-space: nowrap;
        overflow: visible;
    }
    
    .sub-menu li a:hover {
        background: rgba(0, 0, 0, 0.05);
        color: #000000 !important;
    }
    
    /* Back button styling untuk landscape */
    .back-menu a {
        padding: 18px 30px !important;
        color: #0066cc !important;
        font-weight: 700 !important;
        font-size: 16px !important;
        display: flex;
        align-items: center;
        gap: 10px;
        background: #f8f9fa;
        border-bottom: 2px solid #e9ecef !important;
        opacity: 1;
        visibility: visible;
        text-decoration: none;
        white-space: nowrap;
        overflow: visible;
    }
    
    .back-menu a:hover {
        background: #e9ecef !important;
    }
    
    /* Submenu title styling untuk landscape */
    .submenu-title {
        padding: 20px 30px 15px 30px !important;
        color: #2c3e50 !important;
        font-weight: 700 !important;
        font-size: 18px !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        text-align: left;
        list-style: none;
        opacity: 1;
        visibility: visible;
        overflow: visible;
    }
    
    /* Blue button styling untuk landscape */
    .blue-button-navbar {
        margin: 20px 30px 10px 30px;
        text-align: center;
        display: block;
        border-radius: 30px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        transition: all 0.3s ease;
        background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
        box-shadow: 0 6px 20px rgba(0, 102, 204, 0.3);
        padding: 15px 30px;
        font-size: 14px;
        width: calc(100% - 60px);
        box-sizing: border-box;
        color: white !important;
        text-decoration: none;
        opacity: 1;
        visibility: visible;
        overflow: visible;
    }
    
    .blue-button-navbar:hover {
        transform: translateY(-2px) scale(1.01);
        box-shadow: 0 6px 20px rgba(0, 102, 204, 0.3);
        background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
        text-decoration: none;
        color: white !important;
    }
    
    /* Icon styling untuk landscape */
    .submenu-trigger .fa-chevron-right {
        display: inline-block !important;
        font-size: 14px;
        margin-left: auto;
        opacity: 0.7;
        color: #2c3e50;
    }
    
    /* Disable stagger animation di landscape untuk prevent text hiding */
    .nav-links.show li,
    .sub-menu.show li {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    /* EMERGENCY: Override ALL possible text hiding mechanisms */
    @media (orientation: landscape) and (max-width: 768px) {
        .nav-links li a,
        .nav-links li a *,
        .sub-menu li a,
        .sub-menu li a *,
        .back-menu a,
        .back-menu a *,
        .submenu-title,
        .submenu-title * {
            color: #2c3e50 !important;
            opacity: 1 !important;
            visibility: visible !important;
            display: flex !important;
            align-items: center !important;
            font-size: 16px !important;
            font-weight: 600 !important;
            font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif !important;
            line-height: 1.5 !important;
            text-decoration: none !important;
            white-space: nowrap !important;
            overflow: visible !important;
            text-overflow: clip !important;
            transform: none !important;
            animation: none !important;
            filter: none !important;
            -webkit-filter: none !important;
            backdrop-filter: none !important;
            text-shadow: none !important;
            -webkit-text-stroke: none !important;
            text-rendering: optimizeLegibility !important;
            -webkit-font-smoothing: antialiased !important;
            -moz-osx-font-smoothing: grayscale !important;
            letter-spacing: normal !important;
            word-spacing: normal !important;
            text-transform: none !important;
            direction: ltr !important;
            unicode-bidi: normal !important;
            writing-mode: horizontal-tb !important;
            text-orientation: mixed !important;
            position: relative !important;
            z-index: 9999 !important;
            background: transparent !important;
            border: none !important;
            outline: none !important;
            box-shadow: none !important;
            margin: 0 !important;
            padding: 18px 30px !important;
        }
        
        .submenu-title,
        .submenu-title * {
            font-size: 18px !important;
            font-weight: 700 !important;
        }
        
        .back-menu a,
        .back-menu a * {
            color: #0066cc !important;
            font-weight: 700 !important;
        }
    }
    
    /* ULTRA FORCE text visibility - prevent any hiding mechanism */
    .nav-links li,
    .nav-links li a,
    .sub-menu li,
    .sub-menu li a,
    .back-menu,
    .back-menu a,
    .submenu-title {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        animation: none !important;
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: nowrap !important;
        word-wrap: break-word !important;
        display: flex !important;
        align-items: center !important;
        position: relative !important;
        z-index: 1 !important;
        background: transparent !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        filter: none !important;
        -webkit-filter: none !important;
        backdrop-filter: none !important;
    }
    
    /* CRITICAL: Force text content to be visible */
    .nav-links li a,
    .sub-menu li a,
    .back-menu a,
    .submenu-title {
        color: #2c3e50 !important;
        font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        line-height: 1.5 !important;
        text-decoration: none !important;
        text-shadow: none !important;
        -webkit-text-stroke: none !important;
        text-rendering: optimizeLegibility !important;
        -webkit-font-smoothing: antialiased !important;
        -moz-osx-font-smoothing: grayscale !important;
        letter-spacing: normal !important;
        word-spacing: normal !important;
        text-transform: none !important;
        direction: ltr !important;
        unicode-bidi: normal !important;
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
    }
    
    /* Special styling for different elements */
    .submenu-title {
        font-size: 18px !important;
        font-weight: 700 !important;
        color: #2c3e50 !important;
    }
    
    .back-menu a {
        font-weight: 700 !important;
        color: #0066cc !important;
    }
    
    /* Force remove any text hiding */
    .nav-links li a:before,
    .nav-links li a:after,
    .sub-menu li a:before,
    .sub-menu li a:after {
        display: none !important;
        content: none !important;
    }
    
    /* Ensure text is not clipped */
    .nav-links li,
    .sub-menu li {
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: nowrap !important;
    }
    
    /* Hide dropdown, use submenu navigation - FORCE disable all dropdown */
    .has-submenu .dropdown-content,
    .dropdown-content,
    .dropdown.active .dropdown-content,
    #profile-dropdown .dropdown-content {
      display: none !important;
      max-height: 0 !important;
      visibility: hidden !important;
      opacity: 0 !important;
      pointer-events: none !important;
    }
    
    .submenu-trigger .fa-caret-down {
      display: none !important;
    }
    
    .submenu-trigger .fa-chevron-right {
      display: inline-block !important;
    }
  }

  @media (orientation: landscape) and (max-width: 1200px) and (min-width: 769px) {
    body.landscape-mode { 
        padding-top: 60px; 
    }
    
    /* Navbar landscape mode - horizontal menu, bukan burger */
    .navbar { 
        min-height: 60px; 
        padding: 2px 10px; 
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        flex-direction: row !important;
        align-items: center !important;
    }
    
    .logo img { 
        height: 50px; 
        margin: 2px 8px; 
    }
    
    /* Sembunyikan hamburger di landscape mode hanya untuk layar besar */
    .hamburger { 
        display: none !important; 
    }
    
    /* Tampilkan menu horizontal di landscape mode */
    .nav-links { 
        position: static !important; /* Bukan fixed */
        top: auto !important; 
        right: auto !important;
        padding-top: 0 !important; /* Tidak perlu padding top */
        width: auto !important; /* Lebar otomatis */
        height: auto !important; /* Tinggi otomatis */
        max-height: none !important; /* Tidak ada max height */
        background: transparent !important; /* Background transparan */
        backdrop-filter: none !important; /* Tidak ada blur */
        box-shadow: none !important; /* Tidak ada shadow */
        transform: none !important; /* Tidak ada transform */
        overflow: visible !important; /* Tidak ada overflow */
        flex-direction: row !important; /* Horizontal layout */
        gap: 4px; /* Gap antar menu items lebih kecil */
        margin-left: auto !important; /* Push ke kanan */
    }
    
    /* Menu items horizontal di landscape */
    .nav-links li {
        border-bottom: none !important; /* Tidak ada border bottom */
        width: auto !important; /* Lebar otomatis */
        margin: 0 !important;
    }
    
    .nav-links li a {
        padding: 6px 10px !important; /* Padding lebih compact */
        font-size: 11px !important; /* Font size lebih kecil */
        border-radius: 3px; /* Border radius lebih kecil */
        white-space: nowrap; /* Text tidak wrap */
        color: #000000 !important;
        font-weight: 600 !important;
    }
    
    /* Hover effect untuk landscape mode */
    .nav-links li a:hover {
        background: rgba(0, 0, 0, 0.1);
        color: #000000 !important;
        transform: translateY(-1px);
    }
    
    /* Dropdown horizontal di landscape */
    .dropdown {
        position: relative !important;
    }
    
    .dropdown-content {
        position: absolute !important; /* Absolute positioning */
        top: 100% !important; /* Di bawah parent */
        left: 0 !important; /* Align ke kiri */
        width: 180px !important; /* Lebar lebih kecil */
        max-height: none !important; /* Tidak ada max height */
        background: #fff !important; /* Background putih */
        box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important; /* Shadow */
        border-radius: 4px !important; /* Border radius */
        z-index: 1000;
        display: none !important; /* Hidden by default */
    }
    
    .dropdown:hover .dropdown-content {
        display: block !important; /* Show on hover */
    }
    
    .dropdown-content a {
        padding: 6px 12px !important; /* Padding compact */
        font-size: 10px !important; /* Font size compact */
        border-left: none !important; /* Tidak ada border left */
        border-bottom: 1px solid #f0f0f0; /* Border bottom */
        color: #000000 !important;
    }
    
    .dropdown-content a:hover {
        background: #f8f9fa;
        color: #000000 !important;
        transform: none; /* Tidak ada transform */
    }
    
    /* Blue button di landscape */
    .blue-button-navbar {
        margin: 0 0 0 6px !important; /* Margin lebih kecil */
        padding: 6px 12px !important; /* Padding compact */
        font-size: 10px !important; /* Font size compact */
        white-space: nowrap; /* Text tidak wrap */
    }
    
    /* Dropdown arrow tetap hitam dan berputar */
    .dropdown > a .fa {
        color: #000000 !important;
        transition: transform 0.3s ease;
        font-size: 10px !important;
    }
    
    .dropdown:hover > a .fa {
        transform: rotate(180deg);
    }
  }
  
  /* Prevent scroll ketika menu terbuka */
  body.menu-open {
    overflow: hidden;
    /* Tidak perlu position fixed karena menggunakan transform */
  }
  
  /* =========================
     SUBMENU NAVIGATION STYLING (MOBILE)
     ========================= */
  @media (max-width: 768px) {
    /* Sub-menu styling */
    .sub-menu {
      position: fixed !important;
      top: 0 !important;
      right: 0 !important;
      background: rgba(255, 255, 255, 0.98);
      backdrop-filter: blur(10px);
      flex-direction: column;
      width: 100vw !important;
      max-width: 100% !important;
      height: 100vh;
      overflow-y: auto;
      opacity: 1;
      visibility: visible;
      box-shadow: -8px 0 25px rgba(0, 0, 0, 0.15);
      z-index: 1001;
      padding: 80px 0 20px 0;
      transform: translateX(100%) !important;
      transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
      display: none;
    }
    
    .sub-menu.show {
      transform: translateX(0) !important;
    }
    
    /* Back button styling */
    .back-menu a {
      padding: 20px 30px !important;
      color: #0066cc !important;
      font-weight: 700 !important;
      font-size: 16px !important;
      display: flex;
      align-items: center;
      gap: 10px;
      background: #f8f9fa;
      border-bottom: 2px solid #e9ecef !important;
    }
    
    .back-menu a:hover {
      background: #e9ecef !important;
    }
    
    .back-menu a i {
      font-size: 18px;
    }
    
    /* Submenu title styling */
    .submenu-title {
      padding: 25px 30px 15px 30px !important;
      color: #2c3e50 !important;
      font-weight: 700 !important;
      font-size: 20px !important;
      border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
      background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
      text-align: left;
      list-style: none;
    }
    
    /* Sub-menu items styling - sama dengan main menu */
    .sub-menu li {
      text-align: left;
      border-bottom: 1px solid rgba(0, 0, 0, 0.08);
      width: 100%;
      position: relative;
      overflow: hidden;
      padding: 0;
      margin: 0;
    }
    
    .sub-menu li:last-child {
      border-bottom: none;
    }
    
    .sub-menu li a {
      padding: 20px 30px;
      color: #2c3e50;
      font-weight: 600;
      font-size: 16px;
      transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      border-radius: 0;
      margin: 0;
      position: relative;
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      box-sizing: border-box;
    }
    
    .sub-menu li a:hover {
      background: rgba(0, 0, 0, 0.05);
      color: #000000 !important;
    }
    
    /* Sub-menu animation */
    .sub-menu.show li {
      animation: slideInFromRight 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
      opacity: 0;
      transform: translateX(30px);
    }
    
    .sub-menu.show li:nth-child(1) { animation-delay: 0.05s; }
    .sub-menu.show li:nth-child(2) { animation-delay: 0.1s; }
    .sub-menu.show li:nth-child(3) { animation-delay: 0.15s; }
    .sub-menu.show li:nth-child(4) { animation-delay: 0.2s; }
    .sub-menu.show li:nth-child(5) { animation-delay: 0.25s; }
    .sub-menu.show li:nth-child(6) { animation-delay: 0.3s; }
    .sub-menu.show li:nth-child(7) { animation-delay: 0.35s; }
    .sub-menu.show li:nth-child(8) { animation-delay: 0.4s; }
    .sub-menu.show li:nth-child(9) { animation-delay: 0.45s; }
    
    /* Custom scrollbar untuk sub-menu */
    .sub-menu::-webkit-scrollbar {
      width: 4px;
    }
    
    .sub-menu::-webkit-scrollbar-track {
      background: #f1f1f1;
      border-radius: 2px;
    }
    
    .sub-menu::-webkit-scrollbar-thumb {
      background: #000000;
      border-radius: 2px;
    }
    
    .sub-menu::-webkit-scrollbar-thumb:hover {
      background: #333333;
    }
    
    /* COMPLETELY DISABLE dropdown in mobile - force hide */
    .has-submenu .dropdown-content,
    .dropdown-content,
    .nav-links .dropdown-content,
    .main-menu .dropdown-content,
    #profile-dropdown .dropdown-content {
      display: none !important;
      max-height: 0 !important;
      visibility: hidden !important;
      opacity: 0 !important;
      pointer-events: none !important;
    }
    
    /* Prevent dropdown from showing even with active class */
    .dropdown.active .dropdown-content,
    .has-submenu.active .dropdown-content,
    #profile-dropdown.active .dropdown-content {
      display: none !important;
      max-height: 0 !important;
    }
    
    /* Change icon for submenu trigger */
    .submenu-trigger .fa-caret-down {
      display: none !important;
    }
    
    .submenu-trigger .fa-chevron-right {
      display: inline-block !important;
      font-size: 14px;
      margin-left: auto;
      opacity: 0.7;
    }
  }
  
  /* Desktop: Show caret-down, hide chevron-right */
  @media (min-width: 769px) {
    .submenu-trigger .fa-chevron-right {
      display: none;
    }
    
    .submenu-trigger .fa-caret-down {
      display: inline-block;
      margin-left: 5px;
      transition: transform 0.3s ease;
      color: #000000;
      font-size: 12px;
    }
    
    /* Dropdown hover effect untuk desktop */
    .dropdown:hover > a .fa-caret-down {
      transform: rotate(180deg);
      color: #000000;
    }
    
    .dropdown.active > a .fa-caret-down {
      transform: rotate(180deg);
      color: #000000;
    }
    
    /* Hide sub-menu in desktop */
    .sub-menu {
      display: none !important;
    }
    
    /* OVERRIDE: Force show dropdown content in desktop */
    .dropdown-content {
      display: none !important;
      position: absolute !important;
      background: #fff !important;
      min-width: 240px !important;
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
      z-index: 1100 !important;
      top: 100% !important;
      left: 0 !important;
      border-radius: 8px !important;
      padding: 8px 0 !important;
      transition: all 0.3s ease !important;
      border: 1px solid #e9ecef !important;
      opacity: 1 !important;
      visibility: visible !important;
      max-height: none !important;
      overflow: visible !important;
      pointer-events: auto !important;
    }
    
    .dropdown:hover .dropdown-content {
      display: block !important;
      animation: fadeInDropdown 0.3s ease forwards !important;
    }
    
    .dropdown.active .dropdown-content {
      display: block !important;
    }
    
    @keyframes fadeInDropdown {
      from { opacity: 0; transform: translateY(-10px) scale(0.95); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }
    
    .dropdown-content li {
      list-style: none !important;
      margin: 0 !important;
      padding: 0 !important;
      opacity: 1 !important;
      visibility: visible !important;
    }
    
    .dropdown-content a {
      display: block !important;
      padding: 12px 20px !important;
      color: #000000 !important;
      text-decoration: none !important;
      font-size: 14px !important;
      font-weight: normal !important;
      transition: all 0.2s ease !important;
      border-left: 3px solid transparent !important;
      opacity: 1 !important;
      visibility: visible !important;
    }
    
    .dropdown-content a:hover {
      background: #f8f9fa !important;
      color: #000000 !important;
      border-left-color: #000000 !important;
    }
    
    /* Force dropdown positioning */
    .dropdown {
      position: relative !important;
    }
    
    .dropdown > a {
      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;
    }
  }
  
  /* =========================
     MENU ANIMATION ENHANCEMENTS
     ========================= */
  @media (max-width: 768px) {
    /* Menu slide animation - geser ke kanan saat buka, ke kiri saat tutup */
    .nav-links {
      transform: translateX(100%) !important; /* Mulai tersembunyi di kanan */
      transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    }
    
    .nav-links.show {
      transform: translateX(0) !important; /* Menu muncul di posisi normal */
    }
    
    /* Menu item stagger animation - slide dari kanan */
    .nav-links.show li {
      animation: slideInFromRight 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
      opacity: 0;
      transform: translateX(30px);
    }
    
    .nav-links.show li:nth-child(1) { animation-delay: 0.1s; }
    .nav-links.show li:nth-child(2) { animation-delay: 0.15s; }
    .nav-links.show li:nth-child(3) { animation-delay: 0.2s; }
    .nav-links.show li:nth-child(4) { animation-delay: 0.25s; }
    .nav-links.show li:nth-child(5) { animation-delay: 0.3s; }
    .nav-links.show li:nth-child(6) { animation-delay: 0.35s; }
    .nav-links.show li:nth-child(7) { animation-delay: 0.4s; }
    
    @keyframes slideInFromRight {
      0% {
        opacity: 0;
        transform: translateX(30px);
      }
      100% {
        opacity: 1;
        transform: translateX(0);
      }
    }
    
    /* OVERRIDE: Force text to be visible even during animation */
    .nav-links.show li a,
    .sub-menu.show li a {
      opacity: 1 !important;
      visibility: visible !important;
      color: #2c3e50 !important;
      font-size: 16px !important;
      font-weight: 600 !important;
      text-decoration: none !important;
      white-space: nowrap !important;
      overflow: visible !important;
      text-overflow: clip !important;
      transform: none !important;
      animation: none !important;
    }
    
    /* Force text visibility for all menu states */
    .nav-links li a,
    .nav-links li a:hover,
    .nav-links li a:active,
    .nav-links li a:focus,
    .nav-links li a:visited,
    .sub-menu li a,
    .sub-menu li a:hover,
    .sub-menu li a:active,
    .sub-menu li a:focus,
    .sub-menu li a:visited {
      color: #2c3e50 !important;
      opacity: 1 !important;
      visibility: visible !important;
      text-decoration: none !important;
    }
    
    /* Smooth dropdown expansion */
    .dropdown-content {
      transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    /* Enhanced hover effects */
    .nav-links li a:hover {
      background: rgba(0, 0, 0, 0.05);
      color: #000000 !important;
}

.dropdown-content a:hover {
      background: rgba(0, 0, 0, 0.08);
      color: #000000 !important;
    }
    
    /* Smooth transition untuk menu close */
    .nav-links {
      transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
  }
  
  /* Fix konten biar tidak ketutup navbar */
  .image-container,
  .container2 { margin-top: 0; }
  
  @media (orientation: landscape) and (max-width: 900px) {
    .image-container,
    .container2 { 
        margin-top: 50px; /* Sesuaikan dengan tinggi navbar landscape */
    }
    
    /* Pastikan konten tidak tertutup navbar */
    main {
        margin-top: 50px; /* Margin top untuk main content */
    }
    
    /* Pastikan footer tidak tertutup navbar */
    .footer {
        margin-top: 20px; /* Margin top untuk footer */
    }
  }
  
    /* =========================
     OFF-CANVAS MENU STYLING - MOBILE & LANDSCAPE
     ========================= */
  @media (max-width: 768px) {
    /* Pastikan menu container tetap fixed */
    #nav-links {
      position: fixed !important;
      top: 0 !important;
      right: 0 !important;
      transform: translateX(100%) !important;
      transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    }
    
    #nav-links.show {
      transform: translateX(0) !important;
    }
    
    /* Enhanced mobile menu styling */
    .nav-links {
      background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
      backdrop-filter: blur(20px);
      box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
      /* Pastikan menu bisa di-scroll jika terlalu panjang */
      overflow-y: auto;
      scrollbar-width: thin;
      scrollbar-color: #0066cc #f1f1f1;
      padding: 80px 0 20px 0;
    }
    
    /* Pastikan dropdown arrow berfungsi dengan benar di mobile */
    .nav-links .dropdown {
      width: 100%;
      padding: 0;
      margin: 0;
    }
    
    .nav-links .dropdown > a {
      position: relative;
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 100%;
      box-sizing: border-box;
    }
    
    .nav-links .dropdown > a .fa {
      margin-left: 8px;
      transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    /* Custom scrollbar untuk menu utama */
    .nav-links::-webkit-scrollbar {
      width: 4px;
    }
    
    .nav-links::-webkit-scrollbar-track {
      background: #f1f1f1;
      border-radius: 2px;
    }
    
    .nav-links::-webkit-scrollbar-thumb {
      background: #000000;
      border-radius: 2px;
    }
    
    .nav-links::-webkit-scrollbar-thumb:hover {
      background: #333333;
    }
    
    .nav-links li {
      text-align: left;
      border-bottom: 1px solid rgba(0, 0, 0, 0.08);
      width: 100%;
      position: relative;
      overflow: hidden;
      padding: 0;
      margin: 0;
    }
    
    .nav-links li:last-child {
      border-bottom: none;
    }
    
    .nav-links li a {
      padding: 20px 30px;
      color: #2c3e50;
      font-weight: 600;
      font-size: 16px;
      transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      border-radius: 0;
      margin: 0;
      position: relative;
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      box-sizing: border-box;
    }
    
    /* Hapus hover effect biru, hanya panah dropdown yang tetap */
    
    /* Hapus selected state biru untuk mode HP */
    
    /* Enhanced dropdown styling - DISABLED di mobile (gunakan submenu navigation) */
    .dropdown-content {
      display: none !important;
      max-height: 0 !important;
      visibility: hidden !important;
      opacity: 0 !important;
      pointer-events: none !important;
      position: absolute;
      left: -9999px;
    }
    
    /* FORCE disable dropdown active state di mobile */
    .dropdown.active .dropdown-content,
    .has-submenu.active .dropdown-content {
      display: none !important;
      max-height: 0 !important;
      visibility: hidden !important;
      opacity: 0 !important;
    }
    
    /* Dropdown content items - TIDAK DIGUNAKAN di mobile (diganti submenu navigation) */
    
    /* Pastikan dropdown wrapper full width */
    .nav-links .dropdown {
      width: 100%;
      padding: 0;
      margin: 0;
    }
    
    .nav-links .dropdown > a {
      width: 100%;
      box-sizing: border-box;
    }
    
    /* Enhanced blue button styling */
    .blue-button-navbar {
      margin: 20px 30px 10px 30px;
      text-align: center;
      display: block;
      border-radius: 30px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1px;
      transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
      box-shadow: 0 6px 20px rgba(0, 102, 204, 0.3);
      padding: 15px 30px;
      font-size: 14px;
      width: calc(100% - 60px);
      box-sizing: border-box;
    }
    
    .blue-button-navbar:hover {
      transform: translateY(-2px) scale(1.01);
      box-shadow: 0 6px 20px rgba(0, 102, 204, 0.3);
      background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
      text-decoration: none;
      color: white;
    }
    
    /* Dropdown arrow animation - lebih spesifik untuk mobile */
    .nav-links .dropdown > a .fa {
      transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      color: #000000;
    }
    
    .nav-links .dropdown.active > a .fa {
      transform: rotate(180deg);
      color: #000000;
    }
    
    /* Reset arrow saat dropdown tidak aktif */
    .nav-links .dropdown:not(.active) > a .fa {
      transform: rotate(0deg);
      color: #000000;
  }
}
