/**
 * Home page styles (moved from inline in home.blade.php)
 * Includes hero slider, subject tags, search box, section images, and mobile responsiveness.
 */

/* ========== Hero outer: white padding left/right ========== */
.hero-outer {
  padding: 20px 100px;
  background: #fff;
}
@media (max-width: 991px) {
  .hero-outer {
    padding: 10px 50px;
  }
}
@media (max-width: 767px) {
  .hero-outer {
    padding: 10px 24px;
  }
}

/* ========== Hero slider ========== */
.hero-section.hero-slider {
  background: none;
  background-attachment: scroll;
  border-radius: 20px;
}
.hero-section.hero-slider::before {
  display: none;
}
.hero-slider__images {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slider__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(151, 134, 108, 0.5) 0%, rgba(80, 90, 132, 0.35) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s ease-out;
  z-index: 0;
  overflow: hidden;
}
.hero-slider__slide--active {
  opacity: 1;
  z-index: 1;
}
.hero-slider__slide picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
@keyframes heroSliderZoomIn {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.18);
  }
}
.hero-slider__slide--active img {
  animation: heroSliderZoomIn 3s ease-out forwards;
}
.hero-slider__content {
  position: relative;
  z-index: 2;
}
.hero-slider__dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}
.hero-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, border-color 0.3s;
}
.hero-slider__dot:hover {
  background: rgba(255, 255, 255, 0.5);
}
.hero-slider__dot--active {
  background: #fff;
  border-color: #fff;
}

/* ========== Hero subject tags ========== */
.hero-section .subject-tags {
  gap: 0.75rem;
}
.hero-section .subject-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 0.9rem;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: background 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.hero-section .subject-tag:hover {
  background: rgba(0, 0, 0, 0.4);
  border-color: #fff;
  color: #fff;
}
.hero-section .subject-tag__arrow {
  font-size: 1rem;
  color: var(--accent-yellow);
  flex-shrink: 0;
}

/* ========== Hero search box ========== */
.hero-section .search-box {
  border-radius: 50px;
  overflow: hidden;
}
.hero-section .search-box input {
  border-radius: 50px 0 0 50px;
}
.hero-section .search-box .btn-yellow {
  border-radius: 0 50px 50px 0;
}
@media (max-width: 767px) {
  .hero-section .search-box input {
    border-radius: 50px 50px 0 0;
  }
  .hero-section .search-box .btn-yellow {
    border-radius: 0 0 50px 50px;
  }
}

/* ========== Home section images (About, Popular, Become Tutor) ========== */
.home-section-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 20px;
}

/* =====================================================
   How It Works — modern SaaS redesign
   ===================================================== */

/* ── Section ── */
.hiw-section {
  background: linear-gradient(160deg, #0c1628 0%, #152040 55%, #0c1628 100%);
  color: white;
  position: relative;
  overflow: hidden;
}
/* Subtle dot grid — slightly more visible */
.hiw-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}
/* Radial ambient glows — slightly stronger */
.hiw-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 70% at 8%  50%, rgba(255,174,2,0.12)  0%, transparent 65%),
    radial-gradient(ellipse 55% 70% at 92% 50%, rgba(80,174,224,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.hiw-section .section-title    { color: #fff; }
.hiw-section .section-subtitle { color: rgba(255,255,255,0.6); }

/* ── Header ── */
.hiw-header { position: relative; z-index: 1; }
.hiw-intro {
  color: rgba(255,255,255,0.42);
  font-size: 1rem;
  max-width: 500px;
  margin: 0.5rem auto 0;
}

/* ── Timeline wrapper ── */
.hiw-timeline {
  position: relative;
  z-index: 1;
  margin-top: 2.75rem;
}

/* ── Connecting line (desktop ≥ 992px) ── */
.hiw-tl-line { display: none; }

@media (min-width: 992px) {
  .hiw-tl-line {
    display: block;
    position: absolute;
    /* vertically centred on the 64px nodes: top of nodes row + 32px */
    top: 32px;
    left:  calc(12.5%);
    right: calc(12.5%);
    height: 3px;                          /* thicker */
    background: rgba(255,255,255,0.08);
    border-radius: 99px;
    z-index: 0;
  }
  .hiw-tl-line-fill {
    position: absolute;
    inset: 0;
    right: 100%;
    background: linear-gradient(90deg, #ffe040, #ff8c00);
    border-radius: 99px;
    box-shadow: 0 0 16px rgba(255,174,2,0.7);  /* stronger glow */
    transition: right 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
  }
  .hiw-tl-line-fill.hiw-active { right: 0; }
}

/* ── Nodes row (desktop only) ── */
.hiw-tl-nodes { display: none; }

@media (min-width: 992px) {
  .hiw-tl-nodes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: relative;
    z-index: 1;
    margin-bottom: 0;                     /* vlines row provides the gap */
  }
  .hiw-tl-nwrap {
    display: flex;
    justify-content: center;
  }
}

.hiw-tl-node {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffe040 0%, #ff8c00 100%);
  color: #000;
  font-weight: 900;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  box-shadow:
    0 0 0 6px rgba(255,174,2,0.18),
    0 0 24px rgba(255,140,0,0.45),
    0 6px 18px rgba(0,0,0,0.35);
  /* soft glow breathes in/out */
  animation: hiwNodeGlow 3s ease-in-out infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
@keyframes hiwNodeGlow {
  0%, 100% {
    box-shadow:
      0 0 0 6px  rgba(255,174,2,0.18),
      0 0 24px   rgba(255,140,0,0.40),
      0 6px 18px rgba(0,0,0,0.35);
  }
  50% {
    box-shadow:
      0 0 0 9px  rgba(255,174,2,0.28),
      0 0 36px   rgba(255,140,0,0.65),
      0 6px 18px rgba(0,0,0,0.35);
  }
}
.hiw-tl-node:hover {
  animation: none;              /* stop pulse on hover */
  transform: scale(1.1);
  box-shadow:
    0 0 0 8px  rgba(255,174,2,0.28),
    0 0 36px   rgba(255,140,0,0.65),
    0 8px 24px rgba(0,0,0,0.4);
}
/* Pulsing ring around node — staggered per step */
.hiw-tl-node-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(255,174,2,0.35);
  animation: hiwNodeRing 2.8s ease-out infinite;
  pointer-events: none;
}
@keyframes hiwNodeRing {
  0%   { opacity: 0.75; transform: scale(1);   }
  70%  { opacity: 0;    transform: scale(1.4); }
  100% { opacity: 0;    transform: scale(1.4); }
}
/* cascade ring start times so pulses don't all fire together */
.hiw-tl-nwrap:nth-child(1) .hiw-tl-node-ring { animation-delay: 0s;    }
.hiw-tl-nwrap:nth-child(2) .hiw-tl-node-ring { animation-delay: 0.7s;  }
.hiw-tl-nwrap:nth-child(3) .hiw-tl-node-ring { animation-delay: 1.4s;  }
.hiw-tl-nwrap:nth-child(4) .hiw-tl-node-ring { animation-delay: 2.1s;  }
/* cascade glow breath too */
.hiw-tl-nwrap:nth-child(1) .hiw-tl-node { animation-delay: 0s;   }
.hiw-tl-nwrap:nth-child(2) .hiw-tl-node { animation-delay: 0.4s; }
.hiw-tl-nwrap:nth-child(3) .hiw-tl-node { animation-delay: 0.8s; }
.hiw-tl-nwrap:nth-child(4) .hiw-tl-node { animation-delay: 1.2s; }

/* ── Vertical connector: node → card (desktop only) ── */
.hiw-tl-vlines { display: none; }

@media (min-width: 992px) {
  .hiw-tl-vlines {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 28px;
    position: relative;
    z-index: 1;
  }
  .hiw-tl-vline {
    display: flex;
    justify-content: center;
  }
  .hiw-tl-vline::after {
    content: '';
    width: 2px;
    height: 100%;
    background: linear-gradient(
      to bottom,
      rgba(255,174,2,0.55),
      rgba(255,174,2,0.08)
    );
    border-radius: 99px;
  }
}

/* ── Cards grid ── */
.hiw-tl-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* ── The card ── */
.hiw-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 1.75rem 1.25rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}
/* Expanding top accent bar */
.hiw-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ffe040, #ff8c00);
  border-radius: 16px 16px 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
/* Top glow overlay */
.hiw-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% -10%, rgba(255,174,2,0.12) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.hiw-card:hover {
  transform: translateY(-8px);
  background: rgba(255,255,255,0.07);
  box-shadow:
    0 16px 40px rgba(0,0,0,0.4),
    0 0 0 1px rgba(255,174,2,0.25);
  border-color: rgba(255,174,2,0.3);
}
.hiw-card:hover::before { transform: scaleX(1); }
.hiw-card:hover::after  { opacity: 1; }

/* ── Card number badge (tablet + mobile only) ── */
.hiw-card-num { display: none; }

/* ── Icon wrap ── */
.hiw-icon-wrap {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(255,174,2,0.09);
  border: 1.5px solid rgba(255,174,2,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 2rem;
  color: var(--accent-yellow);
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}
.hiw-card:hover .hiw-icon-wrap {
  transform: scale(1.1);                  /* clean scale, no rotation */
  background: rgba(255,174,2,0.18);
  box-shadow: 0 0 20px rgba(255,174,2,0.35);
}

/* ── Typography ── */
.hiw-title {
  font-size: 1.05rem;
  font-weight: 800;                       /* bolder */
  color: #fff;
  margin-bottom: 0.45rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.hiw-desc {
  font-size: 0.82rem;                     /* slightly tighter */
  color: rgba(255,255,255,0.48);
  margin-bottom: 0;
  line-height: 1.65;
}

/* ── Scroll-triggered fade-up ── */
.hiw-anim {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity  0.5s ease calc(var(--i, 0) * 0.13s),
    transform 0.5s ease calc(var(--i, 0) * 0.13s);
}
.hiw-anim.hiw-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── CTA ── */
.hiw-cta { margin-top: 3rem; position: relative; z-index: 1; }
.hiw-cta .btn-yellow {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hiw-cta .btn-yellow:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 28px rgba(255,174,2,0.5), 0 0 0 3px rgba(255,174,2,0.15);
}

/* ── Icon element subtle rotation on hover ── */
.hiw-icon-wrap i {
  transition: transform 0.3s ease;
  display: inline-block;
}
.hiw-card:hover .hiw-icon-wrap i {
  transform: rotate(10deg) scale(1.1);
}

/* =========================================================
   Responsive
   ========================================================= */

/* Tablet: 2 × 2 grid, show badge inside card */
@media (max-width: 991px) {
  .hiw-tl-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .hiw-card-num {
    display: inline-flex;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffe040, #ff8c00);
    color: #000;
    font-weight: 900;
    font-size: 0.85rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 0 0 5px rgba(255,174,2,0.15), 0 4px 14px rgba(255,140,0,0.4);
  }
}

/* Mobile: single column with vertical left timeline */
@media (max-width: 575px) {
  .hiw-tl-cards {
    grid-template-columns: 1fr;
    gap: 0;
    padding-left: 2.75rem;
    position: relative;
  }
  /* Vertical timeline line */
  .hiw-tl-cards::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 1.75rem;
    bottom: 1.75rem;
    width: 2px;
    background: linear-gradient(to bottom, rgba(255,174,2,0.7), rgba(255,174,2,0.08));
    border-radius: 99px;
  }
  .hiw-card {
    margin-bottom: 1rem;
    text-align: left;
    padding: 1.25rem 1rem 1.25rem 1.25rem;
  }
  /* Badge acts as timeline dot */
  .hiw-card-num {
    position: absolute;
    left: -2.85rem;
    top: 50%;
    transform: translateY(-50%);
    margin-bottom: 0;
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }
  .hiw-icon-wrap {
    width: 56px;
    height: 56px;
    font-size: 1.6rem;
    margin: 0 0 1rem 0;
  }
}

/* ========== Testimonials section ========== */
.testimonial-section .container {
  position: relative;
  z-index: 1;
}
.testimonial-section .testimonial-section-intro {
  opacity: 0.9;
}
.testimonial-section .testimonials-slider-wrapper .slider-nav {
  background: rgba(255, 174, 2, 0.2);
  color: var(--accent-yellow);
}
.testimonial-avatar-initials {
  background: linear-gradient(135deg, var(--sky-blue), var(--navy-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
}

/* ========== Mobile responsiveness (home page) ========== */
@media (max-width: 991px) {
  .hero-section .hero-title {
    font-size: 2.25rem;
  }
  .hero-section .hero-subtitle {
    font-size: 1.1rem;
  }
  .hero-section .subject-tags {
    gap: 0.5rem;
  }
  .hero-section .subject-tag {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
  }
  .hero-slider__dots {
    bottom: 0.75rem;
  }
  .hero-slider__dot {
    width: 8px;
    height: 8px;
  }
}

@media (max-width: 767px) {
  .hero-section.hero-slider {
    border-radius: 12px;
  }
  .hero-section .hero-title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
  }
  .hero-section .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }
  .hero-section .hero-subtitle br {
    display: none;
  }
  .hero-section .subject-tags {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
  }
  .hero-section .subject-tag {
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
  }
  .hero-section .trust-badges {
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
  }
  .hero-section .trust-badge {
    font-size: 0.9rem;
  }
  .hero-slider__dots {
    bottom: 0.5rem;
  }

  /* Section spacing and typography */
  .home-page .section {
    padding: 2rem 0;
  }
  .home-page .section-title {
    font-size: 1.5rem;
  }
  .home-page .section-subtitle {
    font-size: 0.8rem;
  }
  .home-page .section-description {
    font-size: 0.95rem;
  }

  /* About / Popular / Become Tutor: stack and image order */
  .home-page #about-us .row .col-lg-6:last-child,
  .home-page #become-tutor .row .col-lg-6:first-child {
    order: -1;
  }
  .home-page #about-us .p-4,
  .home-page #become-tutor .p-4,
  .home-page .section .mb-4.mb-lg-0 + .col-lg-6 .p-4 {
    padding: 0 0 1rem !important;
  }
  .home-section-img {
    border-radius: 12px;
  }

  /* Step cards: full width on small screens */
  .home-page .step-card {
    margin-bottom: 0.5rem;
  }

  /* Tutors section header: stack button */
  .home-page .d-flex.justify-content-between.align-items-center.mb-4 {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
    text-align: center;
  }
  .home-page .d-flex.justify-content-between .btn-yellow.d-none.d-md-block {
    display: block !important;
  }

  /* Language / programming sliders: touch-friendly */
  .home-page .language-slider-wrapper:not(.language-slider-wrapper--home-languages),
  .home-page .programming-slider-wrapper,
  .home-page .tutors-slider-wrapper,
  .home-page .testimonials-slider-wrapper {
    padding: 0 2rem;
  }
  .home-page .slider-nav {
    min-width: 40px;
    min-height: 40px;
  }

  /* Languages We Offer: flex row + viewport = exact one card, no next-card sliver */
  .home-page .section-languages-offer {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
  .home-page .section-languages-offer .language-slider-wrapper--home-languages {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.5rem;
    padding: 0;
    position: relative;
  }
  .home-page .section-languages-offer .language-slider-wrapper--home-languages .slider-nav {
    position: static;
    transform: none;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 51, 0.12);
  }
  .home-page .section-languages-offer .language-slider-viewport {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  .home-page .section-languages-offer .language-slider-wrapper--home-languages .language-slider {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0;
    padding: 0.2rem 0;
    overflow-x: visible;
    overflow-y: visible;
    scroll-snap-type: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .home-page .section-languages-offer .language-slider-wrapper--home-languages .language-slider::-webkit-scrollbar {
    display: none;
  }
  .home-page .section-languages-offer .language-item {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    padding: 1.2rem 1rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
  }
  .home-page .section-languages-offer .language-item .flag.flag-img,
  .home-page .section-languages-offer .language-item .flag.language-initials {
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 0;
    flex-shrink: 0;
  }
  .home-page .section-languages-offer .language-item__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    flex: 1;
  }
  .home-page .section-languages-offer .language-item h4 {
    font-size: 1.05rem;
    line-height: 1.35;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    margin-bottom: 0.2rem;
  }
  .home-page .section-languages-offer .language-item p {
    font-size: 0.875rem;
    margin: 0;
    color: var(--light-gray, #6b7280);
  }

  /* Course cards grid */
  .home-page .course-card {
    padding: 0.75rem;
  }
  .home-page .course-card-label {
    font-size: 0.8rem;
  }
}

@media (max-width: 575px) {
  .hero-section .hero-title {
    font-size: 1.5rem;
  }
  .home-page .section-title {
    font-size: 1.35rem;
  }
  .home-page .col-6.col-md-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .home-page .section-languages-offer .language-slider-wrapper--home-languages .slider-nav {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
  }
  .home-page .section-languages-offer .language-item {
    padding: 1.1rem 0.85rem;
  }
  .home-page .section-languages-offer .section-title {
    font-size: 1.3rem;
    line-height: 1.3;
    padding: 0 0.25rem;
  }
  .home-page .section-languages-offer .section-subtitle {
    padding: 0 0.5rem;
  }
}

@media (max-width: 399px) {
  .home-page .section-languages-offer .language-slider-wrapper--home-languages .slider-nav {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
  }
}

/* Languages slider: desktop uses overlay nav + scroll on inner track (viewport is pass-through) */
@media (min-width: 768px) {
  .home-page .section-languages-offer .language-slider-wrapper--home-languages {
    display: block;
    padding: 0 3rem;
    margin-top: 1.5rem;
  }
  .home-page .section-languages-offer .language-slider-wrapper--home-languages .slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }
  .home-page .section-languages-offer .language-slider-wrapper--home-languages .slider-nav.prev {
    left: 0;
  }
  .home-page .section-languages-offer .language-slider-wrapper--home-languages .slider-nav.next {
    right: 0;
  }
  .home-page .section-languages-offer .language-slider-viewport {
    display: block;
    width: 100%;
    flex: none;
    min-width: 0;
    overflow: visible;
    scroll-snap-type: none;
    -webkit-overflow-scrolling: auto;
  }
  .home-page .section-languages-offer .language-slider-wrapper--home-languages .language-slider {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding: 1rem 0;
  }
  .home-page .section-languages-offer .language-item {
    flex: 0 0 auto;
    width: auto;
    min-width: 150px;
    max-width: none;
    scroll-snap-align: start;
    display: block;
    text-align: center;
    flex-direction: unset;
    align-items: unset;
    gap: unset;
  }
  .home-page .section-languages-offer .language-item__body {
    display: contents;
  }
  .home-page .section-languages-offer .language-item .flag.flag-img,
  .home-page .section-languages-offer .language-item .flag.language-initials {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0.5rem;
  }
  .home-page .section-languages-offer .language-item h4 {
    margin-bottom: 0.25rem;
  }
}
