/* ============================
   Home Case Studies — v2 card
   Smaller card + smaller image + more text + clickable
   Loaded AFTER homecontent-min.css to override existing rules
   ============================ */

/* Make the card clickable when wrapped in <a> */
a.case-study-card-v2 {
  text-decoration: none;
  color: inherit;
  display: flex;
}

.case-study-card.case-study-card-v2 {
  /* Override: smaller card, balanced text/image */
  width: 560px;
  max-width: 560px;
  min-width: 320px;
  height: auto;
  min-height: 360px;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  flex-shrink: 0;
}

.case-study-card.case-study-card-v2:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.case-study-card.case-study-card-v2 .content {
  flex: 1 1 60%;
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.case-study-card.case-study-card-v2 .image-wrapper {
  flex: 0 0 40%;
  max-width: 40%;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

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

/* Tag badge — site palette (red/orange) */
.case-study-card.case-study-card-v2 .case-study-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  align-self: flex-start;
  backdrop-filter: blur(4px);
}

/* Subtitle (short tagline) */
.case-study-card.case-study-card-v2 .case-study-subtitle {
  opacity: 0.85;
  font-style: italic;
}

/* Long description body */
.case-study-card.case-study-card-v2 .case-study-description {
  opacity: 0.92;
}

.case-study-card.case-study-card-v2 .case-study-description p {
  color: #fff;
  margin-bottom: 8px;
}

.case-study-card.case-study-card-v2 .case-study-description p:last-child {
  margin-bottom: 0;
}

/* Smaller, tighter stats row */
.case-study-card.case-study-card-v2 .data-value-wrapper-small {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 14px;
}

.case-study-card.case-study-card-v2 .data-value-wrapper-small .data-value h3 {
  font-size: 22px;
  margin-bottom: 2px;
}

.case-study-card.case-study-card-v2 .data-value-wrapper-small .data-value p {
  opacity: 0.85;
  font-size: 13px;
}

/* Learn more arrow */
.case-study-card.case-study-card-v2 .case-study-learnmore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  margin-top: auto;
  padding-top: 4px;
  transition: gap 0.2s ease;
}

.case-study-card.case-study-card-v2:hover .case-study-learnmore {
  gap: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .case-study-card.case-study-card-v2 {
    width: 100%;
    max-width: 100%;
    flex-direction: column;
  }

  .case-study-card.case-study-card-v2 .image-wrapper {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
    aspect-ratio: 16 / 10;
  }

  .case-study-card.case-study-card-v2 .content {
    padding: 22px 22px 20px;
  }
}
