/* Slider arrows */
.ah-arrows { display: flex; justify-content: center; gap: 14px; margin-top: 18px; position: relative; z-index: 2; }
.ah-arrows .ah-arrow { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid #e3e3e8; border-radius: 50%; background: #fff; color: #121212; box-shadow: 0 4px 14px rgba(18, 18, 18, .08); cursor: pointer; transition: background .2s, color .2s, border-color .2s, opacity .2s; }
.ah-arrows .ah-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ah-arrows .ah-arrow:hover:not(:disabled), .ah-arrows .ah-arrow:focus-visible { background: var(--tg-theme-primary, #ea504c); border-color: var(--tg-theme-primary, #ea504c); color: #fff; }
.ah-arrows .ah-arrow:disabled { opacity: .35; cursor: default; }
.ah-arrows.ah-arrows--off { display: none; }
[dir="rtl"] .ah-arrows { direction: ltr; }

/* Arrows replace the dots */
.testimonial-active-three .testimonial-pagination, .instructor-home-pagination { display: none !important; }

@media (min-width: 768px) {
    .ah-arrows.ah-arrows--mobile { display: none; }
}

@media (max-width: 767.98px) {
    .ah-mslider { display: flex !important; flex-wrap: nowrap !important; justify-content: flex-start !important; align-items: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
    .ah-mslider::-webkit-scrollbar { display: none; }
    .ah-mslider > * { flex: 0 0 100% !important; max-width: 100%; scroll-snap-align: start; scroll-snap-stop: always; }

    /* Our arrows are used instead of the theme's own ones */
    .categories__nav, .testimonial__nav, .instructor__details-nav { display: none !important; }

    /* Blog slides */
    .ah-blog-mobile { gap: 0; }
    .ah-blog-mobile > * { margin-bottom: 0 !important; padding: 0 2px; }
    .ah-blog-mobile .blog__post-thumb-two img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

    /* Instructors: smaller picture, arrows close to the name */
    .instructor__area-five .instructor__thumb-four { max-width: 260px; margin-left: auto; margin-right: auto; }
    .instructor__area-five .instructor__item-four { margin-bottom: 0; }
    .instructor__area-five .ah-arrows { margin-bottom: 0; }

    /* Testimonials: smaller picture, no empty space */
    .youga_testimonial .testimonial__img { max-width: 240px; margin: 0 auto 18px; }
    .youga_testimonial .testimonial__item-three { margin: 0; }
    .youga_testimonial .testimonial__item-three .icon { margin-bottom: 12px; }
    .youga_testimonial .testimonial__item-three p { font-size: 17px; line-height: 1.7; margin-bottom: 16px; }

    /* No extra space between a slide and its arrows */
    .ah-arrows { margin-top: 12px; }
    .ah-mslider > *, .ah-mslider > * > * { margin-bottom: 0 !important; }

    /* FAQ: smaller questions and answers */
    .faq__wrap .accordion-item .accordion-button { font-size: 15px; line-height: 1.45; padding-top: 14px; padding-bottom: 14px; padding-right: 28px; }
    .faq__wrap .accordion-body p { font-size: 14px; line-height: 1.65; }
    .faq__wrap .accordion-item .accordion-button::after { top: 50%; margin-top: -10px; width: 20px; height: 20px; line-height: 20px; font-size: 15px; text-align: center; }
    .faq__wrap .accordion-body { padding-top: 12px; padding-bottom: 4px; }
}
