/* ==========================================================
   Site-wide Responsive Fixes
   Load this AFTER style.css so it overrides fixed widths/heights.
   ========================================================== */

/* Safety net: stop any stray wide element from creating a horizontal
   scrollbar on small screens */
html, body {
  overflow-x: hidden;
}

/* Safety net: every image in the page scales down inside its parent,
   never forces the page wider than the viewport */
img {
  max-width: 100%;
  height: auto;
}

/* "WE PROVIDE COMPLETE SPEED & ENGINE SAFETY SOLUTIONS" info banners —
   these are wide graphic images (Engine-Safety-Temp1.png / Temp2.png),
   make sure they shrink to fit small screens instead of overflowing */
.titlehighlight img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ==========================================================
   Hero Slider (LayerSlider) — Responsive Fix
   ========================================================== */

.hero-layout3 {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* Make the slider wrapper fluid instead of tied to a fixed design width */
.hero-layout3 .vs-hero-carousel,
.hero-layout3 .ls-container,
.hero-layout3 .ls-inner,
.hero-layout3 .ls-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden;
}

/* Background images fill their slide edge-to-edge with zero cropping,
   because the box below is now sized to match the images' true shape. */
.vs-hero-carousel .ls-slide .ls-bg {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center center;
  background-color: #ffffff;
}

/* Keep the slide's TRUE design ratio (1563 / 3333 = 46.9%) at every width.
   This matches what LayerSlider itself calculates internally (see the
   data-height/data-container attributes on .vs-hero-carousel), so the
   HTML arrow layer (positioned by the plugin) always lines up with the
   image content instead of drifting apart at some breakpoints. */
.vs-hero-carousel {
  aspect-ratio: 3333 / 1563;
  height: auto !important;
  min-height: 140px; /* avoids 0-height flash before JS runs */
}

/* Desktop-only arrows inside the slide; mobile/tablet use overlay controls */
.hero-slider-controls {
  display: none;
}

@media (min-width: 1200px) {
  .hero-slider-controls {
    display: none !important;
  }
}

@media (max-width: 1199px) {
  .hero-slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    z-index: 30;
    pointer-events: none;
  }

  .hero-slider-controls .ls-custom-arrow {
    pointer-events: auto;
    --btn-size: 44px;
    --btn-font-size: 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  }
}

/* Shrink the custom arrow buttons a bit on small screens so they read
   as controls, not overlays blocking the banner content */
@media (max-width: 767px) {
  .vs-hero-carousel .ls-custom-arrow,
  .hero-slider-controls .ls-custom-arrow {
    --btn-size: 38px;
    --btn-font-size: 14px;
  }

  .hero-slider-controls {
    bottom: 10px;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .vs-hero-carousel .ls-custom-arrow,
  .hero-slider-controls .ls-custom-arrow {
    --btn-size: 32px;
    --btn-font-size: 12px;
  }

  .hero-slider-controls {
    bottom: 8px;
  }
}

/* Landscape phones — cap height so slider never fills the whole screen */
@media (max-width: 900px) and (orientation: landscape) {
  .vs-hero-carousel {
    aspect-ratio: auto;
    height: 58vh !important;
    min-height: 180px;
    max-height: 420px;
  }
}

/* Very small screens — slightly taller ratio so banner text stays readable */
@media (max-width: 575px) {
  .vs-hero-carousel {
    min-height: 160px;
  }
}

/* ==========================================================
   Website update v4 (July 2026)
   ========================================================== */

/* Exhibition / marine safety panel below hero */
.home-banner-img {
  display: block;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  height: auto;
  object-fit: contain;
}

/* Advance Electronic Products section title */
.home-products-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Hall effect product card — correct orientation (no tilt) */
.industry-sector .team-style1 .team-img img.product-img-straight {
  transform: translate(-50%, -50%) rotate(0deg) !important;
  width: 78% !important;
  height: 78% !important;
  max-width: 78% !important;
  max-height: 78% !important;
}

/* Safety switch test kit cards — sharper, larger product photos */
.industry-sector .team-style1 .team-img img.safety-kit-img {
  width: 88% !important;
  height: 88% !important;
  max-width: 88% !important;
  max-height: 88% !important;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  filter: contrast(1.05) saturate(1.05);
}

/* Engine safety solutions block — header + infographic alignment */
.titleas.titleas-aligned {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  width: 100%;
  max-width: 100%;
  margin: 0 auto 24px;
  padding: 26px 80px;
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
  background: linear-gradient(90deg, #e01f3d 0%, #f23050 50%, #e01f3d 100%) !important;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(224, 31, 61, 0.25);
  isolation: isolate;
}

.titleas.titleas-aligned::before,
.titleas.titleas-aligned::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: conic-gradient(
    #f7c948 0deg 90deg,
    #3ec6c6 90deg 180deg,
    #2f7fd6 180deg 270deg,
    #ffffff33 270deg 360deg
  );
  opacity: 0.9;
  z-index: 0;
}

.titleas.titleas-aligned::before {
  left: -25px;
}

.titleas.titleas-aligned::after {
  right: -25px;
}

.titleas.titleas-aligned a {
  display: block;
  width: 100%;
  max-width: 900px;
  position: relative;
  z-index: 1;
}

.titleas.titleas-aligned .titleas-blink {
  display: inline-block;
  font-family: var(--title-font, "Saira", sans-serif);
  font-weight: 700 !important;
  font-size: clamp(15px, 2.6vw, 24px);
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.35;
  margin: 0;
}

.engine-safety-images {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.engine-safety-img {
  display: block;
  width: 100%;
  max-width: 1100px;
  height: auto;
  margin: 0 auto;
}

.engine-test-report-img {
  max-width: 100%;
  image-rendering: auto;
}

/* Product detail tabs — section header directly above product photos */
.product-images .award-wrap-title.product-image-header {
  margin: 0 0 12px 0 !important;
  width: 100%;
  text-align: center;
  font-size: clamp(14px, 1.6vw, 18px);
  line-height: 1.35;
  padding: 10px 12px;
}

@media (max-width: 767px) {
  .titleas.titleas-aligned {
    min-height: 60px;
    padding: 14px 40px;
    border-radius: 6px;
  }

  .titleas.titleas-aligned::before,
  .titleas.titleas-aligned::after {
    width: 40px;
    height: 40px;
  }

  .titleas.titleas-aligned::before {
    left: -15px;
  }

  .titleas.titleas-aligned::after {
    right: -15px;
  }
}

@media (max-width: 480px) {
  .titleas.titleas-aligned {
    padding: 10px 15px;
  }

  .titleas.titleas-aligned::before,
  .titleas.titleas-aligned::after {
    display: none;
  }
}

/* ==========================================================
   Home Page — Full Responsive Layout
   ========================================================== */

/* Fixed header clearance — header is position:fixed, slider must sit below it */
@media (min-width: 1200px) {
  .hero-layout3 {
    margin-top: 160px !important;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .hero-layout3 {
    margin-top: 150px !important;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .hero-layout3 {
    margin-top: 165px !important;
  }
}

@media (max-width: 767px) {
  .hero-layout3 {
    margin-top: 173px !important;
  }
}

@media (max-width: 575px) {
  .hero-layout3 {
    margin-top: 188px !important;
  }
}

@media (max-width: 480px) {
  .hero-layout3 {
    margin-top: 200px !important;
  }
}

@media (max-width: 991px) {
  .faq-wrap1,
  .faq-wrap2 {
    padding-left: 12px;
    padding-right: 12px;
  }

  .industry-sector {
    padding-left: 12px;
    padding-right: 12px;
  }

  .industry-sector .row.gy-4 {
    --bs-gutter-y: 1.25rem;
  }

  /* Hide duplicate header links — already available in mobile menu */
  .header-layout3 .header-media {
    display: none !important;
  }

  .header-layout3 .header-middle > .container-fluid > .row.align-items-center {
    justify-content: center;
  }

  .header-layout3 .header-middle .col-8 {
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
  }

  .header-layout3 .marquee-wrapper {
    margin-top: 4px;
  }
}

@media (max-width: 767px) {
  .home-banner-img {
    max-width: 100%;
    padding: 0 8px;
    box-sizing: border-box;
  }

  .industry-sector .team-style1 .team-name {
    font-size: 15px;
    min-height: 0;
    line-height: 1.35;
  }

  .industry-sector .team-style1 .team-content {
    padding-left: 10px;
    padding-right: 10px;
  }

  .engine-safety-images {
    gap: 14px;
    padding: 0 8px;
    box-sizing: border-box;
  }

  .footer-wrapper .contact-style1 .contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .footer-wrapper .contact-style1 .vs-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .footer-wrapper iframe {
    min-height: 260px;
    height: 280px !important;
  }
}

@media (max-width: 575px) {
  .header-top .header-top-text {
    font-size: 13px !important;
    letter-spacing: 0.3px !important;
    padding: 0 6px;
  }

  .header-layout3 .header-media ul.list-unstyled {
    gap: 8px 14px !important;
  }

  .header-layout3 .header-media ul.list-unstyled li a {
    font-size: 14px !important;
  }

  .home-products-title {
    padding: 0 10px;
  }

  .industry-sector .team-column {
    padding-left: 8px;
    padding-right: 8px;
  }
}

@media (max-width: 480px) {
  .header-top .header-top-text {
    font-size: 11px !important;
    line-height: 1.25 !important;
  }

  .header-top .header-top-text i {
    margin-right: 4px !important;
  }

  .marquee-content {
    font-size: 12px !important;
  }
}

/* ==========================================================
   Home — Product Showcase Grid (Advance Electronic Products)
   Desktop: 3 cols | Tablet: 2 cols | Mobile: 1 col
   ========================================================== */

.home-section-bg {
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

.home-products-grid {
  width: 100%;
}

.industry-sector .team-column {
  display: flex;
  justify-content: center;
}

.industry-sector .team-style1 {
  width: 100%;
  max-width: 340px;
  margin-bottom: 0;
}

.industry-sector .team-style1 .team-img {
  width: clamp(190px, 72%, 250px);
  height: clamp(190px, 72%, 250px);
  flex-shrink: 0;
}

.industry-sector .team-style1 .team-content {
  width: 100%;
  max-width: 100%;
  margin-top: clamp(-130px, -38%, -150px);
  padding: clamp(145px, 42%, 170px) clamp(16px, 4vw, 40px) 28px;
  min-height: 0;
  box-sizing: border-box;
}

.industry-sector .team-style1 .team-name {
  min-height: 0;
  font-size: clamp(14px, 1.8vw, 18px);
  line-height: 1.35;
}

.industry-sector .team-style1 .team-number {
  font-size: clamp(15px, 1.6vw, 18px);
  margin-top: auto;
}

.industry-sector .team-style1 .team-degi {
  padding-bottom: 12px;
  margin-bottom: 14px;
}

/* Hover / active card state — blue panel like design */
.industry-sector .team-style1:hover .team-content,
.industry-sector .team-style1:focus-within .team-content {
  background-color: #2769bf;
}

.industry-sector .team-style1:hover .team-name a,
.industry-sector .team-style1:hover .team-number a,
.industry-sector .team-style1:focus-within .team-name a,
.industry-sector .team-style1:focus-within .team-number a {
  color: #fff !important;
}

/* Section spacing */
.industry-sector.space-top {
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(30px, 5vw, 60px);
}

.industry-sector .container {
  max-width: 1200px;
}

/* Exhibition banner section */
.faq-wrap1 {
  padding-top: clamp(30px, 5vw, 80px);
  padding-bottom: 0;
}

.faq-wrap1.faq-wrap2 {
  padding-top: clamp(20px, 4vw, 30px);
  padding-bottom: clamp(20px, 4vw, 30px);
}

/* Footer — stack cleanly on small screens */
.footer-wrapper .container-fluid {
  padding-left: 12px;
  padding-right: 12px;
}

@media (max-width: 991px) {
  .home-section-bg {
    background-size: cover;
  }

  .industry-sector .team-style1 {
    max-width: 320px;
  }

  .industry-sector .team-style1 .team-content {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .industry-sector.space-top {
    padding-top: 32px;
    padding-bottom: 36px;
  }

  .industry-sector .team-style1 {
    max-width: 100%;
  }

  .industry-sector .team-style1 .team-img {
    width: clamp(200px, 58vw, 240px);
    height: clamp(200px, 58vw, 240px);
  }

  .home-products-grid {
    --bs-gutter-x: 0.75rem;
  }
}

@media (max-width: 575px) {
  .industry-sector .team-style1 .team-img {
    width: 220px !important;
    height: 220px !important;
  }

  .industry-sector .team-style1 .team-content {
    margin-top: -130px;
    padding-top: 150px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 22px;
  }

  .faq-wrap1 {
    padding-top: 24px;
  }
}

@media (max-width: 360px) {
  .industry-sector .team-style1 .team-img {
    width: 190px !important;
    height: 190px !important;
  }

  .industry-sector .team-style1 .team-content {
    margin-top: -110px;
    padding-top: 130px;
    padding-left: 14px;
    padding-right: 14px;
  }
}


/* ==========================================
   Extra Large Desktop (1600px and above)
========================================== */
@media (min-width:1600px){

}

/* ==========================================
   Large Desktop (1400px - 1599px)
========================================== */
@media (max-width:1599px){

}

/* ==========================================
   Laptop (1200px - 1399px)
========================================== */
@media (max-width:1399px){

}

/* ==========================================
   Small Laptop (992px - 1199px)
========================================== */
@media (max-width:1199px){

}

/* ==========================================
   Tablet Landscape (768px - 991px)
========================================== */
@media (max-width:991px){

    .container{
        max-width:100%;
        padding-left:15px;
        padding-right:15px;
    }

    h1{font-size:40px;}
    h2{font-size:34px;}
    h3{font-size:28px;}
}

/* ==========================================
   Tablet Portrait (768px)
========================================== */
@media (max-width:767px){

    h1{font-size:34px;}
    h2{font-size:28px;}
    h3{font-size:24px;}
    h4{font-size:20px;}

    .container{
        padding-left:15px;
        padding-right:15px;
    }

    img{
        max-width:100%;
        height:auto;
    }
}

/* ==========================================
   Large Mobile (576px - 767px)
========================================== */
@media (max-width:575px){

    body{
        font-size:15px;
    }

    h1{font-size:30px;}
    h2{font-size:26px;}
    h3{font-size:22px;}

}

/* ==========================================
   Mobile (481px - 575px)
========================================== */
@media (max-width:480px){

    body{
        font-size:14px;
    }

    h1{font-size:28px;}
    h2{font-size:24px;}
    h3{font-size:20px;}

}

/* ==========================================
   Small Mobile (360px - 480px)
========================================== */
@media (max-width:360px){

    h1{font-size:24px;}
    h2{font-size:22px;}
    h3{font-size:18px;}

}

/* ==========================================
   Extra Small Mobile (320px)
========================================== */
@media (max-width:320px){

    body{
        font-size:13px;
    }

}

/* ===========================
   Hero Slider Fix
=========================== */

.hero-layout3,
.vs-hero-carousel,
.ls-container,
.ls-inner,
.ls-slide{
    width:100%;
    height:auto !important;
}

.vs-hero-carousel{
    aspect-ratio:1920 / 709;
    overflow:hidden;
}

.ls-bg{
    width:100% !important;
    height:100% !important;
    object-fit:contain !important;
    object-position:center center;
}

.hero-layout3{
    width:100%;
    overflow:hidden;
}

.vs-hero-carousel{
    width:100%;
    height:auto !important;
}

.ls-container,
.ls-inner,
.ls-wrapper,
.ls-slide{
    width:100% !important;
    height:auto !important;
}

.ls-bg{
    width:100% !important;
    height:auto !important;
    max-width:100%;
    display:block;
}

@media(max-width:1920px){
    .vs-hero-carousel{
        height:auto !important;
    }
}

@media(max-width:991px){
    .vs-hero-carousel{
        height:auto !important;
    }
}

@media(max-width:767px){
    .vs-hero-carousel{
        height:auto !important;
    }
}