#OurValuedMembers {
  background-color: #F5F6F8 !important;
}


section[data-cattype="407"] .background-container {
  background-color: #F5F6F8 !important;
  overflow: hidden;
  margin-bottom: -36px;
}

section[data-cattype="407"] .container-fluid {
  width: 1600px;
height: 560px;
}

section[data-cattype="407"] .content-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 80px 20px;
}

section[data-cattype="407"] .title {
  color: #1c1c1c;
  text-align: left;
  font-size: 45px;
  font-weight: 700;
}

section[data-cattype="407"] .title2 {
  color: #1c1c1c;
  text-align: left;
  margin-bottom: 35px;
  font-size: 16px;
  line-height: 1.6;
}

section[data-cattype="407"] .logo-grid {
  margin-top: -30px;
  padding-right: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 25px;
}

section[data-cattype="407"] .logo-grid .logo-position {
  flex: 0 0 calc(20% - 20px);
  max-width: calc(20% - 20px);
}

/* Row 1: left-align first 3 logos */
section[data-cattype="407"] .logo-grid .logo-position:nth-child(1),
section[data-cattype="407"] .logo-grid .logo-position:nth-child(2),
section[data-cattype="407"] .logo-grid .logo-position:nth-child(3) {
  margin-right: auto;
}

/* Row 3: right-align last 3 logos */
section[data-cattype="407"] .logo-grid .logo-position:nth-child(10),
section[data-cattype="407"] .logo-grid .logo-position:nth-child(11),
section[data-cattype="407"] .logo-grid .logo-position:nth-child(12) {
  margin-right: 0px;
}

section[data-cattype="407"] .logo-box {
  background: #fff;
  height: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.logo-grid .logo-position:nth-child(5) .logo-box {
  background: none !important;
  box-shadow: none !important;
}

section[data-cattype="407"] .logo-box:hover {
  transform: translateY(-5px);
}

section[data-cattype="407"] .logo-box img {
  max-height: 300px;
  max-width: 90%;
  object-fit: contain;
}

section[data-cattype="407"] .more-button {
  display: inline-block;
  background-color: #B99642;
  color: white;
  padding: 15px;
  border-radius: 12px;
  font-size: 18px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  position: relative;
  top: -150px;
  right: 120px;
  width: 200px;
}

section[data-cattype="407"] .more-button:hover {
  background-color: #6B1B1C;
}

section[data-cattype="407"] .text-block {
  padding-left: 50px;
}

section[data-cattype="407"] .text-block .title {
  font-size: 45px;
  font-weight: 700;
  color: #222;
  text-align: right;
}

section[data-cattype="407"] .text-block .description {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  margin-top: 15px;
  text-align: right;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  section[data-cattype="407"] .logo-grid .logo-position {
    flex: 0 0 calc(25% - 20px);
    max-width: calc(25% - 20px);
  }
}

@media (max-width: 992px) {
  section[data-cattype="407"] .text-block {
    padding-left: 0;
    margin-top: 40px;
    text-align: center;
  }

  section[data-cattype="407"] .title,
  section[data-cattype="407"] .title2 {
    text-align: center;
  }

  section[data-cattype="407"] .logo-grid {
    padding-right: 0;
    justify-content: flex-end;
  }

  section[data-cattype="407"] .logo-grid .logo-position {
    flex: 0 0 45%;
    max-width: 45%;
  }

  section[data-cattype="407"] .logo-grid .logo-position:nth-child(1),
  section[data-cattype="407"] .logo-grid .logo-position:nth-child(2),
  section[data-cattype="407"] .logo-grid .logo-position:nth-child(3),
  section[data-cattype="407"] .logo-grid .logo-position:nth-child(10),
  section[data-cattype="407"] .logo-grid .logo-position:nth-child(11),
  section[data-cattype="407"] .logo-grid .logo-position:nth-child(12) {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 576px) {
  section[data-cattype="407"] .container-fluid {
    width: 100%;
    height: auto;
    padding: 40px 15px;
  }

  section[data-cattype="407"] .content-container {
    padding: 40px 15px;
  }

  section[data-cattype="407"] .title,
  section[data-cattype="407"] .title2 {
    text-align: center;
    font-size: 26px;
  }

  section[data-cattype="407"] .title2 {
    font-size: 14px;
  }

  section[data-cattype="407"] .logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0px;
margin-top: 0px;
  }

  section[data-cattype="407"] .logo-grid .logo-position {
    flex: 0 0 40%;
    max-width: 30%;
  }

  section[data-cattype="407"] .logo-box img {
    max-height: 160px;
    max-width: 90%;
  }

  section[data-cattype="407"] .more-button {
    position: relative;
    margin: 30px auto 0;
    display: block;
    width: 100%;
    max-width: 111px;
    text-align: center;
    font-size: 16px;
    padding: 12px;
    top: -345px;
    right: 0px;
  }

section[data-cattype="407"] .col-lg-8.col-md-12 {
  margin-bottom: -120px;
}

  section[data-cattype="407"] .text-block {
    padding-left: 0;
    text-align: center;
  }

  section[data-cattype="407"] .text-block .title {
    font-size: 26px;
    text-align: center;
  }

  section[data-cattype="407"] .text-block .description {
    font-size: 14px;
    text-align: center;
    margin-top: 10px;
  }
}

