* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Inter", Arial, sans-serif !important;
  background-color: #fff;
  font-weight: 500;
  line-height: 1.6;
}
/* ===== DESKTOP NAVBAR ===== */
.desktop-nav {
  /* background: #e3e6f3; */
  background-color: #ffffff;
  padding: 0px 2;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  position: relative;
  z-index: 100;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.6);
}

.nav-item {
  padding: 9px;

  cursor: pointer;
  position: relative; /* Changed from relative to static */
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-block;
  font-size: 15px;
  font-weight: 600;

  transition: 0.3s ease;
}
.nav-item a {
  text-decoration: none;
  color: rgb(255, 255, 255);
  color: #1a1a1a;
}
.nav-item a:hover {
  color: red;
}
.nav-item::after {
  content: "";
  position: absolute;
  bottom: 4px; /* reduced from 0px or higher for closer gap */
  left: 0;
  height: 2px;
  width: 0;
  background-color: red;
  transition: width 0.3s ease;
}

.nav-item:hover::after {
  width: 100%;
}

.nav-item:hover {
  color: red;
}

/* .nav-item::after {
  content: "\25BE";
  font-size: 10px;
  margin-left: 5px;
} */

/* COMMON DROPDOWN */
.dropdown {
  position: absolute;
  top: 100%; /* directly below the nav-item */
  left: 50%; /* center point */
  transform: translateX(-50%); /* perfectly center it */
  background: #fff;
  display: none;
  color: #000;

  justify-content: center;
  z-index: 1000;
  min-width: 280px;

  /* Border */
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}
.home-utilty-dropdown {
  position: absolute !important;
  top: 100%; /* directly below the nav-item */
  right: -150px !important; /* center point */
  transform: translateX(-50%); /* perfectly center it */
  background: #fff;
  display: none;
  color: #000;

  justify-content: center;
  z-index: 1000;
  min-width: 280px;

  /* Border */
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

/* Show dropdown when nav-item is hovered */
.nav-item:hover .dropdown {
  display: flex;
}
.nav-item:hover .home-utilty-dropdown {
  display: flex;
}

.dropdown-column {
  flex: 1;
}
.dropdown-column h4 {
  font-size: 16px;
  margin-bottom: 10px;
}
.dropdown-column a {
  display: block;
  color: #000;
  text-decoration: none;
  margin: 15px 0;
  font-size: 15px;
  border-bottom: 0.2px solid rgb(225, 224, 223);
  padding: 5px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

.dropdown-column a::before {
  content: "";
  position: absolute;
  bottom: 6px; /* Existing bottom border se thoda upar */
  left: 20%; /* 50% width ke liye */
  right: 20%;
  height: 2px;
  background-color: red;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dropdown-column a:hover::before {
  opacity: 1;
}

.dropdown-column a:hover {
  color: rgb(46 66 119);
}

/* ===== MOBILE NAVBAR ===== */
.mobile-nav {
  display: none;
  justify-content: space-between;
  align-items: center;
  background-color: rgb(46 66 119);
  color: white;
  padding: 0px 20px 0px 5px;
}

.menu-icon {
  font-size: 38px;
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(46 66 119) !important;
  color: white !important;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  padding: 20px;
  z-index: 9999;
  overflow-y: auto;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu .close-btn {
  font-size: 24px;
  text-align: right;
  cursor: pointer;
}

.accordion-item {
  border-top: 1px solid gray !important;
  padding: 15px 0;
  background-color: rgb(46 66 119);
}

.accordion-title {
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  font-size: 22px;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  font-size: 16px;
  padding-left: 10px;
}

.accordion-content a {
  display: block;

  text-decoration: none;
  color: #ccc;
  border-bottom: 1px solid wheat;
  padding: 12px 0px !important;
  font-size: 17px !important;
}

.accordion-item.active .accordion-content {
  max-height: 1800px;
}

.dropdown-image img {
  width: 100%;
  height: auto;
}

.mobile-nav a img {
  width: 158px;
  height: 140px;
}

/* category banner  */
.categories-page-full-banner-container {
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center; /* vertical center */
  justify-content: center; /* horizontal center (optional) */
}

.categories-page-full-banner-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.accordion-title a {
  text-decoration: none;
  color: white;
}

/* sub dropdown */
.bag-tiffin-submenu {
  position: relative;
  display: block;
}
.bag-tiffin-products {
  display: none;
  flex-direction: column;
  position: absolute;
  background-color: #fff;
  border: 1px solid #ccc;
  margin-top: 2px;
  padding: 5px 10px;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  left: 278px;
  top: 5px;
  width: 280px;
}

.bag-tiffin-trigger {
  font-weight: bold;
  background-color: #f5f5f5;
  display: block;
  text-align: center;
  position: relative;
}
.bag-tiffin-submenu .bag-tiffin-trigger {
  color: #000;
}

.bag-tiffin-products a {
  margin: 0;
  padding: 5px;
  color: #000;
  text-decoration: none;
  border-bottom: 1px solid #eee;
  text-align: center;
}

.bag-tiffin-submenu:hover .bag-tiffin-products {
  display: flex;
}

.bag-tiffin-products a:last-child {
  border-bottom: none;
}

.bag-tiffin-products a:hover {
  color: red;
  font-weight: 600;
}

/* ===== RESPONSIVE RULES ===== */
@media screen and (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: flex;
  }
  .bag-tiffin-products {
    display: none;
    flex-direction: column;
    position: relative;
    background-color: #13013c;
    color: white !important;
    margin-top: 2px;
    padding: 5px 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    left: 1px;
    width: 320px;
    border-bottom: 1px solid #eee;
  }
  .bag-tiffin-products a {
    color: white;
  }
  .categories-page-full-banner-container {
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center; /* vertical center */
    justify-content: center; /* horizontal center (optional) */
    height: 200px;
    background-color: rgb(213, 213, 213);
  }
  .categories-page-full-banner-image {
    width: 100%;
    height: 150px;
    display: block;
    object-fit: contain;
  }
}
