/* Case Studies listing page */

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #f3f2ee;
  color: #111111;
}

.main-heading {
  font-family: 'Bricolage Grotesque', 'Plus Jakarta Sans', sans-serif;
  font-size: 3.5rem;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: #0f1434;
}

.idea-icon-space {
  width: 90px;
  height: 90px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 8px;
}

.idea-icon-space img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-description {
  font-size: 0.98rem;
  color: #333333;
  line-height: 1.5;
  font-weight: 400;
  max-width: 760px;
}

.section-desc {
  font-size: 1.05rem;
  color: #444444;
  line-height: 1.5;
  margin-bottom: 25px;
  max-width: 480px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  background-color: #333333;
  color: #e2e2e2;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 50px;
  line-height: 1;
}

.badge-pill .dot {
  width: 7px;
  height: 7px;
  background-color: #ea332d;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
}

/* Back-to-hub pill link */
.back-pill-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #333333;
  color: #e2e2e2;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 9px 18px 9px 14px;
  border-radius: 50px;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.back-pill-link i {
  font-size: 0.8rem;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.back-pill-link:hover {
  background-color: #111111;
  color: #ffffff;
  box-shadow: 0 0 0 6px rgba(234, 51, 45, 0.18), 0 8px 24px rgba(234, 51, 45, 0.35);
}

.back-pill-link:hover i {
  transform: translateX(-3px);
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.cta-btn .btn-text {
  background-color: #333333;
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease;
}

.cta-btn .btn-text .dot {
  width: 7px;
  height: 7px;
  background-color: #ea332d;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
}

.cta-btn .btn-arrow {
  background-color: #333333;
  color: #ffffff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-btn:hover .btn-text,
.cta-btn:hover .btn-arrow {
  background-color: #111111;
}

.cta-btn:hover .btn-arrow {
  transform: translate(2px, -2px);
}

/* Case study cards grid (8 cards, 2 per row) */
.case-card {
  position: relative;
  height: 427px;
  border-radius: 24px;
  overflow: hidden;
  background-color: #111111;
  display: block;
  text-decoration: none;
}

.case-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.white-pill-overlay {
  position: absolute;
  bottom: 15px;
  left: 14px;
  right: 14px;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 0.3s ease;
  z-index: 2;
}

.pill-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111111;
  margin: 0;
  line-height: 1.2;
}

/* Denser 3-per-row card variant for large portfolio lists */
.case-card-sm {
  height: auto;
  background-color: #ffffff;
  box-shadow: 0 4px 20px rgba(17, 17, 17, 0.06);
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.35s ease;
}

.case-card-sm:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(17, 17, 17, 0.16), 0 0 24px rgba(234, 51, 45, 0.2);
}

.case-card-sm .case-card-img {
  aspect-ratio: 1500 / 1416;
  height: auto;
  object-fit: cover;
  display: block;
}

.case-card-sm--mobile .case-card-img {
  aspect-ratio: 350 / 232;
  background-color: #f3f2ee;
}

.case-card-sm .white-pill-overlay {
  position: relative;
  bottom: auto;
  left: auto;
  right: auto;
  margin: 14px 16px 16px;
  padding: 0;
  box-shadow: none;
  transition: none;
}

.case-card-sm .pill-title {
  font-size: 0.95rem;
}

.case-card-sm .pill-subtitle {
  font-size: 0.75rem;
}

.case-card-sm .pill-icon {
  width: 38px;
  height: 38px;
  font-size: 0.95rem;
}

.pill-subtitle {
  font-size: 0.85rem;
  color: #666666;
  margin: 2px 0 0 0;
}

.pill-icon {
  width: 48px;
  height: 48px;
  background-color: #333333;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
}

.case-card:hover .white-pill-overlay {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.case-card-sm:hover .white-pill-overlay {
  transform: none;
  box-shadow: none;
}

.case-card:hover .pill-icon {
  background-color: #ea332d;
  transform: translate(2px, -2px);
}

.case-card-sm:hover .pill-icon {
  transform: translate(1px, -1px) scale(0.94);
}

@media (max-width: 991.98px) {
  .header-row {
    text-align: center;
  }

  .main-heading {
    font-size: 2.3rem;
  }

  .header-right-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .section-desc {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 991px) {
  .case-card {
    height: 350px;
  }
}

@media (max-width: 576px) {
  .main-heading {
    font-size: 2.1rem;
  }

  .case-card {
    height: 300px;
  }

  .white-pill-overlay {
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 14px;
  }

  .pill-title {
    font-size: 1rem;
  }
}

/* Portfolio search (website-portfolio.php) */
.wp-search-wrap {
  position: relative;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.wp-search-icon {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  color: #999999;
  font-size: 0.9rem;
  pointer-events: none;
}

.wp-search-input {
  width: 100%;
  background-color: #ffffff;
  border: 1px solid #e2dfd6;
  border-radius: 50px;
  padding: 13px 20px 13px 46px;
  font-size: 0.95rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #111111;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.wp-search-input::placeholder {
  color: #999999;
}

.wp-search-input:focus {
  outline: none;
  border-color: #ea332d;
  box-shadow: 0 0 0 4px rgba(234, 51, 45, 0.14);
}

.wp-no-results {
  text-align: center;
  color: #777777;
  font-size: 0.95rem;
  padding: 40px 0;
}

/* Portfolio tabs (website-portfolio.php) */
.wp-tab-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  border-bottom: none;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  padding: 6px;
}

.wp-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background-color: #e7e5df;
  color: #444444;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 50px;
  border: none;
  line-height: 1;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.wp-tab-btn .red-dot {
  opacity: 0.4;
}

.wp-tab-btn:hover {
  background-color: #d8d5cc;
  color: #111111;
  transform: translateY(-2px);
}

.wp-tab-btn.active {
  background-color: #111111;
  color: #ffffff;
  box-shadow: 0 0 0 6px rgba(234, 51, 45, 0.18), 0 8px 24px rgba(234, 51, 45, 0.3);
}

.wp-tab-btn.active .red-dot {
  opacity: 1;
}

.wp-tab-count {
  background-color: rgba(255, 255, 255, 0.15);
  color: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
}

.wp-tab-btn:not(.active) .wp-tab-count {
  background-color: rgba(0, 0, 0, 0.08);
}

@media (max-width: 576px) {
  .wp-tab-nav {
    gap: 8px;
  }

  .wp-tab-btn {
    font-size: 0.8rem;
    padding: 8px 14px;
  }
}

