/* Reset styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: #f4f4f4;
  /* Light background for the whole page */
}

/* Main Layout Container */
.layout-container {
  display: flex;
  height: auto;
  /* Set the height of the container */
  width: 100%;
  margin: 0;
  padding: 0;
  background-color: hsl(167, 66%, 17%);
  /* White background for the container */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  /* Soft shadow for the layout */
  align-items: stretch;
  /* Ensures both sections stretch to the same height */
}

/* Category Sidebar */
.sidebar-menu {
  width: 270px;
  /* Fixed width for sidebar */
  background-color: hsl(167, 66%, 17%);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100vh;
  /* Full viewport height */
  padding: 20px;
  box-shadow: 4px 0 8px rgba(0, 0, 0, 0.1);
  border-right: 2px solid #d1d1d1;
  position: relative;
  /* Set as relative by default for mobile view */
  overflow-y: auto;
  /* Scrollable if content overflows */
}

/* Sidebar title */
.sidebar-menu h2 {
  color: #fff;
  margin-bottom: 15px;
  font-size: 1.5em;
}

/* Main Category - Bold Font */
.sidebar-menu ul li>a {
  text-decoration: none;
  color: #fff;
  font-size: 1.1em;
  display: flex;
  justify-content: space-between;
  padding: 0px 0;
  transition: color 0.3s ease, transform 0.2s ease;
  font-weight: bold;
  /* Bold for main category */
}

/* Subcategory - Regular Font */
.sidebar-menu ul li .subcategory-list a {
  text-decoration: none;
  color: #fff;
  font-size: 1em;
  display: flex;
  justify-content: space-between;
  padding: 0px 0;
  transition: color 0.3s ease, transform 0.2s ease;
  font-weight: normal;
  /* Regular font for subcategories */
}

.sidebar-menu ul {
  list-style-type: none;
  padding-left: 20px;
}

.sidebar-menu ul li {
  margin-bottom: 10px;
}

.sidebar-menu ul li a:hover {
  color: #ffffff;
  transform: scale(1.05);
  /* Subtle hover effect */
}

.sidebar-menu ul li a .arrow-icon {
  font-size: 1.3em;
  color: #fff;
  /* Set the arrow icon color to white */
}

.subcategory-list {
  display: none;
  padding-left: 0px;
  margin-top: 5px;
  width: 100%;
  /* Make the subcategory list span the full width of the sidebar */
  background-color: #333;
  /* Default background color */
  transition: background-color 0.3s ease;
  /* Smooth background color transition */
}

.category-item.active .subcategory-list {
  display: block;
  background-color: #05857e;
  /* Change the background color when expanded */
  border: 2px;
  border-radius: 5px 0 0 5px;
}

/* Slider Section */
.custom-slider-wrapper {
  margin-left: 270px;
  /* Offset to prevent overlap with sidebar */
  width: calc(100% - 270px);
  /* Adjust width to fill remaining space */
  overflow: hidden;
  position: relative;
  height: auto;
  /* Reduced height of the slider */
}

.custom-slider {
  display: flex;
  width: 100%;
  /* 3 slides, adjust accordingly */
  transition: transform 0.5s ease-in-out;
}

.custom-slide {
  min-width: 100%;
  position: relative;
}

.custom-slide img {
  width: 100%;
  height: 100%;
  /* Adjusted height to fit the container */
  object-fit: cover;
  /* Ensure the image covers the entire area without distortion */
  object-position: center;
  /* Make sure the image is centered */
}

/* Caption Styling */
.custom-slide-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Centers the caption */
  color: white;
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  /* Added text shadow for better visibility */
}

/* Sidebar Menu for Mobile */
.sidebar-menu-mobile {
  display: none;
  background-color: hsl(167, 66%, 17%);
  position: absolute;
  top: 0;
  right: 0 !important;
  width: 400px;
  height: auto !important;
  padding: 15px;
  z-index: 1001;
}

/* For big screens */

@media (min-width: 1500px) {
  .sidebar-menu {
    position: absolute;
    top: 140px;
    left: 0;
    height: 530px !important;
    overflow-y: scroll;
    scrollbar-width: none;
  }

}


/* Fixed Sidebar Menu on Laptop/Desktop */
@media (min-width: 1024px) {
  .sidebar-menu {
    position: absolute;
    top: 140px;
    left: 0;
    height: 350px;
    overflow-y: scroll;
    scrollbar-width: none;
  }

  .sidebar-menu::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari */
  }

  .custom-slider-wrapper {
    margin-left: 270px;
    /* Keeps space for the fixed sidebar */
  }
}

/* Responsive Design */
@media (max-width: 768px) {

  .main-search-form .button {
    top: 0px;
  }

  .logo-container {
    display: flex;
    align-items: center;
    justify-content: space-around;

  }

  .logo-container .logo img {
    width: 200px;
    margin-top: 0px;
  }

  .hamburger-mobile {
    display: block;
    font-size: 30px;
    cursor: pointer;
  }

  .layout-container {
    height: 100% !important;
  }

  .sidebar-menu {
    display: none;
  }

  .sidebar-menu-mobile {
    display: none;
    width: 100%;
    height: auto;
    right: 0 !important;
    padding: 15px;
  }

  .sidebar-menu-mobile.is-open {
    display: block;
    overflow-x: hidden;
    position: absolute;
    top: 120px !important;
    left: 0 !important;
  }

  .custom-slider-wrapper {
    margin-left: 0;
    width: 100%;
    height: 300px;
    /* Reduced height for smaller screens */
  }

  .custom-slide img {
    height: 300px;
  }

  .sidebar-menu ul li a {
    font-size: 1em;
    padding: 8px 0;
  }

  .tx-div {
    display: none;
  }

}