  :root{
    --white:#f7fdf9;
    --light-purple:#166a45;
    --light-blue:#dff6e7;
    --dark-grey:#384250;
    --max-content-width:1390px;
  }
  
  /* ===== Container ===== */
  .cards-container{
    position:relative;
    padding:0 16px;
  }
  .cards-container::after{
    content:"";
    background:var(--light-blue);
    position:absolute;
    top:300px;left:0;right:0;
    height:70%;
    z-index:-1;
  }
  .cards-title{
    font-size:32px;
    font-weight:700;
    text-align:center;
    margin-bottom:22px;
    color:var(--dark-grey);
    padding-top:60px;
  }
  .cards-wrapper{
    display:flex;
    align-items:center;
    flex-direction:column;
    max-width:var(--max-content-width);
    margin:0 auto;
    gap:20px;
  }

  @media (min-width:840px){
    .cards-container{padding:100px;}
    .cards-wrapper{flex-direction:row;justify-content:center;flex-wrap:wrap;}
  }

  /* ===== Card ===== */
  .card-service{
    flex:1 1 250px;
    max-width:450px;
    height:600px;
    overflow:hidden;
    position:relative;
    padding:32px;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    transition:.2s linear;
    border-start-end-radius:32px;
    border-end-start-radius:32px;
    border: none;
  }

  .content-section{
    display:flex;
    flex-direction:column;
    gap:16px;
    text-align:center;
    align-items:center;
    color:var(--white);
    z-index:2;
    position:relative;
  }
  @media (min-width:840px){
    .content-section{gap:12px;}
  }

  .icon-wrapper{
    width:68px;
    height:68px;
    transition:.2s linear;
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
  }
  .icon{
    width:48px;
    height:48px;
    background:var(--light-purple) !important;
    border-radius:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    position:relative;
  }
  .icon img{position:relative;z-index:3;width:24px;height:24px;}
  .icon::after{
    content:"";
    background:color-mix(in srgb, var(--light-purple) 50%, transparent);
    width:68px;height:68px;
    position:absolute;top:50%;left:50%;
    border-radius:100%;
    transform:translate(-50%,-50%);
  }

  .card-title{font-size:32px;font-weight:700;margin:0;color:#ffffff;}
  .card-info{font-size:18px;font-weight:400;line-height:23px;margin:0;}

  .link-button-wrap{
    position:relative;
    transition:.2s linear;
    margin-top:24px;
    margin-bottom:24px;
  }
  @media (min-width:840px){
    .link-button-wrap{
      top:100px;
      height:0;
      margin-top:0;
      margin-bottom:0;
    }
  }

  .link-button{
    background:var(--white);
    color:var(--light-purple);
    padding:10px 20px;
    min-width:250px;
    font-size:18px;
    line-height:20px;
    font-weight:500;
    border-radius:6px;
    display:flex;
    justify-content:center;
    align-items:center;
    text-transform:uppercase;
    transition:.3s;
    text-decoration:none;
    cursor:pointer;
  }
  .link-button:hover{
    background-color:var(--light-blue);
    text-decoration:underline;
  }
  .link-button:active{
    color:var(--white);
    background-color:var(--light-purple);
  }
  .link-title{padding:0 12px;}
  .link-icon{
    width:24px;height:24px;
    position:relative;
    transition:.2s linear;
    inset-inline-end:0;
    display:flex;
  }
  .link-button:hover .link-icon{inset-inline-end:-10px;}
  html[dir="rtl"] .rotate{transform:rotate(180deg);}

  /* ===== Overlay (dark gradient by default) ===== */
  .overlay{
    position:absolute;
    inset:0;
    z-index:1;
  }
  .overlay::before,
  .overlay::after{
    content:"";
    position:absolute;
    inset:0;
  }
  .overlay::before{
    background-image:linear-gradient(rgba(0,0,0,0), rgb(0,0,0));
    opacity:1;
    transition:opacity .2s linear;
  }
  .overlay::after{
    background-image:linear-gradient(180deg, rgba(147,42,207,0) 0, var(--light-purple) 100%);
    opacity:0;
    transition:opacity .15s linear;
  }

  /* ===== Image section ===== */
  .image-section{
    z-index:0;
    position:absolute;
    height:100%;
    width:100%;
    top:0;left:0;
  }
  .image-section img{
    width:100%;height:100%;
    object-fit:cover;
  }

  /* ===== Hover / Active state (desktop only, matches original) ===== */
  @media (min-width:840px){
    .card-service:hover{
      box-shadow:0 56px 100px -40px var(--light-purple);
    }
    .card-service:hover .overlay::before{opacity:0;}
    .card-service:hover .overlay::after{opacity:1;}
    .card-service:hover .icon-wrapper{height:0;}
    .card-service:hover .link-button-wrap{top:0;height:50px;}
  }

/* CTA Section Styles */
.cta-section {
    padding: 120px 20px;
}

.outer-box {
    max-width: 1200px;
    margin: 0 auto;
    background-color: rgb(2, 56, 44);
    border-radius: 15px;
    overflow: hidden;
    padding: 60px 50px;
    position: relative;
}

/* ????? ??????? ???? ???? */
.shape1 {
    position: absolute;
    left: -30px;
    bottom: 0;
    opacity: 0.41;
    z-index: 0;
    pointer-events: none;
    width: 1064px;
    max-width: none;
    animation: bounce-x 10s linear 0s infinite normal none running;
}
.shape1 img { width: 100%; display:block; }

/* ?????? ?????? ???? ???? */
.shape2 {
    position: absolute;
    right: -70px;
    top: -100px;
    z-index: 0;
    pointer-events: none;
    width: 860px;
    max-width: none;
    animation: bounce-y 10s linear 0s infinite normal none running;
}
.shape2 img { width: 100%; display:block; }

@keyframes bounce-x {
    0% { transform: translateX(0px); }
    50% { transform: translateX(30px); }
    100% { transform: translateX(0px); }
}
@keyframes bounce-y {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-30px); }
    100% { transform: translateY(0px); }
}

.row-flex {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    flex-wrap: wrap;
    /* Force Image on Right, Text on Left always */
    flex-direction: row-reverse;
}

/* For RTL (Arabic): Image Right, Text Left */
html[dir="rtl"] .row-flex {
    flex-direction: row;
}

.image-col {
    flex: 1 1 45%;
    position: relative;
    z-index: 1;
}
.image-col img {
    width: 100%;
    border-radius: 12px;
    display: block;
}

.content-col {
    flex: 1 1 45%;
    position: relative;
    z-index: 1;
    text-align: left; /* English alignment */
}

html[dir="rtl"] .content-col {
    text-align: right; /* Arabic alignment */
}

.sub-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 30px;
    padding: 5px 5px 5px 15px;
    font-size: 14px;
    font-weight: 500;
    color: #0B2230;
    background-color: #ffffff;
    margin-bottom: 16px;
}
html[dir="rtl"] .sub-title {
    padding: 5px 15px 5px 5px;
}

.sub-title span {
    background-color: #A8D1D5;
    border-radius: 30px;
    padding: 7px 10.5px;
    color: #0B2230;
}

.title {
    font-size: 42px;
    font-weight: 900;
    line-height: 1.3;
    color: #ffffff;
    margin-bottom: 20px;
}
.title span {
    color: #A8D1D5;
}

.text {
    font-size: 16px;
    line-height: 1.8;
    color: #ffffff;
    opacity: 0.9;
    margin-bottom: 36px;
}

.btn-style-one {
    display: inline-block;
    font-size: 16px;
    font-weight: 700;
    border-radius: 14px;
    padding: 17px 32px;
    color: #0B2230;
    background-color: #A8D1D5;
    text-decoration: none;
    transition: opacity .3s;
}
.btn-style-one:hover {
    opacity: 0.85;
}

@media (max-width: 768px) {
    .title { font-size: 30px; }
    .shape1, .shape2 { display:none; }
}
