/**
 * Our Brands — same card layout on index, core, application, smart
 * Brand: #155071 (darkacta), #76cee4 (skyacta)
 */

#productssec {
  position: relative;
  width: 100%;
  max-width: 100vw;
}

#productssec .swiper-container {
  width: 100%;
  overflow: hidden;
  padding: 0 1rem;
  margin-bottom: 1rem;
}

#productssec .swiper-pagination {
  bottom: 0;
  position: relative;
  margin-top: 0.5rem;
}

/* Slide card: column, equal structure */
#productssec .our-brands-slide {
  display: flex;
  flex-direction: column;
  height: auto;
  box-sizing: border-box;
}

/* Image area — fixed height so all tiles align */
#productssec .our-brands-media {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  #productssec .our-brands-media {
    height: 220px;
    margin-bottom: 1rem;
  }
}

#productssec .our-brands-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
}

/* Text block — flex, no arbitrary 550px */
#productssec .our-brands-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

@media (min-width: 768px) {
  #productssec .our-brands-body {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* Title + TM inline (no absolute corner) */
#productssec .our-brands-title-wrap {
  margin-bottom: 0.25rem;
}

#productssec .our-brands-title-row {
  text-decoration: none;
  color: inherit;
}

#productssec .our-brands-title-row:hover h3 {
  color: #155071;
}

#productssec .our-brands-tm-badge {
  background-color: #76cee4;
  color: #fff;
  box-sizing: border-box;
}

/* Description: 3 lines, same box height */
#productssec .our-brands-desc {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 300;
  color: #4b5563;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  min-height: calc(1em * 1.5 * 3);
}

@media (min-width: 768px) {
  #productssec .our-brands-desc {
    font-size: 1.125rem;
    line-height: 1.55;
    min-height: calc(1em * 1.55 * 3);
  }
}

#productssec .our-brands-body .actahr {
  flex-shrink: 0;
  margin-top: 0;
  margin-bottom: 0.5rem;
  height: 2px;
  border: none;
  background: linear-gradient(to right, #155071, #76cee4, #155071);
}

@media (max-width: 768px) {
  #productssec {
    margin-top: 2rem;
  }

  #productssec .swiper-slide {
    width: 100% !important;
    margin-bottom: 0.5rem;
  }

  #productssec .swiper-container {
    padding: 0;
    padding-bottom: 1rem;
  }
}

@media (min-width: 769px) {
  .swiper-slide.our-brands-slide {
    height: 560px !important;
    max-height: none;
  }

  #productssec .swiper-slide > .our-brands-body {
    flex-grow: 1;
  }

  #productssec .swiper-container {
    padding-bottom: 2rem;
  }
}
