/* Resources — Case Studies */

.apit-cs-page {
  margin: 0;
  background: #ffffff;
  color: #0b1b2b;
}

.apit-cs {
  position: relative;
  z-index: 1;
  font-family: "General Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  padding:
    calc(var(--apit-announce-h, 40px) + var(--apit-header-h, 80px) + 2.75rem)
    4.5vw 5.5rem;
  background:
    radial-gradient(ellipse 48% 36% at 100% 0%, rgba(0, 136, 204, 0.1), transparent 58%),
    linear-gradient(180deg, #f4f8fb 0%, #ffffff 28%);
}

.apit-cs-inner {
  max-width: 1280px;
  margin: 0 auto;
}

@keyframes apit-cs-in {
  from {
    opacity: 0;
    transform: translateY(36px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.apit-cs-header {
  max-width: 40rem;
  margin-bottom: 2.25rem;
}

.apit-cs-eyebrow {
  margin: 0 0 0.75rem;
  font-family: Mulish, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0088cc;
}

.apit-cs-title {
  margin: 0;
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #111111;
}

.apit-cs-board {
  padding:
    calc(var(--apit-announce-h, 40px) + var(--apit-header-h, 80px) + 3rem)
    4.5vw 5rem;
  background: #b7b08a;
}

.apit-cs-band {
  position: relative;
  overflow: hidden;
  margin-bottom: 2.25rem;
  padding: 0;
  background: none;
}

.apit-cs-band-glow {
  display: none;
}

.apit-cs-band-inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  padding: 0.4rem 0 0;
}

.apit-cs-band-kicker {
  display: none;
}

.apit-cs-band-title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.apit-cs-band-title span {
  display: inline;
  color: #ffffff;
}

.apit-cs-band-aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 28rem;
}

.apit-cs-band-text {
  margin: 0 0 0.35rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  line-height: 1.55;
}

.apit-cs-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.35rem;
  padding: 0.7rem 1.15rem;
  border-radius: 0.25rem;
  border: 0;
  background: #ffffff;
  color: #2b2b2b;
  text-decoration: none;
  font-family: Mulish, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: none;
  transition: transform 0.25s ease, color 0.25s ease;
}

.apit-cs-contact:hover {
  background: #ffffff;
  color: #0088cc;
  transform: translateY(-2px);
  box-shadow: none;
}

.apit-cs-board .apit-cs-inner {
  margin-top: 0;
  position: relative;
  z-index: 2;
}

.apit-cs-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}

.apit-cs-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 0;
  padding: 1.65rem 1.05rem 1.45rem;
  overflow: hidden;
  border: 0;
  border-radius: 0.85rem;
  background: #ffffff;
  text-decoration: none;
  color: #1c1c1c;
  box-shadow: 0 10px 24px rgba(60, 52, 28, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.apit-cs-card:nth-child(2) { animation-delay: 0.12s; }
.apit-cs-card:nth-child(3) { animation-delay: 0.22s; }
.apit-cs-card:nth-child(4) { animation-delay: 0.32s; }
.apit-cs-card:nth-child(5) { animation-delay: 0.1s; }
.apit-cs-card:nth-child(6) { animation-delay: 0.2s; }
.apit-cs-card:nth-child(7) { animation-delay: 0.3s; }
.apit-cs-card:nth-child(8) { animation-delay: 0.4s; }

.apit-cs-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(60, 52, 28, 0.14);
}

.apit-cs-card-media {
  position: relative;
  z-index: 1;
  width: 7.25rem;
  height: 7.25rem;
  aspect-ratio: 1;
  margin: 0 auto 1.05rem;
  border-radius: 50%;
  background: #ece7dc;
  overflow: hidden;
}

.apit-cs-card-media img,
.apit-cs-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.apit-cs-card-media img {
  transition: transform 0.6s ease;
}

.apit-cs-card:hover .apit-cs-card-media img {
  transform: scale(1.04);
}

.apit-cs-card-title {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  max-width: 16rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #1c1c1c;
}

.apit-cs-post-inner {
  max-width: 760px;
}

.apit-cs-story .apit-cs-post-inner {
  max-width: 1080px;
}

.apit-cs-story .apit-cs-title {
  text-align: center;
  max-width: 46rem;
  margin: 0 auto;
}

.apit-cs-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.8fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
  margin-top: 2.75rem;
}

.apit-cs-detail-copy p {
  margin: 0 0 1.1rem;
  font-size: 1.02rem;
  line-height: 1.75;
  color: #243140;
}

.apit-cs-detail-media {
  margin: 0;
}

.apit-cs-detail-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1.6rem;
  background: #eef4f8;
}

.apit-cs-detail-media.is-empty {
  display: none;
}

.apit-cs-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  padding: 0.75rem 1.15rem;
  border-radius: 0.35rem;
  background: #1a73e8;
  color: #ffffff;
  text-decoration: none;
  font-family: Mulish, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
}

.apit-cs-download:hover {
  background: #0b5ed7;
}

.apit-cs-back {
  display: inline-flex;
  margin-bottom: 1.35rem;
  color: #0088cc;
  font-family: Mulish, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.apit-cs-back:hover {
  color: #0a3d7a;
}

.apit-cs-hero {
  margin: 1.75rem 0 0;
  border-radius: 1.15rem;
  overflow: hidden;
  background: #eef4f8;
  aspect-ratio: 16 / 8;
}

.apit-cs-hero.is-empty {
  display: none;
}

@media (max-width: 1100px) {
  .apit-cs-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .apit-cs-band-inner {
    align-items: center;
  }
}

@media (max-width: 760px) {
  .apit-cs-list,
  .apit-cs-detail {
    grid-template-columns: 1fr;
  }

  .apit-cs-card {
    min-height: 0;
  }
}

.apit-cs-lead {
  background:
    radial-gradient(ellipse 42% 32% at 88% 8%, rgba(18, 195, 196, 0.16), transparent 62%),
    radial-gradient(ellipse 36% 28% at 8% 0%, rgba(0, 136, 204, 0.12), transparent 58%),
    linear-gradient(180deg, #f3f7fb 0%, #ffffff 42%);
}

.apit-cs-lead-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.82fr);
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3.25rem);
  margin-top: 0.35rem;
  padding: clamp(1.6rem, 3vw, 2.6rem);
  border-radius: 1.85rem;
  background:
    radial-gradient(ellipse 48% 70% at 100% 0%, rgba(255, 255, 255, 0.22), transparent 58%),
    radial-gradient(ellipse 40% 80% at 0% 110%, rgba(62, 224, 160, 0.22), transparent 55%),
    linear-gradient(118deg, #1b1464 0%, #163a86 38%, #0c7594 72%, #12c3c4 100%);
  box-shadow:
    0 28px 60px rgba(18, 40, 80, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.apit-cs-lead-copy .apit-cs-eyebrow {
  color: #7dffe0;
}

.apit-cs-lead-copy .apit-cs-title {
  margin: 0 0 1rem;
  max-width: 16ch;
  color: #ffffff;
  text-align: left;
  font-size: clamp(1.85rem, 3vw, 2.85rem);
  font-weight: 600;
  line-height: 1.08;
}

.apit-cs-lead-copy p:not(.apit-cs-eyebrow) {
  margin: 0 0 1.45rem;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.7;
}

.apit-cs-lead .apit-cs-download {
  margin-top: 0;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  background: #ffffff;
  color: #10233a;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.apit-cs-lead .apit-cs-download span {
  margin-left: 0.35rem;
}

.apit-cs-lead .apit-cs-download:hover {
  background: #ffffff;
  color: #0088cc;
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.2);
}

.apit-cs-lead-media {
  margin: 0;
  padding: 0.45rem;
  border-radius: 1.45rem;
  background: rgba(255, 255, 255, 0.16);
  box-shadow:
    0 22px 40px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.apit-cs-lead-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 1.1rem;
  background: #0d2a3a;
}

.apit-cs-lead-media.is-empty {
  display: none;
}

@media (max-width: 760px) {
  .apit-cs-lead-panel {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }

  .apit-cs-lead-copy .apit-cs-title {
    max-width: none;
  }

  .apit-cs-lead-media img {
    aspect-ratio: 16 / 11;
  }
}

@media (prefers-reduced-motion: reduce) {
  .apit-cs-card,
  .apit-cs-card-media,
  .apit-cs-card-media img,
  .apit-cs-contact,
  .apit-cs-lead .apit-cs-download {
    animation: none;
    transition: none;
  }

  .apit-cs-card:hover,
  .apit-cs-card:hover .apit-cs-card-media img {
    transform: none;
  }
}
