.solutions-services {
    width: 100%;
    position: relative;
}

.solutions-container{
    max-width: 900px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 70px;
}

.solutions-services__cards {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 0px 15px;
}

.solutions-services__card {
    flex: 1 1 calc(50% - 20px);
    border-radius: 18px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    position: relative;
    overflow: visible;
}

.solutions-services__card:nth-last-child(odd):first-child:nth-last-child(1) {
    margin-right: auto;
    margin-left: auto;
}

.solutions-services__card-header {
    padding: 1rem 1rem 0rem 1rem;
    justify-content: space-between;
    align-items: flex-start;
}

.solutions-services__card-header p{
    font-family: 'AmpleSoftPro-Regular', sans-serif;
    padding-top: 0.5rem;
}

.solutions-services__card .solutions-services__card-icon {
    width: 100%;
    border-radius: 18px 18px 0 0;
    height: 180px;
    object-fit: cover;
}

.solutions-services__card-title {
    font-size: 1.3rem;
    color: #62b872;
    margin: 0;
    font-weight: bold;
}

.solutions-services__card-button {
    display: inline-block;
    color: #628cbe;
    text-decoration: none;
    align-self: flex-end;
    padding-bottom: 1rem;
    padding-right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-family: 'AmpleSoftPro-Regular', sans-serif;
    font-size: 0.875rem;
}

.solutions-services__card-button:hover {
    text-decoration: underline;
}

.solutions-services__title {
    text-align: center;
    width: 100%;
    font-size: 35px;
    font-family: 'AmpleSoftPro-Regular', sans-serif;
}

.solutions-services__modal-content .solutions-services__modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.2rem;
    background: none;
    color: #000000;
    border: none;
    cursor: pointer;
    line-height: 1;
    z-index: 2;
    font-family: 'AmpleSoftPro-Bold', sans-serif;
    font-weight: bolder;
}

.solutions-services__modal-close:hover {
    color: #000000;
}

.solutions-services__description {
    text-align: center;
    color: #000000;
    margin-bottom: 4rem;
    width: 100%;
    font-family: 'AmpleSoftPro-Regular', sans-serif;
    font-size: 18px;
}

.solutions-services__toggle {
    display: none;
}

.solutions-services__modal-content {
    display: none;
    position: absolute;
    bottom: 0;
    z-index: 10;
    width: 100%;
    height: 85%;
    background: #ffffffe6;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    padding: 1rem 2rem 2rem;
    flex-direction: column;
    gap: 1.5rem;
    font-family: 'Arial', sans-serif;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 0;
    gap: 0;
}

.solutions-services__toggle:checked ~ .solutions-services__modal-content {
    display: flex;
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.solutions-services__toggle:checked ~ .solutions-services__card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 5;
    border-radius: 10px;
}

.solutions-services__modal-content h3 {
    font-size: 1.6rem;
    text-align: center;
    font-weight: 700;
    color: #2b2b2b;
    margin: 0;
}

.solutions-services__modal-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.solutions-services__modal-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #333;
    line-height: 1.2;
}

.solutions-services__modal-content ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #69d1cb;
    font-size: 1.3rem;
    line-height: 1;
    top: -5px;
}

.solutions-services__modal-icon {
    margin-right: 10px;
    display: block;
}

.solutions-services__card-wrapper {
    flex: 1 1 calc(50% - 20px);
    max-width: calc(50% - 20px);
    display: block;
    border-radius: 18px;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    background: #ffffff;
}


.solutions-services__modal-close {
    pointer-events: auto;
}

.solutions-services__card-wrapper:nth-last-child(odd):first-child:nth-last-child(1) {
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
  .solutions-services__card-wrapper {
    flex: 1 1 100%;
    max-width: 50%;
  }
}

@media (min-width: 768px) {
    .solutions-services__title {
        font-size: 45px;
    }
    .solutions-services__description{
        font-size: 22px;
    }
}

@media (max-width: 320px) {
  .solutions-services__modal-body ul{
    padding: 0px;
  }
  .solutions-services__modal-content .solutions-services__modal-header{
    padding: 10px 10px;
  }
  .solutions-services__modal-content .solutions-services__modal-body ul{
    padding: 0px;
  }
}

@media (max-width: 425px) {
    .solutions-services__card-wrapper {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .site-main  .solutions-services::before{
  width: 400px;
  height: 200px;
  content: '';
  background:transparent;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}
.site-main  .solutions-services::after{
  width: 400px;
  height: 200px;
  content: '';
  background: transparent;
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: -1;
}
}

.solutions-services__modal-header .solutions-services__modal-icon-image{
    height: auto;
    width: 80px;
}

.solutions-services__modal-header{
    display: flex;
    padding: 15px;
}

.solutions-services__modal-header .solutions-services__modal-title{
    width: 85%;
    display: flex;
    align-items: center;
}

.solutions-services__modal-header .solutions-services__modal-title h3{
    text-align: left;
}

.solutions-services__modal-body ul{
    font-family: 'AmpleSoftPro-Regular', sans-serif;
    padding: 0px 20px;
}

.solutions-services__modal-body ul li{
    font-family: 'AmpleSoftPro-Regular', sans-serif;
    margin: 0;
    padding-left: 1rem;
    font-size: 18px;
}

.solutions-services__modal-content ul li::before{
    font-size: 2.2rem;
}

.solutions-services__modal-body {
    overflow: auto;
    scrollbar-width: thin;                    /* Firefox */
    scrollbar-color: #62b872 transparent;   /* Firefox */
    height: 100%;
}

/* WebKit (Chrome, Safari, Edge) */
.solutions-services__modal-body::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.solutions-services__modal-body::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 4px;
}

.solutions-services__modal-body::-webkit-scrollbar-thumb {
  background-color: #62b872;
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: content-box;
}

.solutions-services::before{
  width: 400px;
  height: 200px;
  content: '';
  background: url(../img/background-dots.svg);
  position: absolute;
  top: 80px;
  left: 10px;
  z-index: -1;
  background-repeat: no-repeat;
}
.solutions-services::after{
  width: 400px;
  height: 200px;
  content: '';
  background: url(../img/background-dots.svg);
  position: absolute;
  bottom: 50px;
  right: 10px;
  z-index: -1;
  background-repeat: no-repeat;
}

body.wp-admin .solutions-services::before{
    background: none !important;
}

body.wp-admin .solutions-services::after{
    background: transparent !important;
    outline: none !important;
    height:0;
    width:0;
}