/* === BRAND SECTION LAYOUT === */
.brands-bg {
  background-color: #A6192E;
  display: flex;
  gap: 100px;
  align-items: center;
  color: #fff;
}

.about-our-brand-text {
  font: 400 20px/1.5 var(--font-helvetica-neue);
}

.image-container {
  background-image: url('../../../../../etc.clientlibs/tfcorpsite/clientlibs/clientlib-site/resources/resources/images/Banner1.svg');
  background-position: top right;
  background-size: cover;
  padding: 87px 120px 87px 87px;
  flex-shrink: 0;
}

.brands-bg p {
  padding: 20px 40px 20px 0;
}

.brand-section {
  padding-bottom: 41px;
}

.section-brands {
  margin-bottom: 80px;
  padding: 0px 10px;
}

.section-small-heading {
  font: 700 18px/22px var(--font-helvetica-neue);
  letter-spacing: 10%;
  text-transform: uppercase;
  color: #00677F;
  margin-block: 0 24px;
}

/* === BRAND GRID === */
.rj-brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 44px;
}

.rj-brand-grid > div {
  background-color: #F5F5F5;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  min-height: 363px;
  width: 100%;
  max-width: 383px;
  justify-content: space-between;
  padding: 10px;
}

.rj-brand-grid > div > img {
  flex: 0 1 161px;
  max-width: 50%;
  transform-origin: top;
  padding: 21px 10px 10px 50px;
}

.rj-brand-grid .tagline {
  font: 500 16px/1.5 var(--font-helvetica-neue);
  color: #000000;
  text-transform: none;
  padding: 21px 10px 10px 50px;
}

.rj-brand-grid .description {
  font: 400 14px/22px var(--font-helvetica-neue);
  visibility: hidden;
  height: 0;
  padding: 21px 10px 10px 50px;
}

/* === BRAND GRID HOVER STYLES === */
.rj-brand-grid > div:hover .description {
  visibility: visible;
  height: auto;
  color: #fff;
}

.rj-brand-grid > div:hover .tagline {
  color: #fff;
  margin-top: 0;
}

.rj-brand-grid > div:hover > img {
  filter: brightness(0) invert(1);
  transform: scale(0.9);
}

/* Color hover backgrounds */
.rj-brand-grid > div:nth-child(1):hover { background-color: #E71316; }
.rj-brand-grid > div:nth-child(2):hover { background-color: #262262; }
.rj-brand-grid > div:nth-child(3):hover { background-color: #E71316; }
.rj-brand-grid > div:nth-child(4):hover { background-color: #005DAA; }
.rj-brand-grid > div:nth-child(5):hover { background-color: #27829E; }
.rj-brand-grid > div:nth-child(6):hover { background-color: #E71316; }
.rj-brand-grid > div:nth-child(7):hover { background-color: #512D6D; }
.rj-brand-grid > div:nth-child(8):hover { background-color: #00548B; }

/* === BRAND LAYOUT WRAPPER === */


.brand-layout {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}


.arrow-icon-brand {
  display: inline-block;
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.3s ease;
  position: relative;
}

.arrow-icon-brand img {
  width: 15px;
  height: 15px;
  display: block;
}


.brand-layout:hover .arrow-icon-brand {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  cursor: pointer;
  left: 90%;
}

.tagline,
.description {
  transition: transform 0.3s ease;
  position: relative;
}

.brand-layout:hover .tagline,
.brand-layout:hover .description {
  transform: translateY(-30px);
}


/* === RESPONSIVE === */
@media screen and (max-width: 768px) {
  .rj-brand-grid > div {
    max-width: 100%;
    width: 100%;
  }

  .brands-bg p {
    font: 700 16px/24px var(--font-helvetica-neue);
    text-transform: none;
  }

  .brands-bg {
    gap: 20px;
  }

  .section-brands .section-small-heading {
    font: 700 14px var(--font-helvetica-neue);
  }

  .rj-brand-grid .description,
  .rj-brand-grid > div img,
  .rj-brand-grid > div .tagline {
    padding: 20px;
  }

  .section-brands .custom-container {
    margin-top: 0;
  }


   .arrow-icon-brand {
    opacity: 1 !important;
    transform: translateX(-30) !important;
    pointer-events: auto;
  }

  .brand-layout:hover .arrow-icon-brand {
    transform: translateX(0);
  }

  .brand-layout:hover .tagline,
  .brand-layout:hover .description {
    transform: none;
  }

  .arrow-icon-brand img {
    width: 56px;
    height: 56px;
  }
}
