/*=========================================================
  RESPONSIVE FIX — Green Home School
  Single file for 90%, 100%, and 110% zoom
=========================================================*/

/* ── 1. CONTAINER WIDTH ──────────────────────────────── */
@media (min-width: 1200px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl,
  .container-xxl {
    max-width: 1200px;
    padding-left: 15px;
    padding-right: 15px;
  }
}
@media (min-width: 1400px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl,
  .container-xxl {
    max-width: 1320px;
    padding-left: 15px;
    padding-right: 15px;
  }
}
.container-style4 {
  max-width: 1320px;
  width: 100%;
  padding: 0 15px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* ── 2. NO HORIZONTAL SCROLL ────────────────────────── */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* ── 3. GUTTER FIX ──────────────────────────────────── */
@media (min-width: 1200px) and (max-width: 1399px) {
  [class*="gx-50"],
  [class*="gx-60"],
  [class*="gx-70"],
  [class*="gx-80"] {
    --bs-gutter-x: 30px;
  }
}

/* ── 4. IMAGES FLUID ────────────────────────────────── */
img {
  max-width: 100%;
  height: auto;
}

/* ── 5. VIDEO BANNER ────────────────────────────────── */
.main-slider.style1 {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.vs-header.header-layout2 {
  position: relative !important;
}
.main-slider.style1 video {
  width: 100% !important;
  height: auto !important;
  display: block;
  margin-top: 0 !important;
  object-fit: contain;
}

/* ── 6. IMAGE BOXES ─────────────────────────────────── */
.img-box1, .img-box2, .img-box3 {
  max-width: 100%;
  overflow: hidden;
}

/* ── 7. CAROUSEL & SLICK ────────────────────────────── */
.vs-carousel,
.slick-list,
.slick-track {
  max-width: 100%;
}
.vs-carousel {
  overflow: hidden;
}

/* ── 8. DECORATIVE ELEMENTS ─────────────────────────── */
.ele1, .ele2 { display: none; }
@media (min-width: 1600px) {
  .ele1, .ele2 { display: block; }
}

/* ── 9. CARDS ───────────────────────────────────────── */
.service-style1,
.class-style1,
.feature-box5,
.category-style1 {
  min-width: 0;
}

/* ── 9b. MOTTO/MISSION/VISION 3-card fix ────────────── */
.vs-carousel .service-style1 {
  width: 33.333% !important;
  flex: 0 0 33.333% !important;
  max-width: 33.333% !important;
}
@media (max-width: 991px) {
  .vs-carousel .service-style1 {
    width: 50% !important;
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }
}
@media (max-width: 575px) {
  .vs-carousel .service-style1 {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}
.vs-carousel .slick-track {
  width: 100% !important;
  display: flex !important;
}
.vs-carousel .slick-slide { height: auto; }

/* ── 10. OTHER SECTIONS ─────────────────────────────── */
.feature-style5 { width: 100%; overflow: hidden; }
section,
.space, .space-top, .space-bottom,
.space-extra, .space-extra-bottom {
  max-width: 100%;
  overflow-x: hidden;
}
div[data-bg-src] { width: 100%; overflow: hidden; }
.table-style1 { width: 100%; max-width: 100%; }
.row { max-width: 100%; }

/* ── 11. SLIDER FLUID ───────────────────────────────── */
.main-slider,
.main-slider.style1,
#layerslider,
.ls-wp-container {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}
.main-slider .ls-slide,
.main-slider .ls-layer {
  max-width: 100%;
}

/* ══════════════════════════════════════════════════════
   110% ZOOM NAV FIX
   
   Your screen is 1536px wide.
   110% zoom on 1536px = ~1396px effective viewport.
   So we target max-width: 1420px to catch 110% zoom
   without affecting 100% zoom (1536px viewport).
   ══════════════════════════════════════════════════════ */
@media (min-width: 992px) and (max-width: 1420px) {

  /* Force nav to single line — no wrapping */
  .main-menu.menu-style2 ul {
    display: flex !important;
    flex-wrap: nowrap !important;
  }

  .main-menu.menu-style2 ul > li > a {
    font-size: 16px !important;
    padding: 0 14px !important;
    white-space: nowrap !important;
  }

  /* Shrink header elements */
  .header-logo img {
    max-height: 60px !important;
    width: auto !important;
  }

  .header-links.style3 ul li a {
    font-size: 14px !important;
  }

  .vs-header .vs-btn {
    padding: 8px 14px !important;
    font-size: 13px !important;
  }

  /* Kill the white gap — remove all extra spacing */
  .vs-header {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }

  .menu-area .row {
    flex-wrap: nowrap !important;
  }

  .vs-header .header-top {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }

}
