/* Header */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    min-height: 64px;
    margin-top: 0 !important;
    padding-top: 0 !important;
    backdrop-filter: saturate(180%) blur(20px);
    background: rgba(255 255 255 / 0.75);
    border-bottom: 1px solid #e5e7eb;
    z-index: 1000;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    height: 100%;
    padding: 0 1.25rem 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0 !important;
    padding-top: 0 !important;
    min-height: unset !important;
    height: auto !important;
}

.brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #222;
    letter-spacing: -0.025em;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-logo {
    height: 48px;
        width: auto;
        display: block;
        object-fit: contain;
        margin: 0 0.5rem 0 0;
    
}

/* Navbar */
.navbar {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.nav-list {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin: 0 0 0 auto;
    padding-left: 0;
}

.nav-list-active {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255 255 255 / 0.95);
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 2rem;
    z-index: 1000;
    box-shadow: 0 2px 6px rgb(0 0 0 / 0.1);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-link,
.nav-button {
    display: flex;
    align-items: center;
    font-weight: 600;
    padding: 0.5rem 0;
    color: #374151;
    user-select: none;
    border-radius: 10px;
    transition: background-color 0.3s ease, color 0.3s ease,
        transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover,
.nav-button:hover,
.nav-link:focus-visible,
.nav-button:focus-visible {
    background: #c7d2fe;
    color: #4338ca;
    outline: none;
    transform: translateY(-1.5px);
}

.nav-button {
    background: none;
    border: none;
    gap: 4px;
}

.nav-icon {
    font-size: 20px;
    margin-right: 6px;
    color: #6366f1;
}

.dropdown-icon {
    font-size: 18px;
    color: #8b5cf6;
    transition: transform 0.3s ease;
    user-select: none;
}

/* Rotate icon when expanded */
.nav-button[aria-expanded="true"] .dropdown-icon {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: rgba(255 255 255 / 0.9);
    backdrop-filter: saturate(150%) blur(12px);
    min-width: 180px;
    box-shadow: 0 10px 25px rgb(0 0 0 / 0.08);
    border-radius: 12px;
    border: 1px solid #ddd6fe;
    padding: 0.5rem 0;
    display: none;
    z-index: 1500;
    animation: fadeInScale 0.25s ease forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.dropdown-link {
    display: block;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    color: #4b5563;
    white-space: nowrap;
    transition: background-color 0.25s ease, color 0.25s ease;
    border-radius: 8px;
}

.dropdown-link:hover,
.dropdown-link:focus-visible {
    background-color: #e0e7ff;
    color: #3730a3;
    outline: none;
}

/* Menu toggle for mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #6366f1;
    font-size: 32px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    user-select: none;
    transition: color 0.3s ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
    color: #4338ca;
}

/* User dropdown in navbar */
.nav-user-dropdown {
    margin-left: 1rem;
    position: relative;
    display: flex;
    align-items: center;
}

.nav-user-dropdown .nav-button {
    background: none;
    border: none;
    padding: 0.25rem;
    border-radius: 50%;
    color: #6366f1;
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    transition: background 0.2s, color 0.2s;
}

.nav-user-dropdown .nav-button:hover,
.nav-user-dropdown .nav-button:focus-visible {
    background: #e0e7ff;
    color: #4338ca;
    outline: none;
}

.nav-user-dropdown .dropdown-menu {
    right: 0;
    left: auto;
    min-width: 120px;
    top: calc(100% + 8px);
    z-index: 1500;
}

/* Footer */
.footer {
    background: #f9fafb;
    padding: 2rem 1rem 2.5rem;
    border-top: 1px solid #e0e7ff;
    color: #4b4b6a;
    font-size: clamp(0.875rem, 1vw, 1rem);
    user-select: none;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1.5rem;
}

.logo-image {
    width: 180px;
    height: 180px;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    align-self: flex-start;
    /* Align logo top */
    flex-shrink: 0;
}

.footer-section {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 180px;
}

.footer-section h3 {
    font-weight: 700;
    color: #4338ca;
    margin-bottom: 0.6rem;
    font-size: 1.125rem;
    text-shadow: 0 0 4px rgb(67 56 202 / 0.3);
    user-select: text;
}

.footer-section address,
.footer-section p {
    line-height: 1.6;
    font-weight: 500;
    color: #6c6c8a;
    user-select: text;
}

.footer-section a,
.footer-section a:visited {
    color: #6d28d9;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-section a:hover,
.footer-section a:focus-visible {
    color: #8b5cf6;
    outline: none;
    text-decoration: underline;
}

/* Social links */
.social-container {
    width: 100%;
    text-align: center;
    margin: 1.5em 0 0 0;
}

.social-icons {
    padding: 0;
    list-style: none;
    margin: 1em auto;
    display: flex;
    justify-content: center;
    gap: 0.5em;
}

.social-icons li {
    display: inline-block;
    margin: 0.15em;
    position: relative;
    font-size: 1.2em;
}

.social-icons a {
    display: inline-block;
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 100%;
}

.social-icons a:before {
    content: " ";
    width: 60px;
    height: 60px;
    border-radius: 100%;
    display: block;
    background: linear-gradient(45deg, #00b5f5, #002a8f);
    transition: all 265ms ease-out;
    transform: scale(1);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.social-icons a:hover:before {
    transform: scale(0);
    transition: all 265ms ease-in;
}

.social-icons i {
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transition: all 265ms ease-out;
    font-size: 2em;
    z-index: 2;
    transform: translate(-50%, -50%);
}

.social-icons a:hover i {
    transform: translate(-50%, -50%) scale(1.45);
    color: #00b5f5;
    background: -webkit-linear-gradient(45deg, #00b5f5, #002a8f);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 265ms ease-in;
}

/* Map iframe styling */
.footer-map iframe {
    width: 100%;
    border: none;
    border-radius: 12px;
    height: 180px;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
    transition: box-shadow 0.3s ease;
    user-select: none;
    align-self: flex-start;
    /* Align map top */
}

.footer-map iframe:hover,
.footer-map iframe:focus-visible {
    box-shadow: 0 12px 36px rgba(139, 92, 246, 0.6);
    outline: none;
}

/* Footer bottom centered */
.footer-bottom-centered {
    max-width: 1280px;
    margin: 1.5rem auto 0 auto;
    padding: 0 1.25rem;
    text-align: center;
    color: #6c6c8a;
    font-size: 0.875rem;
    user-select: none;
}

body {
  margin-top: 0 !important;
}

html, body, .header, .header-container {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  min-height: 0 !important;
  height: auto !important;
}

/***** SIDEBAR VERTIKAL FIXED KIRI & ANIMASI MULUS *****/
.sidebar {
  position: fixed;
  top: 0;
  left: 0 !important;
  right: unset !important;
  width: 220px;
  height: 100vh;
  background: #fff;
  box-shadow: 2px 0 16px rgba(0,0,0,0.09);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transform: translateX(0);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1), width 0.25s;
}
.sidebar.closed {
  transform: translateX(-100%);
}
.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px 12px 20px;
  border-bottom: 1px solid #e5e7eb;
}
.sidebar-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: #6366f1;
  letter-spacing: 2px;
  transition: opacity 0.2s;
}
.sidebar-toggle {
  background: none;
  border: none;
  color: #6366f1;
  font-size: 2rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s;
}
.sidebar-toggle:hover {
  background: #f3f4f6;
}
.sidebar-menu {
  list-style: none;
  margin: 0;
  padding: 18px 0 0 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  color: #374151;
  font-weight: 600;
  font-size: 1.08rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.sidebar-link:hover, .sidebar-link:focus {
  background: #e0e7ff;
  color: #4338ca;
}
.sidebar-label {
  flex: 1;
  transition: opacity 0.2s, width 0.2s;
}
.sidebar-link .material-icons {
  font-size: 1.6em;
  color: #6366f1;
}
.sidebar-dropdown {
  position: relative;
}
.sidebar-dropdown-toggle {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 16px;
  color: #374151;
  font-weight: 600;
  font-size: 1.08rem;
  border-radius: 8px;
  padding: 12px 24px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.sidebar-dropdown-toggle:hover, .sidebar-dropdown-toggle:focus {
  background: #e0e7ff;
  color: #4338ca;
}
.sidebar-dropdown-icon {
  margin-left: auto;
  font-size: 1.2em;
  color: #8b5cf6;
  transition: transform 0.3s;
}
.sidebar-dropdown-toggle[aria-expanded="true"] .sidebar-dropdown-icon {
  transform: rotate(180deg);
}
.sidebar-dropdown-menu {
  display: none;
  flex-direction: column;
  background: #f8fafc;
  border-radius: 0 0 8px 8px;
  margin: 0 0 0 36px;
  padding: 0 0 8px 0;
  box-shadow: none;
}
.sidebar-dropdown.open > .sidebar-dropdown-menu {
  display: flex;
}
.sidebar-sublink {
  display: block;
  padding: 8px 24px 8px 32px;
  color: #6366f1;
  font-size: 1rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.sidebar-sublink:hover, .sidebar-sublink:focus {
  background: #e0e7ff;
  color: #4338ca;
}
/* Overlay for mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.18);
  z-index: 1199;
  transition: opacity 0.3s;
}
.sidebar.open ~ .sidebar-overlay {
  display: block;
  opacity: 1;
}
@media (max-width: 900px) {
  .sidebar {
    width: 64px;
    min-width: 64px;
    overflow-x: hidden;
    transition: width 0.25s, transform 0.35s cubic-bezier(.4,0,.2,1);
  }
  .sidebar.open {
    width: 220px;
    min-width: 220px;
  }
  .sidebar-label, .sidebar-title {
    display: none;
  }
  .sidebar.open .sidebar-label, .sidebar.open .sidebar-title {
    display: inline;
  }
}
@media (max-width: 600px) {
  .sidebar {
    right: 0 !important;
    left: unset !important;
    transform: translateX(-100%);
    width: 220px;
    min-width: 220px;
    transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-overlay {
    display: block;
  }
}
body.sidebar-active {
  overflow: hidden;
}

/* === MOBILE NAVBAR FULL ATAS === */
@media (max-width: 900px) {
  .header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 56px;
    min-height: 0;
    background: rgba(255,255,255,0.7);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    z-index: 2000;
    padding: 0;
  }
  .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 1rem;
    background: rgba(255,255,255,0.0);
    margin: 0;
    gap: 0;
  }
  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #222;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
  }
  .brand-logo {
    height: 38px;
    width: auto;
    margin: 0 6px 0 0;
  }
  .brand-title-mobile {
    color: #222;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: inline;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.1rem;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    z-index: 2100;
  }
  .sidebar {
    position: fixed;
    top: 56px;
    right: 0 !important;
    left: unset !important;
    width: 100vw;
    height: 0;
    background: #d32f2f;
    box-shadow: 0 4px 24px rgba(0,0,0,0.13);
    z-index: 2050;
    overflow: hidden;
    transform: none;
    transition: height 0.35s cubic-bezier(.4,0,.2,1);
    border-radius: 0 0 18px 18px;
  }
  .sidebar.open {
    height: 320px;
    min-height: 220px;
    max-height: 90vh;
    overflow-y: auto;
  }
  .sidebar-header, .sidebar-title {
    display: none !important;
  }
  .sidebar-menu {
    flex-direction: column;
    gap: 0;
    padding: 12px 0 0 0;
    background: transparent;
  }
  .sidebar-link, .sidebar-dropdown-toggle {
    color: #fff;
    background: none;
    font-size: 1.08rem;
    font-weight: 600;
    border-radius: 0;
    padding: 13px 24px;
    border-bottom: 1px solid #fff2;
    transition: background 0.2s, color 0.2s;
  }
  .sidebar-link:hover, .sidebar-link:focus, .sidebar-dropdown-toggle:hover, .sidebar-dropdown-toggle:focus {
    background: #b71c1c;
    color: #fff;
  }
  .sidebar-link .material-icons, .sidebar-dropdown-toggle .material-icons {
    color: #fff;
    font-size: 1.5em;
    margin-right: 10px;
  }
  .sidebar-label {
    color: #fff;
    font-size: 1.08rem;
    font-weight: 600;
    letter-spacing: 0.5px;
  }
  .sidebar-dropdown-menu {
    background: #c62828;
    margin: 0;
    border-radius: 0 0 12px 12px;
    box-shadow: none;
    padding: 0 0 8px 0;
  }
  .sidebar-sublink {
    color: #fff;
    padding: 10px 36px;
    font-size: 1rem;
    border-radius: 0;
    border-bottom: 1px solid #fff1;
    background: none;
  }
  .sidebar-sublink:hover, .sidebar-sublink:focus {
    background: #b71c1c;
    color: #fff;
  }
  .sidebar-dropdown-icon {
    color: #fff;
  }
  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.18);
    z-index: 2000;
    transition: opacity 0.3s;
  }
  .sidebar.open ~ .sidebar-overlay {
    display: block;
    opacity: 1;
  }
}
@media (min-width: 901px) {
  .mobile-menu-toggle, .brand-title-mobile {
    display: none !important;
  }
}