/* ==========================================================================
   Illunis Case Study - Front-end styles
   ========================================================================== */

.ics-case-study {
  color: #1f2937;
  font-family:
    "Lato",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  line-height: 1.6;
}

.ics-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* ---------- Hero ---------- */
.ics-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.ics-title {
  line-height: 1.2;
  margin: 0;
  max-width: 720px;
  color: rgba(47, 89, 84, 1);
  text-transform: capitalize;
  font-size: 50px;
  text-align: center;
  font-family: "Encode Sans Condensed";
  font-weight: 800;
  font-style: normal;
}

.ics-category-box {
  background: #d9e86b;
  border-radius: 10px;
  padding: 12px 20px;
  white-space: nowrap;
}

.ics-category-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #14342b;
}

.ics-category-value {
  display: block;
  font-size: 0.95rem;
  color: #14342b;
}

/* ---------- Counters ---------- */
.ics-counters {
  display: grid;
  flex-wrap: wrap;
  gap: 48px;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1000px;
  margin: 0 auto 48px;
}

.ics-counter-value {
  font-size: 4.6rem;
  font-weight: 800;
  color: rgba(217, 236, 125, 1);
  font-family: "Encode Sans Condensed";
}

.ics-counter-label {
  font-size: 1.1rem;
  color: #4b5563;
  max-width: 220px;
}

/* ---------- Layout: Sidebar + Content ---------- */
.ics-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  margin-bottom: 48px;
}

.ics-sidebar {
  align-self: start;
  position: sticky;
  top: 24px;
}

.ics-sidebar-block {
  margin-bottom: 28px;
}

.ics-sidebar-heading {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: "Encode Sans Condensed";
  color: #2f5954;
  margin: 0 0 8px;
}

.ics-sidebar-block p {
  margin: 0;
  font-weight: 600;
  color: #14342b;
}

.ics-toc {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc-counter;
}

.ics-toc li {
  counter-increment: toc-counter;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.ics-toc li::before {
  content: counter(toc-counter, decimal-leading-zero) " ";
  color: #9ca3af;
  margin-right: 6px;
}

.ics-toc a {
  color: #374151;
  text-decoration: none;
}

.ics-toc a:hover {
  text-decoration: underline;
}

.ics-visit-website {
  text-decoration: none;
  display: inline-block;
  background: #d9e86b;
  color: #14342b;
  padding: 13px 25px;
  border-radius: 999px;
  font-size: 20px;
  text-align: center;
  font-family: "Encode Sans Condensed";
  font-weight: 500;
  font-style: normal;
}

.ics-visit-website:hover {
  text-decoration: underline;
}

/* ---------- Content / Sections ---------- */
.ics-featured-image {
  margin-bottom: 40px;
  border-radius: 16px;
  overflow: hidden;
}

.ics-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.ics-section {
  margin-bottom: 56px;
  scroll-margin-top: 24px;
}

.ics-tag {
  display: inline-block;
  background: #d9e86b;
  color: #14342b;
  padding: 13px 25px;
  border-radius: 999px;
  margin-bottom: 16px;
  font-size: 20px;
  text-align: center;
  font-family: "Google Sans Flex";
  font-weight: 500;
  font-style: normal;
}

.ics-section-title {
  font-size: 2.7rem;
  margin: 0 0 16px;
  color: rgba(47, 89, 84, 1);
  text-align: left;
  font-family: "Encode Sans Condensed";
  font-weight: 800;
}

.ics-section-content {
  color: #374151;
  margin-bottom: 20px;
  color: rgba(64, 64, 63, 1);
  letter-spacing: 0em;
  font-size: 20px;
  font-family: "Lato";
  font-weight: 300 !important;
  font-style: normal;
  line-height: 1.6;
  font-size: 20px;
}

.ics-section-content p:first-child {
  margin-top: 0;
}

.ics-section-content p,
.ics-bullets li {
  font-family: "Instrument Sans", sans-serif;
  font-weight: 300 !important;
}

.ics-section-image {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
}

.ics-section-image img {
  width: 100%;
  height: auto;
  display: block;
}

.ics-bullets {
  margin: 0 0 20px;
  padding-left: 20px;
  color: #374151;
}

.ics-bullets li {
  margin-bottom: 10px;
}

.ics-pull-quote {
  background: #c9d9cd;
  border-radius: 14px;
  padding: 32px;
  margin: 32px 0;
}

.ics-pull-quote p {
  font-size: 1.15rem;
  font-weight: 600;
  color: #14342b;
  margin: 0 0 12px;
}

.ics-pull-quote cite {
  font-style: normal;
  font-size: 0.9rem;
  color: #6b7280;
}

/* ---------- Full-width Banner Quote ---------- */
.ics-banner-quote {
  background: #14342b;
  color: #ffffff;
  border-radius: 20px;
  padding: 56px 40px;
  margin: 56px 0;
  text-align: center;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(
    ellipse 85% 85% at 50% 50%,
    black 30%,
    transparent 100%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 85% 85% at 50% 50%,
    black 30%,
    #14342b 100%
  );
}

.ics-banner-quote-inner {
  max-width: 780px;
  margin: 0 auto;
}

.ics-banner-quote p {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 16px;
}

.ics-banner-quote cite {
  font-style: normal;
  font-size: 0.9rem;
  color: #b9c9c2;
}

/* ---------- Gallery ---------- */
.ics-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin: 56px 0;
}

.ics-gallery-item {
  border-radius: 16px;
  overflow: hidden;
}

.ics-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ics-gallery-large {
  grid-column: span 6;
  aspect-ratio: 16 / 8;
}

.ics-gallery-small {
  grid-column: span 2;
  aspect-ratio: 1 / 1;
}

/* ---------- Results ---------- */
.ics-results {
  margin-top: 56px;
  text-align: center;
}

.ics-results-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9ca3af;
  margin: 0 0 12px;
}

.ics-results-heading {
  max-width: 780px;
  margin: 0 auto 40px;
  font-size: 2.7rem;
  color: rgba(47, 89, 84, 1);
  font-family: "Encode Sans Condensed";
  font-weight: 800;
}

.ics-results-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  text-align: left;
  color: #374151;
  font-family: "Instrument Sans", sans-serif;
  font-weight: 300 !important;
  font-style: normal;
  line-height: 1.6;
  font-size: 20px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .ics-layout {
    grid-template-columns: 1fr;
  }

  .ics-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 32px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 24px;
    margin-bottom: 8px;
  }

  .ics-gallery-large {
    grid-column: span 6;
  }

  .ics-gallery-small {
    grid-column: span 3;
  }
}

@media (max-width: 640px) {
  .ics-container {
    padding: 24px 16px 56px;
  }

  .ics-title {
    font-size: 1.7rem;
  }

  .ics-hero {
    flex-direction: column;
  }

  .ics-counters {
    gap: 28px;
  }

  .ics-counter-value {
    font-size: 2rem;
  }

  .ics-sidebar {
    grid-template-columns: 1fr;
  }

  .ics-section-title {
    font-size: 1.4rem;
  }

  .ics-banner-quote {
    padding: 40px 20px;
    border-radius: 14px;
  }

  .ics-banner-quote p {
    font-size: 1.2rem;
  }

  .ics-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .ics-gallery-large {
    grid-column: span 2;
  }

  .ics-gallery-small {
    grid-column: span 1;
  }

  .ics-results-columns {
    grid-template-columns: 1fr;
  }
}