/* Swiper logo styles */
.logo-swiper .swiper-slide {
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.logo-swiper .logo-card {
  padding: 0.25rem;
}
.logo-swiper .logo-card img {
  max-width: 100px;
  height: auto;
  display: block;
  border-radius: 5px;
  border: 1px solid var(--primary-dark);
}
.logo-swiper {
  overflow: hidden;
}
.logo-swiper .swiper-wrapper {
  transition-timing-function: linear !important;
}
.portfolio-showcase-section h5 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: var(--primary-dark);
}
.portfolio-showcase-section p {
  margin: 0;
  margin-bottom: 0px;
  text-align: justify;
  line-height: 1.6rem;
}

/* Service Cards Hover Animation Styles */
.service-card {
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

.service-action-btn {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  transform: translateY(60px);
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 8px 25px rgba(60, 71, 89, 0.3);
  z-index: 10;
}

.service-action-btn:hover {
  background: var(--primary-dark);
  color: white;
  text-decoration: none;
  transform: translateY(0) scale(1.02);
  box-shadow: 0 12px 35px rgba(60, 71, 89, 0.5);
}

/* Desktop hover effect */
@media (min-width: 992px) {
  .service-card:hover .service-action-btn {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  }
}

/* Mobile - always show button */
@media (max-width: 991.98px) {
  .service-action-btn {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    transform: none;
    opacity: 1;
    visibility: visible;
    margin-top: 15px;
    width: 100%;
    display: inline-flex;
    justify-content: center;
  }

  .service-card .card-body {
    padding-bottom: 1rem;
  }
}

/* Ensure proper spacing on mobile */
@media (max-width: 576px) {
  .service-action-btn {
    padding: 10px 20px;
    font-size: 13px;
  }
}

/* Staff Swiper Styles */
.staff-swiper {
  overflow: hidden;
  padding: 20px 0;
}

.staff-swiper .swiper-wrapper {
  transition-timing-function: linear !important;
}

.staff-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(60, 71, 89, 0.1);
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  width: 200px;
  margin: 0 10px;
}

.staff-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(60, 71, 89, 0.2);
}

.staff-avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto 15px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary-color);
}

.staff-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.staff-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--primary-dark);
  margin-bottom: 5px;
}

.staff-role {
  font-size: 12px;
  color: var(--primary-color);
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .staff-card {
    width: 160px;
    padding: 15px;
  }

  .staff-avatar {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
  }

  .staff-name {
    font-size: 13px;
  }

  .staff-role {
    font-size: 11px;
  }
}

/* Portfolio video thumb styles */
.portfolio-video-thumb {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.portfolio-video-thumb:hover {
  transform: scale(1.05);
}

/* Portfolio icon styles */
.portfolio-showcase-section .service-icon {
  box-shadow: 0 4px 15px rgba(60, 71, 89, 0.15);
}

.portfolio-showcase-section .service-card:hover .service-icon {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(60, 71, 89, 0.25);
}

/* Make sure video thumbnails don't show controls by default */
.portfolio-video-thumb::-webkit-media-controls {
  display: none !important;
}

.portfolio-video-thumb::-webkit-media-controls-panel {
  display: none !important;
}

/* Testimonial avatar styles */
.testimonial-avatar {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
}

.testimonial-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-color);
  box-shadow: 0 4px 15px rgba(60, 71, 89, 0.15);
  transition: transform 0.3s ease;
}

.testimonial-img:hover {
  transform: scale(1.05);
}

/* Responsive adjustments for testimonials */
@media (max-width: 768px) {
  .testimonial-avatar {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
    align-self: center;
  }

  .testimonial-img {
    width: 60px;
    height: 60px;
  }

  .testimonial-card {
    text-align: center;
  }
}

/* Responsive hero CTA form: stack on mobile, inline on desktop with equal heights */
.hero-cta {
  display: flex;
  gap: 0.6rem;
  align-items: stretch; /* let children match height */
  width: 100%;
  box-sizing: border-box;
}
.hero-cta .phone-input {
  flex: 1 1 auto;
  min-width: 0; /* allow shrinking on small viewports */
  display: flex;
  align-items: center;
}
.hero-cta input[type="tel"] {
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.9rem;
  border-radius: 0.6rem;
  border: 1px solid var(--border-color);
  background: #fff;
  font-size: 0.95rem;
  height: 48px;
}
.hero-cta button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1rem;
  border-radius: 0.6rem;
  height: 48px;
  white-space: nowrap;
}

/* Mobile: stack vertically and make full width */
@media (max-width: 991.98px) {
  .hero-cta {
    flex-direction: column;
  }
  .hero-cta .phone-input,
  .hero-cta input[type="tel"],
  .hero-cta button {
    width: 100%;
  }
}

/* Desktop: keep row layout; ensure inputs and button are visually balanced */
@media (min-width: 992px) {
  .hero-cta {
    flex-direction: row;
  }
  /* Desktop: make phone input and button equal width (50/50) and matching height */
  .hero-cta .phone-input {
    padding-right: 0;
    flex: 1 1 50%;
    max-width: 50%;
  }
  .hero-cta input[type="tel"] {
    height: 52px;
  }
  .hero-cta button {
    height: 52px;
    flex: 0 0 50%;
    max-width: 50%;
  }
  /* Ensure button text wraps nicely if needed and remains centered */
  .hero-cta button {
    white-space: normal;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
.licenses-section {
  background: #f8fafb;
  border-radius: 18px;
  margin-top: 2rem;
}
.license-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(60, 71, 89, 0.08);
  padding: 12px 18px;
  transition: box-shadow 0.3s, transform 0.3s;
  min-width: 160px;
  min-height: 120px;
}
.license-badge img {
  max-width: 90px;
  max-height: 60px;
  object-fit: contain;
  filter: grayscale(0.1) contrast(1.1);
  transition: filter 0.3s, transform 0.3s;
}
.license-badge:hover {
  box-shadow: 0 6px 24px rgba(60, 71, 89, 0.18);
  transform: translateY(-4px) scale(1.04);
}
.license-badge:hover img {
  filter: grayscale(0) contrast(1.2)
    drop-shadow(0 2px 8px var(--primary-color, #4caf50));
}
@media (max-width: 767px) {
  .licenses-section {
    border-radius: 10px;
  }
  .license-badge {
    min-width: 120px;
    min-height: 120px;
    padding: 8px 6px;
  }
  .license-badge img {
    max-width: 120px;
    max-height: 120px;
  }
}
html,
body {
  overflow-x: hidden !important;
  max-width: 100% !important;
  position: relative;
}

/* Ensure carousels and swipers do not overflow viewport */
.carousel,
.carousel-inner,
.carousel-item {
  max-width: 100%;
}
.carousel-item > * {
  max-width: 100%;
  overflow: hidden;
}

/* Videos inside content sections */
.content-video {
  width: 100%;
  height: auto;
  display: block;
}
