/* Section Styles */
.custom-cards-section {
  position: relative;
  background: rgba(255, 255, 255, 1);
  padding: 81px 2.1rem;
  padding-bottom: 80px;
}

.custom-cards-heading-block {
  padding-bottom: 30px;
  text-align: left;
}

.custom-cards-heading-block h1.custom-heading-flip {
  color: #1759FF;
  font-size: 54px!important;
  font-weight: 600;
  margin-bottom: 10px;
}

.custom-cards-heading-block p.custom-subheading-flip {
  color: #000000;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 400;
}

.custom-cards-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.9rem; /* Gap between cards */
  justify-content: center;
  margin: 0 auto;
}

.custom-cards-col {
  flex: 0 0 calc(26% - 1.5rem);
    max-width: calc(26% - 1.5rem);
  padding: 0rem;
}

/* Flip Card */
.flip-card {
  background-color: transparent;
  width: 100%;
  height: 300px; /* Reduced height by 30% */
  perspective: 1000px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.2s ease-in-out;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(-180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.flip-card-front {
background-color: #1759FF;
    color: #FFFFFF;
    font-size: 32px;
    font-weight: 700;
    font-family: 'Poppins';
}

.flip-card-back {
  background-color: #FFFFFF;
  color: #1759FF;
  border: 1px solid #1759FF;
  transform: rotateY(180deg);
  border-radius: 24px;
}

/* Image Styling */
.card-image {
  width: 36px; /* Reduced size by 30% */
  height: auto;
  object-fit: cover;
  margin-bottom: 0px;
}

.card-image-back {
width: auto;
    height: auto;
    object-fit: cover;
    margin-bottom: 0px;
}

/* Text Styling */
.flip-card h3 {
font-size: 24px;
    margin: 10px 0;
    font-weight: 700;
    margin-bottom: 0px;
    font-family: 'DM Sans' !important;
}

.flip-card p {
 font-size: 16px;
    line-height: 1.5;
    color: #1759ff;
    margin-top: 0px;
}

.content-card-back-h3 {
  font-size: 28px; /* Reduced back text size */
  font-weight: bold;
  margin-bottom: 5px;
  color: #1759FF;
}

.content-card-back-p {
  font-size: 0.75rem; /* Reduced description size */
  line-height: 1.5;
  color: #1759FF;
}

/* CTA Button */
.cta-button-container {
  text-align: center;
  margin-top: 30px;padding-left:0.6rem;
}

.cta-button {
  padding: 12px 24px;
  background-color: #1759FF;
  border-radius: 12px;
  color: #ffffff;
  font-size: 16px;
  text-decoration: none;
  display: inline-block;
}

.cta-button::after {
  content: url('https://42190484.fs1.hubspotusercontent-na1.net/hubfs/42190484/Vectorn.svg');
  margin-left: 8px;
}

.cta-button:hover {
  background-color: #1550E6;
}

/* Responsive Styles */

/* Tablet View */
@media (max-width: 1024px) {
  .custom-cards-col {
    flex: 0 0 calc(50% - 1.5rem); /* Two columns for tablets */
    max-width: calc(50% - 1.5rem);
  }

  .flip-card {
    height: 280px; /* Original tablet height */
  }
}

/* Mobile View */
@media (max-width: 640px) {
  .custom-cards-row {
    display: flex;
    flex-wrap: wrap;
  }
  .custom-cards-section {
    padding: 60px 0rem; /* Reduced padding for mobile */
  }
    .custom-cards-heading-block h1.custom-heading-flip {
        font-size: 36px;
        padding: 0 15px;
    }
  .custom-cards-heading-block p.custom-subheading-flip {
        font-size: 20px;
        padding: 0 15px;
    }
  .custom-cards-row {
    gap: 0.5rem; /* Smaller gap between cards */
    padding:0 15px;
  }

  .custom-cards-col {
    flex: 0 0 100%; /* Single column for mobile */
    max-width: 100%;
    margin-bottom: 20px;
  }

  .flip-card {
    height: 260px; /* Adjusted height for mobile */
  }

  .flip-card h3 {
    font-size: 20px;
  }

  .flip-card p {
    font-size: 16px;
  }

  .card-image,
  .card-image-back {
    width: 40px; /* Adjusted image size */
  }
  .card-image-back { width: 90px;!important}

  .custom-cards-heading-block h1.custom-heading-flip {
    font-size: 36px;padding 0 15px;
  }
  .cta-button-container{padding: 0 15px;}
  .custom-cards-heading-block p.custom-subheading-flip {
    font-size: 20px;padding 0 15px;
  }

  .cta-button {
    font-size: 14px;
    padding: 10px 18px;
    width: 100%;
        text-align: center;
    color: #fff;
  }
  a{
  color:#fff;
  }
}
@media only screen and (min-width: 768px) and (max-width: 1024px){
.custom-cards-row{
  display: flex;
    flex-wrap: wrap!important;
}
}
@media only screen and (min-width: 1024px) and (max-width: 1366px){
.custom-cards-row{
  display: flex;
    flex-wrap: wrap!important;
}
}
@media only screen and (max-width: 600px){
.custom-cards-heading-block h1.custom-heading-flip {
    font-size: 38px !important;
  line-height: 57.34px;
  margin-bottom: 25px;
}
  .custom-cards-heading-block p.custom-subheading-flip{
    margin-bottom: 25px;
  }
  h4 {
    font-size: 28px;
    line-height: 42px;
    font-weight: 500;
}
}