/* ========================================
   MOBILE RESPONSIVE FIXES
   ======================================== */
@media (max-width: 768px) {

  .site-header-desktop {
    display: none;
  }

  .site-header-mobile {
    display: block;
  }

  .site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 2px;
    flex-wrap: wrap;
  }

  .logo img {
    height: 48px;
  }

  .menu-toggle {
    display: block;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
  }

  .menu-toggle img {
    width: 28px;
    height: 28px;
  }

  .main-nav {
    width: 100%;
  }

  .main-nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 10px 10px;
    margin: 0;
    align-items: flex-start; /* Key change */
  }

  .main-nav ul.show {
    display: flex;
  }

  .main-nav li {
    text-align: left;
    padding-left: 20px;
  }

  .main-nav .demo-btn {
    margin: 10px 20px;
    display: inline-block;
  }
  .main-nav a:hover {
    background-color: transparent; /* disables hover background */
  }
  .main-nav a:active {
    background-color: #111; /* quick flash on tap */
  }
  .has-dropdown > .dropdown {
    display: none;
    position: relative;       /* no absolute positioning */
    background: transparent;
    padding: 0;
    margin-left: 20px;
    width: 100%;
  }

  .dropdown li {
    padding: 0px;
  }

  .dropdown li a {
    color: white;
  }

  .hero-slider .caption-btn {
    font-size: 0.95rem;
    padding: 10px 18px;
    margin-top: 15px;
  }

  .hero-slider .caption,
  .hero-slider .caption-left,
  .hero-slider .caption-right,
  .hero-slider .caption-center {

    left: 0;
    bottom: 5%;
    transform: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0;
    padding: 20px 10px;
    text-align: center;
  }

  .hero-slider .caption h1 {
    font-size: 1.4rem;
    line-height: 1.2;
  }

  .hero-slider .caption h2 {
    font-size: 1rem;
    line-height: 1.4;
    margin-top: 10px;
  }

  .hero-thin-slider .caption,
  .hero-thin-slider .caption-wide {
    max-width: 90%;
    font-size: 90%;
    padding: 10px;
  }

  .hero-slider .prev,
  .hero-slider .next {
    display: none;
  }



  .video-carousel {
    padding: 0 0;
    background-color: #ffffff;
    text-align: center;
  }

  .carousel-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    padding: 0 0;
  }

  .carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding: 5px 10px;
    -webkit-overflow-scrolling: touch;
    margin-left: 10px;
  }

  .video-card {
    flex: 0 0 95%;
    scroll-snap-align: center;
    border-radius: 8px;
  }

  .video-card video {
    width: 100%;
    height: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  .video-card iframe {
    width: 100%;
    height: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  .carousel-dots {
    display: none;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
  }

  .carousel-dots .dot {
    width: 10px;
    height: 10px;
    background-color: #bbb;
    border-radius: 50%;
    transition: background-color 0.3s;
    cursor: pointer;
  }

  .carousel-dots .dot.active {
    background-color: #333;
  }




  .features-section {
    padding: 40px 20px;
    text-align: center;
  }

  .features-heading {
    margin: 0;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 0;
  }

  .features {
    display: flex;
    flex-direction: row;
    gap: 25px;
    margin:0;
    padding-bottom: 0;
    align-items: center;
  }

  .card {
    width:60%;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  }

  .card img {
    width: 64px;
    height: auto;
    margin-bottom: 15px;
  }

  .card h3,
  .card h4 {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .card p {
    font-size: 0.9rem;
    line-height: 1.5;
  }




  .media-carousel-section {
    padding: 20px 20px;
    background: #fff;
  }

  .carousel-header{
    margin:0;
  }
  .carousel-header h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    text-align: center;
  }

  .carousel-header p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #444;
    text-align: center;
    padding: 0 5px;
  }

  .media-carousel {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    margin-left:0;
  }

  .carousel-panel {
    width: 95%;
    max-width: 95%;
    border-radius: 8px;
    overflow: hidden;
  }

  .carousel-panel video,
  .carousel-panel img,
  .carousel-panel iframe {
    width: 100%;
    height: auto;
    display: block;
    border: none;
  }

  .carousel-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 5px;
    padding: 0 10px;
    background: #fff;
  }

  .carousel-label {
    font-size: 0.85rem;
    padding: 6px 12px;
    background-color: #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
  }

  .carousel-label.active {
    background-color: #222;
    color: #fff;
  }




  .full-image-section {
    padding: 40px 40px;
    margin:0;
  }

  .section-heading{
    margin:0;
    display: flex;
  }
  .full-image-section h2 {
    font-size: 1.5rem;
    margin-bottom: 0;
    text-align: center;
  }

  .full-image-section p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #444;
    text-align: center;
    padding: 0 0;
    margin-top: 20px;
  }

  .full-image-section a {
    margin:0;
    text-align: center;
  }

  .full-image-section img {
    margin:0;
    width: 100%;
    height: auto;
  }

  .full-image-section video {
    margin:0;
    width: 100%;
    height: auto;
  }








  .performance-grid {
    padding: 30px 10px;
    text-align: center;
  }

  .grid-container {
    display: flex !important;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
  }

  .grid-item {
    width: 45%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
  }

  .grid-item.center.wide {
    width: 94%;
  }

  .grid-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
  }

  .overlay-text {
    position: absolute;
    color: #ffffff;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
    padding: 5px;
  }

  .overlay-text h3 {
    font-size: 20px;
    margin: 0;
  }

  .overlay-text h4 {
    font-size: 16px;
    margin: 0;
  }

  .overlay-text p {
    font-size: 12px;
    margin: 0;
  }




  .modular-section {
    padding: 30px 16px;
    text-align: center;
  }

  .modular-heading {
    font-size: 1.5rem;
    margin-bottom: 16px;
  }

  .modular-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    margin-bottom: 30px;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
  }

  .modular-tab {
    flex: 0 0 auto;
    font-size: 0.85rem;
    padding: 8px 12px;
    white-space: nowrap;
  }

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

  .modular-image {
    width: 100%;
    max-width: none;
  }

  .modular-image img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
  }

  .modular-features {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
  }

  .modular-card {
    padding: 16px;
  }

  .modular-card img {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
  }

  .modular-card h4 {
    font-size: 1rem;
  }

  .modular-card p {
    font-size: 0.875rem;
  }








  .spec-section {
    padding: 30px 16px;
  }

  .spec-heading {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .spec-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .spec-tabs {
    display: flex;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto; /* allow scrolling */
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
    margin-bottom: 20px;
    max-width: 100%;
    max-height: 40px;
    scrollbar-width: none;       /* Firefox */
    -ms-overflow-style: none;    /* IE and Edge */
  }

  .spec-tabs::-webkit-scrollbar {
    display: none;               /* Chrome, Safari, Opera */
  }

  .spec-tab {
    flex: 0 0 auto;
    font-size: 0.75rem;
    padding: 6px 10px;
    line-height: 1.2;
    white-space: nowrap;
    text-align: center;
    border-radius: 5px;
    background: #f0f0f0;
    border: 1px solid #ccc;
    max-height: 36px;
  }

  .spec-tab.active {
    background-color: #2c5aa0;
    color: #fff;
    font-weight: bold;
  }
  
  .spec-content {
    max-width: 100%;
  }

  .spec-content h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }

  .spec-content p {
    font-size: 0.9rem;
    margin-bottom: 8px;
  }

  .spec-table {
    font-size: 13px;
    overflow-x: auto;
    display: block;
    width: 100%;
  }

  .spec-table table {
    width: 100%;
    min-width: 600px; /* allow scroll if too narrow */
  }

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

  .dimension-images img {
    max-height: 250px;
  }




  .mlange-capabilities {
    padding: 20px 16px;
  }

  .scrollable-toolbar {
    padding: 20px 0;
    gap: 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
    margin: 0;
  }

  .feature-tab {
    flex: 0 0 auto;
    padding: 8px;
    gap: 8px;
    border-radius: 6px;
  }

  .feature-tab img {
    width: 28px;
    height: 28px;
  }

  .feature-tab span {
    font-size: 13px;
  }

  .feature-details {
    margin: 0;
    gap: 40px;
    overflow-x: hidden;
    scroll-snap-type: x mandatory;
  }

  .feature-content {
    flex-direction: column;
    gap: 20px;
    scroll-snap-align: start;
    min-width: 100%;
    transition: transform 0.3s ease;
  }

  .feature-content img,
  .feature-content video {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
  }

  .feature-text {
    text-align: left;
    padding: 0 2px;
  }

  .feature-text h3 {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .feature-text p {
    font-size: 14px;
    line-height: 1.5;
  }





  .description-section,
  .description-section-black {
    padding: 20px 20px;
    margin:0;
  }

  .description-section h2 {
    font-size: 1.5rem;
    margin-bottom: 0;
    text-align: center;
  }

  .description-section p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #444;
    text-align: center;
    padding: 0 0;
    margin-top: 20px;
  }






  .product-info {
    padding: 30px 16px;
  }

  .product-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
  }

  .tab-button {
    flex: 0 0 auto;
    font-size: 14px;
    padding: 10px 16px;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
  }

  .tab-button.active {
    border-bottom: 2px solid #2c5aa0;
  }

  .tab-content {
    padding: 20px;
    font-size: 14px;
    line-height: 1.5;
  }

  .tab-content p {
    font-size: 14px;
    line-height: 1.5;
  }

  .tab-content ul {
    padding-left: 20px;
  }

  .tab-content li {
    font-size: 14px;
    margin-bottom: 8px;
  }






  .inquiry-container {
    flex-direction: column;
    margin-left: 0;
    gap: 40px;
  }

  .inquiry-form {
    width: 100%;
  }

  .inquiry-image img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 12px;
  }

  .inquiry-form h2 {
    font-size: 1.5rem;
  }

  .inquiry-form p {
    font-size: 0.9rem;
  }

  .form-group {
    flex-direction: column;
    gap: 10px;
  }




  
  /* Caption button */
  .caption-btn {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    margin-top: 15px;
    transition: background 0.3s;
  }


  .caption h1,
  .caption h2 {
    font-size: 1.5rem;
  }

  .description-header {
    flex-direction: column;
    max-width: 100%;
    gap: 20px;
    align-items: center;
  }

  .service-section {
    padding: 20px 20px;
    margin:0;
  }


  .footer-container {
    flex-direction: column;
    gap: 40px;
    max-width: 100%;
    margin: 0;
  }

  .feature-details {
    margin: 0 10px;
  }

  .team-container {
    justify-content: center;
  }

  .feature-content {
    flex-direction: column;
    align-items: center;
  }

  .dimension-images {
    flex-direction: column;
    align-items: center;
  }





  .create-account {
    font-size: 0.8rem;
  }

  .signup-box {
    padding: 1.5rem;
    max-width: 95%;
  }

  .signup-logo img {
    width: 130px;
  }

  .signup-container h2 {
    font-size: 1.2rem;
  }

  .signup-container input,
  .signup-container select {
    font-size: 0.9rem;
    padding: 0.6rem 0.8rem;
  }

  .signup-container button {
    font-size: 0.95rem;
    padding: 0.7rem;
  }


  .account-page {
    flex-direction: column;
  }

  .account-page .sidebar {
    width: 100%;
    margin-bottom: 20px;
  }

  .account-page #personal-info, 
  .account-page #security, 
  .account-page #subscriptions {
    margin-left: 0;
    margin-top: 20px;
  }

  .account-page h3 {
    font-size: 20px;
  }

  .account-page label {
    font-size: 14px;
  }

  .account-page input[type="text"],
  .account-page input[type="email"],
  .account-page input[type="password"],
  .account-page button[type="submit"] {
    font-size: 14px;
  }

}