/**
 * Home page (index.html) mobile / responsive layout only.
 * Scoped to .page-home — does not affect other pages.
 */

/* ------------------------------------------------------------------ */
/* Base: full width, no horizontal bleed                               */
/* ------------------------------------------------------------------ */
.page-home {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  box-sizing: border-box;
}

.page-home *,
.page-home *::before,
.page-home *::after {
  box-sizing: border-box;
}

.page-home .site-content,
.page-home .content-wrapper,
.page-home .main-banner,
.page-home .main-banner .banner-inner {
  width: 100%;
  max-width: 100%;
}

.page-home img,
.page-home video,
.page-home iframe,
.page-home svg {
  max-width: 100%;
  height: auto;
}

.page-home .container,
.page-home .container-fluid {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.page-home .site-content > .container-fluid {
  padding-left: 0;
  padding-right: 0;
  overflow: hidden;
}

.page-home .item-efftect {
  max-width: 100%;
  overflow: hidden;
}

/* ------------------------------------------------------------------ */
/* Hero / main banner                                                  */
/* ------------------------------------------------------------------ */
@media (max-width: 991.98px) {
  .page-home .main-banner-1 {
    height: auto;
    min-height: 0;
    padding-bottom: 3rem;
    overflow: hidden;
  }

  .page-home .main-banner-1 .banner-inner {
    overflow: hidden;
    position: relative;
  }

  .page-home .main-banner-1 .banner-bg-one {
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
  }

  .page-home .main-banner-1 .banner-title {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 0.5rem;
    padding: 0 1rem;
    text-align: center;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    font-size: clamp(3.25rem, 20vw, 7rem);
    line-height: 1.05;
    pointer-events: none;
  }

  .page-home .main-banner-1 .banner-inner > .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .page-home .main-banner-1 .row {
    margin-left: 0;
    margin-right: 0;
    justify-content: center;
  }

  .page-home .main-banner-1 .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
    margin-left: 0 !important;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .page-home .main-banner-1 .rotate-img {
    display: block;
    width: min(100%, 320px);
    max-width: 100%;
    height: auto;
    margin: 0 auto 1rem;
    margin-left: auto !important;
    margin-right: auto;
    transform: none !important;
  }

  .page-home .main-banner-1 .banner-content {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    text-align: center;
  }

  .page-home .main-banner-1 .banner-content h2 {
    text-align: center;
    font-size: clamp(1.35rem, 5vw, 2rem);
    line-height: 1.25;
    margin-bottom: 1rem;
  }

  .page-home .main-banner-1 .banner-content p {
    text-align: center;
    font-size: clamp(0.95rem, 3.5vw, 1.125rem);
    line-height: 1.6;
  }

  .page-home .main-banner-1 .banner-content .d-flex {
    align-items: center !important;
    width: 100%;
  }

  .page-home .main-banner-1 .banner-content .btn,
  .page-home .main-banner-1 .banner-content .enquire-now-btn {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 767.98px) {
  .page-home .main-banner-1 {
    padding-top: calc(var(--navbar-height, 80px) + 2.5rem) !important;
    padding-bottom: 2.5rem;
  }

  .page-home .main-banner-1 .banner-title {
    font-size: clamp(2.75rem, 18vw, 5.5rem);
    line-height: 1.05;
  }
}

@media (max-width: 479.98px) {
  .page-home .main-banner-1 .banner-title {
    font-size: clamp(2.5rem, 16vw, 4.25rem);
  }

  .page-home .main-banner-1 .rotate-img {
    width: min(100%, 260px);
  }
}

/* ------------------------------------------------------------------ */
/* Sections: spacing, alignment, typography                            */
/* ------------------------------------------------------------------ */
@media (max-width: 767.98px) {
  .page-home .content-wrapper section.space-pt,
  .page-home .content-wrapper section.space-ptb,
  .page-home .content-wrapper .space-medium-ptb {
    padding-left: 0;
    padding-right: 0;
  }

  .page-home .content-wrapper .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .page-home .section-title,
  .page-home .section-title .title {
    text-align: center;
  }

  .page-home .section-title .title {
    width: 100% !important;
    max-width: 100%;
  }

  .page-home .space-pt .row.justify-content-between > [class*="col-"] {
    margin-left: 0 !important;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .page-home .space-pt .ps-lg-3,
  .page-home .space-pt .ps-lg-5,
  .page-home .space-pt .ms-sm-5 {
    padding-left: 0 !important;
    margin-left: 0 !important;
  }

  .page-home .space-pt p span[style*="font-size: 50px"] {
    font-size: clamp(1.35rem, 6vw, 2rem) !important;
    line-height: 1.2 !important;
    display: inline-block;
    max-width: 100%;
  }

  .page-home .space-pt .row .col-sm-4,
  .page-home .space-pt .row .col-sm-8 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .page-home .space-pt .d-flex.justify-content-center {
    justify-content: center !important;
    width: 100%;
  }

  .page-home .space-pt .btn-effect {
    margin-left: auto;
    margin-right: auto;
  }

  .page-home .space-pt .counter {
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .page-home .col-lg-5 .img-fluid.ps-lg-5 {
    padding-left: 0 !important;
    margin-top: 1.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .page-home .ps-xxl-5,
  .page-home .ms-md-5 {
    padding-left: 0 !important;
    margin-left: 0 !important;
  }

  .page-home .sticky-top {
    position: relative !important;
    top: auto !important;
  }

  .page-home .service-top-space {
    margin-top: 0;
  }

  .page-home .marquee-wrapper {
    max-width: 100%;
    overflow: hidden;
  }

  .page-home .program2-video-testimonials .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .page-home .program2-video-testimonials [style*="max-width: 600px"] {
    max-width: 100% !important;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

@media (max-width: 479.98px) {
  .page-home .content-wrapper .container {
    padding-left: 0.875rem;
    padding-right: 0.875rem;
  }

  .page-home .main-banner-1 .banner-content h2 br {
    display: none;
  }
}
