/* Custom front overrides: Service category cards with hover effects */

/* Apply Roboto Condensed font */
body,
.service-categories,
.service-categories .single-category,
.service-categories .single-category .text h4,
.service-categories .single-category .text a {
  font-family: 'Roboto Condensed', 'Roboto', sans-serif;
}

/* White background for service categories section */
.service-categories {
  background: #ffffff !important;
  padding: 60px 0;
}

/* Hide only the "Our Services" title, keep the subtitle */
.service-categories .section-title {
  display: none !important;
}

.service-categories .single-category,
.services-area .services-item {
  background: #104D02;
  border-radius: 1.5rem;
  padding: 0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 280px;
  margin-bottom: 40px;
  border: 3px solid #ffffff;
}

/* Equal height grid: make row flex and card content stretch */
.service-categories .row,
.services-area .row {
  display: flex;
  flex-wrap: wrap;
}

.service-categories .col-xl-4,
.service-categories .col-lg-6,
.service-categories .col-sm-6,
.services-area .col-lg-4,
.services-area .col-md-6,
.services-area .col-sm-8 {
  display: flex;
}

.service-categories .single-category,
.services-area .services-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


/* Remove title underline */

.service-categories .single-category .img-wrapper,
.services-area .services-item .services-thumb {
  width: 100%;
  overflow: hidden;
  border-radius: 1.5rem 1.5rem 0 0;
  position: relative;
}

.service-categories .single-category .img-wrapper::after,
.services-area .services-item .services-thumb::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(16, 77, 2, 0.4) 100%);
  transition: opacity 0.4s ease;
  opacity: 0;
  z-index: 1;
}

.service-categories .single-category:hover .img-wrapper::after,
.services-area .services-item:hover .services-thumb::after {
  opacity: 1;
}

.service-categories .single-category .img-wrapper img,
.services-area .services-item .services-thumb img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-categories .single-category:hover .img-wrapper img,
.services-area .services-item:hover .services-thumb img {
  transform: scale(1.1) rotate(2deg);
}


.service-categories .single-category .text,
.services-area .services-item .services-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, rgba(16, 77, 2, 0.95) 0%, rgba(16, 77, 2, 1) 100%);
  justify-content: center;
  gap: 1.25rem;
}

.service-categories .single-category .text h4,
.services-area .services-item .services-content h4 {
  color: #ffffff;
  font-weight: 700;
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.2;
  transition: all 0.3s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  text-align: center;
  text-transform: capitalize;
}

.service-categories .single-category:hover .text h4,
.services-area .services-item:hover .services-content h4 {
  color: #FA5405;
  transform: scale(1.05);
}

/* Hide any paragraph/description text in category cards */
.service-categories .single-category .text p,
.service-categories .single-category p {
  display: none !important;
}

/* Button Styling for Category Cards */
.service-categories .single-category .text a.readmore,
.services-area .services-item .services-content a {
  border: 2px solid #FA5405;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.85rem 2.25rem;
  background: #FA5405;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(250, 84, 5, 0.4);
  letter-spacing: 0.5px;
  text-transform: capitalize;
}

.service-categories .single-category .text a.readmore::before,
.services-area .services-item .services-content a::before {
  content: '→';
  position: absolute;
  right: 1.5rem;
  opacity: 0;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.service-categories .single-category .text a.readmore:hover,
.services-area .services-item .services-content a:hover {
  background: #ffffff;
  transform: translateY(-3px);
  color: #104D02;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(250, 84, 5, 0.5);
  padding-right: 3rem;
}

.service-categories .single-category .text a.readmore:hover::before,
.services-area .services-item .services-content a:hover::before {
  opacity: 1;
  right: 1rem;
}

.service-categories .single-category .text a.readmore:focus,
.services-area .services-item .services-content a:focus {
  outline: 3px solid #FA5405;
  outline-offset: 3px;
}

.service-categories .single-category .text a.readmore:active,
.services-area .services-item .services-content a:active {
  transform: translateY(-1px);
}

.service-categories .single-category:hover,
.services-area .services-item:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* Remove backdrop effects per user request */

/* Button container */
.service-categories .single-category .text,
.services-area .services-item .services-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Add spacing between cards */
.service-categories .col-xl-4,
.service-categories .col-lg-6,
.service-categories .col-sm-6 {
  padding-left: 15px;
  padding-right: 15px;
  margin-bottom: 20px;
}

/* Make cards look good on small screens */
@media (max-width: 768px) {
  .service-categories .single-category,
  .services-area .services-item {
    min-height: 260px;
  }
  
  .service-categories .single-category .img-wrapper img,
  .services-area .services-item .services-thumb img {
    height: 140px;
  }
  
  .service-categories .single-category .text,
  .services-area .services-item .services-content {
    padding: 1.25rem;
  }
  
  .service-categories .single-category .text h4,
  .services-area .services-item .services-content h4 {
    font-size: 1.15rem;
  }
  
  .service-categories .single-category .text a.readmore,
  .services-area .services-item .services-content a {
    padding: 0.75rem 1.75rem;
    font-size: 0.8rem;
  }
}

/* Modern Owl Carousel Navigation for Accreditations */
.owl-carousel.common-carousel .owl-nav button.owl-next,
.owl-carousel.common-carousel .owl-nav button.owl-prev {
  background: #FA5405 !important;
  width: 50px !important;
  height: 50px !important;
  border: none !important;
  border-radius: 50% !important;
  color: #fff !important;
  opacity: 1 !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(250, 84, 5, 0.3) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.5rem !important;
}

.owl-carousel.common-carousel .owl-nav button.owl-next:hover,
.owl-carousel.common-carousel .owl-nav button.owl-prev:hover {
  background: #104D02 !important;
  color: #ffffff !important;
  transform: scale(1.1) !important;
  box-shadow: 0 6px 20px rgba(16, 77, 2, 0.4) !important;
}

.owl-carousel.common-carousel .owl-nav button.owl-prev {
  margin-left: -25px !important;
}

.owl-carousel.common-carousel .owl-nav button.owl-next {
  margin-right: -25px !important;
}

/* Make dots modern too */
.owl-theme .owl-dots .owl-dot span {
  width: 12px !important;
  height: 12px !important;
  background: rgba(250, 84, 5, 0.3) !important;
  transition: all 0.3s ease !important;
}

.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
  background: #FA5405 !important;
  transform: scale(1.3) !important;
}

@media (max-width: 768px) {
  .owl-carousel.common-carousel .owl-nav button.owl-next,
  .owl-carousel.common-carousel .owl-nav button.owl-prev {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.2rem !important;
  }
}
