/* === GLOBAL RESET === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  background: #fff;
  color: #222;
}

/* === TOP HEADER === */
.top-header {
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(to right, #b90000, #ff4d4d);
  border-image-slice: 3;
}

.top-header.right-align {
  background-color: #000;
  color: #fff;
  font-size: 14px;
  padding: 8px 20px;
  text-align: right;
  font-weight: 500;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1001;
}

.top-header.right-align .top-contact a {
  color: #fff;
  text-decoration: none;
  margin-left: 10px;
  font-weight: 600;
}

.top-header.right-align .top-contact a:hover {
  color: #ffcc00;
}

/* === HEADER === */
.header-wrapper {
  position: fixed;
  width: 100%;
  z-index: 999;
  padding: 20px 0;
  transition: all 0.3s ease;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
}

.header-wrapper.scrolled {
  background: #fff;
  padding: 4px 20px; /* kecilkan top-bottom & left-right */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: left;
}


.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: all 0.3s ease;
}

.header-wrapper.scrolled .header-inner {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.logo-center {
  text-align: center;
  padding-top: 10px;
}

.logo-center img {
  height: 95px;
  max-height: 90px;
  transition: all 0.3s ease;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.4));
  margin-top: 8px;
}

.header-wrapper.scrolled .logo-center {
  text-align: left;
  padding-top: 0;
}

.header-wrapper.scrolled .logo-center img {
  height: 60px;
}

/* === NAVIGATION === */
.nav-bar {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  transition: all 0.3s ease;
}

.header-wrapper.scrolled .nav-bar {
  justify-content: flex-end;
  width: 100%;
  margin-top: 40px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  border-bottom: 2px solid rgba(255, 255, 255, 0.6);
  width: 80vw;
  padding-bottom: 20px;
}

.header-wrapper.scrolled .nav-links {
  border-bottom: none !important;
  justify-content: flex-end;
  width: auto;
}

.nav-links li {
  position: relative;
}

.nav-links li a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 14px;
  border-radius: 4px;
  transition: all 0.5s ease;
  position: relative;
}

.header-wrapper.scrolled .nav-links li a {
  color: #111;
  padding: 14px 8px;
  letter-spacing: 1.3px;
}

.nav-links li a:hover {
  background-color: #b90000;
  color: #fff;
}

.nav-links li a.active {
  background-color: #b90000;
  color: #fff;
}

.nav-links li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: 0;
  background: #b90000;
  transition: width 0.3s ease;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
}

/* === DROPDOWN MENU === */
.has-dropdown {
  position: relative;
}

.has-dropdown .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100vw;
  background: rgba(0, 0, 0, 0.8);
  padding: 40px 100px;
  justify-content: flex-start;
  gap: 60px;
  z-index: 999;
  color: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.has-dropdown.open .dropdown,
.has-dropdown:hover .dropdown {
  display: flex;
}

.dropdown .column {
  flex: 1 1 200px;
  max-width: 220px;
  display: flex;
  flex-direction: column;
}

.dropdown .column strong {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
  border-bottom: 1px solid #b90000;
  padding-bottom: 6px;
  text-transform: none;
}

.dropdown .column a {
  color: #ccc;
  font-size: 14px;
  font-weight: 400;
  text-align: left;
  padding: 6px 0;
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
}

.dropdown .column a:hover {
  color: #ff4c4c;
  padding-left: 6px;
}

.header-wrapper.scrolled .has-dropdown .dropdown {
  left: 0;
  right: 0;
  width: 100vw;
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  padding: 40px 80px;
  top: calc(100% + 8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.header-wrapper.scrolled .dropdown .column a {
  color: #111;
}

.header-wrapper.scrolled .dropdown .column strong {
  color: #000;
  border-bottom-color: #b90000;
}

/* === MOBILE MENU === */
.mobile-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  padding: 15px;
  position: absolute;
  top: 15px;
  right: 20px;
  z-index: 1001;
  color: #c8102e;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  height: 100%;
  background-color: #ffffff;
  z-index: 1000;
  padding: 20px 20px 40px;
  box-shadow: 3px 0 6px rgba(0,0,0,0.3);
  transition: left 0.3s ease;
  overflow-y: auto;
}

.mobile-menu.active {
  left: 0;
}

.menu-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #000;
}

.mobile-nav {
  list-style: none;
  padding-left: 0;
  margin-top: 30px;
}

.mobile-nav > li {
  margin-bottom: 15px;
}

.mobile-nav li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.mobile-nav .submenu {
  display: none;
  padding-left: 15px;
  margin-top: 5px;
}

.toggle-icon {
  float: right;
  font-weight: bold;
  font-size: 18px;
  margin-left: 10px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }

  .nav-bar {
    display: none;
  }

  .logo-center {
    padding-top: 40px;
  }

  .nav-links,
  .dropdown {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
}
