* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.main-div {
  background-color: #fff;
  border-radius: 70px;
  min-height: 100vh;
  padding: 0;
}

@media (max-width: 1200px) {
  .main-div {
    padding: 0 20px;
  }
}

body {
  font-size: 18px;
  color: #1e1e1e !important;
  background-color: #18191b;
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}

.fade-in {
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  pointer-events: none;
}

.fade-in-slide {
  transform: translateX(-70px);
}

.fade-in-3,
.fade-in.fade-in-2 {
  opacity: 0;
  transition: opacity 1s ease-out, transform 0.5s ease-out;
  transform: translateY(80px);
}

.fade-in.visible {
  opacity: 1;
  transform: scale(1) translateX(0);
  pointer-events: auto;
}

/* Ensure CTA buttons are always clickable */
.cta-button {
  pointer-events: auto !important;
}

.header__content {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  height: 520px;
  text-align: left;
  box-sizing: border-box;
  padding: 0 100px;
}

.header__content h1 {
  font-size: 40px;
  text-transform: uppercase;
  margin: 0;
}

.header__content p {
  max-width: 450px;
  margin: 0;
  margin-top: 0.5rem;
  font-size: 1.2rem;
}

@media (max-width: 500px) {
  .header__content h1 {
    font-size: 40px;
  }

  .header__content {
    padding: 0 40px;
  }
}

@media (max-width: 992px) {
  .header {
    padding-bottom: 33.6rem;
  }
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.askew {
  align-self: center;
  height: 480px !important;
  overflow: hidden;
  color: white;
  z-index: 1;
}

@media (max-width: 995px) {
  .askew {
    margin: 0;
    border-radius: 0;
  }
}

.askew .background {
  position: absolute;
  width: 100%;
  height: 100%;
  max-height: 600px;
  object-fit: cover;
  z-index: -1;
}

.animated {
  animation-duration: 1s;
  animation-fill-mode: forwards;
}

@keyframes fadeInDownShort {
  0% {
    opacity: 0;
    transform: translate3d(0, -100%, 0);
  }

  100% {
    opacity: 1;
    transform: none;
  }
}

.fadeInDownShort {
  animation-name: fadeInDownShort;
  animation-duration: 0.4s;
}

@keyframes fadeOutUpShort {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate3d(0, -100%, 0);
  }
}

.fadeOutUpShort {
  animation-name: fadeOutUpShort;
  animation-duration: 0.4s;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-250px * 7));
  }
}

.contact-layout {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100vh;
}

.contact-map {
  width: 65%;
  height: calc(100vh - 10px);
  filter: grayscale(50%) invert(15%);
  border-radius: 0 0 80px 80px;
}

.contact-form-container {
  width: 35%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

#contact {
  width: 100%;
  max-width: 400px;
}

#contact h1 {
  font-size: 40px;
  margin-bottom: 20px;
  color: #fff;
}

#contact button {
  width: 100%;
  padding: 10px;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: .3s ease;
}

#contact button:hover {
  background-color: #777;
}

#access-contact-btn:hover {
  background-color: #777 !important;
}

@media (max-width: 992px) {
  .contact-layout {
    flex-direction: column;
  }

  .contact-map {
    width: 100%;
    height: 60%;
  }

  .contact-form-container {
    width: 100%;
    height: 40%;
    padding: 40px;
    margin-top: 70px;
  }
}

.floating-label {
  font-size: 14px;
  color: #6b6b6b;
  position: absolute;
  top: 10px;
  left: 4px !important;
  pointer-events: none;
  transition: opacity .25s ease;
}

fieldset {
  margin-bottom: 20px;
  border: none;
  padding: 0;
  position: relative;
}

fieldset input,
textarea {
  width: 100%;
  padding: 8px;
  background: none;
  border: none;
  border-bottom: 1px solid #555;
  font-size: 16px;
  outline: none;
}

input:focus~.floating-label,
textarea:focus~.floating-label,
input:not(:placeholder-shown)~.floating-label,
textarea:not(:placeholder-shown)~.floating-label {
  opacity: 0;
}

textarea {
  resize: none;
}

.search-box {
  display: flex;
  align-items: center;
  padding: 2px;
  margin-bottom: 15px;
  position: relative;
}

.search-box fieldset {
  width: 100% !important;
}

.search-icon {
  margin-right: 8px;
  margin-top: 7px;
  cursor: pointer;
}

.search-icon:hover svg {
  fill: #000;
}

/* Enhanced search box styles */
.search-box {
  position: relative;
  margin-bottom: 20px;
}

.clear-search {
  position: absolute;
  right: 45px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #666;
  transition: color 0.3s ease;
  z-index: 2;
}

.clear-search:hover {
  color: #333;
}

.clear-search svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Enhanced search input */
.search-box input {
  padding-right: 80px;
}

.main-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.products-container {
  max-width: 1340px;
  flex-grow: 1;
}

#mainDoc {
  margin-left: 480px;
  padding: 105px 45px 100px 45px;
}

#sidebar {
  max-width: 460px;
  height: 85%;
  padding-left: 45px;
}

#sidebar ul {
  height: 80%;
  overflow-y: auto;
  overflow-x: hidden;
}

#mainproduct {
  padding-top: 160px;
  padding-bottom: 100px;
  min-height: calc(100vh - 10px);
  background-color: #fff;
  border-radius: 0 0 70px 70px;
}

#mainproduct h1 {
  font-size: 2rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.open_btn {
  pointer-events: auto;
  color: #000;
}

.col-md-4 {
  box-sizing: border-box;
  width: 600px;
  padding-left: 50px;
}

.col-md-4 li {
  padding: 3px 5px;
}

.col-md-4 h3 {
  padding-bottom: .5rem;
}

.product-picture {
  width: 400px;
  height: 400px;
  position: relative;
  margin-bottom: 30px;
  margin-top: 17px;
}

.product-picture img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.first-block {
  padding-top: 10px;
  padding-bottom: 30px;
  clear: both;
}

.row li:nth-child(odd) {
  background: #eee;
}

@media (max-width: 905px) {
  #mainproduct {
    padding-top: 100px;
  }

  .card {
    width: 400px;
    margin: 10px;
    vertical-align: top;
    border: 1px solid #ccc;
  }

  #sidebar {
    max-width: 100%;
    position: relative;
    top: 0;
    padding: 0;
    margin: 80px 20px 40px 20px;
    z-index: 1;
  }

  #mainDoc {
    position: relative;
    margin-left: 0;
    text-align: center;
    padding-top: 20px;
    padding-right: 0;
    padding-left: 0;
  }

  .product-container {
    width: 95%;
  }

  .col-md-4 {
    width: 100%;
    padding-bottom: 50px;
    padding-left: 0;
    padding: 30px;
  }

  .product-picture {
    margin-left: 0;
    margin-right: 0;
    margin-top: 20px;
  }

  #box-title {
    padding: 15px 0 10px 15px;
    font-size: 18px;
  }

  ul {
    list-style-type: none;
  }

  #loadingText,
  #noProductText,
  #selectCategoryText {
    margin-left: 0 !important;
  }
}

@media (max-width: 472px) {
  .card {
    width: 100% !important;
  }
}

.company-info h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.company-info {
  color: rgba(47, 41, 41, );
  padding: 15px;
}

.image-license {
  background-size: cover;
  background-repeat: no-repeat;
  max-width: 400px;
  width: 100%;
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.whywe {
  max-width: 1135px;
}

.custom-container p {
  padding: 0 15px 0px 15px;
}

.custom-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 100px;
}

.custom-container h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  max-width: 400px;
  padding: 0 12px;
}

.tabs {
  left: 50%;
  transform: translateX(-50%);
  position: relative;
  padding: 25px 15px 0px 15px;
  max-width: 1150px;
  padding-bottom: 25px;
}

.tabs input[name=tab-control] {
  display: none;
}

.tabs ul {
  flex-wrap: wrap;
  pointer-events: all !important;
}

.tabs label {
  font-size: 28px;
  color: #1e1e1e;
  cursor: pointer;
  margin-right: 35px;
}

.tabs .content {
  margin-top: 30px;
}

.tabs .content section {
  display: none;
  animation-name: content;
  animation-direction: normal;
  animation-duration: 0.3s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: 1;
}

.tabs input[name=tab-control]:nth-of-type(1):checked~.content>section:nth-child(1),
.tabs input[name=tab-control]:nth-of-type(2):checked~.content>section:nth-child(2),
.tabs input[name=tab-control]:nth-of-type(3):checked~.content>section:nth-child(3),
.tabs input[name=tab-control]:nth-of-type(4):checked~.content>section:nth-child(4) {
  display: block;
}

.tabs input[name=tab-control]:nth-of-type(1):checked~ul label[for="tab1"],
.tabs input[name=tab-control]:nth-of-type(2):checked~ul label[for="tab2"],
.tabs input[name=tab-control]:nth-of-type(3):checked~ul label[for="tab3"],
.tabs input[name=tab-control]:nth-of-type(4):checked~ul label[for="tab4"] {
  border-bottom: 3px solid #555;
}

@keyframes content {
  from {
    opacity: 0;
    transform: translateY(5%);
  }

  to {
    opacity: 1;
    transform: translateY(0%);
  }
}

.minitext {
  max-width: 800px;
  padding: 0 12px 50px;
}

.clients-text {
  max-width: 600px;
  text-align: left;
  margin: 0 auto 50px auto;
  padding: 0 20px;
  line-height: 1.6;
  color: #555;
}

.slider-container {
  --d: 20s;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  overflow: hidden;
  position: relative;
  margin-top: 60px;
  margin-bottom: 80px;
}

@media (max-width: 767px) {
  .slider-container {
    grid-template-columns: repeat(1, 1fr);
  }

  .slider-container::before,
  .slider-container::after {
    width: 40px;
  }

  .slider-item {
    animation: r var(--d) linear infinite, none;
    transform: none;
  }
}

.slider-container::before,
.slider-container::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  background: linear-gradient(to left, rgba(255, 255, 255, 0) 0%, #fff 100%);
}

.slider-container::after {
  right: 0;
  left: auto;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, #fff 100%);
}

.slider-item {
  grid-area: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: r var(--d) linear infinite;
  height: 100%;
  padding: 0px;
}

.slider-item img {
  width: 100%;
  height: 120px;
  grid-row: auto;
  object-fit: contain;
  margin: 0 0px;
}

/* .slider-item {
  grid-area: 1/1;
  display: grid;
  align-content: center;
  animation: r var(--d) linear infinite;
}

.slider-item img {
  width: 100%;
  grid-row: span 2;
} */

/* .slider-item:nth-child(2) {
  animation-delay: calc(-0.1666666667*var(--d));
}

.slider-item:nth-child(3) {
  animation-delay: calc(-0.3333333333*var(--d));
}

.slider-item:nth-child(4) {
  animation-delay: calc(-0.5*var(--d));
}

.slider-item:nth-child(5) {
  animation-delay: calc(-0.6666666667*var(--d));
}

.slider-item:nth-child(6) {
  animation-delay: calc(-0.8333333333*var(--d));
} */
/* Delay for item 2 (-1/8 of duration) */

.slider-item:nth-child(2) {
  animation-delay: calc(-0.125 * var(--d));
}

/* Delay for item 3 (-2/8 of duration) */
.slider-item:nth-child(3) {
  animation-delay: calc(-0.25 * var(--d));
}

/* Delay for item 4 (-3/8 of duration) */
.slider-item:nth-child(4) {
  animation-delay: calc(-0.375 * var(--d));
}

/* Delay for item 5 (-4/8 of duration) */
.slider-item:nth-child(5) {
  animation-delay: calc(-0.5 * var(--d));
}

/* Delay for item 6 (-5/8 of duration) */
.slider-item:nth-child(6) {
  animation-delay: calc(-0.625 * var(--d));
}

/* Delay for item 7 (-6/8 of duration) */
.slider-item:nth-child(7) {
  animation-delay: calc(-0.75 * var(--d));
}

/* Delay for item 8 (-7/8 of duration) */
.slider-item:nth-child(8) {
  animation-delay: calc(-0.875 * var(--d));
}

@keyframes r {
  16.6666666667% {
    transform: translate(calc(-100vw - 200px));
  }

  16.6766666667% {
    transform: translate(calc(100vw + 200px));
  }
}

#productsList {
  display: none;
}

#productsList.show {
  display: block;
}

.card {
  width: 30%;
  min-width: 180px;
  margin: 8px;
  vertical-align: top;
  border: 1px solid #ccc;
  padding: 10px;
  padding-bottom: 20px;
  pointer-events: all !important;
  transition: 0.3s;
}

.card:nth-child(-n+6) {
  opacity: 1 !important;
  transform: translateX(0px) !important;
}

.card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 0 20px;
  justify-content: center;
}

.card {
  display: block;
  max-height: 400px;
  font-size: 14px;
  overflow: hidden;
  border-radius: 12px;
  transition: all 0.3s ease;
  background-color: #fff !important;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  min-width: 250px;
  box-sizing: border-box;
  position: relative;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.card-image-container {
  position: relative;
  height: 180px;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.3s ease;
}

.card:hover .card-image {
  transform: scale(1.05);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover .card-overlay {
  opacity: 1;
}

.view-details {
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
}

.card-content {
  padding: 20px;
}

.card-header {
  margin-bottom: 15px;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 5px 0;
  color: #333;
  line-height: 1.3;
}

.card-company {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.card-specs {
  margin: 15px 0;
  padding: 10px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 13px;
}

.spec-label {
  font-weight: 600;
  color: #555;
}

.spec-value {
  font-weight: 500;
  color: #333;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}

.card-category {
  background: #e3f2fd;
  color: #1565c0;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.card-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.card-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
}

/* Product description tooltip styles */
.product-tooltip {
  position: absolute;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
  max-width: 300px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  word-wrap: break-word;
}

.product-tooltip::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid rgba(0, 0, 0, 0.9);
}

.product-tooltip.show {
  opacity: 1;
  visibility: visible;
}

.card {
  position: relative;
}

.products-header {
  margin-bottom: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
}

/* Category Description Panel Styles */
.category-description-panel {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 25px;
  margin-bottom: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.category-description-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.category-description-text {
  flex: 1;
}

.category-description-text h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 15px 0;
  color: white;
}

.category-description-text p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
}

.category-description-action {
  flex-shrink: 0;
}

.contact-us-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.contact-us-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Sidebar Category Description Panel Styles */
.category-description-panel-sidebar {
  /* background: #666; */
   background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  margin: 20px 0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  max-width: 420px;
}

.category-description-content-sidebar {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.category-description-text-sidebar h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: white;
}

.category-description-text-sidebar p {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
}

.category-description-action-sidebar {
  display: flex;
  justify-content: center;
}

.contact-us-btn-sidebar {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  width: 100%;
}

.contact-us-btn-sidebar:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive design for sidebar description panel */
@media (max-width: 905px) {
  .category-description-panel-sidebar {
    max-width: none;
    margin: 20px;
  }
  
  .category-description-text-sidebar h3 {
    font-size: 16px;
  }
  
  .category-description-text-sidebar p {
    font-size: 13px;
  }
  
  .contact-us-btn-sidebar {
    font-size: 12px;
    padding: 8px 16px;
  }
}

.products-content-wrapper {
  width: 100%;
}

/* Responsive design for description panel */
@media (max-width: 768px) {
  .category-description-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .category-description-text h3 {
    font-size: 20px;
  }
  
  .category-description-text p {
    font-size: 14px;
  }
}

.products-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.sort-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-dropdown {
  padding: 8px 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  background: white;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.sort-dropdown:focus {
  outline: none;
  border-color: #667eea;
}

.sort-order-btn {
  background: #667eea;
  color: white;
  border: none;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sort-order-btn:hover {
  background: #5a6fd8;
  transform: translateY(-1px);
}

.results-counter {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.service-card {
  padding: 18px;
  pointer-events: all;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 30px;
}

.service-card img {
  width: 130px;
  height: auto;
  margin-bottom: 20px;
}

.service-card p {
  max-width: 250px;
}

.services-container {
  max-width: 1150px;
  padding: 8px;
  margin: auto;
  overflow: hidden;
  margin-top: 100px;
}

.grid-3 {
  display: grid;
  grid-gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  justify-content: center;
}

@media (max-width: 835px) {
  .grid-3 {
    grid-template-columns: repeat(1, 1fr);
  }

  .service-card {
    padding: 10px;
  }
}


.item__link {
  background: transparent;
  border: 2px solid #777;
  padding: 10px;
  font-size: 16px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #5f5f5f;
  display: inline-block;
  text-align: center;
  margin: 5px;
}

.item__link span {
  pointer-events: none;
}

.item__link:hover {
  background-color: #777;
  border-color: #777;
  color: white;
}

.item__link.checked {
  background-color: black;
  border-color: black;
  color: white;
}

.item__link input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.box {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s ease, visibility 0.5s ease, max-height 0.5s ease;
  max-height: 0;
  overflow: hidden;
  margin: 0;
}

.box.visible {
  visibility: visible;
  opacity: 1;
  max-height: 500px; 
  overflow: visible;
}


.filter-container input[type="checkbox"] {
    margin-right: 5px;
    appearance: none;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    border: 1px solid #ccc;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.filter-container input[type="checkbox"]:checked {
    background-color: #666;
    border-color: #666;
}

.filter-container {
    margin-bottom: 20px;
}

.sidebar-content .filter-container {
    display: flex;
    margin-bottom: 20px;
}

@media screen and (max-width: 768px) {
    .filter-container {
        max-width: 100%;
        width: auto;
    }
}

.column {
    flex: 1;
    padding-left: 10px;
}

.filter-container label {
    font-weight: normal;
    font-size: 16px;
    user-select: none;
    cursor: pointer;
}

.range-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

input[type="number"] {
    width: 80px;
    padding: 5px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
}







.box {
margin-bottom: 10px;

}

.section__faq .box:last-child {
margin-bottom: 0;
}

.label {
position: relative;
padding: 12px;
cursor: pointer;
user-select: none;
pointer-events: all !important;
}


.box+.box {
border-top: 1px solid #ccc;
}




.label::before {
content: "";
border: solid #4d4e53;
border-width: 3px 3px 0 0;
display: inline-block;
padding: 3px;
transform: rotate(-135deg);
position: absolute;
top: 52%;
right: 20px;
transform: translateY(-50%) rotate(135deg);
transform-origin: 45% 45%;
transition: transform 0.3s ease;
}

.box.active .label::before {
transform: translateY(-50%) rotate(-45deg);
}

.sidebar-content {
position: relative;
overflow: hidden;
max-height: 0;
transition: 0.4s;
padding-right: 6px;
padding-left: 0;
padding-top: 4px;
}

.withimg {
transition: 0.3s;
}

.tile {
display: inline-block;
width: 100%;
height: 40px;
border: 1px solid #ccc;
background-color: #eee;
margin: 3px;
text-align: center;
line-height: 40px;
cursor: pointer;
border-radius: 5px;
transition: 0.2s ease;
pointer-events: all !important;
}

.tile:hover {
background-color: #e4e4e4;
}

.tile a {
text-decoration: none;
color: #aeaeae;
}

.content-title {
font-size: 18px;
margin-left: 10px;
margin-top: 5px;
}

/* Enhanced responsive design for products page - More columns when zoomed out */
@media (min-width: 1600px) {
  .card-list {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
  }
}

@media (min-width: 1200px) and (max-width: 1599px) {
  .card-list {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
  }
}

@media (max-width: 1200px) {
  .card-list {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    padding: 0 15px;
  }
  
  .card {
    min-width: 230px;
  }
}

@media (max-width: 900px) {
  .card-list {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    padding: 0 12px;
  }
  
  .card {
    min-width: 220px;
  }
}

@media (max-width: 768px) {
  .card-list {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 15px;
    padding: 0 10px;
  }
  
  .card {
    min-width: 210px;
  }
}

@media (max-width: 600px) {
  .card-list {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    padding: 0 8px;
  }
  
  .card {
    min-width: 200px;
  }
}

@media (max-width: 480px) {
  .card-list {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0 10px;
  }
  
  .card {
    min-width: auto;
  }
}
  
  .products-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .sort-controls {
    justify-content: center;
    margin-bottom: 10px;
  }
  
  .card-list {
    padding: 0 10px;
  }
  
  .products-header {
    margin: 0 10px 20px 10px;
    padding: 15px;
  }
  
  .card-title {
    font-size: 16px;
  }
  
  .card-content {
    padding: 15px;
  }
  
  .spec-item {
    font-size: 12px;
  }
  
  .card-image-container {
    height: 150px;
  }
}

/* Loading animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-list.show .card {
  animation: fadeInUp 0.6s ease forwards;
}

.card-list.show .card:nth-child(1) { animation-delay: 0.1s; }
.card-list.show .card:nth-child(2) { animation-delay: 0.2s; }
.card-list.show .card:nth-child(3) { animation-delay: 0.3s; }
.card-list.show .card:nth-child(4) { animation-delay: 0.4s; }
.card-list.show .card:nth-child(5) { animation-delay: 0.5s; }
.card-list.show .card:nth-child(6) { animation-delay: 0.6s; }

/* Industrial Automation Page Styles - Integrated with existing design */
.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 30px;
}

.team-member-inline {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.team-member-inline:hover {
    transform: translateY(-5px);
}

.team-member-inline h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.team-member-inline .member-title {
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
    font-weight: 600;
}

.team-member-inline p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #555;
}

.member-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    justify-content: center;
}

.skill-tag {
    background: #e3f2fd;
    color: #1565c0;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(25, 118, 210, 0.3);
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    color: #0077b5;
    text-decoration: none;
    padding: 10px 20px;
    background: #f0f8ff;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.linkedin-link:hover {
    background: #e6f3ff;
    transform: translateY(-2px);
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* ==========================================================================
   Automation Page Styles
   ========================================================================== */

.main-container-automation {
    max-width: 1150px;
    margin: 60px auto;
    padding: 0 20px;
}

.automation-section {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 80px;
    background-color: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

.automation-section.reverse {
    flex-direction: row-reverse;
}

.automation-content {
    flex: 1;
}

.automation-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.automation-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 15px;
}

.automation-image {
    flex: 1;
    max-width: 450px;
}

.automation-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.services-container .service-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services-container .service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.services-container .service-card h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.team-section-automation {
    padding: 80px 0;
    background: #f8f9fa;
}

.team-container-automation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px;
}

.team-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.team-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
    border: 3px solid #667eea;
}

.team-card-title h3 {
    font-size: 1.5rem;
    margin: 0;
    color: #333;
}

.team-card-title span {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

.team-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    flex-grow: 1;
    margin-bottom: 20px;
}

.team-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.skill-tag {
    background: #e3f2fd;
    color: #1565c0;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.linkedin-button {
    display: inline-block;
    text-align: center;
    background: #0077b5;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    margin-top: auto;
}

.linkedin-button:hover {
    background: #005e90;
}

.container2 .cta-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.container2 .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

@media (max-width: 992px) {
    .automation-section {
        flex-direction: column;
        padding: 30px;
    }
    .automation-section.reverse {
        flex-direction: column;
    }
    .automation-image {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .team-container-automation {
        grid-template-columns: 1fr;
    }
    .section-title {
        font-size: 2rem;
    }
    .automation-content h3 {
        font-size: 1.8rem;
    }
}

/* Keyboard focus for controls whose native focus ring is hidden or removed above. */
.item__link:has(input:focus-visible),
.filter-container input[type="checkbox"]:focus-visible,
.card-btn:focus-visible,
.sort-order-btn:focus-visible {
  outline: 3px solid #4d90fe;
  outline-offset: 2px;
}

.card:focus-within {
  box-shadow: 0 0 0 3px #4d90fe;
}
