/* ==========================================================================
   giggles.css — Giggles Platform case study page
   Loads on top of kikku.css; only overrides and adds what Giggles needs.
   Brand colours: #DD5498 pink | #6B98C6 blue | #7EB380 green | #F5F5F5 light | #292929 dark
   ========================================================================== */

/* --------------------------------------------------------------------------
   PAGE BACKGROUND — matches the shared case-study background (kikku.css)
   -------------------------------------------------------------------------- */
body {
  background-color: #EBEBEB;
}

/* --------------------------------------------------------------------------
   NEXT PROJECT — override the shared .cs-next-project card for this page
   to match the same card treatment used on Hustle/Kikku/Sparkles: padding
   + gap inside the card instead of the mockup image bleeding edge-to-edge,
   and an uncropped icon.
   -------------------------------------------------------------------------- */
.cs-next-project__card {
  align-items: center;
  padding: 16px 32px;
  gap: 20px;
}

.cs-next-project__image {
  background: transparent;
  align-self: stretch;
  border-radius: var(--radius-xl);
}

.cs-next-project__icon {
  width: 64px;
  height: 64px;
  border-radius: 0;
  overflow: visible;
}

.cs-next-project__icon-img {
  object-fit: contain;
}

.cs-next-project__card .project-card__description {
  width: 100%;
}

@media (max-width: 900px) {
  .cs-next-project__card {
    padding: 16px;
    gap: 16px;
  }

  .cs-next-project__image {
    order: -1;
  }
}

/* --------------------------------------------------------------------------
   PAGE TITLE — inherits Emilys Candy from kikku.css base
   -------------------------------------------------------------------------- */
.cs-page-title {
  font-family: 'Emilys Candy', cursive;
  color: #292929;
}

/* --------------------------------------------------------------------------
   HIGHLIGHTS — white card containing the avatar illustration
   -------------------------------------------------------------------------- */
.gg-highlights-wrap {
  background: #FFFFFF;
  border-radius: 32px;
  padding: 48px 40px;
  box-shadow: 0 4px 48px rgba(221, 84, 152, 0.08);
  overflow: hidden;
}

.gg-highlights-img {
  width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   CHALLENGES — three SVGs side by side
   -------------------------------------------------------------------------- */
.gg-challenges-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 24px;
}

.gg-challenges-bubble {
  width: 100%;
  height: auto;
  display: block;
}

.gg-challenges-photo {
  width: 400px;
  height: auto;
  display: block;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   SOLUTION — numbered list, no card background
   -------------------------------------------------------------------------- */
.gg-solution-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.gg-solution-item {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 14px 0;
}

.gg-solution-item__num {
  flex-shrink: 0;
  font-family: 'Emilys Candy', cursive;
  font-size: 44px;
  line-height: 1;
  color: #7D52F4;
  width: 36px;
  text-align: right;
}

.gg-solution-item__text {
  font-family: 'Urbanist', sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: #3D3D3D;
  line-height: 1.7;
  margin: 0;
}

/* --------------------------------------------------------------------------
   KEY FEATURES — full-width screen images
   -------------------------------------------------------------------------- */
.gg-kf-screen {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  margin-bottom: 32px;
}

.gg-kf-screen:last-child {
  margin-bottom: 0;
}

.gg-kf-screen--mobile {
  border-radius: 16px;
}

/* --------------------------------------------------------------------------
   STYLE GUIDE — stacked, no card background
   -------------------------------------------------------------------------- */
.gg-style-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.gg-style-color-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gg-style-color-label {
  font-family: 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 400;
  color: #7EB380;
  line-height: 1.3;
  text-align: right;
  margin: 0;
}

.gg-style-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

/* --------------------------------------------------------------------------
   VISUAL DESIGNS — stacked full-width screens
   -------------------------------------------------------------------------- */
.gg-vd-screen {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.07);
}

.gg-vd-screen:last-child {
  margin-bottom: 0;
}


/* --------------------------------------------------------------------------
   RESPONSIVE — Tablet (≤ 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .gg-solution-item__num {
    font-size: 32px;
  }
}

/* --------------------------------------------------------------------------
   RESPONSIVE — Mobile (≤ 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {

  /* ── Page title & subtitle ── */
  .cs-page-title {
    font-size: 18px;
    margin: 0 0 8px;
  }

  .cs-page-subtitle {
    font-size: 12px;
  }

  /* ── Section spacing: 24px between all sections ── */
  .cs-section {
    padding: 24px 0 0;
  }

  /* ── Section heading → first content gap ── */
  .cs-section__header {
    margin-bottom: 16px;
    gap: 4px;
  }

  /* ── Hero image bottom gap ── */
  .cs-hero-image-wrap {
    margin-bottom: 24px;
  }

  /* ── Overview ── */
  .cs-overview {
    gap: 12px;
  }

  .cs-overview__item {
    gap: 4px;
  }

  .cs-overview__label,
  .cs-overview__value {
    font-size: 16px;
  }

  /* ── Problem label ── */
  .cs-problem-label {
    font-size: 16px;
    margin-bottom: 12px;
  }

  /* ── Highlights ── */
  .gg-highlights-wrap {
    padding: 28px 20px;
    border-radius: 20px;
  }

  /* ── Challenges ── */
  .gg-challenges-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gg-challenges-photo {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  /* ── Solutions ── */
  .gg-solution-item {
    padding: 14px 0;
    gap: 16px;
  }

  .gg-solution-item__num {
    font-size: 28px;
    width: 28px;
  }

  .gg-solution-item__text {
    font-size: 16px;
  }

  /* ── Style guide label ── */
  .gg-style-color-label {
    font-size: 16px;
  }

  /* ── Next Project section — mirrors Sparkles mobile ── */
  .cs-next-project {
    padding: 24px 16px 40px;
  }

  .cs-next-project__label {
    font-size: 16px;
    margin-bottom: 16px;
  }

  .cs-next-project__star {
    width: 18px;
    height: 18px;
  }

  .cs-next-project__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 8px;
    gap: 10.81px;
    width: 100%;
    max-width: 355px;
    height: 567.53px;
    border-radius: 17.2986px;
    flex: none;
    align-self: stretch;
    flex-grow: 0;
    margin: 0 auto;
    overflow: hidden;
  }

  .cs-next-project__image {
    order: -1;
    width: 100%;
    flex: 1;
    min-height: 0;
    align-self: stretch;
  }

  .cs-next-project__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  .cs-next-project__text {
    flex: none;
    padding: 0 8px;
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  .cs-next-project__title-row {
    gap: 8px;
  }

  .cs-next-project__icon {
    width: 28px;
    height: 28px;
  }

  .cs-next-project__title {
    font-size: 16px;
  }

  .cs-next-project__category {
    font-size: 12px;
    margin-top: 6px;
  }

  .cs-next-project__description {
    font-size: 12px;
    line-height: 1.6;
    margin-top: 8px;
  }

  .cs-next-project__btn {
    margin-top: 10.81px;
    align-self: stretch;
    text-align: center;
    padding: 12px 16px;
    font-size: 14px;
    width: 100%;
  }

  .cs-next-project__card .project-card__category {
    font-size: 12px;
    margin-top: 6px;
  }

  .cs-next-project__card .project-card__description {
    font-size: 12px;
    line-height: 1.6;
    margin-top: 8px;
    width: 100%;
  }

  .cs-next-project__card .project-card__metrics {
    margin-top: 8px;
    gap: 4px;
  }

  .cs-next-project__card .project-card__metric {
    font-size: 12px;
    gap: 6px;
  }

  .cs-next-project__card .project-card__check-icon {
    width: 14px;
    height: 14px;
  }

  .cs-next-project__card .project-card__btn {
    margin-top: 10.81px;
    width: 100%;
    height: auto;
    padding: 12px 16px;
    font-size: 14px;
    text-align: center;
  }
}
