/* =========================================
   SERVICE DETAIL PAGE - FIGMA EXACT BASE
   ========================================= */

:root {
  --primary: #4ab7ac;
  /* Teal */
  --primary-dark: #348b83;
  /* Dark Teal */
  --text-dark: #222222;
  --text-body: #555555;
  --bg-faint: #e6fffc;
  /* Very Light Teal */
  --border-light: #e0e0e0;
}

.service-detail-page {
  background-color: #ffffff;
  font-family: inherit;
  overflow-x: hidden;
}

.container-1200 {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.my-padding {
  padding: 40px 0;
}

.section-padding {
  padding: 20px 0;
}

.pt-0 {
  padding-top: 0 !important;
}

.pb-0 {
  padding-bottom: 0 !important;
}

.mb-4 {
  margin-bottom: 30px;
}

.mt-3 {
  margin-top: 20px;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-primary {
  color: var(--primary) !important;
}

/* Global Button */
.btn-primary {
  display: inline-block;
  background-color: var(--primary);
  color: #ffffff;
  padding: 14px 40px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(74, 183, 172, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

/* --- 1. Hero Banner --- */
.sd-hero-banner {
  height: 400px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sd-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.sd-hero-title {
  font-size: 46px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin: 0 0 15px 0;
  text-shadow:
    2px 2px 8px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(0, 0, 0, 0.6);
}

.sd-hero-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  margin: 0;
  text-shadow:
    2px 2px 8px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(0, 0, 0, 0.6);
}

/* --- Content Blocks (Typography) --- */
.sd-content-block h2,
.sd-section-title {
  font-size: 34px;
  font-weight: 750;
  color: var(--text-dark);

  line-height: 1.3;
}

.sd-content-block p {
  font-size: 16px;
  color: #000000;
  line-height: 1.8;
}

/* --- 3. Process Cards (Overlapping Icons) --- */
.sd-process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 60px;
  /* Space for the overlapping icon */
}

.sd-process-card {
  border-radius: 12px;
  padding: 50px 30px 30px;
  position: relative;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

/* Light Cards (Left & Right) */
.sd-process-card.light-card {
  background: #ffffff;
  border: 2px solid var(--bg-faint);
}

.stat-icon svg {
  width: 32px;
  height: 32px;
  display: block;
}

/* Dark Card (Center) */
.sd-process-card.dark-card {
  background: var(--primary-dark);
  color: #ffffff;
}

.sd-process-card.dark-card h3,
.sd-process-card.dark-card p {
  color: #ffffff;
}

/* The number label */
.process-icon {
  font-size: 48px;
  font-weight: 800;
  color: #4ab7ac;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  background: none;
  border: none;
  box-shadow: none;
  width: auto;
  height: auto;
}

.process-icon svg {
  width: 28px;
  height: 28px;
}

.sd-process-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 15px 0;
  color: var(--text-dark);
}

.sd-process-card p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  color: #000000;
}

/* --- Split Grids Base --- */
.sd-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: flex-start;
}

.sd-split-grid.align-center {
  align-items: center;
}

/* --- 5. Staggered Stats (Left) --- */
.sd-stats-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sd-stat-box {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #ffffff;
  padding: 20px 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-light);
  width: 80%;
  box-sizing: border-box;
  /* <--- This fixes the overlap */
  transition: transform 0.3s;
}

/* Make sure the text doesn't force the box to stretch */
.stat-text {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.sd-content-block h3,
.list-text h3 {
  margin: 0 0 5px 0;
}

/* Stagger the middle box */
.sd-stat-box.staggered {
  margin-left: 20%;
}

.stat-icon {
  width: 40px;
  height: 40px;
  color: #1a1a1a;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon svg {
  width: 36px;
  height: 36px;
}

.stat-text h3 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 5px 0;
  line-height: 1;
  color: var(--primary);
}

.stat-text p {
  font-size: 14px;
  color: var(--text-body);
  font-weight: 600;
  margin: 0;
}

/* --- 6. Custom Icon Benefits List --- */
.sd-custom-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.list-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.list-icon {
  width: 35px;
  height: 35px;
  background: var(--primary-dark);
  color: #ffffff;
  border-radius: 8px;
  /* Slightly rounded square like Figma */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.list-icon svg {
  width: 18px;
  height: 18px;
}

.list-text strong {
  display: block;
  color: var(--text-dark);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 5px;
}

.list-text p {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.5;
  margin: 0;
}

/* --- 6. Offset Background Shape Image --- */
.sd-offset-image-wrapper {
  position: relative;
  padding-top: 30px;
  padding-right: 30px;
  z-index: 1;
}

.sd-offset-image-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 70%;
  height: 80%;
  background-color: var(--primary-dark);
  border-radius: 20px;
  z-index: -1;
}

.sd-offset-image-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  display: block;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* --- 8. Custom FAQ Accordion (Teal Theme) --- */
.sd-faq-section {
  background-color: #ffffff;
}

.sd-accordion {
  max-width: 1000px;
  /* margin: 0 auto; */
}

.sd-accordion-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-faint);
  /* Light teal inactive background */
  border: 1px solid var(--primary);
  /* Teal border */
  transition: all 0.3s ease;
}

.sd-accordion-header {
  width: 100%;
  background: transparent;
  border: none;
  padding: 20px 25px;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  color: #000000;
  /* Dark teal inactive text */
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s;
}

/* Active FAQ Styling */
.sd-accordion-item.active {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.sd-accordion-item.active .sd-accordion-header {
  color: #ffffff;
}

/* Custom Arrow Icon */
.sd-icon {
  width: 12px;
  height: 12px;
  border-right: 3px solid var(--primary-dark);
  border-bottom: 3px solid var(--primary-dark);
  transform: rotate(45deg);
  transition:
    transform 0.3s,
    border-color 0.3s;
}

.sd-accordion-item.active .sd-icon {
  border-color: #ffffff;
  transform: rotate(-135deg);
}

/* Active Body Styling */
.sd-accordion-body {
  background: var(--primary-dark);
  color: #ffffff;
  font-size: 15px;
  line-height: 1.8;
}

.sd-accordion-inner {
  padding: 0 25px 25px;
  /* Bottom and side padding only, top is handled by header */
}

.sd-accordion-inner p {
  margin: 0;
  opacity: 0.9;
}

/* =========================================
   RESPONSIVE SCALING
   ========================================= */
@media (max-width: 991px) {
  .sd-process-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .sd-split-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .sd-stat-box {
    width: 100%;
  }

  .sd-stat-box.staggered {
    margin-left: 0;
  }

  /* Remove stagger on tablet/mobile */

  .sd-offset-image-wrapper {
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .sd-hero-title {
    font-size: 36px;
  }

  .sd-content-block h2,
  .sd-section-title {
    font-size: 28px;
  }

  .sd-accordion-header {
    font-size: 15px;
    padding: 15px 20px;
  }

  .sd-accordion-inner {
    padding: 0 20px 20px;
  }
}
