#section-services {
  width: 100%;
  padding: 0;
}

.module-services.style-12 {
  position: relative;
  width: 100%;
  padding: 100px 0 120px;
  background-color: var(--color-bg-white, #ffffff);
}

.module-services.style-12 .content {
  width: 100%;
  padding: 0;
}

.module-services.style-12 .content .ry-flex {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  width: 100%;
  margin: 0 auto;
  float: none;
}

.module-services.style-12 .content .ry-flex .ry-each {
  position: relative;
  width: 100%;
  aspect-ratio: 535 / 557;
  min-height: 480px;
  background-color: #eaf1f8;
  border-radius: 56px;
  overflow: hidden;
  padding: 0;
  margin: 0;
  border: none;
  box-shadow: none;
  box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.module-services.style-12 .content .ry-flex .ry-each:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(30, 48, 72, 0.1);
  z-index: 3;
}

.module-services.style-12 .content .ry-flex .ry-each .img-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  z-index: 1;
  float: none;
}

.module-services.style-12 .content .ry-flex .ry-each .img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.module-services.style-12 .content .ry-flex .ry-each > div:not(.img-container) {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 44px 20px 0;
  box-sizing: border-box;
  z-index: 2;
  float: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.module-services.style-12 .content .ry-flex .ry-each .card-content {
  width: 100%;
  text-align: center !important;
}

.module-services.style-12 .content .ry-flex .ry-each .card-content h3 br,
.module-services.style-12 .content .ry-flex .ry-each .card-content div br {
  display: none;
}

.module-services.style-12 .content .ry-flex .ry-each .card-content h3 {
  font-family: var(--font-primary-serif, 'Besley', 'Spectral', Georgia, serif) !important;
  font-size: clamp(26px, 2.1vw, 34px) !important;
  font-weight: 400 !important;
  line-height: 1.12 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  text-align: center !important;
  margin: 0;
}

.module-services.style-12 .content .ry-flex .ry-each .card-content h3 .span-1 {
  display: block;
  color: #1e2f47 !important;
  line-height: 1.12 !important;
  margin: 0;
}

.module-services.style-12 .content .ry-flex .ry-each .card-content h3 .span-2 {
  display: block;
  color: #476f9f !important;
  line-height: 1.12 !important;
  margin: 0;
}

.module-services.style-12 .content .ry-flex .ry-each .card-content p {
  font-family: var(--font-primary-sans, 'Questrial', 'Montserrat', sans-serif) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  text-align: center !important;
  color: #476f9f !important;
  margin: 6px 0 0 0;
}

.module-services.style-12 .content .ry-flex .ry-each:nth-child(2) {
  background-color: var(--color-accent-blue, #48709f);
}

.module-services.style-12 .content .ry-flex .ry-each:nth-child(2) > div:not(.img-container) {
  top: 50%;
  transform: translateY(-50%);
  padding: 0 30px;
}

.module-services.style-12 .content .ry-flex .ry-each:nth-child(2) .card-content h2 {
  font-family: var(--font-primary-serif, 'Besley', 'Spectral', Georgia, serif) !important;
  font-weight: 400 !important;
  line-height: 1.05 !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
  text-align: center !important;
  color: #ffffff !important;
  margin: 0 0 10px 0;
}

.module-services.style-12 .content .ry-flex .ry-each:nth-child(2) .card-content h2 br {
  display: block;
}

.module-services.style-12 .content .ry-flex .ry-each:nth-child(2) .card-content h2 .span-1,
.module-services.style-12 .content .ry-flex .ry-each:nth-child(2) .card-content h2 .span-2 {
  color: #ffffff !important;
}

.module-services.style-12 .ry-btn-secondary{
color:#48709F !important;
}

.module-services.style-12 .content .ry-flex .ry-each:nth-child(2) .card-content h3 {
  font-family: var(--font-primary-serif, 'Besley', 'Spectral', Georgia, serif) !important;
  font-size: clamp(20px, 1.8vw, 28px) !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  text-align: center !important;
  color: #ffffff !important;
  margin: 0 0 24px 0;
}

.module-services.style-12 .content .ry-flex .ry-each:nth-child(2) .card-content h3 .span-1,
.module-services.style-12 .content .ry-flex .ry-each:nth-child(2) .card-content h3 .span-2 {
  color: rgba(255, 255, 255, 0.7) !important;
  padding: 12px 0;
}


@media (min-width: 768px) and (max-width: 1199px) {
  .module-services.style-12 {
    padding: 70px 0 90px;
  }

  .module-services.style-12 .content .ry-flex {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding: 0 20px;
  }

  .module-services.style-12 .content .ry-flex .ry-each {
    min-height: 420px;
    border-radius: 44px;
  }

  .module-services.style-12 .content .ry-flex .ry-each > div:not(.img-container) {
    padding-top: 36px;
  }
}

@media (max-width: 767px) {
  .module-services.style-12 {
    padding: 50px 0 70px;
  }

  .module-services.style-12 .content .ry-flex {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 15px;
    max-width: 420px;
    margin: 0 auto;
  }

  .module-services.style-12 .content .ry-flex .ry-each {
    min-height: 380px;
    border-radius: 36px;
  }

  .module-services.style-12 .content .ry-flex .ry-each > div:not(.img-container) {
    padding-top: 30px;
  }

  .module-services.style-12 .content .ry-flex .ry-each .card-content h3 {
    font-size: 24px !important;
  }

  .module-services.style-12 .content .ry-flex .ry-each:nth-child(2) .card-content h2 {
    font-size: 34px !important;
  }

  .module-services.style-12 .content .ry-flex .ry-each:nth-child(2) .card-content h3 {
    font-size: 18px !important;
  }
}