.loop-story-card .elementor-shortcode {
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--theme-palette-color-5);
  border-radius: 24px;
  background: var(--theme-palette-color-8);
  overflow: hidden;
}

.loop-story-card .elementor-shortcode:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -10px rgba(0, 0, 0, 0.1);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--theme-palette-color-4);
  padding: 25px 35px;
}

.student-avatar {
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-radius: 50% !important;
  width: 75px !important;
  height: 75px !important;
  object-fit: cover;
  object-position: top;
}

.student-identity {
  flex: 1;
}

.student-name {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px 0;
  color: #fff;
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
}

.verified-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: var(--theme-palette-color-1);
  width: 20px;
  height: 20px;
  color: #fff;
  font-size: 12px;
  fill: white;
}

.student-demographics {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--theme-palette-color-5);
  font-weight: 500;
  font-size: 14px;
}

.dot {
  opacity: 0.6;
  border-radius: 50%;
  background: currentColor;
  width: 4px;
  height: 4px;
}

.card-body {
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  padding: 35px;
}

.story-box {
  position: relative;
  margin-bottom: 30px;
}
.quote-mark {
  position: absolute;
  top: -30px;
  left: -15px;
  z-index: 0;
  color: var(--theme-palette-color-6);
  font-size: 60px;
  font-family: serif;
}
.story-text {
  position: relative;
  z-index: 1;
  margin: 0;

  color: var(--theme-palette-color-3);
  font-style: italic;
  font-size: 16px;
  line-height: 1.7;
}

.academic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: auto;
}

.info-tag {
  border: 1px solid var(--theme-palette-color-5);
  border-radius: 10px;
  background: var(--theme-palette-color-7);
  padding: 10px;
  text-align: center;
}

.tag-label {
  display: block;
  opacity: 0.7;
  margin-bottom: 4px;
  color: var(--theme-palette-color-3);
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.tag-value {
  display: block;
  overflow: hidden;
  color: var(--theme-palette-color-1);
  font-weight: 700;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-footer-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--theme-palette-color-5);
  background: var(--theme-palette-color-6);
  padding: 20px 35px;
}

.stats-group-left {
  display: flex;
  gap: 30px;
}

.finance-item {
  display: flex;
  flex-direction: column;
}

.finance-label {
  margin-bottom: 4px;
  color: var(--theme-palette-color-4);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.finance-amount {
  color: var(--theme-palette-color-1);
  font-weight: 800;
  font-size: 20px;
  font-feature-settings: "tnum";
  line-height: 1;
}

.btn-case-study {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 99px;
  background: var(--theme-palette-color-1);
  padding: 12px 24px;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
}

.btn-case-study:hover {
  gap: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  background: var(--theme-palette-color-2);
  color: var(--theme-palette-color-7);
}

@media (max-width: 1024px) {
  .stats-group-left {
    flex-direction: column;
    gap: 15px;
  }
  .finance-amount {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .card-footer-action {
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
  }
  .stats-group-left {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }
  .btn-case-study {
    justify-content: center;
    width: 100%;
  }
}
