.home-page .services .container {
  position: relative;
}
.home-page .services .container::after {
  content: "";
  position: absolute;
  left: -20%;
  top: 0%;
  transform: rotate(45deg);
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(234, 185, 119, 0.08);
  box-shadow: 0 0 400px rgba(234, 185, 119, 0.09), 0 0 500px rgba(234, 185, 119, 0.1);
  z-index: -1;
  contain: strict;
  will-change: transform;
  pointer-events: none;
}
.home-page .services .container::before {
  content: "";
  position: absolute;
  right: -20%;
  bottom: 0%;
  transform: rotate(45deg);
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(72, 177, 243, 0.06);
  box-shadow: 0 0 400px rgba(72, 177, 243, 0.1), 0 0 500px rgba(72, 177, 243, 0.05);
  filter: blur(120px);
  z-index: -1;
  contain: strict;
  will-change: transform;
  pointer-events: none;
}
@media (max-width: 767px) {
  .home-page .services .container::after, .home-page .services .container::before {
    width: 200px;
    height: 200px;
  }
}
.home-page .services .content-wrapper .box {
  box-shadow: 0 0 15px rgba(10, 58, 130, 0.16);
  background: var(--light-color);
}
.home-page .services .content-wrapper .box .text-box h4 {
  color: var(--blue-color);
}
.home-page .services .content-wrapper .box .text-box p {
  color: var(--text-color);
}
.home-page .advantage .content-wrapper .box {
  box-shadow: 0 0 15px rgba(10, 58, 130, 0.16);
  background: var(--light-color);
}
@media (min-width: 1250px) {
  .home-page .testimonials .content-wrapper {
    flex-wrap: nowrap;
  }
}
@media (max-width: 1250px) {
  .home-page .testimonials .content-wrapper {
    flex-wrap: wrap;
  }
}
.home-page .testimonials .content-wrapper .box {
  position: relative;
  background-size: cover;
  background-position: top center;
  overflow: hidden;
  width: 100%;
  transition: 0.5s ease !important;
  z-index: 1;
}
.home-page .testimonials .content-wrapper .box::after {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.9));
  z-index: -1;
}
.home-page .testimonials .content-wrapper .box .content .name {
  position: relative;
  top: 30px;
  transition: 0.5s;
}
.home-page .testimonials .content-wrapper .box .content .job {
  color: var(--secondary-color);
  position: relative;
  right: -100%;
  transition: 0.5s;
}
.home-page .testimonials .content-wrapper .box .content .desc {
  position: relative;
  left: -200%;
  transition: 0.5s;
}
.home-page .testimonials .content-wrapper .box .content .play-icon {
  position: relative;
  bottom: -300px;
  transition: 0.5s;
}
.home-page .testimonials .content-wrapper .box:hover .name {
  top: 0;
}
.home-page .testimonials .content-wrapper .box:hover .job {
  right: 0;
}
.home-page .testimonials .content-wrapper .box:hover .desc {
  left: 0;
}
.home-page .testimonials .content-wrapper .box:hover .play-icon {
  bottom: 0;
}
@media (min-width: 1250px) {
  .home-page .testimonials .content-wrapper .box {
    width: 25%;
  }
  .home-page .testimonials .content-wrapper .box:hover {
    width: 50%;
  }
}
@media (min-width: 768px) and (max-width: 1250px) {
  .home-page .testimonials .content-wrapper .box {
    width: 48.5%;
  }
}
@media (max-width: 767px) {
  .home-page .testimonials .content-wrapper .box {
    width: 100%;
  }
}
.home-page .test-run .content-wrapper .box {
  box-shadow: 0 0 15px rgba(10, 58, 130, 0.16);
  background: var(--light-color);
}
.home-page .faqs .container {
  position: relative;
}
.home-page .faqs .container::after {
  content: "";
  position: absolute;
  left: -20%;
  top: 0%;
  transform: rotate(45deg);
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(72, 177, 243, 0.06);
  box-shadow: 0 0 400px rgba(72, 177, 243, 0.1), 0 0 500px rgba(72, 177, 243, 0.05);
  filter: blur(120px);
  z-index: -1;
}
@media (max-width: 767px) {
  .home-page .faqs .container::after {
    width: 200px;
    height: 200px;
    top: 0;
  }
}

/* Features Marquee Section - Updated for Mobile Single Column */

/* ============================================
   Desktop Styles (lg and up)
   ============================================ */
.home-page .features-marquee {
    overflow: hidden;
    position: relative;
}

.home-page .features-marquee .marquee-wrapper {
    direction: rtl;
}

.home-page .features-marquee .marquee-columns {
    height: 450px;
    direction: ltr;
}

.home-page .features-marquee .marquee-column {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
}

.home-page .features-marquee .marquee-track {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.home-page .features-marquee .marquee-up .marquee-track {
    animation: marqueeScrollUp 20s linear infinite;
}

.home-page .features-marquee .marquee-down .marquee-track {
    animation: marqueeScrollDown 20s linear infinite;
}

.home-page .features-marquee .marquee-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--light-color);
    border: 1px solid rgba(10, 58, 130, 0.1);
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(10, 58, 130, 0.08);
    white-space: nowrap;
    font-weight: 500;
    font-size: 14px;
    color: var(--primary-color);
    transition: all 0.3s ease;
    direction: rtl;
}

.home-page .features-marquee .marquee-item:hover {
    border-color: var(--blue-color);
    box-shadow: 0 4px 12px rgba(10, 58, 130, 0.15);
}

.home-page .features-marquee .marquee-heading h2 {
    color: var(--blue-color);
}

/* Pause animation on hover - Desktop */
.home-page .features-marquee .marquee-column:hover .marquee-track {
    animation-play-state: paused;
}

/* ============================================
   Mobile Single Column Styles
   ============================================ */
.home-page .features-marquee .marquee-columns-mobile {
    height: 220px; /* حجم 4 عناصر تقريباً */
    direction: ltr;
    width: 100%;
}

.home-page .features-marquee .marquee-column-mobile {
    width: 100%;
    overflow: hidden;
    position: relative;
    height: 100%;
    mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
}

.home-page .features-marquee .marquee-track-mobile {
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: marqueeScrollUpMobile 25s linear infinite;
}

.home-page .features-marquee .marquee-column-mobile:hover .marquee-track-mobile {
    animation-play-state: paused;
}

/* Mobile items styling */
.home-page .features-marquee .marquee-columns-mobile .marquee-item {
    padding: 10px 16px;
    font-size: 13px;
    justify-content: center;
}

/* ============================================
   Keyframes
   ============================================ */
@keyframes marqueeScrollUp {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

@keyframes marqueeScrollDown {
    0% {
        transform: translateY(-50%);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes marqueeScrollUpMobile {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 1023px) {
    .home-page .features-marquee .marquee-wrapper {
        flex-direction: column-reverse;
    }

    .home-page .features-marquee .marquee-heading {
        width: 100%;
        margin-bottom: 20px;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .home-page .features-marquee .marquee-columns-mobile {
        height: 200px; /* ارتفاع يناسب ~4 عناصر */
    }
    
    .home-page .features-marquee .marquee-columns-mobile .marquee-item {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .home-page .features-marquee .marquee-track-mobile {
        gap: 10px;
    }
}

/* Hide desktop columns on mobile, show on desktop */
.home-page .features-marquee .marquee-columns {
    display: none;
}

@media (min-width: 1024px) {
    .home-page .features-marquee .marquee-columns {
        display: flex;
    }
    
    .home-page .features-marquee .marquee-columns-mobile {
        display: none;
    }
}