
/* ---------- Section shell ---------- */
.card-grid-section {
  padding: 80px 0;
}
.card-grid-section  h2{
  color: #1A1B20;
  text-align: center;
  font-family: "Playfair Display";
  font-size: clamp(36px, calc(32px + 1.25vw), 50px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 70px;
  max-width: 750px;
  margin-inline: auto;
}

/* ---------- Grid ---------- */
.card-grid-section  .card-grid{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  /* grid-template-columns: repeat(4, 1fr); */
  gap: 34px;
  row-gap: 70px;
  max-width: 1221px;
  margin: 0 auto;
}



/* ---------- Card ---------- */
.card {
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: none;
    box-shadow: 0 4px 8px -4px rgba(84, 84, 84, 0.08);
    background: #FFFCF9;
    flex: 0 0 calc(25% - 25.5px);
  max-width: calc(25% - 25.5px);
}

.card-grid-section .card-img {
  position: relative;
  aspect-ratio: 278 / 220;
  overflow: hidden;
  border-radius: 0 !important;
}

.card-grid-section .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-grid-section .card-content::after {
  content: "";
  position: absolute;
  left: 0;
  top: -43px;
  width: 100%;
  height: 44px;
  background: url("../img/curve.svg") center bottom;
  background-size: cover;
  pointer-events: none;
  z-index: 1;
  background-position: top;
}
.card-grid-section .card-content {
     padding: 0 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.card-grid-section .card-content h3 {
    color: #1A1B20;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 15px;
}

.card-grid-section .card-content p {
color: #1A1B20;
font-size: 14px;
font-style: normal;
font-weight: 400;
line-height: 1.33;
  flex: 1;
}

.card-grid-section .card-content a{
    align-self: flex-start;
    color: #1A1B20;
    font-family: "Playfair Display";
    font-size: 10px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 3px;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-transform: uppercase;
    transition: opacity 0.2s ease;
    margin-top: 21px;
}

/* ---------- Responsive breakpoints ---------- */
@media (max-width:1199px){
  .card-grid-section  h2{
    margin-bottom: 50px;
  }
    .card{
    flex: 0 0 calc(33.33% - 22.66px);
    max-width:calc(33.33% - 22.66px) ;
  }
}
/* Tablet: 2 columns */
@media (max-width: 991px) {

    .card{
    flex: 0 0 calc(50% - 17px);
    max-width:calc(50% - 17px) ;
  }
}
@media (max-width: 767px) {
  .card-grid-section  .card-grid{
    row-gap: 50px;
  }

}

/* Mobile: single column */
@media (max-width: 575px) {
  .card-grid-section  .card-grid{
    gap: 50px;
  }
    .card{
    flex: 0 0 100%;
    max-width:100% ;
  }
}
