/* ==========================================================================
   About Us / Case Studies page (Figma 704:8458 "Portfolio Page")
   Header, CTA banner, footer and popup come from the shared styles.css
   ========================================================================== */
.about-page-wrapper {
  width: 100%;
  background-color: #FAFAFA;
  overflow-x: clip;
}

.about-hero {
  /* 91px navbar + 100px hero padding in Figma */
  padding: 191px 0 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  box-sizing: border-box;
}

.about-hero-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 0 24px;
  box-sizing: border-box;
}

.about-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 2px 8px;
  background: rgba(0, 101, 244, 0.1);
  border-radius: 0;
}

.about-badge-dot {
  width: 7.77px;
  height: 7.77px;
  background: #0065F4;
  display: block;
}

.about-badge span:last-child {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.28px;
  color: #272727;
}

.about-hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.about-hero-title {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 64px;
  line-height: 1.1;
  letter-spacing: -3.2px;
  color: #272727;
}

.about-hero-desc {
  margin: 0;
  max-width: 739px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.6;
  letter-spacing: -0.4px;
  color: #404040;
}

/* Filter tabs */
.about-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
  padding: 0 24px;
  box-sizing: border-box;
}

.about-filter {
  padding: 16px 20px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: normal;
  letter-spacing: -0.8px;
  color: #272727;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.about-filter:hover {
  background: rgba(0, 101, 244, 0.08);
}

.about-filter.is-active {
  background: #0065F4;
  color: #FAFAFA;
  font-weight: 600;
  border-radius: 12px;
}

/* Case study cards */
.about-case-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
  padding: 0 80px;
  box-sizing: border-box;
  margin-top: -40px; /* tabs -> grid gap is 40px (the hero gap is 80px) */
}

.about-case-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 516px;
  max-width: 100%;
  padding: 8px 8px 16px;
  background: #F2F2F2;
  border-radius: 32px;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about-case-card {
  transition: background-color 0.2s ease;
}

/* Blue look: the first card by default; about.js moves it to the last hovered card (no lift, no shadow) */
.about-case-card.is-featured {
  background: #0065F4;
}

.about-case-inner {
  background: #FFFFFF;
  border-radius: 24px;
  overflow: hidden;
  width: 100%;
}

.about-case-media {
  aspect-ratio: 700 / 400;
  background: #CCCCCC;
  overflow: hidden;
}

.about-case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.about-case-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-case-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.about-case-brand {
  display: flex;
  align-items: center;
  gap: 5.455px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.4px;
  color: #272727;
}

.about-case-brand img {
  width: 20px;
  height: 20px;
  display: block;
}

.about-case-region {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.28px;
  color: #666666;
}

.about-case-title {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: normal;
  letter-spacing: -0.48px;
  color: #272727;
}

.about-case-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

.about-case-duration {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.4px;
  color: #666666;
}

.about-case-card.is-featured .about-case-duration {
  color: #E6E6E6;
}

.about-case-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-case-dots i {
  width: 7.77px;
  height: 7.77px;
  background: #0065F4;
  display: block;
}

.about-case-card.is-featured .about-case-dots i {
  background: #FAFAFA;
}

/* touch / mobile: no blue hover effect and no blue card */
@media (hover: none), (max-width: 768px) {
  .about-case-card.is-featured {
    background: #F2F2F2;
  }

  .about-case-card.is-featured .about-case-duration {
    color: #666666;
  }

  .about-case-card.is-featured .about-case-dots i {
    background: #0065F4;
  }
}

@media (max-width: 1100px) {
  .about-case-grid {
    padding: 0 24px;
  }
}

@media (max-width: 768px) {
  .about-hero {
    padding: 120px 0 60px;
    gap: 40px;
  }

  .about-hero-title {
    font-size: 36px;
    letter-spacing: -1.6px;
  }

  .about-hero-title br {
    display: none;
  }

  .about-hero-desc {
    font-size: 16px;
    letter-spacing: -0.32px;
  }

  .about-filters {
    gap: 8px;
  }

  .about-filter {
    padding: 10px 14px;
    font-size: 16px;
    letter-spacing: -0.5px;
  }

  .about-case-grid {
    margin-top: -16px;
    padding: 0 20px;
    gap: 16px;
  }

  .about-case-card {
    width: 100%;
    border-radius: 24px;
  }

  .about-case-inner {
    border-radius: 18px;
  }

  .about-case-body {
    padding: 20px;
    gap: 16px;
  }

  .about-case-title {
    font-size: 20px;
  }

  .about-case-foot {
    padding: 0 20px;
  }

  .about-case-duration {
    font-size: 16px;
  }
}
