/* ===== Desktop: hide the + button, cards look unchanged ===== */
.svc-card__plus {
  display: none;
}

/* ===== Mobile: collapse behaviour ===== */
@media (max-width: 768px) {
  .svc-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "icon title plus"
      "body  body  body";
    align-items: center;
    column-gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 14px;
    cursor: pointer;
  }
  .cards__card__container{padding:20px!important;}
  
  .grid-row:{gap:1rem!important;}
  .svc-card__icon  { grid-area: icon;  margin: 0; }
  .svc-card__title { grid-area: title; margin: 0; font-size: 1.15rem; }
  .svc-card__body  { grid-area: body; }

  @media (max-width: 768px) {
   .svc-card__title { grid-area: title; margin: 0; font-size: 20px!important; }
  }
  .svc-card__icon img {
    width: 50px !important;
    height: 50px !important;
    display: block;
  }

  /* The + icon, built from two pseudo-element bars */
  .svc-card__plus {
    grid-area: plus;
    display: block;
    position: relative;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
  }
  .svc-card__plus::before,
  .svc-card__plus::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background: currentColor;
    transition: transform .25s ease, opacity .25s ease;
  }
  .svc-card__plus::before { /* horizontal bar */
    width: 16px; height: 2px;
    transform: translate(-50%, -50%);
  }
  .svc-card__plus::after  { /* vertical bar */
    width: 2px; height: 16px;
    transform: translate(-50%, -50%);
  }

  /* Hide the body by default on mobile */
  .svc-card__body {
    display: none;
    margin-top: 1rem;
  }

  /* Open state */
  .svc-card.is-open .svc-card__body {
    display: block;
  }
  .svc-card.is-open .svc-card__plus::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0; /* + becomes − */
  }
}
/* 1. Make sure the main card takes up the full grid row height */
.cards__card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cards__card__container {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* 2. THE FIX: Target the text container AND HubSpot's hidden auto-generated wrappers */
.cards__card__text,
.cards__card__text > * {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* 3. Continue the chain into your custom code (Desktop Only) */
@media (min-width: 768px) {
  .svc-card {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }
  
  .svc-card__body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }
}

/* 4. Anchor the CTA to the bottom and calculate the gap */
.cardcta {
  margin-top: auto !important; 
  padding-top: 30px !important; 
  margin-bottom: 0 !important; 
}

@media (max-width: 768px).cardcta {
padding-top: 0px !important; 
}

/* Remove the un-collapsed flexbox margins between the icon and title */
.svc-card__icon {
  margin-bottom: 0 !important;
}

.svc-card__title {
  margin-top: 25px !important;
  /* You can add a very small margin here if they are TOO close now, e.g., margin-top: 5px !important; */
}
@media (max-width: 768px) {
  .svc-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "icon title plus"
      "body  body  body";
    align-items: center;
    column-gap: 2rem;
    padding: 0;              /* was 1.25rem 1.5rem */
    border-radius: 14px;
    cursor: pointer;
  }
  
  .svc-card__title {
  margin-top: 0px !important; padding-left:3px!important;
 
}
  .svc-card.is-open .svc-card__body {
    display: block;
    padding-top: 25px;
  }
}
.svc-card--cta,
.svc-card--cta * {
  background-color: transparent !important;
}

.cards__card:has(.svc-card--cta) {
  background-image: url('https://143932026.fs1.hubspotusercontent-eu1.net/hubfs/143932026/CTA%20Background%20Servers.jpg');
  background-repeat: no-repeat;
  background-position: top center;  
  background-size: cover;
  background-color: transparent !important;
}

