
/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
@font-face {
  font-family: 'Edo'; 
  src: url('../fonts/edo-webfont.eot'); /* IE9 Compat Modes */
  src: url('../fonts/edo-webfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/edo-webfont.woff') format('woff'), /* Pretty Modern Browsers */
       url('../fonts/edo.ttf') format('truetype'); /* Safari, Android, iOS */
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: "Open Sans", sans-serif;
  color: #6e6d6d;
}

a {
  text-decoration: none;
  color: #cfab6e;
}

a:hover {
  color: #48668b;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Edo', sans-serif !important;
  color: #48668b; /* Heading color */

}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background: #cfab6e; /* Primary accent color */
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.back-to-top i {
  font-size: 28px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  background: #48668b; /* Hover background */
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Disable AOS delay on mobile
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
  height: 90px;
  transition: all 0.5s;
  z-index: 997;
  background: #fff;
  box-shadow: 0 4px 10px -3px hsla(0, 0%, 75%, 0.5);
}

#header .logo h1 {
  font-size: 28px;
  margin: 0;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-family: 'Edo', sans-serif;
  color: #773a3c; /* Header text color */
}

#header .logo h1 a,
#header .logo h1 a:hover {
  color: #fff;
  text-decoration: none;
}

#header .logo img {
  padding: 0;
  margin: 0;
  max-height: 80px;
}

@media (max-width: 992px) {
  #header {
    height: 70px;
  }
}

.scrolled-offset {
  margin-top: 90px;
}

@media (max-width: 992px) {
  .scrolled-offset {
    margin-top: 90px;
  }
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/**
* Desktop Navigation 
*/
.navbar {
  padding: 0;
}

.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}

.navbar li {
  position: relative;
}

.navbar a,
.navbar a:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 10px 30px;
  font-size: 15px;
  color: #151515;
  text-transform: uppercase;
  white-space: nowrap;
  transition: 0.3s;
}

.navbar a i,
.navbar a:focus i {
  font-size: 12px;
  line-height: 0;
  margin-left: 5px;
}

.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover>a {
  color: #cfab6e; /* Primary accent color */
}

.navbar .dropdown ul {
  display: block;
  position: absolute;
  left: 14px;
  top: calc(100% + 30px);
  margin: 0;
  padding: 10px 0;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  background: #fff;
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
  transition: 0.3s;
}

.navbar .dropdown ul li {
  min-width: 200px;
}

.navbar .dropdown ul a {
  padding: 10px 20px;
  font-size: 15px;
  text-transform: none;
  font-weight: 600;
}

.navbar .dropdown ul a i {
  font-size: 12px;
}

.navbar .dropdown ul a:hover,
.navbar .dropdown ul .active:hover,
.navbar .dropdown ul li:hover>a {
  color: #cfab6e;
}

.navbar .dropdown:hover>ul {
  opacity: 1;
  top: 100%;
  visibility: visible;
}

.navbar .dropdown .dropdown ul {
  top: 0;
  left: calc(100% - 30px);
  visibility: hidden;
}

.navbar .dropdown .dropdown:hover>ul {
  opacity: 1;
  top: 0;
  left: 100%;
  visibility: visible;
}

@media (max-width: 1640px) {
  .navbar .dropdown .dropdown ul {
    left: -90%;
  }

  .navbar .dropdown .dropdown:hover>ul {
    left: -100%;
  }
}

/**
* Mobile Navigation 
*/
.mobile-nav-toggle {
  color: #151515;
  font-size: 28px;
  cursor: pointer;
  display: none;
  line-height: 0;
  transition: 0.5s;
}

.mobile-nav-toggle.bi-x {
  color: #fff;
}

@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block;
  }

  .navbar ul {
    display: none;
  }
}

.navbar-mobile {
  position: fixed;
  overflow: hidden;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  transition: 0.3s;
  z-index: 999;
}

.navbar-mobile .mobile-nav-toggle {
  position: absolute;
  top: 15px;
  right: 15px;
}

.navbar-mobile ul {
  display: block;
  position: absolute;
  top: 55px;
  right: 15px;
  bottom: 15px;
  left: 15px;
  padding: 10px 0;
  background-color: #fff;
  overflow-y: auto;
  transition: 0.3s;
}

.navbar-mobile a,
.navbar-mobile a:focus {
  padding: 10px 20px;
  font-size: 15px;
  color: #151515;
}

.navbar-mobile a:hover,
.navbar-mobile .active,
.navbar-mobile li:hover>a {
  color: #cfab6e;
}

.navbar-mobile .getstarted,
.navbar-mobile .getstarted:focus {
  margin: 15px;
}

.navbar-mobile .dropdown ul {
  position: static;
  display: none;
  margin: 10px 20px;
  padding: 10px 0;
  z-index: 99;
  opacity: 1;
  visibility: visible;
  background: #fff;
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
}

.navbar-mobile .dropdown ul li {
  min-width: 200px;
}

.navbar-mobile .dropdown ul a {
  padding: 10px 20px;
}

.navbar-mobile .dropdown ul a i {
  font-size: 12px;
}

.navbar-mobile .dropdown ul a:hover,
.navbar-mobile .dropdown ul .active:hover,
.navbar-mobile .dropdown ul li:hover>a {
  color: #cfab6e;
}

.navbar-mobile .dropdown>.dropdown-active {
  display: block;
}

/* === HERO (compact, centered) === */
#hero {
    width: 100%;
    background-color: #48668B;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Compact padding instead of full viewport height */
    padding: 10px 15px 15px 15px;
}

    #hero .hero-container {
        text-align: center;
        max-width: 900px;
        margin: 0 auto;
        padding: 0;
    }

    #hero .hero-logo {
        display: inline-block;
        margin-bottom: 10px;
    }

        #hero .hero-logo img {
            max-height: clamp(140px, 16vw, 220px);
            width: auto;
            height: auto;
        }

    #hero h1 {
        margin: 0 0 15px 0;
        font-weight: 500;
        color: #fff;
        font-family: 'Edo', sans-serif;
        font-size: clamp(2rem, 4vw, 3.5rem);
        line-height: 1.2;
        text-align: center;
    }

    #hero h2 {
        color: #aeaeae;
        margin-bottom: 30px;
        font-size: 14px;
        font-weight: 400;
        text-transform: uppercase;
        line-height: 22px;
    }

    #hero .btn-get-started {
        font-family: "Montserrat", sans-serif;
        text-transform: uppercase;
        font-weight: bolder;
        font-size: 16px;
        letter-spacing: 1px;
        display: inline-block;
        padding: 14px 30px;
        border-radius: 3px;
        margin: 10px;
        color: #fff;
        background: #cfab6e;
        border-color: #cfab6e;
    }

        #hero .btn-get-started:hover {
            transition: 0.5s;
            background: #48668b;
            color: #d79a57;
        }

/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section {
  padding: 60px 0;
  overflow: hidden;
}

.section-bg {
  background-color: whitesmoke;
}

.section-title {
  text-align: center;
  padding-bottom: 40px;
  color: #773a3c;
}

.section-title h2 {
  font-size: 32px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 15px;
  padding-bottom: 0;
  color: #151515;
}

.section-title p {
  margin-bottom: 0;
  color: #aeaeae;
}

/*--------------------------------------------------------------
# Testimonials
--------------------------------------------------------------*/
.testimonials {
  padding: 60px 0;
  background: #48668b; /* Background color */
  position: relative;
}

.testimonials::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
}

.testimonials .quote-icon {
  text-align: center;
  margin-bottom: 30px;
}

.testimonials .quote-icon i {
  color: #cfab6e; /* Icon color */
  font-size: 24px;
  padding: 18px;
  border-radius: 50px;
  border: 2px solid #cfab6e;
}

.testimonials .testimonials-carousel,
.testimonials .testimonials-slider {
  overflow: hidden;
}

.testimonials .testimonial-item {
  text-align: center;
  color: #fff;
}

.testimonials .testimonial-item p {
  font-style: italic;
  margin: 0 auto 30px auto;
  font-size: 20px;
}

.testimonials .testimonial-item .testimonial-img {
  width: 100px;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.15);
  margin: 0 auto;
}

.testimonials .testimonial-item h3 {
  font-size: 20px;
  font-weight: bold;
  margin: 10px 0 5px 0;
  color: #fff;
}

.testimonials .testimonial-item h4 {
  font-size: 14px;
  color: #ddd;
  margin: 0 0 15px 0;
}

.testimonials .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.4);
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background-color: #cfab6e;
}

@media (min-width: 992px) {
  .testimonials .testimonial-item p {
    width: 80%;
  }
}


/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact .info {
  width: 100%;
  height: 100%;
  background: #fff;
  padding: 20px;
  border-radius: 5px;
}

.contact .info i {
  font-size: 20px;
  color: #cfab6e;
  float: left;
  width: 44px;
  height: 44px;
  background: #eaf6e9;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
}

.contact .info h4 {
  padding: 0 0 0 60px;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #151515;
}

.contact .info p {
  padding: 0 0 0 60px;
  margin-bottom: 0;
  font-size: 14px;
  color: #484848;
}

.contact .info .email,
.contact .info .phone {
  margin-top: 40px;
}

.contact .info .email:hover i,
.contact .info .address:hover i,
.contact .info .phone:hover i {
  background: #48668b;
  color: #fff;
}

.contact .php-email-form {
  width: 100%;
  background: #fff;
  padding: 20px;
  border-radius: 5px;
}

.contact .php-email-form .form-group {
  padding-bottom: 8px;
}

.contact .php-email-form .error-message {
  display: none;
  color: #fff;
  background: #ed3c0d;
  text-align: left;
  padding: 15px;
  font-weight: 600;
}

.contact .php-email-form .error-message br+br {
  margin-top: 25px;
}

.contact .php-email-form .sent-message {
  display: none;
  color: #fff;
  background: #cfab6e;
  text-align: center;
  padding: 15px;
  font-weight: 600;
}

.contact .php-email-form .loading {
  display: none;
  background: #fff;
  text-align: center;
  padding: 15px;
}

.contact .php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid #cfab6e;
  border-top-color: #eee;
  animation: animate-loading 1s linear infinite;
}

.contact .php-email-form input,
.contact .php-email-form textarea {
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
}

.contact .php-email-form input {
  height: 44px;
}

.contact .php-email-form textarea {
  padding: 10px 12px;
}

.contact .php-email-form button[type=submit] {
  background: #cfab6e;
  border: 0;
  padding: 10px 24px;
  color: #fff;
  transition: 0.4s;
  border-radius: 4px;
}

.contact .php-email-form button[type=submit]:hover {
  background: #cfab6e;
}

@keyframes animate-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}


/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
  /* background: url("../img/testimonials.png") center center no-repeat; */
  background-color: #6e6d6d;
  color: #fff;
  font-size: 14px;
  position: relative;
}

#footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1;
}

#footer .footer-top {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 80px 0;
}

#footer .footer-top .footer-logo img {
  height: 80px;
}

#footer .footer-top h3 {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  position: relative;
  font-family: "Poppins", sans-serif;
  padding: 30px 0 0 0;
  margin-bottom: 0;
}

#footer .footer-top p {
  font-size: 15;
  font-style: italic;
  margin: 30px 0 0 0;
  padding: 0;
}

#footer .footer-top .footer-newsletter {
  text-align: center;
  font-size: 15px;
  margin-top: 30px;
}

#footer .footer-top .footer-newsletter form {
  background: #fff;
  padding: 6px 10px;
  position: relative;
  border-radius: 50px;
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
}

#footer .footer-top .footer-newsletter form input[type=email] {
  border: 0;
  padding: 4px 8px;
  width: calc(100% - 100px);
}

#footer .footer-top .footer-newsletter form input[type=submit] {
  position: absolute;
  top: 0;
  right: -1px;
  bottom: 0;
  border: 0;
  font-size: 16px;
  padding: 0 20px;
  background: #cfab6e; /* Submit button color */
  color: #fff;
  transition: 0.3s;
  border-radius: 50px;
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
}

#footer .footer-top .footer-newsletter form input[type=submit]:hover {
  background: #cfab6e;;
}

#footer .footer-top .social-links {
  margin-top: 30px;
}

#footer .footer-top .social-links a {
  font-size: 18px;
  display: inline-block;
  background: #cfab6e;
  color: #fff;
  line-height: 1;
  padding: 8px 0;
  margin-right: 4px;
  border-radius: 50%;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
}

#footer .footer-top .social-links a:hover {
  background: #cfab6e;
  color: #fff;
  text-decoration: none;
}

#footer .footer-bottom {
  border-top: 1px solid #222222;
  z-index: 2;
  position: relative;
  padding-top: 40px;
  padding-bottom: 40px;
}

#footer .copyright {
  text-align: center;
}

#footer .credits {
  text-align: center;
  font-size: 13px;
  padding-top: 5px;
}

.container1 {
  position: relative;
  width: 100%; 
  height: 500px;
  max-height: 500px;
  overflow: hidden;
}

.container2 {
  position: relative;
  width: 100%; 
  height: 600px; 
  overflow: hidden;
}

@media (max-width: 768px) { 
  .container1 {
    height: 400px;
    max-height: 400px;
  }
}

@media (max-width: 768px) { 
  .container2 {
    height: 600px;
    max-height: 600px;
  }
}

@media (max-width: 480px) { 
  .container1 {
    height: 300px;
    max-height: 300px;
  }
}

@media (max-width: 480px) { 
  .container2 {
    height: 350px;
    max-height: 350px;
  }
}

.image1 {
  position: absolute;
  width: 38%;
  height: auto;
  opacity: 0;
  transition: opacity 1.5s ease;
  object-fit:cover;
}

.image2 {
  position: absolute;
  width: 30%; 
  height: auto;
  /* opacity: 0;
  transition: opacity 1.5s ease; */
  object-fit: cover;
  transition: transform 1s ease-in-out,
  opacity 1s ease-in-out;
}

.image3 {
  position: absolute;
  width: 40%; 
  height: auto;
  opacity: 0;
  transition: opacity 1.5s ease;
  object-fit: cover;
}


.image1.left {
  top: 0; 
  left: 10%; 
}

.image1.right {
  top: 0px; 
  left: 70%;
}

.image1.center {
  top: 0px; 
  left: 40%;
}

/* Mobile scaling for the 3 ninjas in the ABOUT section */
@media (max-width: 768px) {
    .image1 {
        width: 35% !important;
    }

        .image1.left {
            left: 5% !important;
            top: 0 !important;
        }

        .image1.center {
            left: 32% !important;
            top: 0 !important;
        }

        .image1.right {
            left: 60% !important;
            top: 0 !important;
        }
}

@media (max-width: 480px) {
    .image1 {
        width: 40% !important;
    }

        .image1.left {
            left: 0 !important;
            top: 0 !important;
        }

        .image1.center {
            left: 28% !important;
            top: 0 !important;
        }

        .image1.right {
            left: 55% !important;
            top: 0 !important;
        }
}


.image2.left {
  top: 30%; 
  left: 10%; 
}

.image2.right {
  top: 30%;  
  left: 70%;
}

.image2.center {
  top: 35%;   
  left: 40%;
}
.image2.top {
  top: 0px;
  left: 40%;
}

@media (max-width: 768px) { 
  .image2 {
    width: 35%; 
  }

  .image2.left {
    top: 30%; 
  left: 10%; 
  }

  .image2.right {
    top: 30%;  
  left: 65%;
  }

  .image2.center {
    top: 30%;   
  left: 35%;
  }

  .image2.top {
    top: 0px;
  left: 20%;
  }
}

@media (max-width: 480px) { 
  .image2 {
    width: 30%;  
  }

  .image2.left {
    top: 10%; 
  left: 10%; 
  }

  .image2.right {
    top: 30%;  
  left: 70%;
  }

  .image2.center {
    top: 40%;   
  left: 40%;
  }

  .image2.top {
    top: 0px;
    bottom: 20px;
  left: 40%;
  }
}

.responsive-logo {
  width: 70%; 
  height: auto; 
}

@media (max-width: 768px) {
  .responsive-logo {
      width: 100%; 
  }
}

.image3.left {
  top: 30%; 
  left: 10%; 
}

.image3.right {
  top: 30%;  
  left: 70%;
}

.image3.center {
  top: 40%;   
  left: 40%;
}
.image3.top {
  top: 40px;
  left: 25%; 
}

@media (max-width: 768px) { 
  .image3 {
    width: 45%; 
  }

  .image3.left {
    top: 0; 
    left: 10%; 
  }

  .image3.right {
    top: 0; 
    left: 70%; 
  }

  .image3.center {
    top: 0; 
    left: 40%; 
  }
  .image3.top {
    top: 60px;
    left: 25%;
  }
}

@media (max-width: 480px) { 
  .image3 {
    width: 40%;
  }

  .image3.left {
    top: 0; 
    left: 10%; 
  }

  .image3.right {
    top: 0; 
    left: 70%; 
  }

  .image3.center {
    top: 0; 
    left: 40%;  
  } 
  .image3.top {
    top: 20px;
    left: 25%; 
  }
}

.image2 {
  transition: transform 1s ease-in-out, opacity 1s ease-in-out; 
  opacity: 0; 
}

.image2.aos-animate {
  opacity: 1; 
  transform: scale(1.2); 
}

.hidden-content {
  opacity: 0;
  transition: opacity 1s ease-in;
  pointer-events: none;
}

.show-content {
  opacity: 1;
  pointer-events: all;
}

#video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: black; 
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#video-overlay video {
  width: 100%;
  height: auto;
  max-height: 100vh;
  object-fit: contain;
}

@media (max-width: 768px) {
  #video-overlay video {
    width: 100vw;
    height: auto;
    max-height: 100vh;
  }
}

/* === 0) Global safety nets === */
*,
*::before,
*::after {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/* fix missing unit */
#footer .footer-top p {
    font-size: 15px;
}

/* === 1) Hero — pick ONE of these modes === */

/* === HERO (compact, centered) === */
#hero {
    width: 100%;
    background-color: #48668B;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

}
    #hero .hero-logo {
        display: inline-block;
        margin-bottom: 15px; /* Reduced from 25px */
        margin-top: 0; /* Ensure no top margin */
    }

        #hero .hero-logo img {
            max-height: clamp(150px, 18vw, 240px); /* Reduced sizes */
            width: auto;
            height: auto;
            display: block; /* Remove any inline spacing */
        }
    #hero h1 {
        font-size: clamp(1.75rem, 3.5vw, 3rem);
        line-height: 1.15;
    }

    /* Make the logo size responsive without hard-coding pixels */
    #hero .responsive-logo {
        max-height: clamp(140px, 24vw, 300px);
    }

    /* === 2) Video containment stays the same but ensure it never stretches === */
    #hero video {
        width: 100%;
        height: auto;
        max-height: 100%;
        object-fit: contain;
        background-color: #48668B;
        display: block;
    }

/* Responsive adjustments for hero */
@media (max-width: 768px) {
    #hero {
        padding: 40px 15px 60px 15px;
    }

        #hero h1 {
            font-size: clamp(1.5rem, 5vw, 2rem);
            margin-bottom: 25px;
        }
}

@media (max-width: 480px) {
    #hero {
        padding: 30px 10px 50px 10px;
    }

        #hero h1 {
            margin-bottom: 20px;
        }
}
@media (max-width: 575px) {
    .belt-chip text {
        font-size: clamp(16px, 5vw, 20px);
    }
}

/* === 4) D3 belt flow helpers (prevents overflow/overwide cards) === */
.belt-flow-d3 {
    overflow: visible;
}

.belt-info {
    max-width: min(480px, 92vw);
}

/* === 5) Back-to-top nicer on touch (optional) === */
.back-to-top {
    -webkit-tap-highlight-color: transparent;
}

/* Belt info: mobile-safe box and flip-able nub */
.belt-info {
    max-height: 72vh; /* keeps card on-screen */
    overflow: auto; /* let content scroll if needed */
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 480px) {
    .belt-info {
        max-height: 78vh;
    }
}

/* When JS "flips" the card due to clamping, move nub to bottom */
.belt-info.flipped .nub {
    top: auto;
    bottom: -5px;
    box-shadow: 2px 2px 4px rgba(0,0,0,.03);
}

/* Allow the belt info card to extend beyond the section */
#process {
    overflow: visible;
}

/* Make sure the host has enough height on phones */
.belt-flow-d3 {
    position: relative;
}

/* Full-bleed belts on phones: remove container gutters and stretch to viewport */
@media (max-width: 575px) {
    #process .container {
        padding-left: 0;
        padding-right: 0;
    }

    /* Break the belts host out of any parent padding and span the whole viewport */
    .belt-flow-d3 {
        width: 100vw; /* take entire viewport width */
        margin-left: 50%; /* center */
        transform: translateX(-50%); /* cancel the 50% margin */
    }
}


/* ============================================
   FIXED IMAGE2 SECTION STYLES - VERSION 2
   Prevents overlap with next section
   ============================================ */

/* Base container ensures proper containment */
.image-stack {
    position: relative;
    width: 100%;
    max-width: 600px;
    overflow: hidden; /* Changed back to hidden to contain images */
}

    /* Main ratio box - adjusted height */
    .image-stack > div {
        position: relative;
        width: 100%;
        padding-top: 85%;
    }

    /* Ensure all images stay contained */
    .image-stack img {
        position: absolute;
        height: auto;
        max-width: none;
        filter: drop-shadow(0 8px 16px rgba(0,0,0,.15));
        pointer-events: none;
    }

/* ============================================
   SECTION SPACING FIXES
   ============================================ */

/* Ensure the services section has enough bottom padding */
#services {
    overflow: visible;
    padding-bottom: 100px; /* Increased base padding */
}

    #services .row {
        overflow: visible;
    }

    /* Add specific spacing for the image column */
    #services .col-lg-6.order-1 {
        margin-bottom: 60px;
    }

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

/* Large screens (992px and up) */
@media (min-width: 992px) {
    .image-stack > div {
        padding-top: 75%; /* Reduced slightly for large screens */
    }

    #services {
        padding-bottom: 80px;
    }

        #services .col-lg-6.order-1 {
            margin-bottom: 0; /* Remove extra margin on large screens */
        }
}

/* Medium tablets (768px - 991px) - WHERE THE OVERLAP OCCURS */
@media (min-width: 768px) and (max-width: 991px) {
    .image-stack > div {
        padding-top: 110% !important; /* Increased to contain images */
    }

    .image-stack img {
        transform: scale(0.85); /* Scale down images more */
    }

        /* Adjust positions to fit within container */
        .image-stack img[src*="Haru2"] {
            width: 32% !important;
            left: 2% !important;
            bottom: 15% !important;
        }

        .image-stack img[src*="KAI2"] {
            width: 30% !important;
            left: 34% !important;
            bottom: 45% !important;
        }

        .image-stack img[src*="RYU2"] {
            width: 34% !important;
            right: 33% !important;
            bottom: 8% !important;
        }

        .image-stack img[src*="SORA2"] {
            width: 28% !important;
            left: 64% !important;
            bottom: 22% !important;
        }

    /* Critical: Add extra spacing to services section */
    #services {
        padding-bottom: 120px !important;
    }

        #services .col-lg-6.order-1 {
            margin-bottom: 80px !important;
        }
}

/* Small tablets/Large phones (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .image-stack > div {
        padding-top: 115% !important;
    }

    .image-stack img {
        transform: scale(0.82);
    }

        .image-stack img[src*="Haru2"] {
            width: 34% !important;
            left: 2% !important;
            bottom: 18% !important;
        }

        .image-stack img[src*="KAI2"] {
            width: 30% !important;
            left: 36% !important;
            bottom: 48% !important;
        }

        .image-stack img[src*="RYU2"] {
            width: 34% !important;
            right: 35% !important;
            bottom: 10% !important;
        }

        .image-stack img[src*="SORA2"] {
            width: 30% !important;
            left: 62% !important;
            bottom: 20% !important;
        }

    #services {
        padding-bottom: 100px !important;
    }

        #services .col-lg-6.order-1 {
            margin-bottom: 60px !important;
        }
}

/* Mobile phones (under 576px) */
@media (max-width: 575px) {
    .image-stack > div {
        padding-top: 120% !important;
    }

    .image-stack img {
        transform: scale(0.8);
    }

        .image-stack img[src*="Haru2"] {
            width: 36% !important;
            left: 0% !important;
            bottom: 20% !important;
        }

        .image-stack img[src*="RYU2"] {
            width: 36% !important;
            right: 36% !important;
            bottom: 12% !important;
        }

        .image-stack img[src*="SORA2"] {
            width: 32% !important;
            left: 60% !important;
            bottom: 22% !important;
        }

        .image-stack img[src*="KAI2"] {
            width: 32% !important;
            left: 33% !important;
            bottom: 50% !important;
        }

    #services {
        padding-bottom: 80px !important;
    }

        #services .col-lg-6.order-1 {
            margin-bottom: 40px !important;
        }
}

/* Extra small phones (under 400px) */
@media (max-width: 399px) {
    .image-stack > div {
        padding-top: 125% !important;
    }

    .image-stack img {
        transform: scale(0.78);
    }

    #services {
        padding-bottom: 60px !important;
    }
}

/* ============================================
   ENSURE NEXT SECTION HAS TOP PADDING
   ============================================ */

/* Add this to your "Story-Backed Learning" section */
#story-backed-learning,
.story-backed-learning,
#services + section {
    padding-top: 60px;
    margin-top: 40px;
}

@media (max-width: 991px) {
    #story-backed-learning,
    .story-backed-learning,
    #services + section {
        padding-top: 80px !important;
        margin-top: 60px !important;
    }
}

@media (max-width: 767px) {
    #story-backed-learning,
    .story-backed-learning,
    #services + section {
        padding-top: 60px !important;
        margin-top: 40px !important;
    }
}

/* ============================================
   OPTIONAL: Visual debugging (remove after fixing)
   ============================================ */

/* Uncomment these to see section boundaries while testing
#services {
    border-bottom: 3px solid red;
}

#services + section {
    border-top: 3px solid blue;
}
*/
