/* ===== Case Study (Hornik Solutions) ===== */
.hs-cs-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}
/* HERO */
.hs-cs-hero {
  margin-bottom: 36px;
}
.hs-cs-hero-inner {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr; /* Left column bigger, right column smaller */
  gap: 48px; /* Slightly increased gap for better spacing */
  align-items: stretch; /* This makes both columns the same height */
}

.hs-cs-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Distributes title and summary vertically */
  min-height: 100%; /* Ensures it takes full height */
}

.hs-cs-title {
  font-size: clamp(2rem, 2.8vw + 1rem, 3.25rem);
  line-height: 1.1;
  margin: 0 0 24px 0; /* Add bottom margin for spacing */
  letter-spacing: 0.2px;
}

.hs-cs-hero-media {
  margin: 0;
  display: flex;
  align-items: center; /* Centers the image vertically */
  justify-content: center; /* Centers the image horizontally */
}

.hs-cs-hero-img {
  display: block;
  width: 85%; /* Reduced from 100% to make image smaller */
  height: auto;
  max-width: 300px; /* Set a maximum size */
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  border: 1px solid #222;
}

.hs-cs-summary-card {
  margin-top: auto; /* This pushes the summary to align with the bottom if needed */
  flex-shrink: 0; /* Prevents the card from shrinking */
}

/* SECTION CARDS */
.hs-cs-sections {
  display: grid;
  gap: 22px;
}
.hs-cs-card {
  background: #121212;
  border: 1px solid #242424;
  border-radius: 14px;
  padding: 22px 22px 18px;
  position: relative;
  overflow: hidden;
}
.hs-cs-card::before {
  /* subtle gold accent bar on the left */
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg,#c9aa71 0%,#7a653c 100%);
  opacity: .9;
}
.hs-cs-card-head {
  margin-bottom: 10px;
}
.hs-cs-card h2 {
  margin: 0 0 4px;
  font-size: 1.6rem;
  color: #c9aa71;
}
.hs-cs-card-body {
  color: #e6e6e6;
  line-height: 1.7;
  font-size: 1.06rem;
}
.hs-cs-card-body p {
  margin: 0 0 12px;
}
/* PAGER */
.hs-cs-pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
}
.hs-cs-pager a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #2a2a2a;
  text-decoration: none;
}
.hs-cs-pager a:hover {
  background: #1c1c1c;
}
/* RESPONSIVE */
@media (max-width: 980px) {
  .hs-cs-hero-inner { 
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start; /* Reset alignment for mobile */
  }
  
  .hs-cs-hero-copy {
    justify-content: flex-start; /* Reset flex behavior on mobile */
  }
  
  .hs-cs-hero-img {
    width: 60%; /* Even smaller on mobile */
    max-width: 250px;
  }
  
  .hs-cs-summary-card {
    margin-top: 24px; /* Fixed spacing on mobile */
  }
}