/* ==============================
   قسم أفضل الشركات تقييمًا
   ============================== */

.col.aos-off {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.section-body .col {
  transition: transform 0.25s ease;
  will-change: transform;
}

.section-body .col:hover {
  transform: translateY(-3px);
}
/* الهواتف: تمرير أفقي لبطاقات أفضل الشركات تقييمًا */
@media (max-width: 774px) {
    .best-rating-row {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto; /* التمرير باللمس */
        -webkit-overflow-scrolling: touch; /* تمرير سلس على iOS */
        padding: 0.5rem 0;
        gap: 1rem;
        scrollbar-width: none; /* Firefox */
    }

    .best-rating-row::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Edge */
    }

    .best-rating-row .business-card {
        flex: 0 0 90%; /* كل بطاقة 80% من عرض الشاشة */
        max-width: 90%;
    }
}
/* القسم يأخذ كامل عرض الشاشة */
.promo-horizontal-section {
    background: #c6ffe1;
    padding: 40px 0;
    width: 83%;
    margin: 0 auto;
  border-radius: 22px;
  }


.promo-horizontal-section .container-custom {
    max-width: 1200px; /* نفس حجم الأقسام الأخرى */
    margin: 0 auto;     /* محاذاة للوسط */
    padding: 0 15px;
}

.promo-horizontal-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;        /* محصور داخل container */
    box-sizing: border-box;
    border-radius: 27px; /* إذا أحببت الشكل المستدير */
}


/* نص البنر */
.promo-horizontal-box .text h4 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
    animation: growText 1.5s ease-in-out infinite alternate;
}

.promo-horizontal-box .text p {
    font-size: 1rem;
    color: #555;
}

/* حركة صغيرة للنص للتعبير عن النمو */
@keyframes growText {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

/* النقاط الأفقية */
.promo-growth span {
    width: 6px;
    background-color: #0d6efd;
    border-radius: 2px 2px 0 0;
    animation: barPulse 1.6s infinite ease-in-out;
}

.promo-growth span:nth-child(1) {
    height: 8px;
    animation-delay: 0s;
}

.promo-growth span:nth-child(2) {
    height: 14px;
    animation-delay: .2s;
}

.promo-growth span:nth-child(3) {
    height: 20px;
    animation-delay: .4s;
}

@keyframes barPulse {
    0%   { opacity: .5; transform: scaleY(.7); }
    50%  { opacity: 1;  transform: scaleY(1); }
    100% { opacity: .5; transform: scaleY(.7); }
}

/* زر CTA */
.promo-btn {
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    transition: all 0.3s ease;
}
.promo-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(39, 174, 96, 0.4);
}

/* متجاوب */
@media (max-width: 768px) {

    .promo-horizontal-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* إصلاح تنصيف العنوان مع النقاط */
    .promo-horizontal-box .text > div {
        flex-direction: column; /* بدل صف */
        align-items: center;
    }

    .promo-animation-horizontal {
        justify-content: center;
        margin-top: 8px;
    }

    .promo-horizontal-box .promo-btn {
        align-self: center;
        width:100%;
    }
}

