@import url("https://fonts.googleapis.com/css2?family=Open+Sans+Condensed:wght@700&family=Open+Sans:wght@400;500;700&display=swap");

:root {
  --cyan: #009ab5;
  --yellow: #f8cc00;
  --text: #111111;
  --gray: #555555;
  --white: #ffffff;
  --light: #f8f9fa;
}

/* ============================================================
   1. HERO
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 400px;
  background: url("/images/main-service-hero.webp") center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-text {
  color: #fff;
}

.hero-heading {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 18px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-content p {
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
  color: #ffffff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

/* ============================================================
   2. SERVICES CARDS SECTION
   ============================================================ */
.services-cards-section {
  position: relative;
  overflow: visible;
  background: #f8f9fa;
  padding: 50px 0 70px;
}

.services-header {
  text-align: center;
  margin-bottom: 10px;
}

.section-tittle {
  margin-bottom: 4px;
}

.about-heading {
  position: relative;
  display: block;
  color: #1a1e32;
  font-size: 40px;
  line-height: 50px;
  font-weight: 600;
  text-transform: capitalize;
  margin: 0px 0 0;
}

.services-title-section {
  display: inline-block;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}

/* ── Card ── */
.service-list-card {
  background: #fff;
  overflow: visible;
  border: 1px solid #eaeaea;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 30px;
}

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

/* ── Image ── */
.service-media {
  position: relative;
  /* anchors .button */
  width: 100%;
  overflow: hidden;
}

.service-media>a {
  display: block;
  position: relative;
}

.service-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 412 / 320;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.service-list-card:hover .service-media img {
  transform: scale(1.04);
}

/* ── Hover button (matches .service-media, not .single-service-style1/.img-holder) ── */
.service-media .button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: 70px;
  height: 70px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.service-list-card:hover .service-media .button {
  opacity: 1;
  visibility: visible;
}

.service-media .button a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: #DD1E2D;
  border: 5px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.service-media .button a:hover {
  background: #BB0000;
  transform: scale(1.08);
  transform: rotate(360deg);
}

.service-media .button svg {
  width: 30px;
  height: 30px;
  display: block;
  stroke: #ffffff;
  stroke-width: 2.5;
}

.service-media .button svg:hover {
  transform: rotate(360deg);
}

/* ── Title below image ── */
.service-media__title-holder {
  padding: 16px 18px 20px;
  text-align: center;
}

.service-media__title {
  margin: 0;
  color: #000000;
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1.3;
}

.service-media__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

.service-list-card:hover .service-media__title a {
  color: #DD1E2D;
}

/* Responsive */
@media (max-width: 991px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-media__title {
    font-size: 17px;
  }
}

@media (max-width: 991px) {
  .services-cards-section .container-1200 {
    display: flex;
    flex-direction: column;
  }

  .services-header {
    display: contents;
  }

  .services-title-section {
    order: 1;
  }

  .services-grid {
    order: 2;
    margin-top: 20px;
  }
}


/* =========================================
   CTA BANNER
   ========================================= */
.cta-banner {
  position: relative;
  background-color: #DD1E2D;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 40px 0;
  overflow: hidden;
}

.cta-banner__overlay {
  position: absolute;
  inset: 0;
  background: rgba(221, 30, 45, 0.65);
}

.cta-banner .container-1200 {
  position: relative;
  z-index: 1;
}

.cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-banner__text {
  flex: 1;
  min-width: 260px;
}

.cta-banner__heading {
  color: #ffffff;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 6px;
}

.cta-banner__subtext {
  color: #ffffff;
  font-size: 14px;
  font-weight: 400;
  margin: 0;
  opacity: 0.95;
}

.cta-banner__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-block;
  padding: 14px 22px;
  background: #8EC63F;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 2px;
  transition: background 0.25s ease, transform 0.2s ease;
}

.cta-btn:hover {
  background: #ffffff;
  color: #000000;
  transform: translateY(-2px);
}

@media (max-width: 767px) {
  .cta-banner__inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .cta-banner__heading {
    font-size: 21px;
  }

  .cta-banner__actions {
    width: 100%;
  }

  .cta-btn {
    flex: 1;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .cta-banner__actions {
    flex-direction: column;
  }

  .cta-btn {
    width: 100%;
  }
}

/* ══════════════════════════════════════════════════════
   TESTIMONIALS (solid red card, matches reference design)
   ══════════════════════════════════════════════════════ */
.testimonials-new {
  padding: 50px 0;
  background: #ffffff;
}

.t2-wrap {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}

.t2-card {
  position: relative;
  background: #DD1E2D;
  border-radius: 4px;
  padding: 40px 70px 36px;
  text-align: center;
  overflow: hidden;
  min-height: 200px;
}

.t2-heading {
  color: #ffffff;
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 18px;
}

.t2-slide {
  position: absolute;
  inset: 0;
  top: 76px;
  /* leaves room for the heading above */
  left: 70px;
  right: 70px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0s linear 0.5s;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.t2-slide.active {
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0s linear 0s;
}

.t2-text {
  font-size: 15px;
  line-height: 1.75;
  color: #ffffff;
  font-style: italic;
  font-weight: 600;
  margin: 0 0 18px;
}

.t2-stars {
  color: #FFC107;
  font-size: 22px;
  letter-spacing: 4px;
  margin: 0 0 16px;
  line-height: 1;
}

.t2-name {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.t2-name span {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  margin-left: 4px;
  opacity: 0.85;
}

/* ---- Nav buttons, now positioned inside the card ---- */
.t2-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.t2-nav svg {
  width: 14px;
  height: 14px;
}

.t2-nav--prev {
  left: 20px;
  border: 2px solid #ffffff;
  color: #ffffff;
}

.t2-nav--prev:hover {
  background: #79ad33;
  color: #ffffff;
}

.t2-nav--next {
  right: 20px;
  border: 2px solid #ffffff;
  /* background: #ffffff; */
  color: #ffffff;
}

.t2-nav--next:hover {
  background: #79ad33;
}

@media (max-width: 767px) {
  .t2-card {
    padding: 34px 54px 30px;
  }

  .t2-slide {
    left: 54px;
    right: 54px;
  }

  .t2-heading {
    font-size: 22px;
  }

  .t2-text {
    font-size: 14px;
  }

  .t2-nav {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 575px) {
  .t2-card {
    padding: 30px 40px 26px;
  }

  .t2-slide {
    left: 40px;
    right: 40px;
  }

  .t2-nav--prev {
    left: 10px;
  }

  .t2-nav--next {
    right: 10px;
  }
}

@media (max-width: 320px) {
  .about-heading {
    font-size: 22px;
    line-height: 1.3;
  }

  .hero-section {
    min-height: 0;
    padding: 36px 12px;
  }

  .hero-heading {
    font-size: 26px;
    overflow-wrap: anywhere;
  }

  .hero-content p {
    font-size: 14px;
  }

  .cta-banner__heading {
    font-size: 22px;
    overflow-wrap: anywhere;
  }

  .t2-card {
    padding: 24px 34px 20px;
  }

  .t2-slide {
    left: 34px;
    right: 34px;
  }
}