.category-card {
    position: relative;
    overflow: hidden;
    height: 250px;
    transition: transform 0.4s ease;
    height: 450px;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    border-radius: 0px;
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-title {
    position: absolute;
    left: 15px;
    background-color: #EB2D2E;
    padding: 5px 10px;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    transition: all 0.4s ease;
}

.category-card:hover .category-title {
    padding: 10px 20px;
    content: "Learn More";
}

.category-card:hover .category-title::before {
    content: "Learn More";
}

.category-title span {
    display: block;
}

.category-card:hover .category-title span {
    display: none;
}

.category-arrow {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 5px;
    border-radius: 50%;
    font-size: 1.2rem;
}

.category-arrow:hover {
    background-color: rgba(255, 255, 255, 1);
}

.category-title.bottom-left {
    bottom: 15px !important;
}

.category-title.top-left {
    top: 15px !important;
}

h2.b-p-title {
    background: #3a3a3a;
    width: 100%;
    margin: 30px auto;
    padding: 5px 10px;
    text-transform: uppercase;
    text-align: center;
    max-width: 320px;
    font-size: 22px;
    color: #ffff;
}

.b-p-desc {
    max-width: 660px;
    margin: 0 auto;
    padding-bottom: 20px;
}

@media (max-width: 767px) {
    .category-title {
        font-size: 13px;
    }
}

.home-sub-industries .swiper-slide img{
  filter: grayscale(1);
}
.home-sub-industries .swiper-slide:hover img{
  filter: grayscale(0);
}





.brownell-stats {
  --su-primary-color: #f6d5f7;
  --su-secondary-color: #fbe9d7;
  --su-primary-font: "Poppins", sans-serif;
  font-family: var(--su-primary-font);
  background-color: var(--su-primary-color);
  padding-top: 3rem;
  padding-bottom: 3rem;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap; 
  text-align: center; 
  
}

@media screen and (min-width: 768px) {
  .brownell-stats {
    padding-top: 6rem;
    padding-bottom: 6rem;
    flex-wrap: nowrap; /* Prevent wrapping on larger screens */
  }
}

.brownell-stats::before {
  position: absolute;
  content: "";
  background: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(75,75,75,1) 100%);
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  opacity: 0.9;
  z-index: -1;
}

.brownell-stats h3 {
  height: 2.125rem;
  font-size: 30px;
}

.brownell-stats .count {
  flex: 1 1 100%; /* Make each counter take full width on mobile */
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem; /* Add space between counters */
  color: #fff  !important;
}

@media screen and (min-width: 768px) {
  .brownell-stats .count {
    flex: 1 1 25%; /* Ensure counters are evenly distributed on larger screens */
    margin-bottom: 0; /* Remove bottom margin on larger screens */
  }
}

.brownell-stats .count span {
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 68%;
  transition: transform 2s ease;
  transform: translateY(0);
  align-items: center;
}

.brownell-stats .count span span {
  flex: 0 0 100%;
  height: 100%;
}

.brownell-stats p {
  font-weight: 500;
  font-size: 1rem;
}
section.brownell.brownell-stats.position-relative.text-dark.my-5{
  color:#fff !important;
}
.col-lg-3.col-sm-6.d-flex.justify-content-center {
  margin-bottom: 25px;
}
.brownell-stats .counter {
  border: 1px solid #505050;
  padding: 25px;
}
@media screen and (min-width: 768px) {
  .brownell-stats p {
    font-size: 1.125rem;
  }
}

.btn-red {
  background-color: #e13b3f;
  color: #ffffff;
  border: none;
  transition: all 0.3s ease-in-out !important;
}
.btn-red:hover {
  background-color: #cd383c;
  color: #ffffff;
}

 .brownell-stats .btn-red{
  font-size: 18px;
  font-weight: 400;
  margin-top:25px;
}