@import url('https://fonts.googleapis.com/css2?family=Kumbh+Sans:wght@700&family=Mulish:wght@400;500;600;700&display=swap');

.h-stack-wrapper {
  --bg-primary: #0b0f2d;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-refined: #f1f5f9;
  --accent-soft: #f8fafc;
  --card-radius: 24px;
  --stack-gap: 32px;
  --top-offset: 50px;
  
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  font-family: 'Mulish', sans-serif;
  box-sizing: border-box;
}

.h-stack-wrapper *, .h-stack-wrapper *::before, .h-stack-wrapper *::after {
  box-sizing: inherit;
}

.h-card {
  position: sticky;
  top: 0;
  margin-bottom: var(--stack-gap);
  border-radius: var(--card-radius);
  background: #ffffff;
  border: 1px solid var(--border-refined);
  box-shadow: 0 25px 50px -12px rgba(11, 15, 45, 0.03), 0 0 1px 1px rgba(11, 15, 45, 0.01);
  overflow: hidden;
  display: flex;
  width: 100%;
  transform-origin: center top;
  transition: transform 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.h-card__content {
  flex: 1 1 52%;
  padding: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.h-card__media {
  flex: 1 1 48%;
  position: relative;
  overflow: hidden;
}

.h-card__heading {
  font-family: 'Kumbh Sans', sans-serif;
  color: var(--bg-primary);
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 12px 0;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.h-card__tags {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.h-card__description {
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.75;
  margin: 0 0 24px 0;
}

.h-card__logos {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.h-card__logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
}

.h-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 32px;
  border-top: 1px solid var(--border-refined);
}

.h-card__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.h-card__link {
  color: var(--bg-primary);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.h-card__link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.h-card__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.h-card:hover .h-card__image {
  transform: scale(1.04);
}

.h-card__link:hover {
  color: var(--text-muted);
}

.h-card__link:hover svg {
  transform: translateX(4px);
}

.h-card:nth-child(2) { top: calc(var(--top-offset) * 1); z-index: 1; }
.h-card:nth-child(3) { top: calc(var(--top-offset) * 2); z-index: 2; }
.h-card:nth-child(4) { top: calc(var(--top-offset) * 3); z-index: 3; }

@media (max-width: 1024px) {
  .h-card__content { padding: 48px; flex: 1 1 55%; }
  .h-card__heading { font-size: 2rem; }
}

@media (max-width: 768px) {
  .h-card { 
    position: relative !important; 
    top: auto !important; 
    flex-direction: column; 
    margin-bottom: 24px;
  }
  .h-card__content { padding: 36px; order: 2; }
  .h-card__media { min-height: 320px; order: 1; width: 100%; }
  .h-card__footer { gap: 24px; }
}