/* ================================================================
   Sync Inn Digital — Growth Challenges Section
   Used on: Main Services category pages only.

   Layout:
     .sid-gc               — full-width section wrapper
     .sid-gc__inner        — constrained/boxed inner content
     .sid-gc__header       — section label + heading
     .sid-gc__grid         — 3-column card grid
     .sid-gc__card         — stat card (white bg on hover)
     .sid-gc__card--quote  — quote card wrapper (no bg)
     .sid-gc__quote-inner  — gradient bg lives here
   ================================================================ */

/* ── Section wrapper ─────────────────────────────────────────── */

.sid-gc {
  background-color: var(--sid-light-grayish-blue-bg, #F5F6FA);
  padding-top: 110px;
}

/* ── Constrained inner ───────────────────────────────────────── */

.sid-gc__inner {
  max-width: var(--sid-site-width, 1400px);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Section header ──────────────────────────────────────────── */

.sid-gc__header {
  margin-bottom: 48px;
}

.sid-gc__heading {
  font-family: 'Poppins', var(--sid-font-heading, sans-serif);
  font-size: 60px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--sid-black, #000);
  margin: 0 0 24px;
  max-width: 70%;
}

.sid-gc__heading-muted {
  color: #7E7E81;
}

/* ── Card grid — 3 columns ───────────────────────────────────── */

.sid-gc__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── Stat card ───────────────────────────────────────────────── */

.sid-gc__card {
  border-radius: 30px;
  padding: 45px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: background-color 0.25s ease;
  flex-wrap: nowrap;
  justify-content: center;
}

.sid-gc__card:hover {
  background: #E8ECF3;
}

/* Card heading */
.sid-gc__card-title {
  font-family: 'Poppins', var(--sid-font-heading, sans-serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--sid-black, #111);
  margin: 0 0 20px;
  text-align: center;
}

/* Stat circle wrapper */
.sid-gc__stat-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 20px;
}

/* The circle */
.sid-gc__stat {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: #E8ECF3;
  font-family: 'Poppins', var(--sid-font-heading, sans-serif);
  font-size: 34px;
  font-weight: 700;
  color: var(--sid-black, #111);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

/* On card hover — circle turns white with shadow */
.sid-gc__card:hover .sid-gc__stat {
  background: var(--sid-white, #fff);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
}

/* Description */
.sid-gc__card-desc {
  font-family: 'Nunito', var(--sid-font-body, sans-serif);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--sid-black, #111);
  margin: 0 0 10px;
  text-align: center;
  flex: 1;
}

/* Source / company name */
.sid-gc__card-company {
  font-family: 'Nunito', var(--sid-font-body, sans-serif);
  font-size: 16px;
  font-weight: 300;
  color: var(--sid-icon-dark, #777);
  margin: 0;
  text-align: center;
}

/* ── Quote card — wrapper has no bg ─────────────────────────── */

.sid-gc__card--quote {
  padding: 0;
  overflow: hidden;
}

/* Hover has no effect on the quote card */
.sid-gc__card--quote:hover {
  background: transparent;
}

/* Inner div carries the gradient ────────────────────────────── */

.sid-gc__quote-inner {
  background: linear-gradient(135deg, var(--sid-primary-blue, #0047D8) 0%, #32CCFF 100%);
  border-radius: 30px;
  padding: 32px 28px;
  width: 100%;
  height: 80%;
  display: flex;
  align-items: center;
}

.sid-gc__quote-text {
  font-family: 'Nunito', var(--sid-font-body, sans-serif);
  font-size: 22px;
  font-weight: 700;
  font-style: italic;
  line-height: 1.5;
  color: var(--sid-white, #fff);
  margin: 0;
}

/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 1280px) {
  .sid-gc__heading {
    font-size: 44px;
  }
}

@media (max-width: 1024px) {
  .sid-gc__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sid-gc__heading {
    font-size: 38px;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .sid-gc {
    padding: 60px 0;
  }

  .sid-gc__heading {
    font-size: 32px;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .sid-gc__grid {
    grid-template-columns: 1fr;
  }

  .sid-gc__heading {
    font-size: 28px;
  }

  .sid-gc__card-title {
    font-size: 20px;
  }

  .sid-gc__stat {
    font-size: 28px;
    width: 110px;
    height: 110px;
  }

  .sid-gc__quote-text {
    font-size: 18px;
  }
}

@media (max-width: 479px) {
  .sid-gc__heading {
    font-size: 30px;
    line-height: 30px;
  }
}

/* ── Mobile carousel (< 767px) ───────────────────────────────── */

@media (max-width: 767px) {
  /* Grid becomes overflow-hidden container for the track */
  .sid-gc__grid {
    display: block;
    overflow: hidden;
    position: relative;
  }

  /* JS-injected sliding track */
  .sid-gc__track {
    display: flex;
    transition: transform 0.45s ease;
    will-change: transform;
  }

  /* Each card fills 100% of the container width */
  .sid-gc__track .sid-gc__card {
    flex: 0 0 100%;
    min-width: 100%;
  }

  /* ── Dot indicators ── */
  .sid-gc__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
  }

  .sid-gc__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background 0.2s ease;
    flex-shrink: 0;
  }

  .sid-gc__dot.is-active {
    background: var(--sid-black, #000);
  }
}
