:root {
  --gray-100: #E5E4E5;
  --dark-500: #202020;
  --secondary-500: #0D333E;
  --megaMenuBgc: #ececec;

  --mmImageWidth: 200px;
  --mmImageHeight: 250px;
  --mmImageWidth992: 180px;
  --mmImageHeight992: 225px;
  --mmImageWidthMobile: 150px;
  --mmImageHeightMobile: 188px;
}

.megaMenuInit > .nav-link::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-inline-start: 10px;
  border-width: 0 0 1px 1px;
  border-style: solid;
  border-color: inherit;
  vertical-align: middle;
  transform: rotate(-45deg);
}
.megaMenuInit.active > .nav-link {
  color: var(--primary) !important;
}
.megaMenuInit.active > .nav-link::after {
  margin-top: 5px;
  transform: rotate(135deg);
}

.toggleMegaMenu .megaMenu {
  display: flex;
  top: 88px;
  opacity: 1;
  transition: height 0.3s ease-in-out, opacity 1s ease-in-out;
}

.megaMenu {
  display: none;
  justify-content: flex-start;
  align-items: flex-start;
  /* background-color: var(--white); */
  background-image: url(../images/home-bg.png);
  background-size: cover;
  background-position: center;
  background-repeat: repeat;
  box-shadow: 0px -1px 0px 0px #ececec inset;
  padding-block: 1.5rem;
  position: fixed;
  top: -100vh;
  right: 0px;
  left: 0px;
  z-index: 999;
  opacity: 0;
  transition: all 3s ease-in-out;
}

@media (max-width: 1199px) {
  .toggleMegaMenu .megaMenu {
    top: 0;
  }

  .megaMenu {
    background-color: var(--megaMenuBgc);
    bottom: 0;
    top: 0;
    z-index: 1002;
  }
}

@media (max-width: 767px) {
  .megaMenu {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
  }
}


/*  */
.megaMenu__left {
  flex: 0 0 248px;
  padding-inline: 1.5rem;
}
@media (max-width: 1199px) {
  .megaMenu__left {
    padding-inline: 1rem;
  }
}
@media (max-width: 767px) {
  .megaMenu__left {
    flex: 0 0 auto;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow-y: auto;
  }
}

.megaMenu__left__title {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 1rem;
  font-family: 'Baskerville';
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.4;
  letter-spacing: -0.7px;
  vertical-align: middle;
  position: sticky;
  position: -webkit-sticky;
  top: 0;
  /* background-color: var(--white); */
  background-image: url(../images/home-bg.png);
  background-size: cover;
  background-position: center;
  background-repeat: repeat;
  /* box-shadow: 0px -1px 0px 0px #ececec inset; */
  z-index: 1;
}
@media (min-width: 1200px) {
  .megaMenu__left__title {
    pointer-events: none;
  }
}
@media (max-width: 1199px) {
  .megaMenu__left__title {
    background-color: var(--megaMenuBgc);
    padding-inline: 0.5rem;
    cursor: pointer;
  }
}
.megaMenu__left__title__icon {
  display: none;
  font-size: inherit;
  color: inherit;
}
@media (max-width: 1199px) {
  .megaMenu__left__title__icon {
    display: block;
  }
}

.megaMenuNav {
  flex-shrink: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.megaMenuNav > li > a {
  display: block;
  padding: 0.375rem 1rem;
  font-family: 'Samarkan';
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.4;
  letter-spacing: -0.7px;
  vertical-align: middle;
  color: var(--dark-500);
  position: relative;
  transition: padding 0.3s linear, color 0.3s linear;
}
.megaMenuNav > li > a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--secondary-500);
  transition: width 0.3s linear;
}
.megaMenuNav > li > a:hover,
.megaMenuNav > li > a.active {
  padding-inline-start: 1.5rem;
  color: var(--primary);
}
.megaMenuNav > li > a:hover::after,
.megaMenuNav > li > a.active::after {
  width: 100%;
}
@media (max-width: 1199px) {
  .megaMenuNav > li > a {
    padding-inline: 0.5rem;
  }
  .megaMenuNav > li > a:hover,
  .megaMenuNav > li > a.active {
    padding-inline-start: 1rem;
  }
}
@media (max-width: 767px) {
  .megaMenuNav > li > a.active ~ .megaMenuNav__mobile {
    display: flex;
  }
}



/*  */
.megaMenu__right {
  flex-grow: 1;
  padding-inline: 1.5rem;
  border-width: 0 0 0 1px;
  border-style: solid;
  border-color: var(--gray-100);
  overflow: hidden;
}
@media (max-width: 1199px) {
  .megaMenu__right {
    padding: 0 1.25rem;
  }
}
@media (max-width: 767px) {
  .megaMenu__right {
    display: none;
  }
}

.megaMenuGrid {
  display: flex;
  align-items: flex-start;
}
@media (max-width: 1199px) {
  .megaMenuGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--mmImageWidth992), 1fr));
    gap: 0.75rem;
    max-height: calc(100vh - 3rem);
    padding: 0;
    overflow-y: auto;
  }
}
@media (max-width: 992px) {
  .megaMenuGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--mmImageWidth992), 1fr));
    padding: 0;
  }
}
.megaMenuGrid__item {
  flex: 0 0 var(--mmImageWidth);
  text-align: center;
  position: relative;
}
@media (max-width: 767px) {
  .megaMenuGrid__item {
    flex: 0 0 auto;
  }
}

.megaMenuGrid__item__link {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0;
  z-index: 1;
}

.megaMenuGrid__item > *:not(.megaMenuGrid__item__link) {
  pointer-events: none;
  user-select: none;
}

.megaMenuGrid__item__img {
  width: 100%;
  height: auto;
  padding-top: 125%;
  border: 6px solid var(--white);
  box-shadow: 0 0 6px 0 rgba(155, 151, 155, 0.2);
  position: relative;
  overflow: hidden;
}
@media (max-width: 767px) {
  .megaMenuGrid__item__img {
    border-width: 4px;
    box-shadow: 0 0 4px 0 rgba(155, 151, 155, 0.2);
  }
}
.megaMenuGrid__item__img > img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.3s linear;
}
.megaMenuGrid__item:hover .megaMenuGrid__item__img > img {
  transform: scale(1.1);
  transition: transform 0.3s linear;
}

.megaMenuGrid__item__title {
  font-family: 'Barlow Condensed';
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.4;
  letter-spacing: -0.34px;
  vertical-align: middle;
  text-transform: capitalize;
}


/* Tab Content */
.megaMenuTabContent {
  display: none;
}
.megaMenuTabContent.active {
  display: block;
}



/*  */
.megaMenuNav__mobile {
  display: none;
}
@media (max-width: 767px) {
  .megaMenuNav__mobile {
    list-style: none;
    padding: 0 0 0.375rem;
    margin: 0;
    gap: 0.5rem;
    flex-wrap: nowrap;
    border-bottom: 1px solid var(--gray-100);
    overflow-x: auto;
  }

  .megaMenuNav__mobile > a {
    flex: 0 0 var(--mmImageWidthMobile);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem 0;
    font-family: 'Baskerville';
    font-weight: 600;
    font-size: 0.75rem;
    line-height: 1;
    color: var(--dark-500);
    text-transform: capitalize;
    text-align: center;
  }
}

