


/* ==============================
   HOME.CSS - HOME PAGE SECTIONS
================================ */

.home-section {
  padding: 60px 24px;
}

strong {
  color: #1F6AE1; /* any color you want */
}




/* =========================
   HERO LAYOUT
   Text left, static image right
========================= */

.hero {
  position: relative;
  min-height: clamp(600px, 80vh, 1000px);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../assets/element/hero-element-bg-wh.webp");
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* Foreground image */
.hero-visual img {
  width: 100%;
  max-width: 350px;
  height: auto;
  object-fit: contain;
  display: block;
  align-items: flex-end; /* anchors image to bottom */
  margin-bottom: 0;
}

.hero-inner {
  position: relative;
  z-index: 2;

  max-width: 1400px;
  padding: 90px 24px 60px;
  width: 100%;
  margin: 0 auto;  /* centers container on large screens */
  padding-bottom: 0; /* or reduce it */
  margin-bottom: 0;

  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: flex-start;
  text-align: left;

  align-items: center;   /* centers text vertically */
}

.hero-text {
  margin-top: -50px;
}

.hero-title {
  line-height: 1.05;
  margin-bottom: 0;
}

.hero-title .title-line-1 {
  font-size: clamp(3rem, 4.5vw, 4.5rem);
}

.hero-subtitle {
  font-size: clamp(1.25rem, 2vw, 3rem);
  line-height: 1.15;
  margin-top: 15px;
  margin-bottom: 5rem;
}  

.hero-body {
  font-size: clamp(1.05rem, 1vw, 1.4rem);
  line-height: 1.5;
  max-width: 600px;
  margin-bottom: 2rem;
}

.hero-divider {
  max-width: 1200px;                   /* desired maximum width */
  width: 98%;
  height: 1px;
  position: relative;
  z-index: 2;
  margin: 0 auto;                   /* center it horizontally */
  padding: 0 24px;
}

.hero-divider::before {
  content: "";
  display: block;
  height: 1px;
  background: #555;
}




/* ==============================
 TISSUE SECTION (standard section under hero)
================================ */


.wavelength-pin {
  position: relative;
  height: 250vh;
}

@media (min-width: 1281px) {
  .wavelength-pin {
    height: 1800px;
  }
}

.wavelength-section {
  position: sticky;
  top: 0;
  min-height: 100vh;
  padding: 120px 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
}

@media (min-width: 1281px) {
  .wavelength-section {
    min-height: 720px;
  }
}

.wavelength-container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  gap: 60px;
  align-items: flex-start;
  width: 100%;
  padding: 0 24px;

  overflow: visible;
}

.wavelength-section .ktp-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 28px auto 0;
  padding: 0 24px;
}

.wavelength-section .ktp-card {
  max-width: 100%;
}

.text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 8px;
}

.one-smart-platform {
  font-size: 3.5rem; /* adjust as needed */
  color: #1F6AE1;
}


.text h2 {
  font-size: 2.5rem;
  margin-top: 0;
  margin-bottom: 8px;
}

.accent-blue {
  color: #1F6AE1;
}

.text p {
  line-height: 1.6;
}

.wavelength-icons {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  align-items: flex-start;
}

.wavelength-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.wavelength-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.wavelength-icon span {
  font-size: 0.9rem;
  color: var(--brand-highlight);
}

.wavelength-icons {
  display: flex;
  gap: 100px;
  margin-top: 20px;
  align-items: center;
}

.wavelength-icons img {
  width: 100px;
  height: auto;
  object-fit: contain;
  display: block;
}

.pin-column {
  flex: 1;
  align-self: flex-start;
  position: relative;
  min-height: 100%;
}

.pin-wrapper {
  position: sticky;
  top: 120px;
  transform: none !important;
  align-self: flex-start;
}


.image-container {
  position: relative;
  display: flex;
  justify-content: center;
}

.skin-image {
  max-width: 500px;
  width: 100%;
}

/* Beams */
.beam {
  position: absolute;
  top: 0;
  width: 15px;
  height: 0;
  opacity: 0.85;
}

.beam1 { 
  left: 30%; 
  background: linear-gradient(to bottom, #1F6AE1, #7fd7ff);
}
.beam2 { 
  left: 50%; 
  background: linear-gradient(to bottom, #D85A5A, #FF9090);
}
.beam3 { 
  left: 70%; 
  background: linear-gradient(to bottom, #2FAE7A, #7af0b3);
}

.beam-caption {
  position: absolute;
  top: 20px;
  width: 150px;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.beam-caption h4 {
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--text-primary);
}

.beam-caption p {
  margin: 0;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.caption1 { left: 31%; transform: translate(-105%, -6px); }
.caption2 { left: 55%; transform: translate(-105%, -6px); }
.caption3 { left: 75%; transform: translate(-105%, -6px); }



  
  /* ==============================
     DEVICE SECTION
  ================================ */
  .device-features {
    max-width: 1200px;   /* keeps content elegant on 1920px */
    margin:0 auto; 
    padding: 50px 24px 60px; 
  
    display: grid;
    grid-template-columns: 1.2fr 1.4fr 1.2fr;
    align-items: center;
    column-gap: 4rem;
    row-gap: 2rem;
  }

  .device-header {
    grid-column: 1 / -1;
    margin: 0 auto;
    text-align: center;
  }

  .device-header h3 {
    margin-bottom: 12px;
  }

  .device-image img {
    width: 100%;
    max-width: 320px;   /* adjust based on your device */
    margin: 0 auto;
    display: block;
  }

  .features {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
  }
  
  .feature-item {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
  }

  .feature-title {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  .feature-icon {
    width: 50px;
    height: auto;
    object-fit: contain;
  }

  .feature-item h4 {
    position: relative;
    margin: 0;
    padding-bottom: 10px;
    display: block;
  }

  .feature-item h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: var(--feature-underline, 250px);
    height: 1px;
    background: currentColor;
    opacity: 0.6;
  }

  .feature-item p {
    margin: 4px 0 0;
    padding-left: 60px;
  }
  
  .feature-item h4 {
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  
  .feature-item p {
    font-size: 0.95rem;
    line-height: 1.6;
  }


/* =========================
   CAROUSEL
========================= */
/* Section */
.carousel-section {
  padding: 50px 0; 
}

.carousel-section .eyebrow {
  text-align: center;
}

/* Title */
.carousel-title {
  margin-bottom: 60px;
  text-align: center;
}

/* Tabs */
.carousel-tabs {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
  justify-content: center;
}

.carousel-tabs .tab {
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  color: #8f9ca3;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 6px 10px;
  text-align: center;
}

.carousel-tabs .tab.active {
  color: var(--brand-primary);
  border-bottom: 2px solid var(--brand-primary)
}

.carousel-tabs .tab-icon {
  width: 45px;
  height: auto;
  object-fit: contain;
  display: block;
  opacity: 0.7;
  filter: grayscale(1);
  transition: opacity 0.2s ease, filter 0.2s ease, transform 0.2s ease;
}

.carousel-tabs .tab.active .tab-icon {
  opacity: 1;
  filter: none;
  transform: translateY(-2px);
}

/* Carousel wrapper */
.carousel-wrapper {
  overflow: hidden;
}

/* Track */
.carousel-track {
  display: flex;
  gap: 32px;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  align-items: stretch; /* important */
} 

/* Slide width = SAME AS FEATURE CARDS */
.carousel-slide {
  flex: 0 0 360px;
  display: flex;         /* important */
  align-items: stretch;  /* important */
}

/* Card */
.carousel-card {
  text-align: left;
  padding: 24px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  max-width: 450px;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%; /* THIS is usually what people forget */
}

/* Title */
.carousel-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
}

/* Paragraph spacing */
.carousel-card p {
  margin-bottom: 8px;
  line-height: 1.6;
  font-size: 14px;
  color: var(--text-muted);
}

.highlight-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.highlight-text {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1;
  min-width: 80px;
}

.highlight-row p {
  margin: 0;
  font-size: 14px;
}

/* Cool Clinical Blue */
.highlight-1 {
  color: #D85A5A;
}

/* Technology Teal */
.highlight-2 {
  color: #1F6AE1;
}

/* Deep Energy Indigo */
.highlight-3 {
  color: #2FAE7A;
}



/* Optional: different spacing for description */
.description {
  margin-bottom: 10px;
}

/* Image + Caption Layout */
.image-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.image-row img {
  width: 60px;
  height: auto;
  border-radius: 8px;
}

.image-row p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* Indications section spacing */
.indications {
  margin-top: 8px;
  font-size: 14px;
}

/* Selected card highlight */
.carousel-slide.active .carousel-card {
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  background: #d2e1f9;
}

.carousel-slide.active .carousel-card p {
  color: var(--text-secondary);
}


/* ==============================
   KTP SECTION
================================ */
.ktp-section {
  padding: 20px 24px;
}

.ktp-content p {
  margin-bottom: 15px;
  line-height: 1.6;
  color: #444;
  font-size: 0.95rem;
}

.ktp-benefits {
  padding-left: 18px;
  margin-top: 15px;
  color: #444;
  font-size: 0.95rem;
}

.ktp-benefits li {
  margin-bottom: 8px;
  color: #444;
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
  .ktp-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .ktp-benefits {
    text-align: left;
  }
}


.ktp-card {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1.5rem 2rem;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;

  text-decoration: none;
  color: inherit;

  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.ktp-card > * {
  min-width: 0;
}

.ktp-wrapper {
  display: flex;
  flex-direction: column; /* stack cards vertically */
  gap: 2rem; /* space between cards */
}

.info-section .ktp-wrapper {
  margin-bottom: 2rem;
}

.ktp-image {
  flex: 1 1 42%;
  max-width: 500px;
}

.ktp-image-title {
  margin: 0 0 12px;
  font-size: 1.7rem;
  line-height: 1.2;
  color: #1F6AE1;
}

.ktp-image img {
  width: 100%;
  max-width: 420px;
  height: auto;
  object-fit: contain;
}

.ktp-info {
  flex: 1;
  max-width: 400px;   /* 👈 adjust to taste */
  align-self: flex-start;
}

.ktp-info p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #555;
  margin-top: 0;
}

.ktp-subtitle {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: #555;
}

.ktp-icons {
  flex: 1 1 24%;
  max-width: 280px;
  min-width: 0;
}

.ktp-info {
  flex: 1 1 30%;
  max-width: 330px;
}

.icons-title {
  text-transform: none;
  color: #555;
  margin: 0 0 10px;
  font-size: 0.95rem;
}

.ktp-icons .icons-grid {
  display: block;
  width: 100%;
}

.ktp-benefits {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.95rem;
}

.ktp-info p,
.ktp-benefits li {
  font-size: 0.95rem;
  overflow-wrap: anywhere;
  color: #555;
}

/* KTP: equal columns + aligned top titles */
.ktp-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.ktp-image,
.ktp-info,
.ktp-icons {
  min-width: 0;
  max-width: none;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.ktp-image img {
  width: 100%;
  max-width: none;
}

.ktp-image-title,
.ktp-subtitle,
.ktp-icons .icons-title {
  margin: 0 0 12px;
}

@media (max-width: 768px) {
  .ktp-card {
    grid-template-columns: 1fr;
  }
}





/* ==============================
   CARD SECTION
================================ */

/* SECTION */
.info-section {
  padding: 16px 24px;
}

/* Space only between info and the next carousel section */
.info-section + .carousel-section {
  margin-top: 80px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* SECTION TITLE */
.info-section-title {
  text-align: left;
}

/* CARD WRAPPER */
.card-wrapper {
  display: flex;
  gap: 50px;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* CARD */
.card {
  background: #ffffff;
  flex: 1 1 30%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  min-height: 400px;
}


/* CARD CONTENT */
.card-content {
  padding: 20px;
}

.card-content h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #111827;
}

.card-content p {
  font-size: 15px;
  line-height: 1.6;
  color: #4b5563;
}

/* BULLET LIST */
.card-content ul {
  margin: 0;
  padding-left: 20px;   /* space for bullets */
}

.card-content li {
  color: #4b5563;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 8px;   /* spacing between bullet points */
}


/* CARD IMAGE */
.card-image {
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff; /* optional subtle background */
}

.card-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}



/* ==============================
   B/A SECTION
================================ */

.before-after-section {
  padding: 16px 20px;
  text-align: center;
}

.section-title {
  font-size: 3rem;
  letter-spacing: 1px;
}

.section-subtitle {
  margin: 12px 0 40px;
}

/* Container */
.before-after-wrapper {
  display: flex;
  justify-content: center;
}

.ba-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 12px;
  width: 500px;
  max-width: 86vw;
}

.ba-slides {
  width: 100%;
  position: relative;
  display: grid;
  min-width: 0;
}

.ba-slide {
  grid-area: 1 / 1;
  width: 100%;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.ba-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.img-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  border-radius: 6px;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px; /* small spacing between images */
  overflow: hidden;
}

/* Remove fixed aspect ratio */
.img-container {
  aspect-ratio: auto;
}

/* Make images fully visible */
.img-container img {
  position: relative !important;
  width: 100%;
  height: auto; /* KEY FIX */
  object-fit: contain; /* show entire image */
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.img-container::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: rgba(255, 255, 255, 0.4);
  transform: translateX(-50%);
}

.img-after {
  clip-path: none !important;
}

.slider,
.slider-handle {
  display: none !important;
}


/* Labels */
.label {
  position: absolute;
  bottom: 10px;
  padding: 4px 8px;
  font-size: 12px;
  background: black;
  color: white;
}

.before-label {
  left: 10px;
}

.after-label {
  right: 10px;
}

.ba-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--brand-primary);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.ba-arrow svg {
  width: 20px;
  height: 20px;
}

.ba-arrow:hover {
  background: rgb(65, 65, 65);
}

.ba-arrow.prev {
  left: -74px;
}

.ba-arrow.next {
  right: -74px;
}

.ba-arrow:focus {
  outline: none;
}

.ba-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-top: 2px;
  min-width: 0;
}

.ba-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #9da7c7;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ba-dot.active {
  background: var(--brand-primary);
  transform: scale(1.2);
}

.ba-caption {
  margin: 2px 0 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.ba-caption-title {
  font-size: 1.1em;
  font-weight: 600;
  color: var(--brand-primary)
}

.ba-caption-credit {
  margin-left: 0.4em;
  font-size: 0.78em;
  color: #333;
}


  

  /* ==============================
     CTA
  ================================ */
  .homecta-section {
    display: flex;
    justify-content: center;
    padding: 30px 24px;
    margin-bottom: 50px;
  }


/* ==============================
 REFERENCE
================================ */
/* symbol styling */
.note-symbol {
  font-size: 0.65em;
  vertical-align: super;
  margin-left: 2px;
  font-weight: 500;
}

/* wrapper controls page width */
.notes-wrap {
  max-width: 1200px;
  margin: 60px auto 0 auto;
  padding-top: 20px;
}

/* minimal typography */
.notes p {
  margin: 6px 0;
  font-size: 13px;
  line-height: 1.6;
  color: #8f9ca3;
  font-weight: 300;
  letter-spacing: 0.2px;
}



  
  
  /* ==============================
     MEDIA QUERIES
  ================================ */

  @media (min-width: 1200px) {
    .hero-text {
      max-width: 1200px;
      margin-left: 60px;
    }

    .device-features {
      margin-top: -40px;
    }
  }
  
    


/* Tablets / iPad portrait (768px – 1024px) */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1.3fr 0.7fr; /* same as laptop, keep horizontal */
    text-align: left;                   /* align text to left */
    gap: 1.5rem;                        /* reduce gap a little for smaller width */
    padding: 160px 24px 0; /* increase top padding */
  }

  .hero-visual {
    margin-top: 0;                      /* remove extra top margin */
    display: flex;
    justify-content: flex-start;        /* keep image on the right */
    align-items: flex-end;              /* anchor image to bottom */
  }

  .hero-visual img {
    max-width: 300px;                    /* shrink image slightly for tablet */
    margin-left: 0;
  }

  .hero-divider {
    width: 95%;                          /* scale divider width */
  }

  .hero-bg {
    background-size: contain;   /* ensures entire image fits within hero */
    background-position: center top; /* align to top for portrait */
    background-repeat: no-repeat;    /* prevents tiling */
  }

  .wavelength-pin {
    height: auto;
  }

  .wavelength-section {
    position: relative;
    padding: 70px 0;
  }

  .wavelength-container {
    position: relative;
    top: auto;
    min-height: auto;
    flex-direction: column;
    gap: 60px;
    align-items: center;
    padding: 0 24px;
  }

  .wavelength-section .ktp-wrapper {
    margin-top: 20px;
    padding: 0 24px;
  }

  .text {
    padding-top: 0;
    text-align: center;
  }

  .wavelength-icons {
    justify-content: center;
    gap: 60px;
  }

  .pin-column {
    position: relative;
    top: auto;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .pin-wrapper {
    position: relative;
    top: auto;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .skin-image {
    max-width: 420px;
  }

  .beam-caption {
    display: block;
    opacity: 1;
    pointer-events: none;
    width: 120px;
    text-align: center;
  }

  .caption1 { left: 20%; transform: translate(-50%, -6px); }
  .caption2 { left: 45%; transform: translate(-50%, -6px); }
  .caption3 { left: 65%; transform: translate(-50%, -6px); }

  .device-features {
    grid-template-columns: 1fr 1.4fr 1fr;
    column-gap: 3rem;
    row-gap: 2.5rem;
    text-align: left;
    padding-top: 0;
  }

  .device-header {
    max-width: 640px;
  }

  .device-image {
    order: 0;
  }

  .features {
    order: 0;
    align-items: flex-start;
  }

  .feature-item {
    max-width: 520px;
    text-align: left;
  }

  .feature-item p {
    padding-left: 0;
  }

  .feature-title {
    justify-content: flex-start;
  }

  .feature-item h4::after {
    left: 0;
    width: 200px;
  }

  .carousel-section {
    padding: 80px 0 90px;
  }

  .carousel-tabs {
    gap: 18px;
    flex-wrap: wrap;
  }

  .carousel-tabs .tab {
    font-size: 0.95rem;
  }

  .carousel-tabs .tab-icon {
    width: 38px;
  }

  .carousel-track {
    gap: 24px;
  }

  .carousel-slide {
    flex: 0 0 350px;
  }

  .carousel-card {
    padding: 20px;
  }

  .carousel-arrow-group {
    justify-content: center;
    margin-right: 0;
  }

  .carousel-track {
    gap: 24px;
  }

  .carousel-card h3 {
    font-size: 18px;
  }

  .carousel-card p {
    font-size: 13px;
  }

  .image-row img {
    width: 50px;
  }

  .carousel-arrow-group {
    justify-content: center;
    margin-right: 0;
  }

  .before-after-section {
    padding: 100px 20px;
  }

  .section-title {
    font-size: 2.6rem;
  }

  .ba-carousel {
    width: 500px;
  }

  .img-container {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .ba-arrow.prev {
    left: -60px;
  }

  .ba-arrow.next {
    right: -60px;
  }

  .ba-caption {
    font-size: 0.95rem;
  }

  .info-section {
    padding: 80px 32px;
  }

  .card-wrapper {
    gap: 40px;
  }

  .card {
    flex: 1 1 45%;   /* two per row */
    min-height: 420px;
  }

  .card-content {
    padding: 28px;
  }

  .card-image {
    height: 240px;
  }
  
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .hero {
    min-height: clamp(620px, 70vh, 820px);
  }

  .hero-inner {
    padding: 130px 24px 0;
  }

  .wavelength-section {
    padding-top: 24px;
  }
}


/* Small screens / phones (under 768px) */
@media (max-width: 767px) {
  .hero {
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr; /* single column */
    text-align: center;
    padding: 80px 16px 0;
  }

  .hero-text {
    margin-top: 0;
  }

  .hero-title {
    font-size: clamp(2rem, 3vw, 2rem);
  }

  .hero-title .title-line-1 {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .hero-subtitle {
    font-size: clamp(1.1rem, 4vw, 1.6rem);
  }

  .hero-body {
    font-size: clamp(0.95rem, 3.5vw, 1.2rem);
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  /* Center the device image */
  .hero-visual {
    display: flex;
    justify-content: center; /* center horizontally */
    align-items: center;
    height: auto;
    margin-top: 1.5rem;      /* space between text and image */
  }

  .hero-visual img {
    width: auto;
    height: auto;
    max-width: 250px;
    margin: 0;               /* remove previous left margin */
    object-position: center;
    transform: none;
  }

  .hero-divider {
    width: 90%; /* relative width for mobile */
    margin-top: 12px;
  }

  .wavelength-section {
    padding: 80px 0;
  }

  .text h2 {
    font-size: 2rem;
  }

  .text p {
    font-size: 0.95rem;
  }

  .wavelength-icons {
    flex-direction: column;
    gap: 24px;
  }

  .wavelength-icons img {
    width: 70px;
  }

  .skin-image {
    max-width: 320px;
  }

  .beam {
    width: 10px;
  }

  .beam-caption {
    display: block;
    text-align: right;
  }

  .caption1 { left: 10%; transform: translate(-110%, -6px); }
  .caption2 { left: 30%; transform: translate(-110%, -6px); }
  .caption3 { left: 50%; transform: translate(-110%, -6px); }

  .device-features {
    padding: 10px 20px 50px;
    row-gap: 3rem;
    grid-template-columns: 1fr;
    text-align: left;
  }

  .device-header h3 {
    font-size: 1.6rem;
  }

  .device-header {
    order: 0;
  }

  .device-image {
    order: 1;
  }

  .features.left {
    order: 2;
  }

  .features.right {
    order: 3;
  }

  .features {
    width: 100%;
    align-items: flex-start;
  }

  .feature-item {
    max-width: 100%;
  }

  .device-image img {
    max-width: 260px;
  }

  .feature-icon {
    width: 36px;
  }

  .feature-item h4 {
    font-size: 0.85rem;
  }

  .feature-item h4::after {
    width: 160px;
  }

  .feature-item p {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .carousel-section {
    padding: 60px 0 80px;
  }

  .carousel-title {
    margin-bottom: 40px;
  }

  .carousel-tabs {
    gap: 14px;
    margin-bottom: 32px;
  }

  .carousel-tabs .tab {
    font-size: 0.85rem;
    padding: 6px 4px 8px;
  }

  .carousel-tabs .tab-icon {
    width: 32px;
  }

  .carousel-track {
    gap: 20px;
  }

  .carousel-slide {
    flex: 0 0 80%;
  }

  .carousel-card {
    padding: 20px;
  }

  .carousel-card img {
    width: 140px;
  }

  .carousel-card h3 {
    height: auto;
    font-size: 1rem;
  }

  .carousel-card p {
    font-size: 0.9rem;
  }

  .carousel-arrow-group {
    justify-content: center;
    margin-bottom: 16px;
  }

  .carousel-arrow {
    width: 32px;
    height: 32px;
  }

  .carousel-track {
    gap: 20px;
  }

  .carousel-card h3 {
    font-size: 17px;
  }

  .carousel-card p {
    font-size: 13px;
    line-height: 1.5;
  }

  .highlight-text {
    font-size: 22px;
    min-width: 75px;
  }

  .image-row {
    gap: 12px;
  }

  .image-row img {
    width: 45px;
  }

  .carousel-arrow-group {
    justify-content: center;
    margin-bottom: 16px;
  }

  .carousel-arrow {
    width: 32px;
    height: 32px;
  }

  .before-after-section {
    padding: 80px 16px;
  }

  .section-title {
    font-size: 2.1rem;
  }

  .section-subtitle {
    margin-bottom: 28px;
  }

  .ba-carousel {
    width: 100%;
    max-width: 300px;
  }

  .label {
    font-size: 11px;
    padding: 3px 6px;
  }

  .ba-arrow {
    width: 32px;
    height: 32px;
  }

  .ba-arrow.prev {
    left: -36px;
  }

  .ba-arrow.next {
    right: -36px;
  }

  .ba-dots {
    margin-top: 6px;
  }

  .ba-caption {
    font-size: 0.9rem;
    max-width: 260px;
  }

  .info-section {
    padding: 60px 20px;
  }

  .card-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .card {
    flex: 1 1 100%;
    min-height: auto;
  }

  .card-content {
    padding: 24px;
  }

  .card-content h3 {
    font-size: 18px;
  }

  .card-content p {
    font-size: 14px;
  }

  .card-image {
    height: 220px;
  }
}



  @media(max-width:768px){

  .home-section {
    padding: 30px 10px;
  }
    
  .cta {
    flex-direction: column;   /* stack vertically */
    align-items: flex-start;  /* left-align text & button */
    gap: 16px;                /* space between text and button */
    align-items: center;
    text-align: center;
  }

  .cta-button {
    width: 100%;              /* optional: full-width button */
    text-align: center;
  }

  .cta-title {
    font-size: 22px;
  }

  .cta-subtitle {
    font-size: 16px;
    max-width: 375px;
  }

  .section {
    padding: 30px 24px;
  }

}
