/* Al Amanah Project — speed fixes (loaded after the theme styles). */

/* 1. "Why Learn with Al Amanah Project?" background used a 16 MB SVG pattern.
      Replaced with a weightless CSS pattern; the green tint stays the same. */
.services::before{
    background-image:radial-gradient(rgba(255,255,255,.10) 1px, transparent 1.5px) !important;
    background-size:22px 22px !important;
}

/* 4. Scroll-to-top arrow used the Boxicons font; use Font Awesome (already loaded) instead. */
.progress-wrap::after,
.progress-wrap::before{
    font-family:"Font Awesome 6 Free","Font Awesome 5 Free" !important;
    font-weight:900 !important;
    content:"\f062" !important;
}

/* 8. Phones and tablets: show content straight away instead of fade-in-on-scroll animations. */
@media (max-width:991.98px){
    .wow{
        visibility:visible !important;
        animation:none !important;
        -webkit-animation:none !important;
    }
}
@media (prefers-reduced-motion:reduce){
    .wow{visibility:visible !important;animation:none !important}
}

/* Images keep their space while loading (less jumping on slow phones). */
.aap-slider .aap-slide img{aspect-ratio:auto}

/* Phones: keep the back-to-top button above the AI chat button. */
@media (max-width:520px){
    .progress-wrap{right:28px !important;bottom:calc(162px + env(safe-area-inset-bottom,0px)) !important;}
}
