﻿body {
  font-family: var(--font-base);
}
/* ===============================================================
   2. HEADER
================================================================ */
header {
  position: relative;  /* sekadar untuk konteks positioning anak */
  background-color: #fff;
  transition: padding var(--transition), box-shadow var(--transition);

}


header.shrink {
  padding: .5rem 0;
  box-shadow: var(--shadow);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  padding-left: 30px;
  padding-right: 30px;
  padding-top: 10px;
  border-bottom: 1px solid #e5e5e5;
}

.branding img {
  height: 56px;
}

.titles h1 {
  font-family: var(--font-base);
  font-weight: 550;
  font-size: 1.2rem;
  color: #0006ce;
}

.titles p {
  font-size: .7rem;
  color: #555;
}

.btn-cta {
  background: linear-gradient(135deg, #0060C0 0%, #004E98 100%);
  color: #fff;
  padding: .3rem 0.9rem;
  font-weight: 600;
  font-size: 0.8rem;
}

.btn-cta:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* ===============================================================
   3. MENU BAR (NAVIGASI DESKTOP)
================================================================ */
.menu-bar {
  background: var(--light);
  padding: .5rem 2rem;
}

header.shrink .menu-bar {
  padding: .25rem 2rem;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.nav-link {
  position: relative;
  font-weight: 600;
  color: var(--blue) !important;
  padding: .5rem .75rem;
  border-radius: var(--radius);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  transition: width var(--transition), left var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  left: 0;
  width: 100%;
}

.dropdown-menu {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: .3rem;
}

.dropdown-item:hover {
  background: var(--light);
  color: var(--accent);
}

.dropdown-item.active {
  font-weight: 600;
  color: var(--accent);
}

/* ===============================================================
   4. BREADCRUMB
================================================================ */
.breadcrumb-container {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  padding: .75rem 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: none;
}

.breadcrumb {
  display: flex;
  gap: .5rem;
  list-style: none;
  font-size: .9rem;
}

.breadcrumb li + li::before {
  content: 'Ã¢â‚¬Âº';
  color: #999;
  padding: 0 .5rem;
}

.breadcrumb a {
  color: var(--accent);
}

.breadcrumb a:hover {
  color: var(--blue);
}

.breadcrumb .active {
  color: #666;
  font-weight: 600;
}

/* ---------- 4. SEARCH OVERLAY ----------------------------------- */
#searchOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .75);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
    z-index: 2000;
}

#searchOverlay.active {
    display: flex;
    opacity: 1;
}

#searchOverlay .close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    transition: color var(--transition);
}

#searchOverlay .close-btn:hover {
    color: #ccc;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: .75rem;
    width: 90%;
    max-width: 600px;
    background: #fff;
    padding: .5rem;
    border-radius: .5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}

.search-prepend,
.search-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

.search-btn {
    background: var(--accent);
    color: #fff;
    padding: .5rem .75rem;
    border-radius: var(--radius);
    transition: background .3s, transform .2s;
}

.search-btn:hover {
    transform: translateY(-2px);
}

.search-container input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.1rem;
    padding: .5rem 1rem;
}

.suggestions {
    position: absolute;
    top: calc(100% + .25rem);
    left: 0;
    right: 0;
    list-style: none;
    background: #fff;
    border-radius: .5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
    max-height: 240px;
    overflow-y: auto;
    margin: 0;
    padding: 0;
}

.suggestions.hide {
    display: none;
}

.suggestions li {
    padding: .75rem 1rem;
    cursor: pointer;
    transition: background .2s;
}

.suggestions li:hover {
    background: var(--light);
}


/* ===============================================================
   6. BACK TO TOP
================================================================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.scroll-progress {
  width: 100%;
  height: 100%;
}

.scroll-progress .bg {
  fill: none;
  stroke: #e0e0e0;
  stroke-width: 3.5;
}

.scroll-progress .progress {
  fill: none;
  stroke: #f5b916;
  stroke-width: 3.5;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 0.25s linear;
}

/* ===============================================================
   9. MOBILE RESPONSIVE
================================================================ */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  .branding img {
    height: 45px;
  }

  .nav-link {
    padding: .5rem .7rem;
    font-size: 0.95rem;
  }

  .nav-extra,.kadin-navbar-scroll.kadin-scrolled {
    display: none !important;
  }

  .breadcrumb-container {
    padding: 0.75rem 1rem;
  }

  .breadcrumb {
    font-size: 0.85rem;
  }
  
}

/* SEMBUNYIKAN SIDEBAR MOBILE DI DESKTOP */
@media (min-width: 768px) {
  #mobileSidebar,
  .menu-toggle,
  .sidebar-mask {
    display: none !important;
  }
}
/* SEMBUNYIKAN MENU DESKSTOP DI MOBILE */
@media (max-width: 768px) {
  .menu-bar {
    display: none !important;
    
  }
  .header-top {
    position: fixed;  /* sekadar untuk konteks positioning anak */
    background-color: #fff;
    z-index: 1000;
  }

}
/* ===============================================================
   MOBILE SIDEBAR STYLES - KADIN.ID CLONE
================================================================ */
/* ========== TOMBOL HAMBURGER GAYA MODERN ========== */
.menu-toggle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
  position: relative;
  z-index: auto;
}

.menu-toggle:hover {
  background-color: #f5b73f;
  transform: scale(1.05);
}

.menu-toggle::before,
.menu-toggle::after,
.menu-toggle span {
  content: "";
  position: absolute;
  width: 20px;
  height: 2px;
  background-color: #0000b9; /* Deep Blue */
  transition: all 0.3s ease;
}

.menu-toggle span {
  top: 50%;
  transform: translateY(-50%);
}

.menu-toggle::before {
  top: 14px;
}

.menu-toggle::after {
  bottom: 14px;
}

#mobileSidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  background-color: #0000b9; /* Deep Kadin Blue */
  color: white;
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  font-family: var(--font-base);
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.15);
}

#mobileSidebar.open {
  transform: translateX(0);
}

#mobileSidebar .sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  padding-bottom: 4rem;
  background-color: #0000b9;
  border-bottom: 1px solid #ffffff;
}

#mobileSidebar .sidebar-header img {
  height: 60px;
}

#mobileSidebar .sidebar-header h1 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 1rem;
  color: white;
  line-height: 1.2;
}

#mobileSidebar .btn-close {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10000;
}

/* Accordion container */
#mobileSidebar .accordion {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Accordion item button */
#mobileSidebar .accordion-button {
  background-color: #0000b9;
  color: white;
  font-weight: 600;
  text-align: left;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border: none;
  border-bottom: 1px solid #ffffff; /* consistent white border */
}

#mobileSidebar .accordion-button:hover {
  background-color: #00009f;
}

#mobileSidebar .accordion-button:focus {
  outline: none;
  box-shadow: none;
}

#mobileSidebar .accordion-button::after {
  content: "\25BC";
  transform: rotate(0deg);
  transition: transform 0.3s ease;
  font-size: 0.75rem;
  color: white;
}

#mobileSidebar .accordion-button[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

/* Accordion content body */
#mobileSidebar .accordion-body {
  background-color: #0000b9;
  padding: 0.5rem 2rem;
  font-size: 0.9rem;
  display: none;
  animation: fadeIn 0.3s ease forwards;
  border-bottom: 1px solid #ffffff;
}

#mobileSidebar .accordion-body.show {
  display: block;
}

#mobileSidebar .accordion-body a {
  color: white;
  display: block;
  padding: 0.5rem 0;
  text-decoration: none;
  transition: color 0.2s ease;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

#mobileSidebar .accordion-body a:hover {
  color: #f5b73f;
}

/* Language switcher */
#mobileSidebar .language-switcher {
  margin: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
}

#mobileSidebar .language-switcher img {
  width: 24px;
  height: auto;
  border: 1px solid white;
  border-radius: 4px;
}

/* Login button */
#mobileSidebar .login-btn {
  background-color: #f5b73f;
  color: white;
  padding: 0.75rem;
  margin: 1rem;
  font-weight: bold;
  text-align: center;
  width: calc(100% - 2rem);
  display: block;
  text-decoration: none;
  transition: background-color 0.3s ease;
  border: none;
  border-radius: 4px;
}

#mobileSidebar .login-btn:hover {
  background-color: #e0a734;
}

/* Sidebar mask */
.sidebar-mask {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  display: none;
  transition: opacity 0.3s ease;
}

.sidebar-mask.show {
  display: block;
  opacity: 1;
}

/* Hilangkan panah dari tombol tanpa dropdown */
#mobileSidebar .accordion-button.no-dropdown::after {
  content: none !important;
}

/* Accordion fade-in */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Ã¢â‚¬Ã¢â‚¬â€ SHOW / HIDE NAVBAR Ã¢Ã¢â‚¬â€ */
.kadin-navbar-scroll {
  transform: translateY(-100%);
  height: 64px; /* lebih kecil */
  transition: transform var(--kadin-time);
  will-change: transform;
  
}
.kadin-navbar-scroll.kadin-scrolled {
  transform: translateY(0);
  background: var(--kadin-bg);
  border-bottom: var(--kadin-border);
  box-shadow: var(--kadin-shadow);
  backdrop-filter: var(--kadin-glass);
  padding-left: 20px;
  padding-right: 20px;
}

/* Ã¢â‚¬â€Ã¢â‚¬â€ BRAND Ã¢â‚¬â€Ã¢â‚¬â€ */
.navbar-brand img {
  height: 40px; /* lebih kecil dari 46px */
  transition: transform var(--kadin-time);
}

/* Ã¢â‚¬â€Ã¢â‚¬â€ MAIN NAV Ã¢â‚¬â€Ã¢â‚¬â€ */
.kadin-main-nav {
  gap: 1.5rem; /* lebih rapat */
  align-items: center;
}
.kadin-main-nav .nav-link {
  position: relative;
  font-size: 0.875rem; /* kecilkan font */
  font-weight: 600;
  color: var(--kadin-blue-dark);
  padding: 0.65rem 0.5rem; /* padding lebih kecil */
  transition: color var(--kadin-time), transform var(--kadin-time);
}
.kadin-main-nav .nav-link i {
  margin-right: .35rem;
}
.kadin-main-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 0;
  height: 2px; /* lebih tipis */
  background-color: var(--kadin-accent);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width var(--kadin-time);
  display: none;
}
.kadin-main-nav .nav-link:hover,
.kadin-main-nav .nav-link.active {
  color: var(--kadin-accent);
  transform: translateY(-2px);
}
.kadin-main-nav .nav-link:hover::after,
.kadin-main-nav .nav-link.active::after {
  width: 100%;
}

/* Ã¢â‚¬â€Ã¢â‚¬â€ DROPDOWN Ã¢Ã¢â‚¬â€ */
.kadin-main-nav .dropdown-menu {
  border: 0;
  padding: .5rem 0; /* lebih slim */
  box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
  animation: fadeSlide .25s ease;
}
@keyframes fadeSlide {
  from {opacity: 0; transform: translateY(8px);}
  to {opacity: 1; transform: translateY(0);}
}
.kadin-main-nav .dropdown-menu .dropdown-item {
  font-size: 0.85rem; /* kecilkan dropdown item */
  padding: .45rem 1rem;
}
.kadin-main-nav .dropdown-menu .dropdown-item i {
  color: var(--kadin-blue);
}

.kadin-megamenu {
  min-width: 600px;
  border-radius: .5rem;
}
.kadin-megamenu h6 {
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .4rem;
  color: #888;
}
.kadin-megamenu .dropdown-item:hover {
  background: #f8f9fc;
}

/* Ã¢â‚¬â€Ã¢â‚¬â€ SEARCH â‚¬Ã¢â‚¬â€ */
.kadin-search input {
  width: 160px;
  border-radius: 30px;
  border: 1px solid #ced4da;
  padding: .35rem 1rem;
  transition: width var(--kadin-time), box-shadow var(--kadin-time);
}
.kadin-search input:focus {
  width: 220px;
  box-shadow: 0 0 0 .2rem rgba(0,85,164,.15);
  outline: 0;
}

/* Ã¢â‚¬â€Ã¢â‚¬â€ CTA Ã¢â€Ã¢â€ */
.btn-kadin {
  background: linear-gradient(135deg, #0060C0 0%, #004E98 100%);
  color: #fff;
  border-radius: 30px;
  padding: .5rem 1.4rem;
  font-weight: 600;
  transition: transform var(--kadin-time), filter var(--kadin-time);
  box-shadow: 0 4px 12px rgba(0,85,164,.25);
}
.btn-kadin:hover {
  transform: translateY(-2px);
  filter: brightness(1.07);
}

/* Ã¢â‚¬â€Ã¢â‚¬â€ RESPONSIVE Ã¢â€Ã¢â‚¬â€ */
@media(max-width:991.98px) {
  .kadin-main-nav {
    flex-direction: column;
    gap: .6rem;
    margin-top: .5rem;
  }
  .kadin-main-nav .dropdown-menu {
    position: static;
    width: 100%;
  }
  .kadin-search {
    width: 100%!important;
    justify-content: center;
    margin: .8rem 0;
  }
  .kadin-megamenu {
    min-width: 100%!important;
  }
}

/* Ã¢â‚¬â€Ã¢â€ DROPDOWN ARROW (hilangkan default) Ã¢â€Ã¢â‚¬â€ */
#kadinNavDesktop .dropdown-toggle::after {
  display: none;
}
#kadinNavDesktop .dropdown-toggle .fa-angle-down {
  margin-left: .25rem;
  vertical-align: middle;
}

/* Ã¢â‚¬â€Ã¢â‚¬â€ SUGGESTIONS â‚¬â€Ã¢â‚¬â€ */
.kadin-suggestions {
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 1000;
  max-height: 220px;
  overflow-y: auto;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  font-size: 0.875rem;
}
.kadin-suggestions li {
  padding: 0.5rem 1rem;
  cursor: pointer;
}
.kadin-suggestions li:hover {
  background-color: #f1f1f1;
}
.kadin-suggestions.hide {
  display: none;
}


/* Submenu posisi ke kanan */
.dropdown-submenu {
            position: relative;
          }
          
          .dropdown-submenu > .dropdown-menu {
            top: 0;
            left: 100%;
            margin-top: -1px;
          }
          
          /* Panah kanan di item yang punya submenu */
          .dropdown-submenu > a > i {
            font-size: 12px;
            margin-left: 5px;
            margin-top: 3px;
          }
