/* ===============================
   CASE STUDIES – COMPLETE FIX
   Button at bottom center, tight spacing
/* ================================ */


body.home #homePageSection10.cs-refactor #threeCardsDivIChildID10.threeCardsDivParent {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px !important;
  align-items: stretch !important;
  position: relative !important;
  width: var(--home-content-max-width, 75.9375vw) !important;
  height: auto !important;
  left: auto !important;
  right: auto !important;
  top: 0 !important;
  transform: none !important;
}

/* Card Wrapper */
.cs-refactor .cs-card-wrap {
  display: flex;
}

.cs-refactor .cs-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
}

/* Inner Flex Container - KEY FOR BUTTON POSITIONING */
.cs-refactor .cs-card-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 12px;
}


@media (max-width: 1441px){
    
    .cs-refactor .cs-card-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 0px;
}

.cs-refactor .caseStudyCardHeader {
    min-height: 48px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    margin-bottom: 0px !important;
    order: 1 !important;
}

.cs-refactor .cs-btn {
    font-size: 10px !important;
}

.cs-refactor .caseStudyTitle {
    font-family: "markProHeavy", sans-serif;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.2;
    color: #000000;
    margin: 0;
}

.cs-refactor .caseStudyImage {
    width: 100%;
    height: 100px;
    object-fit: fill;
}
   
  .cs-view-all-btn { 
   font-size: 15px !important;
  }
}

/* Header with Logo and Flag */
.cs-refactor .caseStudyCardHeader {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.cs-refactor .storyLogoParent {
  max-height: 40px;
  width: auto;
}

.cs-refactor .flag {
  width: 32px;
  height: auto;
}

/* Title - TIGHT SPACING */
.cs-refactor .caseStudyTitle {
  font-family: "markProHeavy", sans-serif;
  font-size: 1.151rem;
  font-weight: 900;
  line-height: 1.2;
  color: #000000;
}

/* Image Wrapper - TIGHT SPACING */
.cs-refactor .caseStudyImageWrapper {
  display: flex;
  align-items: center;
  margin-bottom: 16px;          /* Reduced spacing below image */
}

.cs-refactor .caseStudyImage {
  width: 100%;
  object-fit: cover;
  
}


.cs-refactor .cs-btn:hover {
  background: #345cad;
  color: #ffffff;
  border-color: #345cad;
}

/* ===============================
   RESPONSIVE BREAKPOINTS
================================ */


@media (max-width: 480px) {
  body.home #homePageSection10.cs-refactor #threeCardsDivIChildID10.threeCardsDivParent {
    grid-template-columns: 1fr;
    gap: 20px;
    width: 90% !important;
    margin-top: 330px !important;
  }

  .cs-refactor .cs-card {
    height: auto;
    min-height: 460px;
  }

  .cs-refactor .cs-card-inner {
    padding: 20px;
  }

  .cs-refactor .caseStudyTitle {
    font-size: 20px;
  }

  .cs-refactor .caseStudyImage {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .cs-refactor .cs-card-inner {
    padding: 18px;
  }

  .cs-refactor .caseStudyTitle {
    font-size: 18px;
  }

  .cs-refactor .caseStudyImage {
    height: 180px;
  }

  .cs-refactor .cs-btn {
    padding: 10px 28px;
    font-size: 14px;
  }
}