:root {
  --main-subtext-color: #505050;
  --main-title-color: #015caf;
  --main-green-color: #26c997;
  --main-font-family: "Anek Bangla", sans-serif;
  --secondary-font-family: "Inter", sans-serif;
  --main-font-weight: 400;
}
a {
  word-break: break-word;
}
html,
body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  height: 100%;
  overflow-x: hidden; /* Prevent horizontal scrolling */
  font-family: "Anek Bangla", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  font-weight: 500;
}

/* General Header Styling */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: white;
  padding: 15px 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: inherit;
}

/* Navigation Menu */
.main-nav .nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
  font-family: inherit;
}

.main-nav .nav-menu li {
  position: relative;
}

.main-nav .nav-menu li a {
  color: #343434;
  text-decoration: none;
  padding: 10px 15px;
  font-size: 1rem;
  white-space: nowrap;
  font-family: var(--main-font-family);
  font-weight: var(--main-font-weight);
}

.main-nav .nav-menu li:hover > ul {
  display: block;
}

.main-nav .nav-menu li:hover {
  background-color: #e6f4ff;
  border-radius: 15%;
  color: #0073aa;
}

/* Dropdown */
.main-nav .nav-menu li ul {
  display: none;
  position: absolute;
  background-color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  list-style: none;
  margin: 0;
  padding: 10px;
  border-radius: 15%;
  z-index: 10;
}

.main-nav .nav-menu li ul li a {
  display: block;
  padding: 10px 15px;
  color: #333;
}

.main-nav .nav-menu li ul li a:hover {
  background-color: #e6f4ff;
  border-radius: 15%;
  color: #0073aa;
}

.main-nav .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  margin-left: 5px;
  width: 10px; /* Adjust size */
  height: 10px;
  background-image: url("../assets/arrow.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: transform 0.3s ease;
}

/* Rotate the arrow on hover */
.main-nav .menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
}

/* Action Buttons */
.header-buttons {
  display: flex;
  gap: 10px;
}

.header-buttons .btn {
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 14px;
  text-decoration: none;
  text-align: center;
  display: flex;
  align-items: center;
}

.primary-btn {
  background: linear-gradient(45deg, #00bfa6, #0073aa);
  color: white;
  border: none;
  text-align: center;
}

.secondary-btn {
  background-color: white;
  color: #0073aa;
  border: 2px solid #0073aa;
  text-align: center;
}

.primary-btn:hover,
.secondary-btn:hover {
  opacity: 0.9;
}

/* Hamburger Icon (Hidden by default, background image used for SVG) */
.menu-icon {
  display: none; /* Hidden by default, will be shown on small screens */
  cursor: pointer;
  width: 3rem;
  height: 3rem;
  border: 2px solid #0073aa;
  border-radius: 25%;
  padding: 0.2rem;
  color: #0073aa;
}

/* Full-Screen Menu - Hidden by default */
.fullscreen-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0074aace;
  color: white;
  z-index: 9999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

/* Close Menu Icon */
.close-menu {
  position: absolute;
  top: 0.7rem;
  right: 1.7rem;
  cursor: pointer;
  width: 3rem;
  height: 3rem;
}

/* Navigation Menu in Full-Screen Mode */
.fullscreen-menu nav ul {
  list-style: none;
  text-align: center;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: start;
}

.fullscreen-nav .sub-menu {
  padding-left: 2rem; /* Indent dropdown items */
}

.fullscreen-nav .menu-item-has-children .sub-menu {
  max-height: 0; /* Hidden initially */
  overflow: hidden; /* Hide overflowing content */
  transition: max-height 0.5s ease; /* Smooth transition */
  display: none;
}

.fullscreen-nav .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  margin-left: 0.5rem;
  width: 1rem; /* Adjust size */
  height: 1rem;
  background-image: url("../assets/arrow.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: transform 0.3s ease;
}

/* Rotate the arrow on hover */
.fullscreen-nav .menu-item-has-children.active > a::after {
  transform: rotate(180deg); /* Rotate arrow when active */
}

/* Show dropdown when active (triggered by JavaScript) */
.fullscreen-nav .menu-item-has-children.active .sub-menu {
  max-height: 500px; /* Show the dropdown items */
}

.fullscreen-menu nav ul li {
  margin: 20px 0;
  border-bottom: 2px white solid;
  text-align: start;
}

.fullscreen-menu nav ul li .menu-item {
  margin: 20px 0;
  border-bottom: 2px white;
}

.fullscreen-menu nav ul li a {
  color: white;
  font-size: 24px;
  text-decoration: none;
  transition: color 0.3s;
}

.fullscreen-menu nav ul li a:hover {
  color: #26c997; /* Adjust color as per your design */
}

/* Action Buttons in Full-Screen Menu */
.fullscreen-menu .header-buttons {
  margin-top: 30px;
}

/* Default styles for larger screens */
.main-nav {
  display: flex; /* Ensure menu is displayed on large screens */
  gap: 20px; /* Adjust the spacing between menu items */
}

.header-buttons {
  display: flex; /* Ensure buttons are displayed on large screens */
  gap: 10px; /* Adjust the spacing between buttons */
}

.buttons-small-screen {
  display: none;
}

/* Responsive Styles */
@media (max-width: 1100px) {

  .site-header {
    padding: 15px 4vw;
  }

  /* Show logo and menu icon on small screens */
  .menu-icon {
    display: flex; /* Show hamburger icon on small screens */
  }

  .logo img {
    max-width: 100px;
  }

  .buttons-small-screen {
    display: flex;
    align-items: center;
    gap: 2vw;
    position: relative;
  }

  /* Hide the main navigation menu in the header */
  .main-nav {
    display: none;
  }

  /* Hide the regular action buttons in the header */
  .header-buttons {
    display: none;
  }

  /* Full-screen menu when active */
  .fullscreen-menu.active {
    display: flex; /* Show the full-screen menu */
    overflow-y: auto;
  }

  .fullscreen-header-buttons {
    display: flex;
    flex-direction: column;
  }
  .primary-btn {
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid black;
    border-radius: 27px;
  }

  .secondary-btn {
    padding: 0.5rem;
    border-radius: 27px;
  }

  .search-bar form {
    padding: 0.2rem;
  }

  .search-bar.active.mobile {
    width: 40vw;
  }

  .search-results-dropdown.mobile{
    right: 0;
    text-align: center;
  }
}

/* Search Icon */
.search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-svg-icon {
  font-size: 20px;
  cursor: pointer;
  align-items: center;
  display: flex;
}

/* Hidden Search Bar */
.search-bar {
  right: 0;
  top: 0;
  width: 0;
  overflow: hidden;
  transition: width 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.search-bar form {
  display: flex;
  align-items: center;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 25px;
  padding: 5px;
}

.search-bar input.search-input {
  border: none;
  outline: none;
  padding: 5px;
  width: 0;
  transition: width 0.4s ease;
}

.search-bar button {
  background: none;
  border: none;
  color: #0073aa;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* When search bar is active */
.search-bar.active {
  width: 100%;
}

.search-bar.active input.search-input {
  width: 100%;
}

.search-bar.active input.search-input {
  width: 100%;
}
/* Close Button */
.close-search {
  display: none; /* Hidden by default */
  border-radius: 50%;
  border: 2px solid blue;
  background-color: blue;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.search-bar.active .close-search {
  display: block; /* Show when search bar is active */
}

.close-search:hover {
  border-image: linear-gradient(90deg, #015caf, #26c997);
  border-image-slice: 1;
}

.search-results-dropdown {
  list-style-type: none;
  padding: 0;
  margin: 0;
  position: absolute;
  width: 100%;
  max-width: 300px;
  background: white;
  border: 1px solid #ccc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  display: none;
  top: 100%;
  border-radius: 27px;
  font-family: var(--secondary-font-family);
  font-weight: var(--main-font-weight);
}

.search-results-dropdown li {
  padding: 10px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  border-radius: 27px;
}

.search-results-dropdown li:hover {
  background: #e6f4ff;
  color: #0073aa;
}

.search-results-dropdown li a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.search-results-dropdown li:last-child {
  text-align: center;
  font-weight: bold;
  color: #0073aa;
}

button.loading::after {
  content: "";
  position: absolute;
  width: 1.5rem;
  height: 1.5rem;
  border: 3px solid var(--main-green-color);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
