* {
  padding: 0;
  margin: 0;
  box-sizing: border-box; 
}

html,
body {
  overflow-x: hidden;
  width: 100%;
}

.header-container {
  display: flex;
  flex-direction: column;
  position: fixed;
  width: 100%;
  z-index: 100;
}

.top-header-img {
  width: fit-content;
  height: 5rem;
}

.main-header {
  height: 5rem;
  background-color: white;
  border-bottom: 1px solid #F2E3D9;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 10rem;
  padding-right: 10rem;
}

.header-ele {
  display: flex;
  align-items: center;
  gap: 3rem;
}
.main-header a {
  color: #522E14 !important;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.header-ele a.active
 {
  color: #F97415 !important;
}

.mobile-menu a.active{
  color: #522E14 !important;
}
.top-header-box-btn {
  width: fit-content;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  height: 2.5rem;
  background-color: #F97415;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  color: white;
  border: none !important;
  border-radius: 12rem;
  cursor: pointer;
}

/* Hamburger menu for small screens */
.hamburger-menu {
  display: none;
  font-size: 30px;
  cursor: pointer;
  color: #522E14;
}

/* Mobile menu for small screens */
.mobile-menu {
  flex-direction: column;
  background-color: #F97415;
  position: fixed;
  border-left: 2px solid white;
  right: 0;
  top: 5rem;
  height: fit-content;
  overflow-y: auto;
  transition: transform 0.3s ease-in-out;
  z-index: 1000;
  transform: translateX(100%);
  width: 100%;
}

.mobile-menu a {
  padding: 1rem;
  border-bottom: 1px solid #ddd;
  color: black;
  display: block;
}
.mobile-header {
  display: none;
}

/* Dropdown menu */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
  width: 500px;
}

.dropdown-content a {
  color: black;
  padding: 1rem 1rem;
  text-decoration: none;
  display: block;
  font-size: 1rem;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

/* Show dropdown on hover for larger screens */
@media (min-width: 769px) {
  .dropdown:hover .dropdown-content {
    display: block;
  }
}

/* Two-column dropdown */
.dropdown-content.two-columns {
  column-count: 2;
}

@media (max-width: 1400px){
  .main-header{
    padding-left: 8rem;
    padding-right: 8rem;
  }
 
}

@media (max-width: 1200px){
  .main-header{
    padding-left: 4rem;
    padding-right: 4rem;
  }
   .header-ele{
    gap: 1.5rem ;
  }

  .top-header-box-btn{
    padding-left: 1.5rem;
    padding-right: 1.5rem;

  }
}

/* Media query for medium screens */
@media (max-width: 820px) {
  .mobile-menu {
    width: 50%;
  }
  .main-header a {
    font-size: 12px;
  }
  .header-ele {
    gap: 1rem;
  }
  .hamburger-menu {
    display: block;
  }
  .mobile-menu a {
    font-size: 18px;
    font-weight: 500;
    color: white;
    text-decoration: none;
  }
  .main-header {
    justify-content: space-between;
     padding-left: 2rem;
    padding-right: 2rem;
  }
  .top-header-img{
    height: 4rem;
  }
}

/* Media query for small screens */
@media (max-width: 768px) {
  .main-header {
    display: none;
  }

  .main-header a {
    display: none;
  }

  .hamburger-menu {
    display: block;
  }

  .mobile-menu {
    width: 100%;
    max-height: 80vh; /* Adjust based on the required height */
    overflow-y: auto;
    height: auto;
  }

  .mobile-menu a {
    font-size: 18px;
    font-weight: 500;
    color: white;
    text-decoration: none;
  }

  .mobile-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding-left: 1rem;
    padding-right: 1rem;
    align-items: center;
    background-color:white;
    height: 5rem;
  }

  .top-header {
    display: none;
  }

  /* Initially hide dropdown content */
  .dropdown-content {
    display: none;
    flex-direction: column;
    padding: 1rem;
    position: relative;
    z-index: 200;
    width: 100%;
    background-color: #008cf1;
  }

  .dropdown-content a {
    background-color: #1153a1;
  }

  .dropdown-content a:hover {
    color: #1153a1;
  }

  .header-container .dropdown-content.open {
    display: block;
  }

  .dropdown-content.two-columns {
    column-count: 1;
  }
}

/* Open state */
.mobile-menu.open {
  transform: translateX(0);
}
/* banner */
.main-banner {
  width: 100%;
  height: fit-content;
  margin-top: 10rem;
}
.main-banner-img img {
  width: 100%;
  height: auto;
}
@media (max-width: 580px) {
  .main-banner {
    margin-top: 9rem;
  }
}
@media (max-width: 768px) {
  .main-banner {
    margin-top: 5rem;
  }
}
