/* ==========================================================
   SITE.CSS — TLC Montessori Clone
   ========================================================== */

/* ── Reset / Base ─────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-size: 16px;
  color: #292929;
  font-weight: 400;
  background: #ffffff;
  /* font-family: var(--font-body, 'Dosis', sans-serif); */
  overflow-x: hidden;
}

body.page-home {
  background-image: url('https://www.tlcmontessoripreschool.co.in/wp-content/uploads/2019/04/back.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

a {
  text-decoration: none;
  cursor: pointer;
  font-family: var(--font-primary, 'Bubblegum Sans', cursive);
  color: #333;
}

a:hover,
a:focus,
a:visited {
  text-decoration: none;
  outline: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  position: relative;
  font-family: var(--font-primary, 'Bubblegum Sans', cursive);
  margin: 0;
  background: none;
  color: #232323;
}

p {
  position: relative;
  font-family: var(--font-body, 'Dosis', sans-serif);
  line-height: 28px;
  color: #888;
  margin: 0;
  font-size: 20px;
}

ul,
li {
  list-style: none;
  padding: 0;
  margin: 0;
}

input,
button,
select,
textarea {
  font-family: var(--font-body, 'Dosis', sans-serif);
}

/* ── Preloader ────────────────────────────────────────────── */
.preloader {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  background-color: #fff;
  background-position: center center;
  background-repeat: no-repeat;
}

/* ── Container override (Bootstrap @1200px) ─────────────── */
@media (min-width: 1200px) {
  .container {
    padding: 0;
  }
}

/* ── HEADER ─────────────────────────────────────────────── */
.header-top {
  background: #538dcc;
  height: 90px;
}

/* Remove only from home not from other page */
.page-home .header-top {
  display: none !important;
}



.header-top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.header {
  background: transparent;
  position: fixed;
  top: 90px;
  /* Push blue header-top out of view, only yellow nav sticks */
  left: 0;
  width: 100%;
  z-index: 9999;
  background: transparent;
}

body:not(.page-home) .header {
  background: transparent;
}

/* ── Header behavior is now global (Blue scrolls, Nav sticks) ── */
/* No page-specific overrides needed for fixed/absolute */

.main-header {
  position: sticky;
  top: 0;
  width: 100%;
  padding-top: 15px;
  z-index: 9999;
  background: transparent;
  text-align: center;
  margin-top: -60px;
  /* Overlap blue bar in the flow */
}

.header_cnt_info {
  width: 85%;
  margin: 0 auto;
  background-color: transparent;
  /* Changed from solid yellow to handle ribbon transparency */
  display: inline-block;
  position: relative;
  min-height: 52px;
  /* box-shadow: 0 3px 0px rgba(0, 0, 0, 0.15); */
  border-radius: 4px;
}

.header_cnt_info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 150px;
  /* Leave space for the Admission ribbon transparency */
  bottom: 0;
  background-color: var(--color-primary);
  border-radius: 4px 0 0 4px;
  z-index: -1;
}

/* ── LOGO ────────────────────────────────────────────────── */
.main-header .logo {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 0 0 10px;
  z-index: 9999;
  width: 110px;
  /* Slightly larger to match the circular logo scale */
  transition: none;
}

.main-header .logo img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── NAV LINKS ───────────────────────────────────────────── */
.nav-outer {
  position: relative;
  float: right;
  width: calc(100% - 125px);
  /* Leave space for logo */
  padding-left: 0;
}

.mainmenu-area {
  position: relative;
}

.mainmenu-area .navbar {
  position: relative;
  margin-bottom: 0;
  border: none;
  background: transparent;
  border-radius: 0;
  min-height: 0;
}

.mainmenu-area .navbar-header {
  display: none;
}

.navbar .navbar-collapse {
  padding: 0;
  border: none;
  box-shadow: none;
  display: flex;
  justify-content: flex-start;
  /* Start from the left after logo space */
}

.navbar .navbar-collapse>ul {
  padding: 0;
  margin: 0;
  display: flex;
  list-style: none;
  position: relative;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  gap: 3px;
  /* Remove gap for seamless bar look */
}

.navbar .navbar-collapse>ul>li {
  display: block;
  position: relative;
  margin: 0;
  flex: 1;
  /* Make all items equal width */
  max-width: 140px;
  /* Prevent them from becoming too wide on large screens */
}

.navbar .navbar-collapse>ul>li>a {
  display: flex;
  /* Use flex for centering */
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 100;
  color: #646464;
  font-family: var(--font-primary, "ARCENA", sans-serif);
  text-transform: uppercase;
  padding: 0 10px;
  /* Vertical padding removed as height is fixed */
  margin: 0;
  height: 52px;
  /* Match container height */
  background: linear-gradient(to right, var(--color-primary-light) 0%, var(--color-primary) 51%, var(--color-primary-light) 100%);
  border-right: 1px solid rgba(0, 0, 0, 0.05);
  white-space: nowrap;
  text-align: center;
}

.navbar .navbar-collapse>ul>li:first-child>a {
  padding-left: 10px;
}

.navbar .navbar-collapse>ul>li:hover>a,
.navbar .navbar-collapse>ul>li.current-menu-item>a {
  color: #fff;
  background: var(--color-primary-dark);
}

/* "Admission" ribbon button */
.navbar .navbar-collapse>ul>li:last-child {
  background-image: url('https://www.tlcmontessoripreschool.co.in/wp-content/themes/tlc/images/background/menu_back.png');
  background-size: 100% 100%;
  padding: 0;
  margin-left: auto;
  /* Push to the far right */
  position: relative;
  height: 52px;
  display: flex;
  align-items: center;
  z-index: 10;
  border-right: none;
  flex: 0 0 auto;
  /* Admission should not grow like other items */
  max-width: none;
  background-color: transparent !important;
}

.navbar .navbar-collapse>ul>li:last-child>a {
  background: transparent !important;
  color: #fff;
  padding: 0 35px 0 25px;
  min-width: 140px;
  font-family: var(--font-primary, "ARCENA", sans-serif);
  font-weight: 700;
  border-right: none;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin-right: 10px;
}

.navbar .navbar-collapse>ul>li:last-child>a:hover {
  background: transparent !important;
  color: #fff;
  opacity: 0.9;
}

/* Remove separator from item before Admission */
.navbar .navbar-collapse>ul>li:nth-last-child(2)>a {
  border-right: none;
}

.navbar .navbar-collapse>ul>li:last-child>a::after {
  display: none;
}

/* ── DROPDOWN ────────────────────────────────────────────── */
.navbar .navbar-collapse>ul>li .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: transparent;
  /* Changed to transparent to show gap */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  z-index: 99999;
  display: none;
  padding: 0;
  list-style: none;
  /* Use flex for gaps */
  flex-direction: column;
  gap: 2px;
  padding-top: 2px;
}

.navbar .navbar-collapse>ul>li:hover>.sub-menu {
  display: flex;
}

.navbar .navbar-collapse>ul>li .sub-menu li {
  width: 100%;
}

.navbar .navbar-collapse>ul>li .sub-menu li a {
  display: block;
  padding: 12px 20px;
  font-family: var(--font-primary, "ARCENA", sans-serif);
  font-size: 15px;
  color: var(--color-primary-dark);
  font-weight: 100;
  background: color-mix(in srgb, var(--color-primary) 15%, var(--color-bg-body, #ffffff));
  transition: all 200ms ease;
  white-space: nowrap;
  border: none;
}

.navbar .navbar-collapse>ul>li .sub-menu li a:hover,
.navbar .navbar-collapse>ul>li .sub-menu li.current-menu-item a {
  background: var(--color-primary-dark);
  color: #fff;
  padding-left: 25px;
}

/* ── MOBILE TOGGLE ───────────────────────────────────────── */
.mainmenu-area .navbar-header .navbar-toggle {
  margin: 10px 5px;
  padding: 8px 10px;
  border: 2px solid var(--color-primary-dark);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}

.mainmenu-area .navbar-toggle .icon-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #333;
  margin: 4px 0;
  border-radius: 1px;
}

/* ── HERO / rev_slider ────────────────────────────────────── */
.rev_slider_wrapper {
  height: 520px !important;
  position: relative;
  overflow: visible;
  z-index: 1;
  margin-top: -105px !important;
}

.rev_slider {
  height: 620px !important;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  position: relative;
  overflow: visible;
}

.rev_slider .container {
  height: 100%;
}

.rev_slider .row.margin_top {
  height: 100%;
  display: flex;
  align-items: center;
  padding-top: 0;
  margin-left: 0;
  margin-right: 0;
}

.rev_slider .row.margin_top>[class*="col-"] {
  float: none;
}

.rev_slider .row.margin_top .col-md-4 {
  display: flex;
  align-items: center;
}

.rev_slider .row.margin_top .col-md-8 {
  align-self: center;
}

.rev_slider h2 {
  font-family: 'Bubblegum Sans', cursive;
  font-size: 42px;
  line-height: 52px;
  color: #f6f5f5;
  font-weight: normal;
  background: transparent;
  padding: 10px 25px;
  display: inline-block;
  margin-top: 0;
  margin-top: 30%;
  margin-left: 10px;
}

@media (max-width: 991px) {
  .rev_slider_wrapper {
    height: auto !important;
    margin-top: 0 !important;
  }

  .rev_slider {
    height: auto !important;
    min-height: 350px;
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .rev_slider .row.margin_top {
    flex-direction: column;
    text-align: center;
  }

  .rev_slider h2 {
    margin: 40px 0 10px !important;
    font-size: 24px;
    line-height: 30px;
    text-align: center;
    display: block;
    width: 100%;
  }
  
  .video-frame {
    margin-top: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .frame-overlay {
    width: 100% !important;
    max-width: 320px;
  }

  .video-frame-con .video-size {
    width: 75% !important;
    height: auto !important;
    aspect-ratio: 16/9;
    top: 10%;
    left: 12.5%;
  }

  .cloud {
    top: 30px !important;
    margin-bottom: -10px;
  }
}

/* ── VIDEO FRAME (desktop) ───────────────────────────────── */
.video-frame {
  display: block;
  margin-top: 200px;
}

.mobile-device {
  display: none;
}

.video-frame-con {
  position: relative;
  top: auto;
  display: inline-block;
  overflow: visible;
  vertical-align: top;
}

.frame-overlay {
  display: block;
  width: 680px;
  height: auto;
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.video-frame-con .video-size {
  position: absolute;
  top: 60px;
  left: 101px;
  width: 509px;
  height: 285px;
  object-fit: cover;
  z-index: 1;
  display: block;
}

.mobile-device .video-size {
  width: 100%;
  height: 265px;
  object-fit: cover;
  display: block;
  position: static;
}

/* ── VISION MISSION — Who We Are ─────────────────────────── */
.testimonials_block {
  background: url(../images/pattern-dots.jpg) repeat;
  background-size: 14px;
}

/* ── VISION MISSION — Who We Are ─────────────────────────── */
.vision_mission {
  width: 100%;
  padding: 150px 0 0;
  background: url(https://www.tlcmontessoripreschool.co.in/wp-content/themes/tlc/images/pattern2.jpg) repeat;
  background-size: 10px;
  background-color: var(--color-primary);
  margin: 0;
  height: 350px;
}
@media screen and (max-width: 991px) {
  .vision_mission {
    height: auto;
    padding: 40px 15px;
  }
}

@media screen and (max-width: 768px) {
  .vision_mission {
    height: auto;
    padding: 30px 15px;
  }
}
  
.cloud {
  display: none;
}

.mission_title {
  width: 100%;
  margin: auto;
  padding-top: 0;
}

.mission_title h2 {
  text-align: center;
  font-size: 32px;
  color: #1faceb;
  /* Matching the blue in the screenshot */
  padding: 8px 0;
  font-family: 'Bubblegum Sans', cursive;
}

.mission_title h2 span {
  color: #1faceb;
}

.mission_info {
  width: 90%;
  margin: 0 auto;
  text-align: center;
  padding: 0 0 20px;
}

.mission_info p {
  font-size: 16px !important;
  /* Slightly smaller to match look */
  color: #333 !important;
  line-height: 24px !important;
  margin-bottom: 8px !important;
  text-align: center !important;
  font-family: 'Dosis', sans-serif !important;
  font-weight: 400 !important;
}

.mission_info a {
  font-family: 'Bubblegum Sans', cursive;
  font-size: 14px;
  color: #333;
  /* Blue link */
  display: block;
  text-align: center;
  margin-top: 5px;
  transition: color 0.3s ease;

}

.mission_info a:hover {
  color: #337ab7;
}

/* ── LITTLE TROOPERS TITLE BAR ───────────────────────────── */
.little {
  width: 100%;
  background-color: var(--color-primary);
  padding: 10px 0;
  margin-bottom: 0;
  /* Removed margin to match screenshot */
  border-top: none;
}

.little_title {
  text-align: center;
}

.little_title h2 {
  font-size: 30px;
  color: #2693DF;
  font-family: 'Bubblegum Sans', cursive;
  margin: 0;
  text-transform: capitalize;
}

/* ── LITTLE TROOPERS GRID (#yt_maintop) ───────────────────── */
#yt_maintop {
  background: #fff;
  padding: 78px 0 60px;
  position: relative;
  z-index: 2;
}

#yt_maintop::before {
  content: "";
  height: 1px;
  width: 100%;
  position: absolute;
  bottom: 100%;
  left: 0;
  background: var(--color-primary);
}

#yt_maintop::after {
  content: "";
  height: 1px;
  width: 100%;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-primary);
}

.teacher-edu [class*="col-"].teacher_item {
  margin-bottom: 30px;
  position: relative;
  padding-left: 5px;
  padding-right: 5px;
}

#yt_maintop .teacher-edu .teacher_item .teacher_item {
  text-align: center;
  padding: 25px 20px 45px;
  position: relative;
  background: url('../images/yellow.png') no-repeat center;
  background-size: 100% 100%;
  height: 250px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#yt_maintop .teacher-edu .teacher_item .teacher_item:before,
#yt_maintop .teacher-edu .teacher_item .teacher_item:after {
  display: none;
}

#yt_maintop .teacher-edu .teacher_item .main-item:before {
  display: none;
}

#yt_maintop .teacher-edu .teacher_item .main-item {
  position: relative;
  width: 100%;
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

#yt_maintop .teacher-edu .teacher_item .main-item img {
  width: 48px;
  /* Slightly larger icon */
  height: auto;
  margin: 0 auto 15px;
  display: block;
}

#yt_maintop .teacher-edu .teacher_item .main-item h3.title {
  font-size: 24px;
  color: #1faceb;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  font-family: 'Bubblegum Sans', cursive;
}

#yt_maintop .teacher-edu .teacher_item .main-item h4 {
  display: none;
}

#yt_maintop .teacher-edu .teacher_item .main-item a {
  background: var(--color-primary);
  padding: 8px 18px;
  color: #fff;
  text-transform: uppercase;
  border-radius: 8px;
  display: inline-block;
  font-size: 13px;
  font-family: 'Bubblegum Sans', cursive;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#yt_maintop .teacher-edu .teacher_item .main-item a:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

/* Day Care & Infant Care — blue blob */
#yt_maintop .teacher-edu .teacher_item_last .teacher_item {
  text-align: center;
  padding: 25px 20px 45px;
  position: relative;
  background: url('../images/blue-bg.png') no-repeat center;
  background-size: 100% 100%;
  height: 250px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#yt_maintop .teacher-edu .teacher_item_last .teacher_item:before,
#yt_maintop .teacher-edu .teacher_item_last .teacher_item:after {
  display: none;
}

#yt_maintop .teacher-edu .teacher_item_last .main-item h3.title,
#yt_maintop .teacher-edu .teacher_item_last .main-item p {
  color: #fff;
}

#yt_maintop .teacher-edu .teacher_item_last .main-item h4 {
  color: #F3A804;
}

#yt_maintop .teacher-edu .teacher_item_last .main-item img {
  filter: brightness(0) invert(1);
}

/* ── ABOUT / CARE CREW ───────────────────────────────────── */
.about {
  position: relative;
  padding: 44px 0 0;
  background: #fff;
  border-top: 1px solid var(--color-primary);
}

.about .section-title {
  padding-top: 14px;
}

.about .section-title h2 {
  font-size: 32px;
  color: #2693df;
  margin-bottom: 12px;
  text-align: center;
  font-family: 'Bubblegum Sans', cursive;
}

.about .post-content .text {
  margin-bottom: 10px;
}

.about .post-content .text p {
  font-size: 17px;
  color: #888;
  line-height: 28px;
  text-align: left;
}

@media screen and (max-width:991px) {
  .about .post-content .text p {
    text-align: center;
  }
}

.about .post-content .link {
  padding-top: 12px;
}

.about .post-content .link a {
  position: relative;
  background-color: var(--color-primary-dark);
  color: #ffffff;
  font-size: 18px;
  padding: 10px 26px;
  border: 1px solid var(--color-primary-dark);
  margin-right: 20px;
  border-radius: 5px;
  font-family: 'Bubblegum Sans', cursive;
  transition: all 0.5s ease;
  display: inline-block;
}

.about .post-content .link a:hover {
  background-color: transparent;
  color: var(--color-primary-dark);
}

.about .img-box,
.about figure.img-box {
  position: relative;
  margin: 0;
}

.about .img-box img,
.about figure.img-box img {
  max-width: 100%;
  display: block;
}

/* ── TRUSTED SCHOOL (#crew) ──────────────────────────────── */
#crew {
  background: #fff;
  padding: 40px 0;
  border-top: none;
}

#crew .section-title h2 {
  font-size: 28px;
  color: #2693df;
  text-align: center;
  margin-bottom: 12px;
  font-family: 'Bubblegum Sans', cursive;
}

#crew .post-content .text p {
  text-align: left;
  font-size: 20px;
  line-height: 28px;
  color: #888;
}

/* ── GALLERY SECTION ─────────────────────────────────────── */
.gallery_section {
  padding-top: 0;
}

.students-join1-area {
  width: 100%;
  overflow: hidden;
  background: #fff;
}

.gallery_info {
  width: 100%;
  display: flex;
  align-items: center;
  background: #0285d5;
  padding: 14px 20px;
  margin-bottom: 10px;
}

.gallery_info .col-sm-3 {
  flex: 0 0 auto;
  padding-right: 20px;
}

.gallery_info .col-sm-9 {
  flex: 1;
  display: flex;
  align-items: center;
}

.gallery_info h2 {
  font-size: 30px;
  color: #fff;
  font-family: 'Bubblegum Sans', cursive;
  padding: 0;
  margin: 0;
  white-space: nowrap;
  background: none;
}

.gallery_info ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  margin: 0;
  list-style: none;
  gap: 20px 40px;
  /* Reduced gap to prevent messy wrapping */
}

.gallery_info ul li {
  display: inline-block;
  padding: 0 10px;
}

.gallery_info ul li a {
  font-family: 'Bubblegum Sans', cursive;
  font-size: 16px;
  color: #fff;
  background: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s;
}

.gallery_info ul li a i {
  font-size: 10px;
  color: #fff;
}

.gallery_info ul li a:hover,
.gallery_info ul li a.is-active {
  color: var(--color-primary);
  background: none;
}

@media (max-width: 767px) {
  .gallery_info {
    flex-direction: column;
    align-items: center;
    padding: 20px;
    text-align: center;
  }

  .gallery_info h2 {
    margin-bottom: 15px;
    text-align: center;
    width: 100%;
  }

  .gallery_info ul {
    justify-content:space-between;
    width: 100%;
    gap: 10px 15px;
  }
}

.gallery_info ul li a.is-active i {
  color: var(--color-primary);
}

/* ── IMAGE GRID ──────────────────────────────────────────── */
.ri-grid {
  padding: 0;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  /* Clear floats */
}

.ri-grid-list {
  display: block;
  /* Required for Isotope */
  list-style: none;
  padding: 0;
  margin: 0;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.ri-grid-list::after {
  content: "";
  display: table;
  clear: both;
}

.ri-grid-list li {
  width: 25%;
  height: 220px;
  overflow: hidden;
  float: left;
  padding: 1px;
  will-change: transform, opacity;
  transform-style: preserve-3d;
  background: #0285d5;
  /* Blue background visible during animation */
}

.ri-grid-list li a {
  display: block;
  height: 100%;
}

.ri-grid-list li a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.ri-grid-list li:hover img {
  transform: scale(1.08);
}

/* ── FOLLOWING / VIDEOS ──────────────────────────────────── */
.following {
  position: relative;
  background: #fff;
  padding: 60px 0 30px;
  /* Increased padding */
  clear: both;
  /* Ensure it starts below floated gallery */
  z-index: 5;
}

.vgallery ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.vgallery ul li {
  position: relative;
  flex: 1 1 300px;
  min-width: 300px;
  margin-bottom: 20px;
  z-index: 5;
}

.vgallery ul li.learn-link-li {
  flex: 0 0 200px;
  min-width: 0;
  margin-bottom: 20px;
}

.video-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  /* 16:9 Aspect Ratio */
  border-radius: 12px;
  /* Smoother corners */
  overflow: hidden;
  background: #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  /* Premium feel */
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  pointer-events: auto !important;
  z-index: 10;
}

/* ── Video wrap — positioning context for volume overlay ─────── */
.video-wrap {
  position: relative;
}

/* ── Volume overlay button (top-right, expands on hover/tap) ─── */
.vid-volume-control {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 25;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  display: flex;
  align-items: center;
  padding: 3px;
  height: 34px;
  max-width: 34px;
  overflow: hidden;
  transition: max-width 0.28s ease, background 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.vid-volume-control:hover,
.vid-volume-control.active {
  max-width: 160px;
  background: rgba(0, 0, 0, 0.82);
}

.vid-mute-btn {
  background: transparent;
  color: #fff;
  border: none;
  width: 28px;
  height: 28px;
  min-width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  padding: 0;
  outline: none;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.vid-mute-btn:hover { color: #5bc4ff; }

.vid-slider-container {
  width: 0;
  opacity: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0;
  transition: width 0.28s ease, opacity 0.2s ease;
}

.vid-volume-control:hover .vid-slider-container,
.vid-volume-control.active .vid-slider-container {
  width: 90px;
  opacity: 1;
  padding: 0 8px 0 2px;
}

.vid-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  margin: 0;
  padding: 0;
  accent-color: #2693df;
}

.vid-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #2693df;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.vid-volume-slider::-webkit-slider-thumb:hover {
  background: #5bc4ff;
  transform: scale(1.2);
}

.vid-volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: none;
  border-radius: 50%;
  background: #2693df;
  cursor: pointer;
}

.vgallery ul li .following_title {
  padding: 0;
}

.following_title {
  padding: 0;
  text-align: left;
}

.following_title h2 {
  color: #2693df;
  font-size: 26px;
  font-family: 'Bubblegum Sans', cursive;
  line-height: 1.4;
}

.following_title h2 a {
  color: #333333;
  font-family: 'Bubblegum Sans', cursive;
}

.following_title h2 a:hover {
  color: #337ab7;
}

.following_down {
  width: 100%;
  padding: 10px 0;
  background-size: 10px;
}

.following_down_after {
  width: 100%;
  min-height: 10px;
}

/* ── WALKTHROUGH CTA ─────────────────────────────────────── */
.walk_section_wrapper {
  background: #fff;
  position: relative;
  padding-bottom: 120px;
}

.walk_section {
  background: #f5e882;
  height: 150px;
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}

.walk_section_cnt {
  min-height: 164px;
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  width: 70%;
  background: url(https://www.tlcmontessoripreschool.co.in/wp-content/themes/tlc/images/pattern.jpg) repeat;
  background-size: 10px;
  border-radius: 16px;
  padding: 40px 60px 50px;
  text-align: center;
  z-index: 2;
  margin-top: 50px;
}

.walk_section_title h2 {
  font-size: 36px;
  color: #fff;
  font-family: 'Bubblegum Sans', cursive;
  margin-bottom: 8px;
}

.walk_section_title h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--color-primary-dark);
  margin: 8px auto 0;
  border-radius: 2px;
}

.walk_section_info p {
  color: #fff;
  font-size: 17px;
  font-family: 'Dosis', sans-serif;
  margin-top: 16px;
  margin-bottom: 0;
  line-height: 28px;
}

.walk_section_btn {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  white-space: nowrap;
}

.walk_section_btn a {
  display: inline-block;
  background: var(--color-primary-dark);
  color: #fff;
  font-family: 'Bubblegum Sans', cursive;
  font-size: 17px;
  padding: 13px 40px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.walk_section_btn a:hover {
  background: #f6e55e;
}

/* ── Walkthrough Responsive ──────────────────────────────── */
@media (max-width: 767px) {
  .walk_section_wrapper {
    padding-bottom: 100px;
  }

  .walk_section {
    height: auto;
    min-height: 100px;
  }

  .walk_section_cnt {
    width: 95%;
    padding: 40px 20px 60px;
    margin-top: 35px;
    top: 20px;
  }

  .walk_section_title h2 {
    font-size: 28px;
  }

  .walk_section_info p {
    font-size: 16px;
    line-height: 24px;
    margin-top: 10px;
  }

  .walk_section_btn a {
    padding: 12px 25px;
    font-size: 16px;
  }
}

/* ── TESTIMONIALS ────────────────────────────────────────── */
.two-column {
  position: relative;
  padding: 40px 0 0;
  background-color: #fff;
}

.two-column .section-title h2 {
  text-align: center;
  font-size: 28px;
  color: #2693df;
  margin-bottom: 20px;
}

/* ── CENTERED CONTENT TESTIMONIALS DESIGN ─────────────────── */
.testimonials_block {
  background: url(https://www.tlcmontessoripreschool.co.in/wp-content/themes/tlc/images/pattern.jpg) repeat;
  background-size: 14px;
  position: relative;
  padding: 50px 0;
  z-index: 9;
}

/* Ensure testimonials don't hide footer on sub-pages */
body:not(.page-home) .testimonials_block {
  padding-bottom: 0px;
}


.testimonials_block::before {
  content: "";
  width: 100%;
  height: 50px;
  position: absolute;
  background: url(../images/testi-bg.png) no-repeat;
  top: -16px;
  background-size: 100% 46%;
  left: 0;
  z-index: 0;
}

.testimonials_block::after {
  content: "";
  width: 100%;
  height: 50px;
  position: absolute;
  background: url(../images/testi-bg.png) no-repeat;
  bottom: -16px;
  background-size: 100% 46%;
  left: 0;
  z-index: 0;
  transform: rotate(180deg);
}

/* Individual Items (Clouds) */
#customers-testimonials .teacher_item .main-item {
  padding: 80px 50px;
  background: url('../images/white-cloude1.png') no-repeat center;
  background-size: 100% 100%;
  text-align: center;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}



#customers-testimonials .teacher_item .main-item h3.title {
  font-family: 'Bubblegum Sans', cursive;
  font-size: 20px;
  color: #1faceb;
  margin-bottom: 10px;
  line-height: 1.3;
  max-width: 85%;
}

#customers-testimonials .teacher_item .main-item h4 {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
  font-family: 'Dosis', sans-serif;
  font-weight: 600;
}

#customers-testimonials .teacher_item .main-item a {
  background: var(--color-primary);
  padding: 8px 24px;
  color: #fff;
  text-transform: capitalize;
  /* 'More' instead of 'MORE' */
  border-radius: 100px;
  font-family: 'Bubblegum Sans', cursive;
  font-size: 15px;
  display: inline-block;
  transition: all 0.3s;
  text-decoration: none;
}

#customers-testimonials .teacher_item .main-item a:hover {
  background: #f8b54d;
  transform: translateY(-2px);
}

/* Testimonials Carousel Nav Arrows */
#customers-testimonials {
  position: relative;
}

#customers-testimonials .owl-nav {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
}

#customers-testimonials .owl-nav button.owl-prev,
#customers-testimonials .owl-nav button.owl-next {
  pointer-events: auto;
  /* background: #ffca00 !important; */
  color: #fff !important;
  width: 44px;
  height: 44px;
  border-radius: 50% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px !important;
  transition: all 0.3s ease;
  border: 3px solid #fff !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin: 0 -22px;
  /* Pull them outside the container slightly */
}

#customers-testimonials .owl-nav button.owl-prev:hover,
#customers-testimonials .owl-nav button.owl-next:hover {
  background: var(--color-primary-dark) !important;
  transform: scale(1.1);
}

@media (max-width: 767px) {

  #customers-testimonials .owl-nav button.owl-prev,
  #customers-testimonials .owl-nav button.owl-next {
    margin: 0 -10px;
    width: 36px;
    height: 36px;
    font-size: 16px !important;
  }
}

/* ── CONTAINER MISC ──────────────────────────────────────── */
.container-flowid {
  width: 100%;
  overflow: hidden;
  padding: 0 15px;
}

.col-md-3.teacher_item {
  background: none;
  border-radius: 0;
}

/* ── UTILITIES ───────────────────────────────────────────── */
.hidden {
  display: none !important;
}

.p-no {
  padding: 0 !important;
}

.topmargin {
  margin-top: 30px;
}

.single-column {
  float: left;
}

.students-join1-wrapper {
  width: 100%;
}

.students-join1-left {
  padding: 0;
}

.author-banner-bg {
  width: 100%;
}


/* ==========================================================
   FOOTER
   ========================================================== */

/* ── SUB-BANNER (Global) ─────────────────────────────────── */
.sub-banner {
  position: relative;
  min-height: 460px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  overflow: visible;
  /* Allow wavy divider to overlap next section */
  margin-top: 0px !important;
  border-bottom: 1px solid var(--color-primary);
}

.sub-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
  z-index: 1;
}

.sub-banner .container {
  position: relative;
  z-index: 2;
  text-align: right;
}

.sub-banner__title {
  font-family: "ARCENA", "Bubblegum Sans", cursive;
  font-size: 50px;
  color: #fd4700;
  /* Orange title matching reference */
  font-weight: 100;
  margin: 0;
  text-shadow: none;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.sub-banner__breadcrumb {
  display: none !important;
}

.sub-banner__breadcrumb a {
  color: #2693df;
}

.sub-banner__breadcrumb span {
  color: #555;
  font-weight: 500;
}

/* Page specific header overrides (reverted to global standards) */
/* No overrides needed - using common blue top header */

/* Wavy yellow bottom edge — global site-wide standard */
.sub-banner::after {
  display: none;
}

@media only screen and (max-width: 991px) {
  .sub-banner {
    min-height: 250px;
    padding: 110px 0 60px !important;
    text-align: center !important;
    margin-top: 0 !important;
    background-position: center top;
  }

  .sub-banner__overlay {
    background: rgba(0, 0, 0, 0.35) !important;
  }

  .sub-banner .container {
    text-align: center !important;
  }

  .sub-banner__title {
    font-size: 34px !important;
    line-height: 1.1 !important;
    letter-spacing: 1px !important;
    text-align: center !important;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4) !important;
  }
}

/* ── FOOTER MAP HERO ─────────────────────────────────────── */
.footer {
  position: relative;
}

/* ── MAP HERO (iframe background + overlay container) ────── */
.footer_map_hero {
  position: relative;
  overflow: hidden;
  min-height: 748px;
  background: #f5f5f5;
}

.footer_map_hero iframe {
  display: block;
  width: 100%;
  height: 748px;
  position: absolute;
  top: 0;
  left: 0;
  border: 0;
  z-index: 1;
}

/* ── OVERLAY (sits on top of the iframe) ─────────────────── */
.footer_map_overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  /* Centered vertically over the map */
  padding: 40px 0;
  touch-action: pan-x pan-y;
  pointer-events: none;
}

/* Re-enable pointer events for actual content */
.footer_map_overlay_inner {
  pointer-events: auto;
  width: 60%;
  /* Requested 60% width */
  height: 100%;
  /* Requested 90% height */
  max-width: 1140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* Center content packed together */
  padding: 20px;
  /* Requested 20px padding */
  background: rgba(255, 255, 255, 0.95);
  /* Slightly transparent white */
  position: relative;
  z-index: 4;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  margin-left: 10px;
  margin-top: 30px;
}

/* ── VISIT + GENERAL ENQUIRIES ROW ───────────────────────── */
.footer_map_top_row {
  display: flex;
  justify-content: space-around;
  width: 100%;
  margin-bottom: 60px;
  /* Reduced margin */
  gap: 20px;
  /* Reduced gap */
}

.footer_map_col {
  flex: 1;
  text-align: center;
}

.footer_ifo--map h3 {
  font-family: 'Bubblegum Sans', cursive;
  font-size: 20px;
  /* Reduced font size */
  color: #232323;
  text-transform: uppercase;
  margin-bottom: 10px;
  /* Reduced margin */
  font-weight: 400;
  margin-top: 30px;
}

.footer_ifo--map h4 {
  font-family: 'Bubblegum Sans', cursive;
  font-size: 20px;
  /* Reduced font size */
  color: #232323;
  text-transform: uppercase;
  margin: 10px 0 5px;
  /* Reduced margins */
  font-weight: 400;
}

.footer_ifo--map p {
  font-family: 'Dosis', sans-serif;
  font-size: 16px;
  /* Reduced font size */
  color: #666;
  line-height: 1.4;
  margin-bottom: 3px;
}

.footer_ifo--map a {
  display: block;
  font-family: 'Dosis', sans-serif;
  font-size: 16px;
  /* Reduced font size */
  color: #333;
  text-align: center;
  margin-bottom: 3px;
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 600;
}

.footer_ifo--map a:hover {
  color: var(--color-primary-dark);
}

.footer_map_marker {
  width: 100%;
  text-align: center;
  margin: 15px auto 0;
  position: relative;
}

.footer_map_marker img {
  width: 150px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ── CONTACT FORM BOX ────────────────────────────────────── */
.footer_form_overlay {
  width: 100%;
  background: transparent;
}

.footer_form_overlay .row {
  background-color: #e5e1e1;
  display: flex;
  flex-wrap: wrap;
  padding: 25px 30px;
  /* Reduced padding */
  margin: 0;
  width: 100%;
  margin-bottom: 30px;
}

.footer_form_overlay .col-sm-6 {
  flex: 1;
  min-width: 250px;
  padding: 0 15px;
}

/* Field labels */
.footer_form_overlay p {
  font-family: 'Bubblegum Sans', cursive;
  font-size: 14px;
  /* Reduced font size */
  font-weight: 400;
  color: #333;
  margin-bottom: 5px;
  margin-top: 10px;
  /* Reduced margin */
  text-transform: uppercase;
}

.footer_form_overlay .col-sm-6 p:first-child {
  margin-top: 0;
}

/* Text inputs */
.footer_form_overlay input[type="text"],
.footer_form_overlay input[type="email"],
.footer_form_overlay input[type="tel"],
.footer_form_overlay textarea {
  display: block;
  width: 100%;
  border: none;
  border-radius: 0;
  background: #fff;
  font-family: 'Dosis', sans-serif;
  font-size: 16px;
  font-weight: 400;
  /* Reduced font size */
  outline: none;
  padding: 8px 12px;
  /* Reduced padding */
}

.footer_form_overlay input[type="text"],
.footer_form_overlay input[type="email"],
.footer_form_overlay input[type="tel"] {
  height: 38px;
  /* Reduced height */
}

.footer_form_overlay textarea {
  height: 120px;
  min-height: 120px;
  max-height: 120px;
  resize: none;
}

/* Submit button */
.footer_form_overlay input[type="submit"] {
  display: inline-block;
  margin-top: 15px;
  /* Reduced margin */
  padding: 8px 30px;
  /* Reduced padding */
  background: var(--color-primary-dark);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: 'Bubblegum Sans', cursive;
  font-size: 16px;
  /* Reduced font size */
  cursor: pointer;
  transition: all 0.3s ease;
}

.footer_form_overlay input[type="submit"]:hover {
  background: transparent;
  color: var(--color-primary-dark);
  border: 1px solid var(--color-primary-dark);
}

/* ── RESPONSIVE — stack columns on mobile ────────────────── */
@media only screen and (max-width: 991px) {
  .footer_map_overlay_inner {
    width: 90%;
    padding: 30px;
    margin-left: auto;
    margin-right: auto;
  }

  .footer_map_top_row {
    flex-direction: column;
    gap: 20px;
  }

  .footer_form_overlay .row {
    flex-direction: column;
    padding: 20px;
  }

  .footer_form_overlay .col-sm-6 {
    padding: 0;
    width: 100%;
    min-width: 0;
  }

  .footer_form_overlay .col-sm-6+.col-sm-6 {
    margin-top: 20px;
  }
}

@media only screen and (max-width: 767px) {
  .footer_map_hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: visible;
  }

  .footer_map_hero iframe {
    position: relative;
    order: 1;
    height: 300px !important;
  }

  .footer_map_overlay {
    position: relative;
    order: 2;
    inset: auto;
    height: auto;
    display: block;
    background: #fff;
    padding: 0 15px 30px;
    pointer-events: auto;
  }

  .footer_map_overlay_inner {
    width: 100%;
    height: auto;
    margin-left: 0;
    margin-right: 0;
    box-shadow: none;
    padding: 20px;
    background: #fff;
    justify-content: flex-start;
  }

  .footer_form_overlay .row {
    padding: 20px 10px;
  }

}

/* ── COLOURED BAND ABOVE COPYRIGHT ───────────────────────── */
.Copyright_up {
  background: url('https://www.tlcmontessoripreschool.co.in/wp-content/themes/tlc/images/pattern1.jpg') repeat;
  background-size: 9px;
  position: relative;
  height: 60px;


}

.Copyright_up::after {
  background-color: #186da19e;
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;

}

/* ── COPYRIGHT BAR ───────────────────────────────────────── */
.copy_right {
  position: relative;
  width: 100%;
  padding: 20px 0 15px;
  background: url('https://www.tlcmontessoripreschool.co.in/wp-content/themes/tlc/images/pattern1.jpg') repeat;
  background-size: 4px;
}

.copy_right::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 100%;
  height: 30px;
  background: url('https://www.tlcmontessoripreschool.co.in/wp-content/themes/tlc/images/upper-bg.png') repeat-x;
  background-size: 25% auto;
  pointer-events: none;
}

.copy_right p {
  font-family: sans-serif;
  font-size: 13px;
  color: #fff;
  margin: 0;
  line-height: 1.4;
}

.copy_right p a {
  color: #fff;
  font-family: sans-serif;
  text-decoration: none;
}

.copy_right p a:hover {

  color: #d7d481
}

.copy_right .rgt {
  text-align: right;
}

/* ── SOCIAL ICONS ────────────────────────────────────────── */
.socual_link {
  list-style: none;
  padding: 0;
  margin: 0;
}

.socual_link li {
  display: inline-block;
  padding: 0 5px;
}

.socual_link li a {


  font-size: 14px;
  color: #fff;
  width: 25px;
  height: 25px;
  padding-top: 0px;
  border-radius: 5px;
  background: #0F547F;
  display: block;
  text-align: center;
  line-height: 24px;
}

.socual_link li a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--color-primary);
}

/* ── SCROLL-TO-TOP BUTTON ────────────────────────────────── */
.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 35px;
  height: 35px;
  background: #2693df;
  /* Blue from reference */
  border-radius: 6px;
  /* Square with slight rounding */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, background 0.3s, transform 0.3s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 2px solid #fff;
  opacity: 1;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top i {
  color: #fff;
  font-size: 20px;
}

.scroll-to-top:hover {
  background: #0f5681;
  transform: translateY(-3px);
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media only screen and (max-width: 1199px) {
  .navbar .navbar-collapse>ul>li>a {
    padding: 12px 11px;
    font-size: 17px;
  }
}

@media only screen and (max-width: 1100px) {
  .navbar .navbar-collapse>ul>li>a {
    padding: 12px 9px;
    font-size: 16px;
  }
}

@media only screen and (max-width: 992px) {
  .main-header .logo {
    width: 100px;
    margin: -23px 0 0 0;
  }

  .navbar .navbar-collapse>ul>li>a {
    padding: 10px 7px;
    font-size: 16px;
  }

  .mission_info {
    width: 90%;
  }

  .footer_map_top_row {
    gap: 30px;
  }
}

@media only screen and (max-width: 812px) {
  .mobile-device {
    display: block;
  }

  .video-frame {
    display: none;
  }

  .rev_slider h2 {
    font-size: 24px;
    line-height: 32px;
    padding: 20px 15px;
  }
}

@media only screen and (max-width: 768px) {
  /* Little Troopers grid — reduce tall padding on tablet */
  #yt_maintop {
    padding: 40px 0 30px;
  }

  /* Care Crew — stack columns and center on tablet */
  .about .single-column {
    float: none;
    width: 100%;
    padding: 0 15px;
    text-align: center;
  }

  .about .img-box,
  .about figure.img-box {
    margin: 20px auto 0;
    max-width: 360px;
  }

  .gallery_info ul li {
    padding: 6px 12px;
  }

  .gallery_info ul li a {
    font-size: 16px;
    padding: 4px 0;
  }

  .ri-grid-list li {
    width: 50%;
    height: 160px;
    float: left;
    padding: 1px;
  }

  .gallery_info {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
  }

  .gallery_info ul {
    justify-content: space-between;
    width: 100%;
  }
}

@media only screen and (max-width: 991px) {
  .header-top {
    display: none;
  }

  .header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
  }

  .main-header .container {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .header_cnt_info {
    display: block;
    width: 100%;
    min-height: 50px;
    margin: 0;
    background: var(--color-primary);
    border-radius: 0;
  }

  .header_cnt_info::before {
    display: none;
  }

  /* Mobile nav */
  .mainmenu-area .navbar-header {
    display: block;
    min-height: 50px;
  }

  .nav-outer {
    position: static;
    float: none;
    width: 100%;
    padding: 0;
  }

  .navbar .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: calc(100vh - 96px) !important;
    max-height: calc(100dvh - 96px) !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    z-index: 99999;
  }

  .navbar .navbar-collapse.collapse {
    display: none !important;
  }

  .navbar .navbar-collapse.collapse.in {
    display: block !important;
    overflow-y: auto !important;
  }

  .navbar .navbar-collapse>ul {
    flex-direction: column;
    padding: 15px;
    margin: 0;
    background: transparent;
    align-items: stretch;
  }

  .navbar .navbar-collapse>ul>li {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .navbar .navbar-collapse>ul>li>a {
    display: block;
    width: 100%;
    text-align: left;
    padding: 15px 20px !important;
    min-height: 60px;
    height: auto;
    background: #eab92d !important;
    color: #ffffff !important;
    font-family: 'Bubblegum Sans', cursive !important;
    font-size: 20px !important;
    border-bottom: 1px solid #ffffff;
    border-right: none;
    text-transform: none !important;
  }

  .navbar .navbar-collapse>ul>li:hover>a,
  .navbar .navbar-collapse>ul>li.current-menu-item>a {
    background: #f88f01 !important;
  }

  .navbar .navbar-collapse>ul>li:last-child {
    position: static;
    background-image: none;
    height: auto;
    width: 100%;
    display: block;
    margin: 0;
    padding: 0;
    flex: none;
    background-color: transparent !important;
  }

  .navbar .navbar-collapse>ul>li:last-child>a {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 60px;
    height: auto;
    margin: 0;
    padding: 15px 20px !important;
    text-align: left;
    background: #eab92d !important;
  }

  .navbar .navbar-collapse>ul>li:last-child>a:hover {
    background: #f88f01 !important;
  }

  .navbar .navbar-collapse>ul>li:last-child>a::after {
    display: none;
  }

  .navbar .navbar-collapse>ul>li .sub-menu {
    position: static;
    display: block;
    width: 100%;
    box-shadow: none;
    padding: 0;
    border: none;
    gap: 0;
    overflow: visible;
  }

  .navbar .navbar-collapse>ul>li .sub-menu li a {
    background: #eab92d !important;
    color: #ffffff !important;
    text-align: left;
    padding: 12px 20px 12px 28px !important;
    font-family: 'Bubblegum Sans', cursive !important;
    font-size: 18px !important;
    border-bottom: 1px solid #ffffff;
    text-transform: none !important;
  }

  .navbar .navbar-collapse>ul>li .sub-menu li a:hover {
    background: #f88f01 !important;
  }

  .main-header {
    position: relative !important;
    background: var(--color-primary);
    padding: 0;
    margin-top: 0;
  }

  .main-header .logo {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 16px;
    width: 78px;
    margin: 0;
    z-index: 100000;
    float: none;
  }

  .mainmenu-area .navbar-header .navbar-toggle {
    display: block !important;
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    margin: 0;
    border: none;
    padding: 8px 0;
  }

  .mainmenu-area .navbar-toggle .icon-bar {
    background: #ffffff;
    width: 24px;
    height: 2px;
    margin: 4px 0;
  }

  /* Footer map stacks vertically */
  .footer_map_hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: visible;
  }

  .footer_map_hero iframe {
    position: relative;
    order: 1;
    height: 300px !important;
  }

  .footer_map_overlay {
    position: relative;
    order: 2;
    inset: auto;
    display: block;
    height: auto;
    padding-top: 0;
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 30px;
    background: #fff;
    pointer-events: auto;
  }

  .footer_map_overlay_inner {
    height: auto;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    min-width: 0;
    padding: 24px 20px 28px;
    background: #fff;
    box-shadow: none;
    justify-content: flex-start;
  }

  .footer_map_top_row {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .footer_map_col {
    min-width: auto;
    width: 100%;
  }

  /* Form stacks vertically */
  .footer_form_overlay .row {
    flex-direction: column;
    padding: 24px 20px 20px;
    padding: 20px 15px;
  }

  .footer_form_overlay .col-sm-6 {
    width: 100%;
    padding: 0;
  }

  .footer_form_overlay .col-sm-6+.col-sm-6 {
    margin-top: 16px;
  }

  .footer_form_overlay input[type="submit"] {
    width: 100%;
    margin-left: 0;
  }

  /* Copyright */
  .copy_right .col-sm-8,
  .copy_right .col-sm-4 {
    width: 100%;
    float: none;
    text-align: center;
  }

  .copy_right .col-sm-4.rgt {
    text-align: center;
    margin-top: 15px;
  }

  .copy_right p {
    text-align: center;
    margin-bottom: 10px;
  }

  .socual_link {
    display: flex;
    justify-content: center;
    gap: 10px;
  }

  /* Gallery / video */
  .vgallery ul {
    display: block !important;
    width: 100% !important;
    clear: both !important;
  }

  .vgallery ul li,
  .vgallery ul li.learn-link-li {
    display: block !important;
    width: 100% !important;
    float: none !important;
    margin-bottom: 40px !important;
    /* Extra breathing room */
    position: relative !important;
    z-index: 5 !important;
    clear: both !important;
  }

  .vgallery {
    padding: 0 10px !important;
    pointer-events: auto !important;
  }

  .vgallery ul li.learn-link-li {
    pointer-events: auto !important;
    margin-top: 20px !important;
    text-align: center !important;
  }

  .vgallery ul li .following_title {
    text-align: center !important;
  }

  .vgallery .video-container {
    margin-bottom: 10px !important;
    z-index: 10 !important;
  }

  .following_down {
    display: none !important;
    /* Hide potential overlapping spacer on mobile */
  }

  .students-join1-left {
    padding: 0;
  }

  .scroll-to-top {
    bottom: 20px;
    right: 10px;
    z-index: 1000;
  }

  /* Hide navigation arrows that overlap content on mobile */
  .owl-prev,
  .owl-next,
  .slick-prev,
  .slick-next,
  .tp-leftarrow,
  .tp-rightarrow,
  .carousel-control-prev,
  .carousel-control-next {
    display: none !important;
  }
}

@media only screen and (max-width: 740px) {
  .rev_slider h2 {
    font-size: 20px;
  }
}

@media only screen and (max-width: 499px) {
  .rev_slider {
    height: auto !important;
  }

  .rev_slider_wrapper {
    height: auto !important;
  }

  .navbar-toggle {
    position: absolute;
    right: 15px;
    top: 12px;
  }

  .main-header .logo {
    width: 81px;
  }
}

@media only screen and (max-width: 480px) {

  .gallery_info .col-sm-3,
  .gallery_info .col-sm-9 {
    width: 100%;
    float: none;
  }

  .gallery_info ul {
    flex-wrap: wrap;
    padding-left: 0;
    gap: 8px 12px;
    justify-content: space-between;
  }

  .gallery_info ul li {
    padding: 4px 8px;
  }

  .gallery_info ul li a {
    font-size: 14px;
    padding: 4px 0;
  }

  .ri-grid-list li {
    width: 50%;
    height: 160px;
    float: left;
    padding: 1px;
  }
}

/* ── GROUP PAGE (Little Troopers Detailed) ───────────────── */
.page-group main {
  background: #fff;
}

.group-content-area {
  padding: 60px 0;
  position: relative;
}

.group-intro {
  margin-bottom: 60px;
}

.group-intro h2 {
  font-family: 'Bubblegum Sans', cursive;
  font-size: 36px;
  color: #2693df;
  margin-bottom: 15px;
}

.group-intro p {
  font-size: 18px;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
}

.group-program-row {
  margin-bottom: 80px;
  scroll-margin-top: 150px;
  /* Offset for sticky nav */
}

.group-program-row .row {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
}

.group-blob-container {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1.2 / 1;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: url(#trooper-blob);
}

.group-blob-container.yellow-blob {
  background: url('../images/yellow.png') no-repeat center;
  background-size: 100% 100%;
}

.group-blob-container.blue-blob {
  background: url('../images/blue-bg.png') no-repeat center;
  background-size: 100% 100%;
}

.group-blob-inner {
  padding: 20px;
}

.group-prog-icon {
  width: 48px;
  height: auto;
  display: block;
  margin: 0 auto 10px;
}

.blue-blob .group-prog-icon {
  filter: brightness(0) invert(1);
}

.group-prog-title {
  font-family: 'Bubblegum Sans', cursive;
  font-size: 32px;
  /* Slightly larger since no icon */
  margin-bottom: 5px;
  color: #1faceb;
}

.blue-blob .group-prog-title {
  color: #fff;
}

.group-prog-age {
  display: block;
  font-size: 16px;
  color: #888;
  font-weight: 600;
}

.blue-blob .group-prog-age {
  color: #eee;
}

.group-blob-inner {
  padding: 40px 80px;
}

.group-prog-desc {
  padding-left: 30px;
  padding-top: 20px;
  /* Align with top of blob curves */
}

.group-prog-desc p {
  font-size: 17px;
  line-height: 1.8;
  color: #555;
  text-align: justify;
  margin-top: 0;
}

.group-prog-highlight {
  margin-top: 30px;
}

.group-prog-gallery {
  margin-top: 40px;
}

.group-gallery-item {
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.group-gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.group-gallery-item:hover img {
  transform: scale(1.05);
}

.quote-box {
  background: url(https://www.tlcmontessoripreschool.co.in/wp-content/themes/tlc/images/pattern.jpg) repeat;
  background-size: 10px;
  padding: 30px 40px;
  /* Adjusted padding */
  border-radius: 16px;
  color: #fff;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 100%;
  /* Fill the column */
}

.quote-box p {
  font-family: 'Bubblegum Sans', cursive;
  font-size: 20px;
  /* Balanced size */
  margin: 0;
  line-height: 1.4;
  color: #fff;
}

.quote-box a {
  color: #fff;
  text-decoration: underline;
  display: inline-block;
  margin-top: 15px;
  font-family: 'Dosis', sans-serif;
  font-weight: 600;
  transition: opacity 0.3s ease;
}

.quote-box a:hover {
  opacity: 0.8;
  color: var(--color-primary);
}

.group-outro {
  margin-top: 100px;
  padding: 60px 0;
  border-top: 1px solid #eee;
}

.group-outro h2 {
  font-family: 'Bubblegum Sans', cursive;
  font-size: 34px;
  color: #2693df;
  margin-bottom: 25px;
  line-height: 1.3;
}

.group-outro p {
  font-size: 18px;
  line-height: 1.8;
  color: #555;
  max-width: 1000px;
  margin: 0 auto;
}

.quote-box small {
  font-size: 16px;
  opacity: 0.9;
}

@media (max-width: 767px) {
  .group-program-row {
    margin-bottom: 58px;
  }

  .group-program-row .row {
    justify-content: center;
  }

  .group-blob-container {
    width: min(82vw, 280px);
    max-width: none;
    aspect-ratio: 1.2 / 1;
  }

  .group-blob-inner {
    padding: 34px 54px;
  }

  .group-prog-title {
    font-size: 28px !important;
    line-height: 1.05;
  }

  .group-prog-age {
    font-size: 15px;
  }

  #yt_maintop .teacher-edu [class*="col-"].teacher_item {
    display: flex;
    justify-content: center;
  }

  #yt_maintop .teacher-edu .teacher_item .teacher_item,
  #yt_maintop .teacher-edu .teacher_item_last .teacher_item {
    width: min(82vw, 280px);
    min-height: 235px;
    margin: 0 auto;
    padding: 24px 28px;
  }

  .group-prog-desc {
    padding-left: 0;
    margin-top: 30px;
    text-align: center;
  }

  .group-prog-desc p {
    text-align: center;
  }

  .group-prog-highlight {
    margin-top: 20px;
  }

  .quote-box {
    padding: 25px 20px;
  }

  .quote-box p {
    font-size: 18px;
  }
}


/* ── Team Page (The Crew) ────────────────────────────── */
.page-team .sub-banner {
  background-position: center;
  height: 450px;
}

.team-intro-sec {
  padding: 80px 0;
  background: #fff;
}

.team-sec-title {
  font-family: 'Bubblegum Sans', cursive;
  font-size: 38px;
  color: #2693df;
  margin-bottom: 25px;
}

.team-intro-text p {
  font-size: 18px;
  line-height: 1.8;
  color: #555;
}

.team-members-sec {
  padding-bottom: 100px;
}

.member-row {
  margin-bottom: 80px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.member-row.alt {
  background: transparent;
}

.member-photo-wrap {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.member-img-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #eee;
  padding: 5px;
  background: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.member-info {
  padding-left: 0;
}

.member-name {
  font-family: 'Bubblegum Sans', cursive;
  font-size: 32px;
  color: #f37021;
  margin-bottom: 2px;
  line-height: 1.2;
}

.member-role {
  display: block;
  font-family: 'Dosis', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #b58b10;
  text-transform: uppercase;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
}

.member-bio p {
  font-size: 16px;
  line-height: 1.8;
  color: #666;
  text-align: justify;
}

@media (max-width: 767px) {

  .page-team .sub-banner,
  .page-testimonials .sub-banner {
    height: 250px;
  }

  .team-intro-sec {
    padding: 40px 0;
  }

  .member-row {
    margin-bottom: 40px;
  }

  .member-photo-wrap {
    justify-content: center;
  }

  .member-img-circle {
    width: 150px;
    height: 150px;
  }

  .member-info {
    padding-left: 0;
    margin-top: 20px;
    text-align: center;
  }

  .team-sec-title {
    font-size: 34px;
    text-align: center;
  }
}

/* ── Testimonials Page ────────────────────────────────── */
.page-testimonials .sub-banner {
  background-position: center;
  height: 450px;
}

.testi-vertical-list {
  padding-top: 60px;
}

.testi-item-section {
  position: relative;
  padding: 40px 0;
  overflow: hidden;
}

.testi-item-section.bg-blue {
  background: #1faceb url('https://www.tlcmontessoripreschool.co.in/wp-content/themes/tlc/images/pattern.jpg') repeat;
  background-size: 10px;
  background-blend-mode: overlay;
  color: #fff;
}

.testi-item-section.bg-blue .testi-body p,
.testi-item-section.bg-blue .testi-author strong {
  color: #fff;
}

.testi-item-section.bg-blue .banner-wave-top,
.testi-item-section.bg-blue .banner-wave-bottom {
  position: absolute;
  left: 0;
  width: 100%;
  height: 60px;
  background-size: 100% 100%;
}

.testi-item-section.bg-blue .banner-wave-top {
  top: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='1' d='M0,160L48,176C96,192,192,224,288,229.3C384,235,480,213,576,186.7C672,160,768,128,864,138.7C960,149,1056,203,1152,213.3C1248,224,1344,192,1392,176L1440,160L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z'%3E%3C/path%3E%3C/svg%3E");
}

.testi-item-section.bg-blue .banner-wave-bottom {
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='1' d='M0,160L48,144C96,128,192,96,288,106.7C384,117,480,171,576,181.3C672,192,768,160,864,149.3C960,139,1056,149,1152,176C1248,203,1344,245,1392,266.7L1440,288L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
}

.testi-bubble-wrap {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.testi-bubble {
  background: url('../images/yellow.png') no-repeat center;
  background-size: contain;
  padding: 60px 40px;
  width: 100%;
  max-width: 380px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.testi-bubble h3 {
  font-family: 'Bubblegum Sans', cursive;
  font-size: 22px;
  color: #333;
  margin: 0;
  line-height: 1.3;
  max-width: 80%;
  /* Keep text within the cloud center */
}

.testi-content-wrap {
  padding-left: 40px;
  padding-top: 30px;
}

.testi-body p {
  font-size: 17px;
  line-height: 1.8;
  color: #555;
  font-style: italic;
  margin-bottom: 15px;
}

.testi-author {
  font-family: 'Dosis', sans-serif;
  font-size: 18px;
  color: #232323;
  margin-top: 10px;
}

@media (max-width: 767px) {
  .page-testimonials .testimonials_block {
    padding-top: 50px;
    padding-bottom: 40px;
  }

  .testi-bubble-wrap {
    margin-bottom: 30px;
    justify-content: center;
  }

  .testi-content-wrap {
    padding-left: 0;
    text-align: center;
    padding-top: 10px;
  }

  .testi-sec-title {
    text-align: center;
  }

  .testi-intro-text p {
    text-align: center;
  }
}

/* ── PRELOADER ───────────────────────────────────────────── */
.preloader {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  background-color: #ffffff;
  background-position: center center;
  background-repeat: no-repeat;
  background-image: url('../images/preloader.gif');
}

/* ── GLOBAL MOBILE TYPOGRAPHY & SPACING ────────────────── */
@media (max-width: 991px) {

  .section-title h2,
  .mission_title h2,
  .little_title h2 {
    font-size: 28px !important;
  }

  h1 {
    font-size: 32px !important;
  }

  h2 {
    font-size: 28px !important;
  }

  h3 {
    font-size: 24px !important;
  }

  /* Ensure padding inside main sections is reduced on mobile */
  .about,
  .little-troopers,
  .vgallery,
  .trusted {
    padding: 40px 0 !important;
  }

  .about .post-content .link {
    display: flex !important;
    justify-content: center !important;
    padding-bottom: 25px !important;
  }

  .about .post-content .link a {
    margin-right: 0 !important;
  }

  /* Map marker is shown on mobile per user request */
}

/* ── GALLERY SEE MORE OVERLAY ────────────────────────────── */
.gallery-see-more {
  position: relative;
  display: block;
  height: 100%;
}

.gallery-see-more-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: background 0.3s ease;
  z-index: 10;
}

.gallery-see-more-overlay span {
  color: #fff;
  font-family: 'Bubblegum Sans', cursive;
  font-size: 24px;
  text-transform: uppercase;
  border: 2px solid #fff;
  padding: 8px 16px;
  border-radius: 4px;
}

.gallery-see-more:hover .gallery-see-more-overlay {
  background: rgba(0, 0, 0, 0.4);
}

/* ── Real-Time Field Validation ──────────────────────────── */
.field-validate-wrap {
  position: relative;
}

input.field-ok {
  border-color: #38a169 !important;
  box-shadow: 0 0 0 2px rgba(56, 161, 105, 0.18) !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input.field-err {
  border-color: #e53e3e !important;
  box-shadow: 0 0 0 2px rgba(229, 62, 62, 0.18) !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field-hint {
  display: none;
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.field-hint--ok {
  color: #276749;
  background: #f0fff4;
}

.field-hint--err {
  color: #c53030;
  background: #fff5f5;
}

/* ── FOOTER CONTACT ICONS & ALIGNMENT ────────────────────── */
.footer-contact-icon {
  color: var(--color-primary-dark);
  margin-right: 8px;
  font-size: 14px;
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

.footer_ifo--map a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.footer_ifo--map a:hover .footer-contact-icon {
  transform: scale(1.1);
}