/* ========== ENHANCED SERVICES CARD DESIGN - HOME PAGE ONLY ========== */
.page-home .service-cards-home {
  padding: 8px;
}

.page-home .single-service-card {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  background: transparent;
}

/* Fix click smoothness by ensuring proper pointer events */
.page-home .single-service-card a {
  pointer-events: auto;
  position: relative;
  z-index: 100;
}

.page-home .single-service-card::after {
  pointer-events: none;
}

.page-home .single-service-card video {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-home .excellence-card-text-wrapper {
  padding: 32px 28px 36px;
  position: relative;
  z-index: 5;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-home .div-block-253 {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-home .excellence-card-heading {
  font-size: 1.85rem;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
  color: #ff8a4c;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  text-shadow: 0 1px 10px rgba(255, 99, 28, 0.14);
}

.page-home .heading-24 {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
  text-align: center;
}

/* Simple button style with orange hover - HOME PAGE ONLY (like about us section) */
.page-home .single-service-card .button {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50px;
  padding: 10px 20px;
  color: #ffffff;
  font-weight: 500;
  transition: all 0.3s ease;
}

.page-home .single-service-card .button:hover {
  background: #ff631c;
  border-color: #ff631c;
  color: #ffffff;
}

.page-home .single-service-card .button-text,
.page-home .single-service-card .button .button-text,
.page-home .single-service-card a .button-text,
.page-home .service-cards-home .button-text {
  color: #ffffff;
}

/* Force white text with even higher specificity */
.page-home .service-cards-home .single-service-card .button-text-wrap .button-text {
  color: #ffffff;
}

/* Target specific variant class that's making text black */
.page-home .single-service-card .button-text.w-variant-b2c15ccf-f3ee-7171-f43f-d5285af181db {
  color: #ffffff;
}

/* Universal white text for all service card buttons on home page */
.page-home .service-cards-home a .button-text-wrap .button-text,
.page-home .service-cards-home a .button-inner .button-text-wrap .button-text {
  color: #ffffff;
}

/* Target button-link class that sets text to black */
.page-home .service-cards-home .button.button-link,
.page-home .service-cards-home .button.button-link .button-text {
  color: #ffffff;
}

/* Target button-2.button-link class that sets text to black */
.page-home .service-cards-home .button-2.button-link,
.page-home .service-cards-home .button-2.button-link .button-text {
  color: #ffffff;
}

/* Target data-wf-button variant attribute */
.page-home .service-cards-home [data-wf--button--variant="button-link"],
.page-home .service-cards-home [data-wf--button--variant="button-link"] .button-text {
  color: #ffffff;
}

.page-home .single-service-card .button-inner {
  background: transparent;
  padding: 0;
  box-shadow: none;
}

/* GLOBAL VIDEO STYLES TO PREVENT CROPPING ON ANY DEVICE */
.page-home .single-service-card video,
.page-home .single-service-card > img,
.page-home .single-service-card .lazy-video {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  transform: none;
  display: block;
}

@media screen and (max-width: 991px) {
  .page-home .single-service-card video,
  .page-home .single-service-card > img,
  .page-home .single-service-card .lazy-video {
    width: 90%;
    margin: 20px auto 0;
  }
}

/* ========== 1x4 HORIZONTAL LAYOUT — DESKTOP (≥992px) ========== */
@media screen and (min-width: 992px) {
  .page-home .service-cards-home {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
    gap: 20px;
    padding: 0;
    align-items: stretch;
  }

  /* Cards: equal-height flex columns with subtle glassmorphism border */
  .page-home .single-service-card {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 480px; /* Increased base height to fit button */
    min-width: 0;
    border-radius: 20px;
    border: none;
    background: transparent;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
  }

  /* Clean hover lift with subtle brand glow */
  .page-home .single-service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  }
  .page-home .single-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(255, 138, 76, 0.15);
    border-color: rgba(255, 138, 76, 0.3);
  }

  /* Video / image area: flush to top, cover fill */
  .page-home .single-service-card video,
  .page-home .single-service-card > img,
  .page-home .single-service-card .lazy-video {
    width: 75%; /* Slightly wider left-aligned video */
    height: auto;
    aspect-ratio: 16/9;
    object-fit: contain;
    object-position: left center; /* Align to the left internally */
    transform: none;
    display: block;
    flex-shrink: 0;
    margin: 32px 32px 0 32px; /* Left padding matches the text wrapper */
    padding: 0;
    border-radius: 0;
    border-bottom: none;
    transition: filter 0.35s ease;
  }

  /* Removed optical balance to keep strictly uniform left-aligned grid for this test */
  .page-home .single-service-card:nth-child(2) video,
  .page-home .single-service-card:nth-child(2) > img {
    /* width: 76%; */
  }

  /* Slight video brightness enhancement on hover */
  .page-home .single-service-card:hover video,
  .page-home .single-service-card:hover > img {
    filter: brightness(1.12) contrast(1.08) drop-shadow(0 0 16px rgba(255, 138, 76, 0.2));
  }

  /* Text wrapper: button pinned to bottom, copy centered in remaining space */
  .page-home .excellence-card-text-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    justify-content: flex-start;
    padding: 24px 32px 20px;
    gap: 12px;
    align-items: flex-start;
    text-align: left;
  }

  .page-home .div-block-253 {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 0;
    gap: 6px;
    grid-row-gap: 6px;
  }

  .page-home .excellence-card-text-wrapper > div:last-child {
    flex: 0 0 auto;
    margin-top: auto;
    width: 100%;
  }

  .page-home .div-block-253 > div:first-child {
    margin-bottom: 4px;
  }

  /* Title: readable at small widths */
  .page-home .excellence-card-heading {
    font-size: 23px;
    line-height: 1.3;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
    font-weight: 600;
    color: rgba(255, 138, 76, 0.95);
    text-align: left;
  }

  /* Description: subtle, balanced */
  .page-home .heading-24 {
    font-size: 18px;
    line-height: 1.6;
    max-width: 100%;
    margin-top: 0;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 400;
    text-align: left;
  }

  /* CTA button: compact pill */
  .page-home .single-service-card .button {
    padding: 11px 24px;
    font-size: 14px;
    font-weight: 600;
    width: auto;
    height: auto;
    margin: 0;
    text-align: center;
    justify-content: center;
    align-items: center;
    display: inline-flex;
    border-radius: 999px;
    background: rgba(15, 15, 15, 0.8);
    border: 1.5px solid rgba(255, 138, 76, 0.4);
    box-shadow: 0 4px 15px rgba(255, 138, 76, 0.15);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .page-home .single-service-card .button:hover {
    background: #ff8a4c;
    border-color: #ff8a4c;
    box-shadow: 0 8px 25px rgba(255, 138, 76, 0.3);
    transform: translateY(-2px);
  }

  .page-home .single-service-card .button .button-text {
    color: #ffffff;
    transition: color 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .page-home .single-service-card .button:hover .button-text {
    color: #000000;
  }

  /* Subtle orange accent line at the top of each card on hover */
  .page-home .single-service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff631c, #ff8a4c, transparent);
    transform: translateX(-50%);
    transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 10;
    border-radius: 0 0 2px 2px;
  }

  .page-home .single-service-card:hover::before {
    width: 80%;
  }
}

/* ========== TABLET (768px – 991px) ========== */
@media screen and (min-width: 768px) and (max-width: 991px) {
  .page-home .service-cards-home {
    padding: 4px;
  }

  .page-home .single-service-card {
    display: flex;
    flex-direction: column;
    height: auto;
  }

  .page-home .excellence-card-text-wrapper {
    padding: 24px 20px 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
  }

  .page-home .excellence-card-heading {
    font-size: 1.65rem;
  }

  .page-home .heading-24 {
    font-size: 1rem;
  }
}

/* ========== MOBILE (≤767px) ========== */
@media screen and (max-width: 767px) {
  .page-home .service-cards-home {
    padding: 0;
  }

  .page-home .single-service-card {
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    overflow: hidden;
  }

  .page-home .excellence-card-text-wrapper {
    padding: 24px 20px 28px;
    align-items: center;
    text-align: center;
  }

  .page-home .div-block-253 {
    align-items: center;
    text-align: center;
  }

  .page-home .excellence-card-heading {
    font-size: 1.5rem;
    margin-bottom: 12px;
    text-align: center;
  }

  .page-home .heading-24 {
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
  }

  .page-home .div-block-253 ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: fit-content;
    margin: 0 auto;
  }

  .page-home .div-block-253 ul li {
    justify-content: flex-start;
    text-align: left;
    align-items: flex-start;
  }

  .page-home .excellence-card-text-wrapper > div:last-child {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}



