.elementor-kit-97{--e-global-color-primary:#3E4655;--e-global-color-secondary:#3A6F5C;--e-global-color-text:#95BBCA;--e-global-color-accent:#F4C434;--e-global-color-4ffd22f:#EE9E91;--e-global-color-dd08fb7:#EB5C47;--e-global-color-06f2336:#303030;--e-global-color-38fdadc:#FFFFFF;--e-global-color-77f06a5:#FAD690;--e-global-color-33f23e6:#D79787;--e-global-color-f44f9ab:#C6C7E6;--e-global-typography-primary-font-family:"Montserrat";--e-global-typography-primary-font-weight:500;--e-global-typography-secondary-font-family:"Montserrat";--e-global-typography-secondary-font-weight:400;--e-global-typography-text-font-family:"Montserrat";--e-global-typography-text-font-weight:300;--e-global-typography-accent-font-family:"Montserrat";--e-global-typography-accent-font-weight:600;}.elementor-kit-97 e-page-transition{background-color:#FFBC7D;}.elementor-section.elementor-section-boxed > .elementor-container{max-width:1140px;}.e-con{--container-max-width:1140px;}.elementor-widget:not(:last-child){--kit-widget-spacing:20px;}.elementor-element{--widgets-spacing:20px 20px;--widgets-spacing-row:20px;--widgets-spacing-column:20px;}{}h1.entry-title{display:var(--page-title-display);}@media(max-width:1024px){.elementor-section.elementor-section-boxed > .elementor-container{max-width:1024px;}.e-con{--container-max-width:1024px;}}@media(max-width:767px){.elementor-section.elementor-section-boxed > .elementor-container{max-width:767px;}.e-con{--container-max-width:767px;}}
/* Start custom CSS */.card-container {
  position: relative;
  overflow: hidden;
}

.front-card {
  position: relative;
  z-index: 1;
}

.back-card {
  position: absolute;
  top: 75%;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  transition: top 0.6s ease-in-out;
  display: flex;
  justify-content: flex-start;
}

.back-card-content-container {
  transition: top 0.5s ease-in-out;
  position: absolute;
  top: 0;
  width: 85%;
  height: 100%;           /* ADD: fill full height of back-card */
  display: flex;
  flex-direction: column; /* ADD: stack children vertically */
  justify-content: space-between; /* CHANGE: header top, text bottom */
  padding-top: 16px;
  padding-bottom: 16px;  /* ADD: breathing room at the bottom */
  padding-left: 0;
  box-sizing: border-box; /* ADD: padding doesn't cause overflow */
}

.card-container:hover .back-card {
  top: 0;
  justify-content: flex-end;
}

.card-container:hover .back-card-content-container {
  top: 15px;
}

.card-container .back-card-content {
  transition: transform 0.6s ease-in-out;
  transform: translateY(0);
}

.card-container:hover .back-card-content {
  transform: translateY(-300px);
}
/* Default (mobile): H6 size */
.back-card-content-container h5 {
  font-size: 17px; /* Fill in your H6 size here */
  line-height: 1.3;
}

/* Desktop: H5 size, but smaller than default H5 */
@media (min-width: 768px) {
  .back-card-content-container h5 {
    font-size: 16px; /* Fill in your H5 size here */
    line-height: 1.3;
  }
}/* End custom CSS */