.product-thumbnail {
  height: 160px;
  background-color: aqua;
}
.product-card {
  color: rgb(4, 20, 54);
  background-color: azure;
  background-size: 160px;
}
.topic {
  font-size: 22px;
  font-weight: 600;
  color: rgb(0, 0, 0);
}
.tabs {
  position: relative;
  height: 60vh;
}
.tabs {
  min-height: fit-content;
  display: flex;
  flex-direction: row;
  width: 100%;
  /* background-color: #0b132b7c; */
  padding: 20px 20px 20px 20px;
  border-radius: 10px;
  box-shadow: 0 0 11px 9px rgba(0, 0, 0, 0.1);
}
.tabs .tab-header {
  width: 30vw;
  min-height: fit-content;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-right: 2px solid rgba(255, 255, 255, 0.247);
  font-size: 18px;
  font-weight: 600;
}
.tabs .tab-header .tab-btn {
  align-content: center;
  border-radius: 10px;
  min-height: 60px;
  width: 80%;
  margin: 10px 0;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  border: 3px solid #ffffff;
  background-color: transparent;
}
.tab-header .tab-btn:hover {
  color: #000000;
  border: 3px solid #ffffff;
  background-color: #ffffff9c;
}
.tabs .tab-header .tab-btn.active {
  color: #000000;
  background-color: #ffffff;
}
.tabs .tab-contents {
  /* overflow: auto; */
  width: 70vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #ffffff;
}
.tabs .tab-contents .tab-content {
  justify-items: center;
}
.tab-contents {
  padding: 20px;
}
@media (max-width: 992px) {
  .container.service-container {
    max-width: 768px;
  }
}
@media (max-width: 1023px) {
  .tab-contents {
    padding: 10px 0px;
  }
  .tabs .tab-contents {
    width: auto !important;
    overflow: hidden;
    width: fit-content;
  }
}
.tab-contents .tab-content {
  width: 100%;
  height: 100%;
  display: none;
  animation: moving 0.5s ease-in-out;
}
@keyframes moving {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.tab-contents .tab-content.active {
  display: block;
}
.tab-contents .tab-content h2 {
  margin-bottom: 10px;
}

/* Sub-tabs styles */
.sub-tabs {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.sub-tab-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}
.sub-tab-btn {
  padding: 8px 20px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  font-weight: 500;
  border: 2px solid #ffffff;
}
.sub-tab-btn.active {
  background: #ffffff;
  color: #000000;
}
.sub-tab-btn:hover {
  background: #ffffff9c;
  color: #000000;
}
.sub-tab-contents {
  padding-bottom: 50px;
  width: 100%;
  height: 100%;
  overflow-y: auto;

  /* Custom scrollbar styles */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0);
}

/* Webkit scrollbar styles for Chrome, Safari, Edge */
.sub-tab-contents::-webkit-scrollbar {
  width: 120px;
}

.sub-tab-contents::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 10px;
}

.sub-tab-contents::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sub-tab-contents::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.sub-tab-content {
  display: none;
  animation: moving 0.5s ease-in-out;
}
.sub-tab-content.active {
  display: block;
}
.sub-tab-content-item-container {
  justify-items: center;
  border-radius: 10px;
  padding: 30px;
  margin: 20px 0;
  background-color: rgb(255, 255, 255, 0.1) !important;
}
.sub-tab-content-img-container {
  width: 250px;
  height: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.door-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.tab-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 25px 10px 10px 10px;
}

/* Mobile dropdown styles */
.mobile-dropdown {
  display: none;
  margin: 10px 0px;
}

.mobile-subtabs {
  display: none;
  margin-bottom: 15px;
}

.desktop-tabs {
  display: flex;
}

.desktop-subtabs {
  display: flex;
  flex-wrap: wrap;
}

/* Custom dropdown button styles */
.mobile-dropdown .btn-outline-light,
.mobile-subtabs .btn-outline-light {
  border-color: #ffffff;
  color: #ffffff;
  background-color: transparent;
}

.mobile-dropdown .btn-outline-light:hover,
.mobile-subtabs .btn-outline-light:hover {
  background-color: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.mobile-dropdown .btn-outline-light:focus,
.mobile-subtabs .btn-outline-light:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5);
}

/* Responsive styles */
@media (max-width: 1199px) {
  .tab-btn {
    height: 70px !important;
  }
}

@media (max-width: 1023px) {
  .tabs {
    height: 1000px;
    flex-direction: column;
    padding: 20px;
  }

  .desktop-tabs {
    display: none !important;
  }

  .mobile-dropdown {
    display: block;
  }

  .mobile-dropdown .dropdown button {
    height: 50px;
  }
  .tab-contents {
    width: 100%;
    margin: 0;
  }

  .desktop-subtabs {
    display: none !important;
  }

  .mobile-subtabs {
    display: block;
  }

  .sub-tab-header {
    margin-bottom: 15px;
  }
  .mobile-subtabs .dropdown button {
    height: 50px;
  }
}

@media (max-width: 768px) {
  .tabs {
    min-height: 50vh;
  }

  .door-img {
    width: 200px;
  }

  .section-title h2 {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .tabs {
    padding: 10px;
  }

  .door-img {
    width: 150px;
  }

  .tab-contents .tab-content h2 {
    font-size: 1.5rem;
  }

  .tab-contents .tab-content p {
    font-size: 0.9rem;
  }

  .section-title h2 {
    font-size: 14px;
  }

  .section-title p {
    font-size: 1.5rem;
  }
}
