.ctm_gallery img {
  width: 100%;
  height: 200px !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
}


.ctm_gallery img:hover {
  transform: scale(1.1);
  /* Slightly enlarge the image */
  box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.2);
  /* Add shadow effect */
}

.ctm_img {
  height: 200px !important;
  width: 200px !important;
}

.ctm_category_img {
  width: 100%;
  height: 120px !important;
}

.row .ctm_main_content {
  max-width: calc(100% - 31rem) !important;
}

@media (max-width: 768px) {

  /* Adjust max-width as needed for your breakpoint */
  .row .ctm_main_content {
    max-width: 100% !important;
  }
}

.ctm_page_header {
  height: 305px !important;
}


.Ctm_card {
  background: #333333;
  padding: 25px;
  color: white;
  border-radius: 10px;
  /* Optional for rounded corners */
  box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.3), 0px 5px 10px rgba(0, 0, 0, 0.2);
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg) scale(1);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.Ctm_card:hover {
  transform: perspective(1000px) rotateX(5deg) rotateY(5deg) scale(1.05);
  /* Add rotation and scaling */
  box-shadow: 0px 25px 40px rgba(0, 0, 0, 0.5), 0px 15px 30px rgba(0, 0, 0, 0.3);
  /* Enhance shadow effect */
}

/* Adding glowing border effect */
.Ctm_card:hover::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  filter: blur(5px);
  opacity: 0.7;
  animation: pulse 1.5s infinite;
}

/* Animation for glowing border */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 0.7;
  }
}




/* General Styling */
.category-banner-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 20px;
}

/* Banner images */
.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Content inside banners */
.banner-content {
  position: absolute;
  bottom: 10%;
  left: 5%;
  right: 5%;
  text-align: center;
  color: white;
}

/* Buttons */
.btn {
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: #333;
  color: white;
}

.btn-icon-right i {
  margin-left: 10px;
}

/* Mobile responsiveness */
@media (max-width: 767px) {
  .category-banner-wrapper {
    flex-direction: column;
  }

  .grid-item {
    margin-bottom: 20px;
  }

  .banner-content {
    bottom: 15%;
    left: 10%;
    right: 10%;
  }

  .banner-title {
    font-size: 1.2rem;
  }

  .banner-subtitle {
    font-size: 1rem;
  }
}

/* Tablet responsiveness */
@media (min-width: 768px) and (max-width: 991px) {
  .grid-item {
    margin-bottom: 15px;
  }

  .banner-content {
    bottom: 15%;
    left: 8%;
    right: 8%;
  }

  .banner-title {
    font-size: 1.5rem;
  }

  .banner-subtitle {
    font-size: 1.1rem;
  }
}

/* Desktop responsiveness */
@media (min-width: 992px) {
  .category-banner-wrapper {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .grid-item {
    margin-bottom: 0;
  }

  .banner-content {
    bottom: 10%;
    left: 5%;
    right: 5%;
  }

  .banner-title {
    font-size: 1.8rem;
  }

  .banner-subtitle {
    font-size: 1.2rem;
  }
}

@media (max-width: 767px) {
  .min_banner_1 {
    object-fit: left !important;
    /* Align the image to the left on mobile */
  }

}


.ctm_content {
  top: 70% !important;
}

.ctm_content a {
  margin-left: -51% !important;
}

@media (max-width: 575px) {
  .ctm_content a {
    margin-left: -71% !important;
  }

}