.card {
  width: 368px;
  height: 565px;
  color: #000;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
  cursor: pointer;
  border: none;
}

.card:hover {
  transform: scale(1.05);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: circle(0% at 100% 100%);
  transition: clip-path 0.6s ease;
  z-index: 1;
}

.card:hover::before {
  clip-path: circle(150% at 100% 100%);
}

.card_label,
.card_title,
.card_details,
.card_expand {
  position: relative;
  z-index: 2;
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

.card_label {
  font-size: clamp(0.9rem, 1vw + 0.5rem, 1.16rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  padding-top: 1.75rem;
}

.card_title {
  font-size: clamp(1.2rem, 2vw + 0.5rem, 1.66rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.card_details {
  font-size: clamp(0.95rem, 1vw + 0.3rem, 1.3rem);
  font-weight: 100;
  line-height: 1.5;
  margin-top: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover .card_details {
  opacity: 1;
}

.card_expand {
  display: none;
  position: absolute;
  bottom: 20px;
  right: 15px;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.5;
  text-align: right;
  cursor: pointer;
  opacity: 0;
  z-index: 3;
  transition: opacity 0.3s ease;
}

.card:hover .card_expand {
  display: block;
  opacity: 1;
}

.expand_text {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.arrow-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.expand_underline {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: currentColor;
  pointer-events: none;
}

.theme-light {
  --bg-overlay: #f4dcde;
  --text-color: #000;
}

.theme-dark {
  --bg-overlay: #000;
  --text-color: #fff;
}

.theme-light::before {
  background-color: var(--bg-overlay);
}

.theme-dark::before {
  background-color: var(--bg-overlay);
}

.theme-dark .card_label,
.theme-dark .card_title,
.theme-dark .card_details,
.theme-dark .expand_text {
  color: var(--text-color);
}

.theme-dark .expand_underline {
  background-color: var(--text-color);
}

.insights .card {
  box-sizing: border-box;
  width: 100%;
  max-width: 368px;
  flex: 1 1 320px;
  aspect-ratio: 368 / 565;
  height: auto;
}

.insights .card_label,
.insights .card_title,
.insights .card_details,
.insights .card_expand {
  margin-left: 1rem;
  margin-right: 1rem;
}
.expand_text {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.arrow-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.expand_underline {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: currentColor;
  pointer-events: none;
}

@media (max-width: 575.98px) {
  .insights .card {
    flex-basis: 100%;
    max-width: 100%;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .insights .card {
    flex-basis: calc(50% - 12.5px);
    max-width: calc(50% - 12.5px);
  }
}

@media (min-width: 992px) {
  .insights .card {
    flex-basis: calc(33.333% - 16.66px);
    max-width: 368px;
  }
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.card-link:hover {
  text-decoration: none;
}
