body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  background-color: #ffffff;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
}

.header {
  display: flex;
  align-items: center;
  padding: 20px 20px;
}

.header-text {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  position: absolute;
  top: 25px;
  right: 10px;
  max-width: 100vw; /* prevent it from going off-screen */
  overflow: hidden;  /* clip anything that tries to escape */
}

.logo-container {
  display: flex;
  align-items: center;
  height: 20px;               /* logos will scale with viewport height */
  max-width: 40vw;           /* total width of the logo row */
  flex-shrink: 1;
  gap: 0px;
  overflow: hidden;
}

.logo-container img {
  height: 20px;
  width: auto;
  max-width: 100%;           /* prevents logos from blowing out the container */
  object-fit: contain;
  display: block;
}

.divider {
  font-weight: bold;
  font-size: 2vh;
  align-self: center;
}

.logo-text {
  width: 50%;
  max-width: 450px;
  height: auto;
  position: absolute;
  top: 10px;
  left: 10px;
  margin: 0; /* Adds some space from the edge */
}

.header-text h1 {
  margin: 0;
  position: absolute;
  top: 20px;
  left: 800px;
  font-size: 16px;
  color: black;
}

.custom-line {
  border: 0;
  border-top: 4px solid #000;
  width: 100%;
  margin-top: min(5vw, 45px); /* 5% of viewport width */
  margin-bottom: 0;
}

.icon-container {
  display: grid;
  position: relative;
  grid-template-columns: repeat(7, 1fr);
  gap: 15px;
  max-width: 100%;
  margin-top: 10px;
}

.icon {
  width: 120px;
  height: 50px;
  margin: 0 auto;
  background-color: #b0b0b0;
  color: black;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 5px;
  font-size: 16px;
  font-weight: normal;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 2px solid black;
  position: relative;
}

.icon.active {
  transform: scale(0.95);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  background-color: #ffffff;
  border: 2px solid #000000;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 10;
  width: 120%;
  margin-top: 10px;
}

.dropdown-item {
  padding: 2px;
  font-size: 14px;
  font-weight: normal;
  color: #000000;
  cursor: pointer;
  text-align: center;
}

.dropdown-item:hover {
  background-color: #f0f0f0;
}

.icon.active .dropdown-menu {
  display: block;
}

.text-block {
  display: none; /* Hide initially */
  width: 76%; /* Adjust the width */
  /* max-width: 1000px; /* Limit the maximum width */
  margin-top: 150px; /* Push it lower down the page */
  padding-top: 5px; /* Adjust padding for inner spacing */
  padding-left: 20px; /* Adjust padding for inner spacing */
  border: 2px solid black; /* Change border color and thickness */
  border-radius: 10px; /* Add rounded corners */
  background-color: #f0f0f0; /* Background color */
  color: black; /* Text color */
  font-family: Arial, sans-serif; /* Change the font */
  font-size: 14px; /* Adjust text size */
  font-weight: normal; /* Make text bold */
  text-align: left; /* Center the text */
}

.text-block.active {
  display: block;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  /* Adjustments for tablets */
  .header-text h1 {
    left: 600px; /* Move header text closer to the logo */
    font-size: 14px;
  }

  .icon-container {
    grid-template-columns: repeat(7, 1fr); /* Reduce to 4 columns for tablets */
    gap: 15px; /* Reduce gap between icons */
  }

  .icon {
    width: 110px;
    height: 45px;
    font-size: 16px;
  }



  .dropdown-item {
   padding: 2px;
   font-size: 14px;
   font-weight: normal;
   color: #000000;
   cursor: pointer;
   text-align: center;
  }

  .text-block {
    font-size: 14px; /* Reduce font size */
    display: none; /* Hide initially */
    width: 77%; /* Adjust the width */
  }
}

@media (max-width: 920px) {
  /* Adjustments for smaller tablets and large phones */
  .header-text h1 {
    left: 400px; /* Move header text closer to the logo */
    font-size: 10px;
  }

  .icon-container {
    grid-template-columns: repeat(7, 1fr); /* Reduce to 3 columns */
    gap: 10px;
  }

  .icon {
    width: 100px;
    height: 40px;
    font-size: 16px;
    Font-weight: normal;
  }

  .dropdown-item {
    padding: 2px;
    font-size: 14px;
    font-weight: normal;
    color: #000000;
    cursor: pointer;
    text-align: center;
  }

  .text-block {
    font-size: 14px; /* Reduce font size */
    display: none; /* Hide initially */
    width: 78%; /* Adjust the width */
  }
}

@media (max-width: 840px) {


  .logo-text {
    width: 50%;
    min-width: 160px;
    height: auto;
    position: absolute;
    top: 10px;
    left: 10px;
    margin: 0; /* Adds some space from the edge */
  }

  .custom-line {
    border: 0;
    border-top: 4px solid #000;
    width: 100%;
    margin-top: 5vw; /* 5% of viewport width */
    margin-bottom: 0;
  }

  .icon-container {
    display: flex;
    height: 180px;
    overflow-x: auto;
    white-space: nowrap;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 5px; /* Uniform gap between icons */
    /* padding: 10px 20px; /* Add horizontal padding */
  }

  .icon-container::-webkit-scrollbar {
    display: none;
  }



  .icon:first-child {
    margin-left: 10px; /* Reduced from 20px */
  }

  .icon:last-child {
    margin-right: 10px;
  }


  .icon {
    flex: 0 0 auto;
    width: 100px;
    height: 40px;
    font-size: 16px;
    font-weight: bold;
  }

  /* Keep the rest of your styles unchanged */
  .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    background-color: #ffffff;
    border: 2px solid #000000;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10;
    width: 125%;
    margin-top: 10px;
  }

  .dropdown-item {
    padding: 1px;
    font-size: 14px;
    font-weight: bold;
    color: #000000;
    cursor: pointer;
    text-align: center;
  }

  .text-block {
    display: none; /* Hide initially */
    width: 80%; /* Adjust the width */
    /* max-width: 1000px; /* Limit the maximum width */
    margin-top: 10px; /* Push it lower down the page */
    padding-top: 0; /* Adjust padding for inner spacing */
    padding-left: 15px; /* Adjust padding for inner spacing */
    border: 2px solid black; /* Change border color and thickness */
    border-radius: 10px; /* Add rounded corners */
    background-color: #f0f0f0; /* Background color */
    color: black; /* Text color */
    font-family: Arial, sans-serif; /* Change the font */
    font-size: 14px; /* Adjust text size */
    font-weight: normal; /* Make text bold */
    text-align: left; /* Center the text */
  }

  .text-block.active {
    display: block;
  }
}