/*--------------------------------------------------------------
#Smart Toilet - Title Section
--------------------------------------------------------------*/
.title {
  height: 85vh;
  background-color: #011530;
  overflow: hidden;
}

.title-left {
  background-color: #011530;
  color: #fff;
  padding-left: 6vw;
}

.title-content {
  max-width: 500px;
}

.ifm-desc1 {
  color: #bdbdbd; /* light grey */
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 520px;
}

@media(max-width: 2980px) {
  .title .title-desc {
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin-left: 20px;
  }
}

@media(max-width: 1920px) {
  .title .title-desc {
    font-size: 2.8rem;
    font-weight: 600;
    line-height: 1.2;
    margin-left: 20px;
  }
}

@media(max-width: 1280px) {
  .title .title-desc {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin-left: 20px;
  }
}

@media (max-width: 1920px) {
  .title p {
    font-size: 1.0rem;
    line-height: 2.0rem;
    margin-left: 20px;
  }
}

@media (max-width: 500px) {
  .title p {
    font-size: 0.9rem !important;
    line-height: 1.2rem;
    margin-left: 20px;
  }
}

.title-right {
  background-image: url('../img/products/products-ifm/products-background-1.png?v=1.0');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section-eyebrow {
  font-size: 0.9rem; /* small */
  font-weight: 600;
  letter-spacing: 0.06em; /* spaced like the example */
  color: #17d2e5; /* your blue */
}

@media(max-width: 2980px) {
  .section-eyebrow {
    font-size: 1.5rem;
  }

  .ifm-desc1 {
    font-size: 1.2rem;
  }
}

@media (max-width: 991px) {
  .title {
    height: auto; /* allow hero to grow */
    min-height: 62vh; /* optional: keep a nice minimum */
  }

    .title .row.h-100 {
      height: auto !important; /* stop forcing full height */
    }

  .title-right {
    min-height: 30vh; /* your bigger image */
  }

  .title-left {
    padding: 2rem 1.5rem; /* give text space */
  }
}


@media (max-width: 991.98px) {
  .title {
    height: 65vh;
  }

    .title .title-desc {
      font-size: 3rem;
    }

    .title::after {
      top: 50%;
      left: 50%;
      width: 80%;
      height: 80%;
    }

  .title-content {
    left: 50%;
    width: 80%;
  }

  .title .title-desc {
    margin-left: 20px;
    font-size: 1.9rem !important;
  }
}

@media (max-width: 767.98px) {
  .title {
    height: 35vh;
    background-size: cover;
  }

    .title .title-desc {
      font-size: 2rem;
    }
}



/*--------------------------------------------------------------
#Smart Toilet - Content Section
--------------------------------------------------------------*/
.content {
  background-color: #ffffff;
  display: inline-block;
  width: 100%;
}

  .content h3 {
    font-size: 2.2rem;
    font-weight: 600;
    color: #1F1F1F;
  }

  .content p {
    font-size: 1.2rem;
    font-weight: 500;
    color: #5F475A;
  }

.content-item-1 {
  background-color: #FFFFFF;
  border-radius: 20px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  padding: 50px;
}

.content-item-img-1 {
  background-image: url('../img/products/product-fbkiosk/description-img-1.png');
  background-size: contain;
  background-repeat: no-repeat;
  height: 600px;
  width: 800px;
  color: white;
}

.content-item-line {
  position: relative;
  display: flex;
  justify-content: center;
  transform: translateY(8px);
}

/* Grey background line */
.vertical-line-bg {
  position: absolute;
  top: 0;
  width: 2px;
  height: 100%;
  background-color: #d9d9d9;
  z-index: 0;
}

/* Blue progress line (will be toggled on with .active) */
.vertical-line-fg {
  position: absolute;
  top: 0;
  width: 2px;
  height: 0%; /* Start from 0, will animate to 100% */
  background-color: #d9d9d9;
  z-index: 1;
  transition: background-color 5s;
}

  .vertical-line-fg.active {
    background-color: #00bbff;
    animation: lineGrow 5s ease-out forwards;
  }

/* Circles: start grey */
.content-item-circle {
  width: 20px;
  height: 20px;
  background-color: #d9d9d9;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  transition: background-color 0.5s;
}

  /* Completed/active dots */
  .content-item-circle.active {
    background-color: #00bbff;
  }

@keyframes lineGrow {
  from {
    height: 0%;
  }

  to {
    height: 100%;
  }
}

.content-item-1 .content-item-title {
  font-size: 1.5rem;
  padding-bottom: 80px;
  color: #949494;
  cursor: pointer;
}

  .content-item-1 .content-item-title.active {
    color: #000;
  }

.card-img.active {
  display: block;
}

.card-img {
  display: none;
}

@media (max-width: 1256px) {
  .content-item-1 {
    padding: 25px;
  }

  .content-item-img-1, .content-item-img-2, .content-item-img-3,
  .content-item-img-4, .content-item-img-5 {
    height: 60vh;
    width: 80vw;
    background-position: center;
  }

  .content-item-1 .content-item-title-m {
    padding-bottom: 20px;
    font-size: 1rem;
    color: #949494;
    cursor: pointer;
  }

    .content-item-1 .content-item-title-m.active {
      color: #000;
    }

  .content-item-line-m {
    position: relative;
    display: flex;
    justify-content: center;
    transform: translateY(8px);
  }

  /* Grey background line */
  .vertical-line-bg-m {
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: #d9d9d9;
    z-index: 0;
  }

  /* Blue progress line (will be toggled on with .active) */
  .vertical-line-fg-m {
    position: absolute;
    top: 0;
    width: 2px;
    height: 0%; /* Start from 0, will animate to 100% */
    background-color: #d9d9d9;
    z-index: 1;
    transition: background-color 5s;
  }

    .vertical-line-fg-m.active {
      background-color: #00bbff;
      animation: lineGrow 5s ease-out forwards;
    }

  /* Circles: start grey */
  .content-item-circle-m {
    width: 20px;
    height: 20px;
    background-color: #d9d9d9;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    transition: background-color 0.5s;
  }

    /* Completed/active dots */
    .content-item-circle-m.active {
      background-color: #00bbff;
    }

  .card-img-m.active {
    display: block;
  }

  .card-img-m {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .content-item-img-1 {
    height: 45vh;
  }
}
/*--------------------------------------------------------------
# Detail Section
--------------------------------------------------------------*/
.detail-title {
  font-size: 2.5rem;
  line-height: 0.8;
  margin-bottom: 1.5rem;
}

.detail .detail-item-1 {
  display: flex;
  background-color: #F5F5F5;
  border-radius: 20px;
  padding: 2.5rem;
  height: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
  transition: all 0.4s ease;
}

.detail .detail-item-2 {
  display: flex;
  background-color: #00AAFF;
  border-radius: 20px;
  padding: 2.5rem;
  height: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
  transition: all 0.4s ease;
}

.detail .detail-content {
  flex-grow: 1;
}

  .detail .detail-content h1 {
    color: #00AAFF;
    align-content: end;
    border-bottom: solid 1px black;
    padding-bottom: 8px;
    font-size: 1.2rem;
  }

  .detail .detail-content .h-50 {
    height: 50px !important;
  }

  .detail .detail-content .white-border {
    border-bottom: solid 1px white;
  }

  .detail .detail-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--heading-color);
  }

  .detail .detail-content p {
    margin-bottom: 1.25rem;
    font-size: 1.2rem;
    height: 75px;
    color: #949494;
  }

  .detail .detail-content .title-icon {
    display: inline-block;
    width: 80px;
    height: 80px;
    margin: 20px 0;
    background-size: contain;
    background-repeat: no-repeat;
  }

@media (max-width: 767.98px) {
  .detail-title {
    font-size: 2.0rem;
    line-height: 1.2;
  }

  .detail .detail-item {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }

  .detail .detail-content .h-50, .detail .detail-content h1 {
    height: unset !important;
  }

  .detail .detail-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
  }

  .detail .detail-content p {
    margin-bottom: 0;
    font-size: 0.95rem;
  }

  .detail .detail-content .title-icon {
    margin: 0;
    margin-top: 20px;
  }
}

@media (max-width: 575.98px) {
  .detail-title {
    font-size: 1.6rem;
  }

  .detail .trust-item {
    flex-direction: column;
    text-align: center;
  }

    .detail .trust-item::before {
      width: 100%;
      height: 4px;
      transform: scaleX(0);
      transform-origin: left;
    }
}

/*--------------------------------------------------------------
# Awards Section
--------------------------------------------------------------*/
.section-title {
  color: #000;
  font-weight: 600;
}

.awards p {
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  color: #949494;
}

@media (max-width: 575.98px) {
  .awards p {
    font-size: 1rem;
  }
}
/*--------------------------------------------------------------
# Faq Section
--------------------------------------------------------------*/
.contact {
  /*  background-color: #F2FCFF;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);*/
  padding: 2rem;
  overflow: hidden;
  transition: all 0.3s ease;
}


@media (max-width: 2560px) {
  .contact h3 {
    font-size: 1.8rem;
    font-weight: 600;
  }
}

@media (max-width: 700px) {
  .contact h3 {
    font-size: 1.3rem;
    font-weight: 600;
  }
}

.contact p {
  font-size: 1.2rem;
  font-weight: 500;
  color: #949494;
}

.contact a {
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  width: 180px;
  padding: 15px;
  border-radius: 18px;
  background-color: #E83C3C;
  border-color: #dc3545;
}

  .contact a:hover {
    color: #fff;
    background-color: #C23636;
    border-color: #b02a37;
  }

.ifm-split-section {
  background-color: #ffffff;
}

.ifm-image {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}


@media (max-width: 2560px) {
  .ifm-title {
    font-size: 2.3rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
  }

  .ifm-desc {
    font-size: 1.2rem;
    color: #555;
    /*max-width: 520px;*/
  }

  .ifm-btn {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 500;
    width: 300px;
    padding: 15px;
    border-radius: 18px;
    background-color: #006CD1;
    border-color: #006CD1;
  }
}

@media (max-width: 1960px) {
  .ifm-desc {
    font-size: 1.0rem;
  }
  .ifm-btn {
    font-size: 1.3rem;
  }
}

  @media (max-width: 700px) {
    .ifm-title {
      font-size: 1.4rem;
      font-weight: 600;
      color: #333;
      line-height: 1.3;
    }


    .ifm-desc {
      font-size: 0.9rem;
      color: #555;
      /*max-width: 520px;*/
    }

    .ifm-btn {
      color: #fff;
      font-size: 0.9rem;
      font-weight: 500;
      width: 230px;
      padding: 15px;
      border-radius: 18px;
      background-color: #006CD1;
      border-color: #006CD1;
    }
  }


  .card-content-desc-1 {
    position: sticky;
    top: 40px;
    font-size: 1.2rem;
    color: #5C5C5C;
  }

  #card-solutions-img-1 {
    background-image: url('../img/products/product-rfs/sgbc.png?v=1');
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    height: 300px;
    color: white;
    background-size: contain;
  }


  .sgbc .sgbc-container {
    max-width: 1000px;
    margin: 100px auto;
    padding: 2px;
  }

  .sgbc .sgbc-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-bottom: 2.5rem;
  }

    .sgbc .sgbc-item .content {
      width: 100%;
      position: relative;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

  @media (max-width: 767.98px) {
    .sgbc .sgbc-container {
      max-width: 600px;
      margin: 50px auto;
      padding: 1rem 0;
    }

    .sgbc .sgbc-item {
      padding-bottom: 2rem;
    }

      .sgbc .sgbc-item .content {
        border-width: 1px;
      }

    #card-solutions-img-1 {
      height: 200px;
    }
  }

  @media (max-width: 991px) {
    .title-left {
      padding-right: 1rem !important;
      padding-left: 1rem !important;
    }

    .title-content {
      width: 100%;
      max-width: 100%;
      padding-right: 0;
    }

    .title .row.h-100 {
      height: auto !important;
    }

    .title {
      height: auto;
    }
  }



  /*--------------------------------------------------------------
# Description Section
--------------------------------------------------------------*/
  .description-item p {
    font-weight: 400;
    font-size: 1.5rem;
    color: #00AAFF;
  }

  .description-title {
    position: static;
    z-index: 60;
    background-color: #ffffff; /* optional: avoid overlapping content */
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-size: 2.3rem; /* slightly bigger */
    font-weight: 700; /* bolder */
    color: #5C4657; /* your purple tone */
    margin-bottom: 2rem;
  }

  @media (max-width: 767.98px) {
    .description-title {
      font-size: 1.5rem;
    }
  }

  .description .description-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
  }

    .description .description-item .content {
      width: 100%;
      position: relative;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }


  @media (max-width: 767.98px) {
    .description-item p {
      font-size: 1.1rem;
    }

    .card-content-title {
      font-size: 1.75rem;
      line-height: 2rem !important;
    }

    .card-content-desc {
      position: sticky;
      top: 40px;
      font-size: 1.1rem;
      line-height: 1.5rem;
    }


    .description .description-container {
      max-width: 600px;
    }


    .description .description-item .content {
      border-width: 1px;
    }
  }

  .blue-text {
    color: #17d2e5; /* adjust blue tone */
    font-weight: 700;
  }

  .btn-explore {
    padding: 12px 40px; /* height + width */
    font-size: 1.1rem; /* bigger text */
    font-weight: 600; /* thicker text */
    border-radius: 50px; /* pill shape */
    min-width: 175px; /* makes button longer */
  }

  /* Allow sticky to work inside this section */
  .description.section {
    overflow: visible; /* IMPORTANT */
  }

  /* Ensure image block can position hotspots */



  /*--------------------------------------------------------------
# Applications Section
--------------------------------------------------------------*/
  .applications-slider .slick-slide {
    box-sizing: border-box;
    border: 2px solid #fff;
    border-radius: 5px;
    overflow: hidden;
    margin: 0 10px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .applications .applications-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
  }

    .applications .applications-img img {
      min-width: 9vw !important;
      min-height: 22.5vh !important;
      width: 100%;
      height: 100%;
      object-fit: contain;
      object-position: center;
      vertical-align: middle;
      display: inline-block;
    }

    .applications .applications-img .text-applications {
      color: #FFFFFF;
      font-weight: 500;
      font-size: 1vw;
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
      text-align: center;
    }

  @media (max-width: 850px) {
    .applications-slider .slick-slide {
      margin: 0 2px;
    }

    .applications .applications-img img {
      min-width: 255px !important;
      min-height: 160px !important;
    }

    .applications .applications-img .text-applications {
      font-size: 1rem;
    }
  }

  @media (max-width: 500px) {
    .applications .applications-img img {
      min-width: 300px !important;
      min-height: 170px !important;
    }
  }

  /*--------------------------------------------------------------
# IFM Section
--------------------------------------------------------------*/
  /* Map container */
  #ifm-section .card-description-center {
    /* optional: constrain width if needed */
  }



  #card-description-img-4 {
    position: relative;
    width: 100vw; /* full width */
    height: 100vh; /* full screen height */
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background-image: url('../img/products/products-ifm/description-img-4.png?v=1.1');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /*  add these: */
    transition: transform 0.6s ease;
    transform-origin: center center;
  }

  /* LABELS */
  .ifm-label {
    position: absolute;
    border: none;
    background: none;
    padding: 0;
    font-size: 1.0rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    /*  text-transform: uppercase;*/
    color: #ffffff;
    cursor: pointer;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
    transition: color 0.25s ease, transform 0.25s ease, text-shadow 0.25s ease;
  }

  #transparent {
    position: relative;
    /*  background-image: url('../img/products/products-ifm/description-img-4 (1).jpg');
  opacity: 50%;*/
    margin-left: auto;
    margin-right: auto;
    height: 100%;
    opacity: 1; /* default visible */
    transition: opacity 0.3s ease; /* smooth fade */
  }

  @media (max-width: 2560px) {
    #transparent {
      width: 1100px;
    }
  }

  @media (max-width: 2200px) {
    #transparent {
      width: 900px;
    }
  }

  @media (max-width: 1900px) {
    #transparent {
      width: 800px;
    }
  }

  @media (max-width: 1280px) {
    #transparent {
      width: 550px;
    }
  }

  @media (max-width: 700px) {
    #transparent {
      width: 400px;
    }
  }

  @media (max-width: 500px) {
    #transparent {
      width: 380px;
    }
  }


  /* Hover effect on label text */
  .ifm-label:hover,
  .ifm-label:focus {
    color: #00e0ff;
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(0, 224, 255, 0.9);
  }



  /* Hover effect */
  .ifm-label:hover {
    color: #00E0FF;
  }



  /* ACTIVE label (when clicked) */
  .ifm-label.active {
    color: #00e0ff;
  }

  /* --- Position each label  tweak these percentages visually --- */

  @media (max-width: 2980px) {
    .ifm-label-smart {
      top: 38%;
      left: 12%;
    }

    /* cleaning robot  floor left */
    .ifm-label-robot {
      top: 75%;
      left: 78%;
    }

    .ifm-label-rfs {
      top: 46%;
      left: 10%;
    }

    /* front-left: VMS */
    .ifm-label-vms {
      bottom: 36%;
      left: 5%;
    }

    /* bottom-left: Landlord Tenant */
    .ifm-label-ltec {
      bottom: 32%;
      left: 82%;
    }

    /* middle-right: FAM */
    .ifm-label-fam {
      bottom: 53%;
      right: 4%;
    }

    /* right middle: GTS */
    .ifm-label-gts {
      right: 79%;
      top: 82%;
    }

    /* top-right: Service Rating */
    .ifm-label-srfb {
      top: 87%;
      right: 27%;
    }
  }

  @media (max-width: 2100px) {
    .ifm-label-smart {
      top: 38%;
      left: 12%;
    }

    /* cleaning robot  floor left */
    .ifm-label-robot {
      top: 75%;
      left: 78%;
    }

    .ifm-label-rfs {
      top: 42%;
      left: 5%;
    }

    /* front-left: VMS */
    .ifm-label-vms {
      bottom: 35%;
      left: 3%;
    }

    /* bottom-left: Landlord Tenant */
    .ifm-label-ltec {
      bottom: 33%;
      left: 81%;
    }

    /* middle-right: FAM */
    .ifm-label-fam {
      bottom: 54%;
      right: 6%;
    }

    /* right middle: GTS */
    .ifm-label-gts {
      right: 74%;
      top: 84%;
    }

    /* top-right: Service Rating */
    .ifm-label-srfb {
      top: 85%;
      right: 25%;
    }
  }

  @media (max-width: 1900px) {
    .ifm-label-smart {
      top: 39%;
      left: 9%;
    }

    /* cleaning robot  floor left */
    .ifm-label-robot {
      top: 72%;
      left: 77%;
    }

    .ifm-label-rfs {
      top: 42%;
      left: 3%;
    }

    /* front-left: VMS */
    .ifm-label-vms {
      bottom: 36%;
      left: 2%;
    }

    /* bottom-left: Landlord Tenant */
    .ifm-label-ltec {
      bottom: 33%;
      left: 79%;
    }

    /* middle-right: FAM */
    .ifm-label-fam {
      bottom: 54%;
      right: 8%;
    }

    /* right middle: GTS */
    .ifm-label-gts {
      right: 68%;
      top: 83%;
    }

    /* top-right: Service Rating */
    .ifm-label-srfb {
      top: 88%;
      right: 30%;
    }
  }

  @media (max-width: 1280px) {
    .ifm-label-smart {
      top: 37%;
      left: 0%;
    }

    /* cleaning robot  floor left */
    .ifm-label-robot {
      top: 73%;
      left: 79%;
    }

    .ifm-label-rfs {
      top: 38%;
      left: 2%;
    }

    /* front-left: VMS */
    .ifm-label-vms {
      bottom: 36%;
      left: 0%;
    }

    /* bottom-left: Landlord Tenant */
    .ifm-label-ltec {
      bottom: 30%;
      left: 79%;
    }

    /* middle-right: FAM */
    .ifm-label-fam {
      bottom: 55%;
      right: 1%;
    }

    /* right middle: GTS */
    .ifm-label-gts {
      right: 68%;
      top: 82%;
    }

    /* top-right: Service Rating */
    .ifm-label-srfb {
      top: 85%;
      right: 20%;
    }
  }

  /* OVERLAY when a module is selected */
  .ifm-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease;
    /*background: linear-gradient( to right, rgba(0, 0, 0, 0.0) 40%, rgba(0, 0, 0, 0.6) 100% );*/
  }

  /* Panel content */
  .ifm-panel {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    max-width: 340px;
    color: #ffffff;
  }

  /* Show overlay + make it clickable when active */
  .ifm-map.show-panel .ifm-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .ifm-panel {
    position: absolute;
    max-width: 260px;
    background: rgba(0, 0, 0, 0.5);
    padding: 24px 28px;
    border-radius: 4px;
    color: #ffffff;
    transform: translate(-50%, -50%); /* center on (top,left) */
  }


  /* rest of your existing panel styles can stay, just remove old top/right */
  .ifm-panel-title {
    font-size: 1.0rem !important;
    font-weight: 700;
    margin-bottom: 0.5rem;
  }

  .ifm-panel-desc {
    font-size: 0.65rem !important;
    margin-bottom: 1rem;
    color: #E3E3E3 !important;
    text-align: left;
  }


  /* Simple zoom when any module is open (if you want a generic zoom) */
  .ifm-map.zoom {
    transform: scale(1.12);
  }


  @media (max-width: 2560px) {
    /* Per-module zoom & pan (full transform for each) */
    .ifm-map.zoom-smart {
      transform: scale(1.5) translate(15%, 1%);
    }

    .ifm-map.zoom-rfs {
      transform: scale(2.5) translate(15%, 1%);
    }

    .ifm-map.zoom-robot {
      transform: scale(2.0) translate(-12%, -22%);
    }

    .ifm-map.zoom-vms {
      transform: scale(2.0) translate(15%, -15%);
    }

    .ifm-map.zoom-ltec {
      transform: scale(2.0) translate(-10%, -10%);
    }

    .ifm-map.zoom-fam {
      transform: scale(2.0) translate(-20%, 0%);
    }

    .ifm-map.zoom-gts {
      transform: scale(2.0) translate(10%, -15%);
    }

    .ifm-map.zoom-srfb {
      transform: scale(2.0) translate(3%, -22%);
    }
  }

  @media (max-width: 1920px) {
    /* Per-module zoom & pan (full transform for each) */
    .ifm-map.zoom-smart {
      transform: scale(2.0) translate(15%, 1%);
    }

    .ifm-map.zoom-rfs {
      transform: scale(2.5) translate(15%, 1%);
    }

    .ifm-map.zoom-rfs {
      transform: scale(2.0) translate(15%, 1%);
    }

    .ifm-map.zoom-robot {
      transform: scale(2.0) translate(-12%, -22%);
    }

    .ifm-map.zoom-vms {
      transform: scale(2.0) translate(15%, -15%);
    }

    .ifm-map.zoom-ltec {
      transform: scale(2.0) translate(-10%, -10%);
    }

    .ifm-map.zoom-fam {
      transform: scale(2.0) translate(-20%, 0%);
    }

    .ifm-map.zoom-gts {
      transform: scale(2.0) translate(10%, -15%);
    }

    .ifm-map.zoom-srfb {
      transform: scale(2.0) translate(3%, -22%);
    }
  }




  /* Mobile: reduce height so it doesnt dominate */
  @media (max-width: 767.98px) {


    .ifm-panel {
      right: 50%;
      max-width: 300px !important;
    }

    .ifm-label {
      font-size: 0.7rem;
    }
  }

  /* Mobile tweak: when screen < 700px wide */
  @media (max-width: 700px) {
    #card-description-img-4 {
      height: 55vh; /* shorter hero, not so tall */
      background-size: cover; /* still fill width */
      background-position: center top; /* focus more on upper part */
    }
  }

  .container1 {
    position: relative;
    text-align: center;
    color: white;
  }

  .bottom-left {
    position: absolute;
    bottom: 8px;
    left: 16px;
  }

  .top-left {
    position: absolute;
    top: 8px;
    left: 16px;
  }

  .top-right {
    position: absolute;
    top: 8px;
    right: 16px;
  }

  .bottom-right {
    position: absolute;
    bottom: 8px;
    right: 16px;
  }

  .centered {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  /*--------------------------------------------------------------
# Faq Section
--------------------------------------------------------------*/
  .contact .contact-item {
    background-color: var(--surface-color);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    border-radius: 25px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
  }

    .contact .contact-item:hover {
      box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1), 0 -4px 10px rgba(0, 0, 0, 0.05);
      transform: translateY(2px);
    }

  .ifm-image-title {
    position: absolute;
    top: 5%; /* distance from top of image  adjust as needed */
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #ffffff;
    font-size: 2.0rem;
    font-weight: 700;
    line-height: 2.3rem;
    text-shadow: 0 3px 8px rgba(0,0,0,0.4); /* readable over image */
    z-index: 20; /* above image, below menu */
    width: 90%; /* prevent overflow on mobile */
  }


  .ifm-image-click {
    position: absolute;
    top: 12%; /* distance from top of image  adjust as needed */
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #ffffff;
    font-size: 1.0rem;
    font-weight: 300;
    line-height: 2.3rem;
    text-shadow: 0 3px 8px rgba(0,0,0,0.4); /* readable over image */
    z-index: 20; /* above image, below menu */
    width: 90%; /* prevent overflow on mobile */
  }

  @media (max-width: 1900px) {
    .ifm-image-click {
      font-size: 1.0rem;
    }

    .ifm-image-cta {
      font-size: 1.0rem;
      top: 17%;
    }
  }

  /* optional mobile resizing */
  @media (max-width: 700px) {
    .ifm-image-title {
      font-size: 1.4rem;
      line-height: 1.6rem;
      top: 0%;
    }

    .ifm-image-click {
      font-size: 0.9rem;
      line-height: 1.3rem;
      top: 7%;
    }

    .ifm-image-cta {
      font-size: 0.9rem;
      line-height: 1.3rem;
      top: 20%;
    }
  }

  /* When panel is open, hide transparent layer (labels) */
  .ifm-map.show-panel #transparent {
    opacity: 0;
    pointer-events: none; /* so clicks go to panel / overlay, not labels */
  }

  .ifm-panel-link {
    display: inline-block;
    background: #00aaff;
    padding: 6px 18px; /*  smaller button */
    font-size: 0.7rem; /*  smaller text */
    font-weight: 600;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    transition: background 0.25s ease;
  }

    .ifm-panel-link:hover {
      background: #0088d7;
    }

  @media (max-width: 1280px) {
    .ifm-panel {
      max-width: 150px;
      padding: 14px 18px;
    }

    .ifm-panel-title {
      font-size: 0.8rem;
    }

    .ifm-panel-desc {
      font-size: 0.8rem;
    }

    .ifm-panel-link {
      padding: 5px 14px;
      font-size: 0.6rem;
    }
  }

  @media (max-width: 700px) {
    .ifm-panel {
      max-width: 190px;
      padding: 12px 14px;
    }

    .ifm-panel-title {
      font-size: 0.8rem;
    }

    .ifm-panel-desc {
      font-size: 0.7rem;
      line-height: 1.2rem;
    }

    .ifm-panel-link {
      padding: 4px 12px;
      font-size: 0.75rem;
    }
  }

  /*@media (max-width: 768px) {
  .ifm-label {
    color: #ffffff !important;*/ /* force normal color */
  /*text-shadow: none !important;*/ /* remove glow */
  /*transform: none !important;*/ /* remove lift effect */
  /*}

    .ifm-label:hover,
    .ifm-label:focus,
    .ifm-label.active {
      color: #ffffff !important;
      text-shadow: none !important;
      transform: none !important;
    }
}*/

  /* Scroll highlight effect (same as hover) */
  .ifm-label.ifm-highlight {
    color: #00e0ff;
    transform: translateY(-5px);
    text-shadow: 0 0 10px rgba(0, 224, 255, 0.9);
    transition: all 0.5s ease;
  }

  .ifm-bullet {
    display: flex;
    align-items: center; /* fixes vertical misalignment */
    gap: 8px;
    margin-bottom: 6px;
  }

    .ifm-bullet:last-child {
      margin-bottom: 0;
    }

    .ifm-bullet .material-symbols-outlined {
      font-size: 18px;
      line-height: 1;
      padding-bottom: 3px;
    }

  .ifm-label {
    text-align: left; /* text alignment */
    justify-content: flex-start; /* if button is flex */
    align-items: flex-start; /* align multi-line titles */
  }



  .ifm-panel {
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .ifm-map.show-panel .ifm-panel {
    opacity: 1;
  }



  /* FORCE panel to stay in DOM so opacity can animate */
  .ifm-panel {
    display: block !important; /*  this fixes the jump */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 1.3s ease;
  }

  .ifm-map.show-panel .ifm-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .ifm-map {
    transition: transform 2.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  /* Overlay should NOT block mouse */
  .ifm-overlay {
    pointer-events: none;
  }

  /* Panel itself should receive mouse */
  .ifm-panel {
    pointer-events: auto;
  }

  .ifm-panel {
    position: absolute; /* already likely */
  }

  @media(max-width: 2800px) {
    .ifm-panel-close {
      position: absolute;
      top: 8px;
      right: 10px;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      border: none;
      background: rgba(0, 0, 0, 0.06);
      color: #f5f5f5;
      font-size: 22px;
      line-height: 32px;
      text-align: center;
      cursor: pointer;
      z-index: 5;
      transition: background 0.2s ease, transform 0.2s ease;
    }
  }

  @media(max-width: 1500px) {
    .ifm-panel-close {
      position: absolute;
      top: 0px;
      right: 5px;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      border: none;
      background: rgba(0, 0, 0, 0.06);
      color: #f5f5f5;
      font-size: 15px;
      line-height: 32px;
      text-align: center;
      cursor: pointer;
      z-index: 5;
      transition: background 0.2s ease, transform 0.2s ease;
    }
  }

  .ifm-panel-close:hover {
    background: rgba(0, 0, 0, 0.12);
    transform: scale(1.05);
  }

  /* ---------- MOBILE PANEL (CENTERED CARD) ---------- */
  @media (max-width: 768px) {
    .ifm-panel {
      position: absolute !important;
      /* center on screen */
      top: 55%;
      left: 50%;
      transform: translate(-50%, -50%) !important;
      /* size */
      width: 200vw;
      max-width: 80vw;
      /*  let height be defined by content */
      height: auto;
      max-height: 70vh; /* cap only when content is long */
      /* spacing */
      padding: 20px 18px;
      /* behavior */
      overflow-y: auto;
      transition: none !important; /* no animation on mobile */
      background: rgba(14, 13, 37, 0.85);
      /* visual */
      border-radius: 16px;
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
      z-index: 999;
      /*  gentle animation */
      transition: opacity 400ms ease-out, transform 400ms cubic-bezier(0.22, 1, 0.36, 1) !important;
    }
  }

  @media (max-width: 768px) {
    /* Bigger title */
    .ifm-panel-title {
      font-size: 1.35rem !important;
      line-height: 1.4 !important;
      margin-bottom: 0.75rem !important;
    }

    /* Bigger content text */
    .ifm-panel-desc {
      font-size: 1.05rem !important;
      line-height: 1.6 !important;
    }

      /* Bullet rows spacing */
      .ifm-panel-desc .ifm-bullet {
        gap: 10px !important;
        margin-bottom: 12px !important;
      }

    /* Make close button easier to tap */
    .ifm-panel-close {
      width: 40px !important;
      height: 40px !important;
      font-size: 26px !important;
      line-height: 40px !important;
      top: 10px !important;
      right: 10px !important;
    }
  }
  /* Disable zoom on mobile completely */
  @media (max-width: 768px) {
    .ifm-map {
      transform: none !important;
    }
  }

  /* ===== DESKTOP PANEL TYPOGRAPHY (NORMAL DESKTOP) ===== */
  @media (min-width: 769px) and (max-width: 1439px) {
    .ifm-panel {
      font-size: 0.9rem;
      line-height: 1.5;
    }

    .ifm-panel-title {
      font-size: 1rem;
      font-weight: 600;
      margin-bottom: 0.45rem;
    }

    .ifm-panel-desc {
      font-size: 0.88rem;
      line-height: 1.55;
    }

      .ifm-panel-desc .ifm-bullet {
        gap: 8px;
        margin-bottom: 8px;
      }

    .ifm-image-cta {
      font-size: 1.0rem;
      top: 19%;
    }
  }

  /* ===== DESKTOP PANEL TYPOGRAPHY (LARGE DESKTOP) ===== */
  @media (min-width: 1440px) {
    .ifm-panel {
      font-size: 0.95rem;
      line-height: 1.55;
    }

    .ifm-panel-title {
      font-size: 1.1rem;
      font-weight: 600;
      margin-bottom: 0.55rem;
    }

    .ifm-panel-desc {
      font-size: 0.92rem;
      line-height: 1.6;
    }

      .ifm-panel-desc .ifm-bullet {
        gap: 10px;
        margin-bottom: 10px;
      }

/*    .ifm-image-cta {
      font-size: 1.2rem;
      top: 17%;
    }*/
  }

  @keyframes ifm-cta-jump {
    0% {
      transform: translateX(-50%) translateY(0);
    }

    25% {
      transform: translateX(-50%) translateY(-8px);
    }

    50% {
      transform: translateX(-50%) translateY(0);
    }

    75% {
      transform: translateX(-50%) translateY(-8px);
    }

    100% {
      transform: translateX(-50%) translateY(0);
    }
  }


  .ifm-image-cta.ifm-cta-animate {
    animation: ifm-cta-jump 0.8s ease-out 1;
  }

  .ifm-image-cta.ifm-cta-animate {
    color: #00e0ff;
    text-shadow: 0 0 8px rgba(0, 224, 255, 0.6);
  }



.ifm-image-cta {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #ffffff;
  text-shadow: 0 3px 8px rgba(0,0,0,0.4); /* readable over image */
  z-index: 20; /* above image, below menu */
  width: 90%; /* prevent overflow on mobile */
  top: 17%;
}

  @media (max-width: 768px) {
    .ifm-image-click {
      max-width: 280px; /* adjust for mobile */
    }
  }

@media (min-width: 1900px) {
  .ifm-image-cta {
    font-size: 1.0rem; 
  }
}