/* ================================
   PRESS ROW CARD LAYOUT
================================ */
.press-row-card {
  display: flex;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  max-width: 1200px;
  width: 100%;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.press-row-card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 18px 45px rgba(0, 0, 0, 0.4);
}

/* ================================
   LEFT IMAGE
================================ */
.press-image {
  width: 40%;
  min-height: 280px;
  overflow: hidden;
}

.press-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position:center left;
  transition: transform 0.4s ease;
}

.press-row-card:hover .press-image img {
  transform: scale(1.08);
}

/* ================================
   RIGHT CONTENT
================================ */
.press-content {
  width: 60%;
  padding: 35px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
}

/* CATEGORY TAG */
.press-category {
  background: #97c93c;
  color: #022b45;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 100px;
  width: fit-content;
  margin-bottom: 15px;
}

/* TITLE */
.press-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
}

.press-title a {
  text-decoration: none;
  color: #022b45;
}

.press-title a:hover {
  color: #0084d5;
}

/* EXCERPT */
.press-excerpt {
  font-size: 16px;
  color: #444;
  line-height: 1.6;
  margin-bottom: 25px;
  max-width: 90%;
}

/* FOOTER */
.press-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* DATE */
.press-date {
  font-size: 14px;
  color: #777;
}

/* ================================
   READ MORE BUTTON - MATCH CTA
================================ */
.press-btn {
  display: inline-block;
  padding: 14px 32px;
  background: #97d700; /* Same green as CTA */
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.press-btn:hover {
  background: #022b45;
  transform: translateY(-3px);
}

/* ================================
   CTA BUTTON - CENTERED
================================ */
.press-cta-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 48px;
}

.press-cta-btn {
  display: inline-block;
  padding: 14px 32px;
  background: #97d700;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.press-cta-btn:hover {
  background: #022b45;
  transform: translateY(-3px);
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 900px) {
  .press-row-card {
    flex-direction: column;
  }

  .press-image,
  .press-content {
    width: 100%;
  }

  .press-title {
    font-size: 22px;
  }

  .press-excerpt {
    max-width: 100%;
  }

  .press-footer {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
}


@media (max-width: 900px) {
   /* centre each card */
  .press-row-card{
    flex-direction: column;
    width: 92%;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }



/* Stacking cards wrapper */
.press-stack{
  position: relative;
}

/* Sticky cards */
.press-stack .press-row-card.press-card{
  position: sticky;
  top: 110px;               /* adjust to your header height */
  margin-bottom: 28px;
  transform: translateZ(0);
  will-change: transform;
  z-index: 1;               /* base, JS will raise the active one */
}

/* Stagger, so they look layered before interaction */
.press-stack .press-row-card.press-card:nth-child(1){
  transform: translateY(0px);
}
.press-stack .press-row-card.press-card:nth-child(2){
  transform: translateY(18px);
}
.press-stack .press-row-card.press-card:nth-child(3){
  transform: translateY(36px);
}

/* Active card comes to the front */
.press-stack .press-row-card.press-card.is-active{
  z-index: 50;
}

/* Optional: CTA spacing */
.press-cta-wrapper{
  margin-top: 24px;
  padding-bottom: 48px;
}

/* Mobile adjustments */
@media (max-width: 767px){
  .press-stack .press-row-card.press-card{
    top: 80px;
    margin-bottom: 20px;
  }

  .press-stack .press-row-card.press-card:nth-child(2),
  .press-stack .press-row-card.press-card:nth-child(3){
    transform: translateY(0px);
  }
}


