@media (max-width: 768px) {
    .tab-container {
      width: 100%;
      font-size: 10px;
      margin: 0 auto;
      height: auto;
      overflow-y: auto; /* or overflow-y: scroll; */
    overflow-x: auto; /* or overflow-y: scroll; */
    scrollbar-width: none; /* for Firefox */
  -ms-overflow-style: none; /* for Internet Explorer and Edge */
    }

    .tab-headers {
      grid-template-columns: 1fr; /* ensure single column on small screens */
      padding: 1% 1%;
    }
  }
  
  .tab-headers {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2%;
    border-top: 1px solid #4b2424;
    padding-top: 2%;
  }
  
  @media (min-width: 600px) and (max-width: 900px) {
    .tab-headers {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (min-width: 901px) {
    .tab-headers {
      grid-template-columns: repeat(4, 1fr);
    }
  }

   .tab-header {
  background-color: #19e734;
  border: none;
  padding: 3% 0.5%;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  cursor: pointer;
  font-size: 1.5rem;
}

@media (max-width: 400px) {
  .tab-header {
    font-size: 0.5rem;
  }
}

  .tab-header.active {
    background-color: gold;
  }

  .tab-headers button {
    border: 1px solid rgb(100, 97, 97);
    border-radius: 5px;
  }  
  
  .tab-content {
    display: none;
    padding:2%;
    
  }
  
  .tab-content.active {
    display: block;
  }  
  
  #myBrand {
    background: none;
    border: none;
    padding: 0.1%;
    max-height: 5%;
    z-index: 1000 !important;
  }
  
  /* Small screens */
  @media (max-width: 768px) {
    #myBrand {
      position: absolute;
      margin-top: 8%;
      left: 38%;
    }
  }
  
  /* Medium screens */
  @media (min-width: 769px) and (max-width: 1200px) {
    #myBrand {
        position: absolute;
        margin-left: 4%;      
        margin-top: 3%;
        left: 41%;
    }
  }

  .other-offers {
        border-bottom: none;
        color: #f1eeee;
        margin-bottom: 0; /* reduce margin bottom */
        top: 1%;
      }

    /* other offers styles */
    .other-offers h3 {
        padding-bottom: 0.5%;
        border-bottom: none;
        color: #f1eeee;
        margin-bottom: 0; /* reduce margin bottom */
        top: 1%;
      }
      
        .other-offers h4 {
        padding-bottom: 0.5%;
        border-bottom: none;
        color: #06410e;
        margin-bottom: 0; /* reduce margin bottom */
        top: 1%;
      }  

   .other-offers ul {
    margin-top: 0; /* reduce margin top */
    padding-top: 0; /* reduce padding top */
    padding-bottom: 0;
    margin-bottom: 0;
    list-style: none; /* add this line */
  }
  
  .other-offers li {
    padding: 3px;
    border-bottom: 1px solid #f8f666fb;
    margin-left: -20px;
  }
  
  .other-offers li:hover {
    background-color: #f1f07bfb;
  }
  
  .other-offers a {
    color: #e90c2a;
    text-decoration: none;
    margin-left: -20px;
    padding-top: 0; /* or a small value */
    margin-top: 0; /* or a small value */
  }
  
  .other-offers a:hover {
    color: #635f5f;
  }

  .software-market {
    width: 95%;
    height: auto; /* adjust height to fit content */
    background-color: #f1f07bfb;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-top: 1%; /* reduce margin top */
    scroll-margin-bottom: 0; /* reduce margin top */
  }

  .software-market ul li {
    animation: pulse 5s infinite;
    transition: background-color 20s ease, box-shadow 0.3s ease;
  }
  
  @keyframes pulse {
    10% {
      box-shadow: #ebdede;
    }
    90% {
      box-shadow: 0 0 4px #ecebf3fb;
    }
    100% {
      box-shadow: 0 0 2px #fc0202;
    }
  }
  

  /* navbar styles */
.navbar h3, .navbar-navbar h3 {
    padding-bottom: 3px;
    border-bottom: none;
    color: #fff;
    margin-bottom: 0;
  }

  .navbar h2, .navbar-navbar h2 {
    padding-bottom: 3px;
    border-bottom: none;
    color: #073117;
    margin-bottom: 0;
  }
  
  .navbar ul, .navbar-navbar ul {
    margin-top: 0;
    padding: 0;
    margin-bottom: 0;
    list-style: none;
  }
  
  .navbar li, .navbar-navbar li {
    padding: 2px;
    border-bottom: 1px solid #f1f07bfb;
  }
  
  .navbar li:hover, .navbar-navbar li:hover {
    background-color: #fa9907;
    padding: 4px 10px;
    border-radius: 5px;
    display: inline-block;
  }
  
  .navbar a, .navbar-navbar a {
    color: #e90c2a;
    text-decoration: none;
  }
  
  .navbar a:hover, .navbar-navbar a:hover {
    color: #ccc;
  }
  
  .navbar {
    color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  }
  
  .navbar-navbar {
    color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  }
  
  .artisans-market {
    width: 95%;
    height: auto; /* adjust height to fit content */
    background-color: #f1f07bfb;
    padding: 4px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-top: 7px; /* reduce margin top */
    scroll-margin-bottom: 0; /* reduce margin top */
  }
  
  .job-market {
    width: 95%;
    height: auto; /* adjust height to fit content */
    background-color: #f1f07bfb;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-top: 7px; /* reduce margin top */
    scroll-margin-bottom: 0; /* reduce margin top */
  }

  .classy-container {
    position: relative;
    float: left;
   
    background-color:#ddd;
    padding: 20px;
    border: 2px solid #ddd;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 3%;
    padding-top: 6%; /* Add padding-top to create space */
  
  }

  .classy{
    margin-left: 3%;
    width: 98%;
    height: 95%;
    background-color: #83cde0fb;
    padding: 2%;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  }

  .classy-slider {
    display: flex;
    width: 90%;
  }  

  .classy img {
    width: 100%;
    height: 98%;
    object-fit: contain;
  }

  .classy-slider h3 {
    color: #fff; /* White text color */
    position: absolute; /* Position it absolutely */
    top: 1%; /* Move it above the images */
    left: 0; /* Align it to the left */
    width: 100%; /* Take full width */
    text-align: left; /* Center the text */
    padding-left: 10%;

  }
  
/* Desktop and laptop screens */
@media (max-width: 1200px) {
  .classy-container {
    padding-top: 6%;
  }
  .classy-slider h3 {
    top: 2%;
    font-size: 18px;
  }
}

/* Tablet screens */
@media (max-width: 768px) {
  .classy-container {
    padding-top: 4%;
    flex-direction: column;
  }
  .classy-slider {
    width: 100%;
  }

  .classy {
    width: 100%;
    height: auto;
  }
  .classy-slider h3 {
    top: -2%;
    font-size: 12px;
  }
}

/* Mobile screens */
@media (max-width: 480px) {
  .classy-container {
    padding-top: 5%;
    padding: 10%;
  }
  .classy-slider {
    width: 100%;
  }
  .classy {
    width: 100%;
    height: auto;
    padding: 7%;
  }
  .classy-slider h3 {
    top: -3%;
    font-size: 8px;
    padding-left: 2%;
  }
  .classy img {
    height: auto;
  }
}

.prev-btn {
  position: absolute;
  left: 1%;
  top: 50%;
  transform: translateY(-50%);
}

.next-btn {
  position: absolute;
  right: 1%;
  top: 50%;
  transform: translateY(-50%);

}
