.navbar {
  width: 100%;
  padding: 10px 18px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  backdrop-filter: blur(8px);
  /* color: white; */
  background-color: rgba(255, 255, 255, 0);
  /* border-radius: 99px; */
  border-bottom: 1px solid rgba(255, 255, 255, 0);
  /* margin: 3rem auto; */
  /* transition: all 0.35s ease; */
  z-index: 999;
}

.navbar {
  transition: none;
}

.navbar.navbar-ready {
  transition: all 0.3s ease;
}

.offcanvas {
  z-index: 1000;
  height: 100vh;
  transition: none;
}

.p-relative {
  position: relative;
}

.navbar .container {
  padding: 0;
}

.navbar-toggler:focus {
  text-decoration: none;
  outline: 0;
  box-shadow: none;
}

.navbar-brand {
  width: 12%;
  /* border: 1px solid black; */
}

.navbar-brand img {
    width: auto;
    max-width: none;
    object-fit: contain;
}

.img1 {
  display: block;
}

.img2 {
  display: none;
}

/* ======================
NAVBAR SAAT SCROLL
====================== */

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.732);
  backdrop-filter: blur(8px);
  color: black;
  padding: 10px 18px;
  border-bottom: 1px solid oklch(92.3% 0.003 48.717);

  .nav-link {
    color: black;
  }

  .nav-link:hover {
    color: #f51212;
  }

  .img1 {
    display: none;
  }

  .img2 {
    display: block;
  }
}

/* ======================
NAV LINK
====================== */

.navbar .nav-link {
  position: relative;
  padding-bottom: 12px;
}

.navbar .nav-link::after {
  content: "";

  position: absolute;
  left: 50%;
  bottom: 2px;

  width: 0;
  color: #000;
  height: 3px;

  background: #f51212;
  border-radius: 999px;

  transform: translateX(-50%);

  transition: all 0.3s ease;
}

.navbar .nav-link:hover::after {
  width: 0px;
  color: #f51212;
}

.nav-link:hover {
  color: #f51212;
}

.dark .nav-link {
  color: white;
}

.nav-link {
  font-weight: 480;
  display: flex;
  color: rgb(0, 0, 0);
  align-items: center;
  gap: 6px;
  transition: 0.25s;
}

.nav-item {
  font-size: 14px;
  color: rgb(0, 0, 0);
  font-weight: 480;
}

.navbar-nav {
  gap: 1rem;
}

/* ======================
CTA BUTTON
====================== */

.btn-black {
  background-color: #000;
  color: white;
  display: flex;
  text-decoration: none;
  flex-direction: row;
  align-items: center;
  font-size: 15px;
  justify-content: center;
  padding: 16px 22px;
  border-radius: 99px;
  font-weight: 6000;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

/* .btn-orange {
  background: #126ef5;
  background: linear-gradient(105deg, rgba(16, 86, 226, 1) 0%, rgba(0, 72, 197, 1) 100%);
  color: white;
  display: flex;
  text-decoration: none;
  flex-direction: row;
  align-items: center;
  font-size: 15px;
  justify-content: center;
  padding: 8px 22px;
  border-radius: 99px;
  font-weight: 600;
  gap: 0.5rem;
  transition: all 0.3s ease;
} */

.btn-orange {
  background: linear-gradient(
    105deg,
    rgb(255, 33, 33) 0%,
    rgb(212, 17, 17) 100%
  );
  color: white;
  display: flex;
  text-decoration: none;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;

  font-size: 15px;
  font-weight: 600;
  padding: 8px 22px;
  border-radius: 99px;

  position: relative;
  overflow: hidden;

  transition: all 0.3s ease;
}

.btn-orange2 {
  /* background: #0000; */
  /* background: linear-gradient(105deg, rgb(0, 8, 24) 0%, rgb(0, 0, 0) 100%); */
  border: 1px solid #ffffff;
  color: #fff;
  display: flex;
  text-decoration: none;
  flex-direction: row;
  align-items: center;
  font-size: 15px;
  justify-content: center;
  padding: 8px 22px;
  border-radius: 99px;
  font-weight: 600;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.btn-orange.padding {
  padding: 0.8rem 2rem;
}

.btn-orange2.padding {
  padding: 0.8rem 2rem;
}

.btn-black:hover {
  color: white;
  background-color: #000;
  box-shadow:
    0 0 0 0 #161b26 inset,
    0 0 0 8px rgba(0, 0, 0, 0.043);
}

/* .btn-orange:hover {
  color: white;
  box-shadow:
    0 0 0 0 #161b26 inset,
    0 0 0 8px rgba(65, 113, 255, 0.15);
  scale: 1.05;
} */

.btn-orange:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 0 0 #161b26 inset,
    0 0 0 8px rgba(255, 65, 65, 0.15);
  /* scale: 1.02; */
  color: white;
}

.btn-orange:active {
  transform: translateY(-1px) scale(0.98);
}

/* Shine Effect */
.btn-orange::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;

  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );

  transform: skewX(-25deg);
}

/* Shine saat hover */
.btn-orange:hover::before {
  animation: shine 1s ease;
}

@keyframes shine {
  100% {
    left: 150%;
  }
}

.btn-orange2 img,
.btn-orange img,
.btn-black img {
  width: 16px;
}

/* ======================
REMOVE BOOTSTRAP ARROW
====================== */

.dropdown-toggle::after {
  display: block;
}

/* ======================
CUSTOM ARROW
====================== */

.arrow {
  width: 7.5px;
  height: 7.5px;
  border-right: 2px solid rgb(255, 255, 255);
  border-bottom: 2px solid rgb(255, 255, 255);
  transform: rotate(45deg);
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.25s ease;
  display: inline-block;
  margin-top: -5px;
  margin-left: 5px;
}

.scrolled .arrow {
  width: 7.5px;
  height: 7.5px;
  border-right: 2px solid #000;
  border-bottom: 2px solid #000;
  transform: rotate(45deg);
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.25s ease;
  display: inline-block;
  margin-top: -5px;
  margin-left: 5px;
}

.nav-link:hover .arrow {
  border-color: #f51212;
}

.mega-item:hover .arrow {
  transform: rotate(225deg);
  border-color: #f51212;
}

/* ======================
MEGA MENU
====================== */

.mega-menu {
  position: absolute;
  left: 0px;
  width: 250% !important;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.25s;
}

.mega-menu .container {
  width: 100%;
  position: relative;
}

.dark .mega-menu .container {
  max-width: 800px;
  background: rgba(255, 255, 255, 0.082);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #ffffff1e;
}

.mega-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ======================
MEGA CONTENT
====================== */

.mega-title {
  font-weight: 700;
  padding: 0.8rem 1rem 0rem 1rem;
  /* display: none; */
  color: black;
  /* border: 1px solid black; */
}

.dark .mega-title,
.dark .mega-link {
  color: black;
}

.mega-link {
  display: block;
  color: black;
  opacity: 0.9;
  font-weight: 500;
  text-decoration: none;
  padding: 0.8rem 1rem;
  transition: all 0.5s ease;
}

.mega-link img {
  padding: 0.3rem;
  background-color: #fafafa10;
  color: #f51212;
  width: 38px;
  margin-right: 5px;
  /* border-radius: 14px; */
}

.mega-link:hover {
  /* border-radius: 14px; */
  color: #f51212;
  /* background-color: #fafafa; */
}

.mega-link span {
  display: block;
  font-size: 13px;
  color: #777;
}

.banner {
  background: #fafafa02;
  border: 1px solid #ffffff0f;
  width: 100%;
  height: 430px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1rem;
}

.banner-item {
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 1rem;
}

.banner img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
}

.banner h4 {
  margin: 0;
  color: white;
  font-weight: 600;
}

.banner p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.582);
  margin: 0;
}

.banner a {
  font-weight: 600;
  text-align: center;
  border-radius: 99px;
  padding: 0.5rem 1rem;
  margin-top: auto;
  background-color: #07ac23;
  color: white;
  text-decoration: none;
  transition: 0.2s;
}

.banner a:hover {
  background-color: #960404;
}

.row-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  background-color: #fff;
  /* border-radius: 99px; */
  border: 1px solid #dedede;
  backdrop-filter: blur(0px);
  padding: 0rem 0rem 0.5rem 0rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.007);
}

.row-wrapper1 {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.row-wrapper2 {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 1rem;
}

.row-wrapper1 a.ctanav {
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
  padding: 12px;
  transition: 0.2s;
  text-align: center;
  border: 1.5px solid rgba(255, 255, 255, 0.178);
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.row-wrapper1 a.ctanav:hover {
  background-color: #fafafa05;
}

a.ctanav img {
  width: 16px;
}

.row1 {
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.row2 {
  width: 35%;
  display: flex;
  flex-direction: column;
}

.offcanvas {
  z-index: 9999 !important;
}

.offcanvas-backdrop {
  z-index: 9998 !important;
}

/* ======================
MOBILE & OFFCANVAS TWEAKS
====================== */

@media (max-width: 991px) {
  /* DEFAULT TERTUTUP (Tambahkan !important) */
  .mega-menu {
    position: relative;
    /* Paksa sembunyi, abaikan sticky hover */
    opacity: 0 !important;
    visibility: hidden !important;
    max-height: 0 !important;
    left: 0;
    overflow: hidden;
    padding: 0;
    /* transition:
      opacity 0.35s ease,
      visibility 0.35s ease,
      max-height 0.35s ease; */
  }

  /* KETIKA AKTIF (Tambahkan !important) */
  .mega-item.active .mega-menu {
    opacity: 1 !important;
    visibility: visible !important;
    max-height: 500px !important;
    padding: 0;
    overflow-y: scroll;
    border-radius: 20px;
  }

  .navbar {
    background: rgba(255, 255, 255, 0);
    width: 100%;
    border-radius: 0;
    border: 1px solid #ffffff00;
    padding: 1rem;
    /* position: fixed; */
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    border-bottom: 1px solid #ededed00;
  }

  .navbar.scrolled {
    background: #fff;
    border-radius: 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.052);
    border-bottom: 1px solid #fafafa18;
    margin: 0 auto;
  }

  .navbar-toggler {
    scale: 0.8;
    color: white !important;
  }

  .navbar-brand {
    width: 25%;
    /* border: 1px solid black; */
  }
  
  .navbar .nav-link {
      width: fit-content;
  }

  .img1 {
    display: block;
  }

  .img2 {
    display: none;
  }

  .navbar .container {
    padding: 0rem;
  }

  .offcanvas {
    transition: none;
  }

  .nav-link {
    color: black;
  }

  .arrow {
    border-right: 2px solid black;
    border-bottom: 2px solid black;
  }

  .row-wrapper1,
  .row2 {
    width: 100%;
  }

  .row-wrapper2,
  .row-wrapper {
    flex-direction: column;
  }

  .navbar-nav {
    margin-top: 10px;
    margin-bottom: 20px;
    gap: 0.5rem;
  }
}

@media (min-width: 992px) {
  .offcanvas-header {
    display: none;
    /* Sembunyikan header sidebar di desktop */
  }
}

@media (max-width: 767px) {
  .container,
  .container-sm {
    width: 100%;
    max-width: 690px !important;
  }
}

@media (max-width: 575px) {
  .navbar .btn-orange {
    font-size: 15px;
  }

  .navbar-brand {
    width: 35%;
    /* border: 1px solid black; */
  }
}

@media (max-width: 480px) {
  .offcanvas.offcanvas-end {
    width: 80%;
  }
}

@media (max-width: 440px) {
  .offcanvas.offcanvas-end {
    width: 95%;
  }

  .navbar-brand {
    width: 40%;
    /* border: 1px solid black; */
  }
}
