@media (max-width: 768px) {

.service-intro-section .row {
        flex-direction: row-reverse;
         padding: 0px 0;
        text-align: justify;
    }
    
    .mobile_menu_container {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 9999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 40px;
    display: none;
  }

  .mobile_menu_container.active {
    display: block;
  }

  /* HEADER */
  .mobile_menu_header {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
  }

  .mobile_menu_header img {
    max-height: 40px;
  }

  /* MAIN MENU */
  .mobile_menu_container > ul {
    padding: 16px;
  }

  .mobile_menu_container ul li {
    list-style: none;
    margin-bottom: 10px;
  }

  .mobile_menu_container ul li a {
    font-size: 15px;
    color: #0b2c5d;
    text-decoration: none;
    display: block;
    padding: 6px 0;
  }

  /* SERVICES DROPDOWN */
  .mobile_menu_container ul li ul {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 14px;
  }

  .mobile_menu_container ul li.open > ul {
    max-height: 420px; /* 🔥 scrollable height */
    overflow-y: auto;
  }

  /* SUB ITEMS */
  .mobile_menu_container ul li ul li a {
    font-size: 14px;
    color: #333;
    padding: 4px 0;
  }
    /* Disable hover based opening */
  .has-dropdown:hover > ul {
    display: none !important;
  }

  /* Dropdown arrow */
  .dropdown-toggle {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .dropdown-toggle .arrow {
    font-size: 16px;
    transition: transform 0.3s ease;
  }

  /* Dropdown closed */
  .has-dropdown > .dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    padding-left: 14px;
    margin-top: 6px;
  }

  /* Dropdown open */
  .has-dropdown.open > .dropdown-menu {
    max-height: 420px; /* 🔥 scrollable */
    overflow-y: auto;
  }

  /* Rotate arrow on open */
  .has-dropdown.open .arrow {
    transform: rotate(180deg);
  }

  /* Clean spacing */
  .dropdown-menu li {
    margin-bottom: 6px;
  }

  .dropdown-menu li a {
    font-size: 14px;
    padding: 4px 0;
  }
   
}

@media (max-width: 991px) {

  /* --------- RESET --------- */
  html, body {
    overflow-x: hidden !important;
  }

  .hero-slider,
  .hero-slider .carousel-inner,
  .hero-slider .carousel-item {
    height: 80vh !important;
    width:60vh !important;
    position: relative !important;
  }

  .hero-slider img.d-md-none {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .hero-slider img.d-md-block {
    display: none !important;
  }

  .hero-slider .carousel-caption {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    z-index: 2 !important;

    padding: 50px 16px 0 !important; 
    text-align: left !important;
  }
  
  .hero-content {
    width: 100% !important;
    max-width: 100% !important;
  }

  .hero-content h3 {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #ff7a00 !important;
    margin-bottom: 6px !important;
  }

     .hero-content h1 {
        font-size: 22px !important;
        line-height: 1.25 !important;
        font-weight: 700 !important;
        margin-bottom: 12px !important;
        color: #fff !important;
        width: 300px;
    }

      .hero-features {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0px !important;
        margin-top: 27px !important;
        /* width: 137% !important; */
        width: 300px;
    }

  .hero-features .feature {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    min-width: 100px;
  }

     .hero-features .feature img {
        width: 60px !important;
        height: auto !important;
        margin-bottom: 4px !important;
    }

  .hero-features .feature p {
        font-size: 15px !important;
        line-height: 1.2 !important;
        margin: 0 !important;
        color: #fff !important;
    }

  .carousel-control-prev,
  .carousel-control-next {
    display: none !important;
  }

  .carousel-indicators {
    bottom: 8px !important;
  }
  
  .about-us-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
  }

  .about-us-image {
    order: 1 !important;
    text-align: center !important;
  }

  .about-us-content {
    order: 2 !important;
  }

  .about-us-image img {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Experience badge adjust (mobile safe) */
  .experience-badge {
    bottom: 10px !important;
    right: 10px !important;
  }

  .about-us-content .about-text {
    text-align: justify !important;
    line-height: 1.7 !important;
  }

  .about-title {
    margin-bottom: 12px !important;
  }

  .about-btn {
    margin-top: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
  }
  
  .services-section {
    padding: 40px 0 !important;
  }

  .services-title {
    font-size: 20px !important;
    line-height: 1.3 !important;
    margin-bottom: 24px !important;
    padding: 0 10px !important;
  }

  .services-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .service-card {
    padding: 20px 16px !important;
    border-radius: 16px !important;
    height: 151px !important;  
  }

     .service-card .card-icon img {
    width: 44px !important;
    height: 44px !important;
    margin-bottom: 10px !important;
  }

  .service-card .card-title {
    font-size: 16px !important;
    margin-bottom: 6px !important;
  }

  .service-card .card-text {
    font-size: 13px !important;
    line-height: 1.4 !important;
    margin: 0 !important;
  }

  .services-btn-wrap {
    margin-top: 24px !important;
  }

  .services-view-btn {
    padding: 12px 20px !important;
    font-size: 14px !important;
  }
  
  .care-left .circle-image {
        width: 410px;
        height: 449px;
        left: 16px;
    }
    
   
  /* SECTION RESET */
  .moments-marquee {
    padding: 40px 0 !important;
    overflow: hidden !important;
  }

  .moments-wrap {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  /* ---------------- TEXT ---------------- */
  .moments-text h2 {
    font-size: 20px !important;
    line-height: 1.3 !important;
    text-align: center !important;
    margin-bottom: 10px !important;
  }

  .moments-text p {
    font-size: 14px !important;
    line-height: 1.6 !important;
    text-align: justify !important;
    margin-bottom: 14px !important;
  }

  .moments-btn {
    display: inline-block !important;
    margin-bottom: 10px !important;
  }

  /* ---------------- MARQUEE AREA ---------------- */
  .moments-images {
    overflow: hidden !important;
    position: relative !important;
  }

  .marquee-viewport {
    height: 420px !important;   /* 🔥 fixed height = no blank gap */
    overflow: hidden !important;
  }

  /* 🔥 3 IMAGES PER ROW + COLUMN FLOW */
  .marquee-track {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;

  animation: marqueeUp3col 8s linear infinite !important;
  }

  .marquee-track img {
    width: 100% !important;
    height: auto !important;
    border-radius: 12px !important;
    object-fit: cover !important;
  }

  /* REMOVE EXTRA SPACE AT END */
  .moments-marquee,
  .moments-images,
  .marquee-viewport {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
}

/* =====================================================
   MARQUEE ANIMATION – BOTTOM TO TOP
   ===================================================== */

@keyframes marqueeUp3col {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}