@media (max-width: 768px) {

.row {
    --bs-gutter-x: 0rem;
    --bs-gutter-y: 0;
}
	/* Disable scroll snapping on mobile */
  section {
    height: auto;                /* allow natural height */
    scroll-snap-align: none;     /* disable snap */
    scroll-snap-stop: normal;    /* optional, to relax snap points */
  }

  html, body {
    scroll-snap-type: none;      /* ensure global snapping is off */
    padding-top:50px;
  }

  /* General Section Spacing */
  .section-content {
    margin-top: 0.5rem;
    padding-top: 0px; /* match your navbar height */
  }

  section {
    height: auto;        /* let content expand naturally */
    min-height: 100vh;   /* fills screen */
  }

  /* Titles and images */
  .section2-title {
    margin-top: 2em;
  }

  .section2-image {
    margin-top: 1em;
    width: 50%;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  /* Timeline */
  .timeline::before {
    left: 8px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 2rem;
    padding-right: 0;
    text-align: left !important;
    padding-bottom: 1rem;
  }

  .timeline-item.right,
  .timeline-item.left {
    left: 0;
  }

  .timeline-item::after {
    left: 0;
  }

  /* Home Section */
  .home-section {
    width: 95% !important;
    padding: 1em 0.5em;
    text-align: left;
    color: #545454;
  }

  .home-section h1 {
    font-size: 2rem !important;
    line-height: 2.4rem;
    padding-bottom: 0.5em;
  }

  .home-section h4 {
    font-size: 1rem !important;
    line-height: 1.5rem;
    padding-bottom: 0.8em;
  }

  .home-section p.lead {
    font-size: 0.9rem;
    line-height: 1.4rem;
  }

  .home-section .highlight {
    font-size: 1rem;
    background-color: #fff3b0;
    padding: 0.2em 0.3em;
    border-radius: 3px;
  }

  .col-lg-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* Payil Image */
  #payilIndro {
    width: 100% !important;
    float: none !important;
    margin-bottom: 1.5em;
  }

  /* Animated Images */
  .animate-image {
    width: 90%;
    margin: 0 auto;
    display: block;
  }

  /* Top-right images */
  .top-right-img {
    position: absolute;
    top: 1em;
    right: 0;
    width: 35%;
    height: auto;
    margin: 0 auto;
    display: block;
  }

  /* Section 3 backgrounds and quotes */
  .sec3 .left-bg,
  .sec3 .right-bg {
    background-size: contain;
    margin-top: -5em;
  }

  .left-quote {
    width: 90%;
    font-size: 0.9rem;
    bottom: auto;
    text-align: left;
    margin: 0em auto;
    padding: 3.5em 3em 0em 0em;
  }
  
  .right-quote{
    width: 90%;
    font-size: 0.9rem;
    bottom: auto;
    text-align: left;
    margin: 0em auto;
    padding: 3.5em 0em 0em 3em;
  }

.sec3a .left-bg-a, .sec3a .right-bg-a{
	    min-height: 300px;
}	
  .quote-author,
  .author-role {
    font-size: 0.9rem;
    text-align: center;
  }

  .quote-icon {
    position: absolute;
    width: 30%;
  }

  .quote-icon-a {
    position: absolute;
    width: 30%;
  }

	#qi-left{
		left: 1em;
	}
	
	#qi-right {
	  right: -0.5em;
	}

	.right-quote-a, .left-quote-a{
		font-size: 1rem;
		height: 275px;
	}
	
	.bottom-icon, .top-right-icon, .top-left-icon {
	  position: absolute;
	  top: -50px;
	  left: 50%;
	  transform: translateX(-50%);
	}

  /* Sec7 adjustments */
  .sec7-overlay-text {
    position: absolute;       /* keep absolute to overlay the section */
    top: 47%;                 /* vertically center */
    left: 50%;                /* horizontally center */
    transform: translate(-50%, -50%); /* true center on all devices */
    width: 90%;               /* mobile-friendly width */
    max-width: 320px;         /* prevent overflow on small iPhones */
    padding: 1em 0.5em;       /* reduce padding for small screens */
    border-radius: 8px;
    text-align: left;       /* center text on mobile */
    box-sizing: border-box;
    color: #545454;
  }

  .sec7-overlay-text p {
    font-size: 0.9rem;        /* slightly smaller font for mobile */
    line-height: 1.1rem;       /* comfortable reading */
  }

  .sec7-left-bg .left-bg {
    content: url('../../assets/img/section7/sec7_left_bg_M.png');
    width: 100%;
  }

  .bottom-right-img {
    position: absolute;
    margin: 1em auto;
    width: 35%;
    display: block;
    right: 0.5em;
  }
  
  .top-left-img {
    position: absolute;
    top: 1em;
    left: 1em;
    width: 25%;
    height: auto;
    z-index: 5;
    margin: 1em auto;
  }

  /* Border-box & form adjustments */
  .border-box {
    position: relative;
    border: 0.5em solid #000;
    width: 90%;
    margin: 3em auto;
    padding: 2.5em 1em 1em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background: #f4efde;
    height: auto;
  }

  .right-form {
    display: flex;
    flex-direction: column;
    gap: 1em;
    width: 90%;
    margin: 0 auto;
    padding: 1em;
  }

  /* Section10 adjustments */
  .sec10 .row {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .sec10-box {
    width: 100%;
  }

  .sec10-header h3 {
    font-size: 1rem;
  }

  /* Hide desktop footer & images */
  .footer-sec10,
  .sec10 .bottom-img,
  .sec10 .bottom-left-img {
    display: none;
  }

  /* Mobile footer */
  .footer-sec10-mobile {
    display: block;
    position: relative;
    width: 100%;
    padding: 2em 1em;
    background: #333;
    color: #fff;
    text-align: center;
    margin-top: 2em;
    height: auto;
    overflow: hidden;
    z-index: 2;
  }

/*   .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5em;
    padding: 1em;
  }

  .footer-col {
    flex: 1 1 100%;
    text-align: center;
    position: relative;
    left: -1em;
  }
  
  #footer-center{
  	left: -1em;
  }
   */

  .footer-col h4 {
    font-size: 1.1rem;
    margin: 0.5em 0;
  }

  .footer-col p {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .footer-icons {
    justify-content: center;
    gap: 1.2em;
  }

  .footer-icons img {
    width: 50px;
  }

  /* Sec10 spacing */
  .sec10 {
    padding-bottom: 2rem;
  }
  
  #footer-right{
  	text-align: center;
  }

	.right-form-c {
	  display: flex;
	  width: 80%;             /* adjust form width */
	  margin: 5em auto;         /* center form horizontally */
	  position: relative;
	  z-index: 2;
	}
  
	.contactButton {
	  display: flex;
	  flex-direction: column;
	  width: 80%;             /* adjust form width */
	  margin: 7em auto;         /* center form horizontally */
	  position: relative;
	  z-index: 2;
	}

  /* Thambaa image */
  /* #thambaa-img{
	  position: absolute;
	  bottom: 15em;           vertical placement
	  left: 6em;              horizontal placement
	  width: 45%;             responsive width
	  height: auto;           preserve aspect ratio
	  z-index: 10;            keep above background
	  opacity: 0.9;           subtle transparency
	  margin-bottom: 0;       remove unnecessary offset
	  display: block;
	  max-width: 100%;        prevent overflow on iPhone
	  object-fit: contain;    ensure proper scaling
	  box-sizing: border-box;
 	} */
 	
#thambaa-img {
  position: absolute;
  bottom: 15em;
  left: 75%;
  transform: translateX(-65%);
  width: 45%;
  height: auto;
  z-index: 10;
  opacity: 0.9;
  display: block;
  max-width: 100%;
  object-fit: contain;
  box-sizing: border-box;
}
 	
 	
  #thambaa-img-mobile {
	  position: absolute;
	  bottom: 5em;           /* vertical placement */
	  left: 5em;              /* horizontal placement */
	  width: 45%;             /* responsive width */
	  height: auto;           /* preserve aspect ratio */
	  z-index: 10;            /* keep above background */
	  opacity: 0.9;           /* subtle transparency */
	  margin-bottom: 0;       /* remove unnecessary offset */
	  display: block;
	  max-width: 100%;        /* prevent overflow on iPhone */
	  object-fit: contain;    /* ensure proper scaling */
	  box-sizing: border-box;
 } 	
 
	/* about page */
	.left-quote-s {
	  width: 90%;
	  height: 175px;
	}
	
	  
	.right-quote-s{
	  width: 90%;
	  height: 175px;
	}
	  
	.bText_left{
		position: relative;
		top: 9em;
		width: 80%;
	}
	
	.bText_right{
		position: relative;
		top: 9em;
		width: 75%;
	}

	#tmpStyle{
		position: relative;
		width: 60%;
		left: 0%;
	}   
	
.border-boxP {
    width: 100%;
    padding: 3em 0em 2em 1em;
}	

#bImg{
	top:-6em;
	width: 50%;	
}

/* Overlay icon (top-right corner) */
.open-book-icon {
  position: absolute;
  top: -7em;
  right: -0.5em;
  width: 65px;   /* adjust icon size */
  cursor: pointer;
  transition: transform 0.3s ease;
  z-index: 10;
}

.footer-icons {
  display: flex;
  gap: 1em;           /* space between icons */
  align-items: flex-end;
  margin-bottom: 0.5em;
  width: 100%;
}


.button-row {
    display: block;
    justify-content: center;
    align-items: center;
    gap: 1px;
    margin-top: -8em;
    margin-bottom: 10em;
    z-index: 1;
    margin-left: 5em;
    height: 15vh;
}

.footer-container {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5em;
  padding: 1em;
}

.footer-col {
  flex: 1 1 100%;
  text-align: center;
  position: relative;
  left: -1em;
}

#footer-center {
  left: -1em;
}

#sqi-left {
    right: 1em;
    width: 100%;
    top: -1.75em;
}

#payilI{
	margin-top: 0em;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
}

.slides {
    height: 80vh;
}

#faqSlides{
    height: auto;	
}

}


@media (max-width: 390px){

	#sqi-left {
    right: 1em;
    width: 100%;
    top: 0em;
    left: 0em;
}

#sqi-right {
    left: 2em;
    width: 100%;
    top: -2em;
}
	
#bImg{
	top:-4.5em;
	width: 50%;	
}

/* Overlay icon (top-right corner) */
.open-book-icon {
  position: absolute;
  top: -4em;
  right: -0.5em;
  width: 50px;   /* adjust icon size */
  cursor: pointer;
  transition: transform 0.3s ease;
  z-index: 10;
}
	
.footer-col {
  flex: 1 1 100%;
  text-align: center;
  position: relative;
  left: 0em;
}

#footer-center {
  left: 0em;
}

#thambaa-img {
	bottom: 17em;
}
	
}