:root {
  --pt-navy: rgba(10, 34, 64, 0.85); /* Premium glass dark blue */
  --pt-navy-solid: #0a2240;
  --pt-cyan: #1ebdb6; /* Teal/cyan */
  --pt-cyan-hover: #159a93;
  --pt-dark-bg: #09131f;
  --pt-white: #ffffff;
  --pt-arrow-cut: 30px;
}

.premium-tabs-section {
  position: relative;
  width: 100%;
  min-height: 650px;
  display: flex;
  align-items: center;
  overflow: visible;
  font-family: 'Lexend', sans-serif;
  padding: 70px 0 0;
  margin-bottom: 290px;
}

.premium-tabs-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/backgrounds/testing-bg.jpg');
  background-size: cover;
  background-position: center;
  filter: blur(2px); /* Reduced blur to make it clearer */
  transform: scale(1.02);
  z-index: 1;
}

.premium-tabs-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Lighter overlay to let the background show clearly */
  background: linear-gradient(135deg, rgba(8, 22, 45, 0.8) 0%, rgba(13, 50, 90, 0.6) 100%);
  z-index: 2;
}

.premium-tabs-container {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 1550px;
  width: 100%;
  margin: 0 auto;
  padding: 0 30px;
}

/* Header styling */
.premium-section-header {
  text-align: center;
  width: min(100%, 690px);
  margin: 0 70px -90px auto;
  position: relative;
  z-index: 6;
}

.premium-section-header .sec-title__tagline {
  color: #fbc708;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.premium-section-header .sec-title__title {
  color: var(--pt-white);
  font-size: 40px;
  font-weight: 800;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Split Content Row */
.premium-tabs-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  gap: 30px;
}

/* Left Tabs */
.premium-tabs-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 480px;
  flex-shrink: 0;
  z-index: 4;
}

.premium-tab-item {
  position: relative;
  width: 440px;
  height: 75px;
  background: rgba(10, 34, 64, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px 0 0 12px;
  display: flex;
  align-items: center;
  padding: 0 25px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  /* Right arrow cut */
  clip-path: polygon(0% 0%, calc(100% - var(--pt-arrow-cut)) 0%, 100% 50%, calc(100% - var(--pt-arrow-cut)) 100%, 0% 100%);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.premium-tab-item:hover {
  width: 460px;
  background: rgba(20, 50, 90, 0.85);
  border-color: rgba(30, 189, 182, 0.2);
  box-shadow: 0 10px 30px rgba(30, 189, 182, 0.15);
}

.premium-tab-item.active {
  width: 480px;
  background: #fbc708;
  border-color: #fff;
  box-shadow: 0 10px 40px rgba(30, 189, 182, 0.4);
}

.premium-tab-item.active .tab-text {
  color: #000000 !important;
}

.tab-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pt-white);
  font-size: 16px;
  margin-right: 20px;
  transition: all 0.3s;
  border: 1px solid rgba(255,255,255,0.1);
}

.premium-tab-item.active .tab-icon {
  display: none;
}

.tab-text {
  color: var(--pt-white);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
  flex-grow: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tab-badge {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pt-white);
  color: #fc0005;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  margin-right: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.premium-tab-item.active .tab-badge {
  display: flex;
}

/* Controls */
.premium-tabs-controls {
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 4;
  flex-shrink: 0;
}

.control-btn {
  width: 45px;
  height: 45px;
  background: var(--pt-white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pt-navy-solid);
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: 6px;
}

.control-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  color: var(--pt-cyan);
  background: var(--pt-white);
}

/* Right Area */
.premium-tabs-right {
  position: relative;
  flex-grow: 1;
  height: 620px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  z-index: 4;
}

.premium-tab-content {
  display: none;
  position: absolute;
  right: 0;
  width: 100%;
  height: auto;
  bottom: 0;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.premium-tab-content.active {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  margin-right: 50px;
  opacity: 1;
  transform: translateY(0);
}

.hexagon-wrapper {
  position: relative;
  width: 780px;
  height: 620px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  margin-bottom: -160px;
}

.hexagon-card {
  position: absolute;
  left: 0;
  width: 520px;
  height: 620px;
  background: rgba(10, 34, 64, 0.82);
  backdrop-filter: blur(20px);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 75px 0px 20px;
  text-align: center;
  box-shadow: inset 0 0 50px rgba(0,0,0,0.3), 0 20px 50px rgba(0,0,0,0.4);
  z-index: 1;
  animation: floatHex 6s ease-in-out infinite;
  border: 1px solid rgba(255,255,255,0.06);
}

.hexagon-inner-layers {
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border: 1px solid rgba(30, 189, 182, 0.2);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  pointer-events: none;
}

.hexagon-content {
  position: relative;
  z-index: 3;
}

.hex-subtitle {
  color: #fbc708;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hex-subtitle .dots {
  width: 12px;
  height: 4px;
  background: radial-gradient(circle, var(--pt-cyan) 30%, transparent 30%);
  background-size: 4px 4px;
}

.hex-title {
  color: var(--pt-white);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 18px;
}

.hex-desc {
  color: rgba(255,255,255,0.85);
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.hex-btn {
  display: inline-block;
  background: var(--pt-white);
  color: var(--pt-navy-solid);
  padding: 15px 38px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.hex-btn:hover {
  background: #fc0005;
  color: var(--pt-white);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(30, 189, 182, 0.3);
}

.hexagon-image {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 330px;
  height: 380px;
  z-index: 2;
  filter: drop-shadow(-10px 15px 30px rgba(0,0,0,0.45));
}

.hexagon-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  clip-path: polygon(15% 0, 100% 0, 100% 85%, 85% 100%, 0 100%, 0 15%);
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.premium-tab-content.active .hexagon-image img {
  transform: scale(1.02);
}

.hexagon-image:hover img {
  transform: scale(1.06);
}

@keyframes floatHex {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* Responsive */
@media (max-width: 1400px) {
  .premium-tabs-section {
    margin-bottom: 250px;
  }
  .premium-section-header {
    width: min(100%, 700px);
    margin-right: 30px;
    margin-bottom: -75px;
  }
  .hexagon-wrapper {
    width: 680px;
    height: 560px;
    margin-bottom: -250px;
  }
  .hexagon-card {
    width: 460px;
    height: 520px;
    padding: 40px 50px;
  }
  .hex-title {
    font-size: 28px;
  }
  .hexagon-image {
    width: 280px;
    height: 330px;
  }
}

@media (max-width: 1200px) {
  .premium-tabs-section {
    margin-bottom: 220px;
  }
  .premium-section-header {
    width: min(100%, 620px);
    margin-right: 0;
    margin-bottom: -55px;
  }
  .premium-tabs-row {
    gap: 20px;
  }
  .premium-tabs-left {
    width: 380px;
  }
  .premium-tab-item {
    width: 350px;
  }
  .premium-tab-item:hover {
    width: 360px;
  }
  .premium-tab-item.active {
    width: 380px;
  }
  .hexagon-wrapper {
    width: 580px;
    height: 500px;
    margin-bottom: -220px;
  }
  .hexagon-card {
    width: 400px;
    height: 480px;
    padding: 30px 40px;
  }
  .hex-title {
    font-size: 24px;
    margin-bottom: 12px;
  }
  .hex-desc {
    font-size: 14px;
    margin-bottom: 20px;
  }
  .hexagon-image {
    width: 240px;
    height: 290px;
  }
}

@media (max-width: 991px) {
  .premium-tabs-section {
    padding: 60px 0;
    margin-bottom: 30px; /* Give healthy margins */
    overflow: visible; /* Ensure relative elements can render without clipping */
  }
  .lab-process-section {
    margin-top: 0 !important; /* Prevents the process section from overlapping the tabs on mobile */
  }
  .premium-tabs-container {
    padding: 0 15px;
    gap: 30px;
  }
  /* Global mobile centering for all section headings & taglines */
  .sec-title,
  .sec-title--two,
  .premium-section-header {
    text-align: center !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 25px !important; /* Explicitly reset and clear negative margin overlap on mobile */
  }
  .sec-title__tagline {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .sec-title__title {
    text-align: center !important;
  }
  .premium-section-header .sec-title__title {
    font-size: 32px;
  }
  .tab-text {
    font-size: 16px !important; /* Slightly smaller on mobile/tablet to fit text */
  }
  .premium-tab-item {
    padding: 0 20px !important; /* Adjust horizontal padding for fitting */
  }
  .premium-tabs-row {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
  .premium-tabs-left {
    width: 100%;
  }
  .premium-tab-item, .premium-tab-item.active, .premium-tab-item:hover {
    width: 100%;
    clip-path: none;
    border-radius: 12px;
  }
  .premium-tabs-controls {
    flex-direction: row;
    justify-content: center;
  }
  .premium-tabs-right {
    width: 100%;
    height: auto; /* Removed fixed height constraint to let contents flow */
    min-height: 480px;
    justify-content: center;
  }
  .premium-tab-content {
    position: relative; /* Replaced absolute to align perfectly and expand parent naturally */
    display: none;
    opacity: 0;
    transform: translateY(15px);
  }
  .premium-tab-content.active {
    display: flex;
    justify-content: center;
    margin-right: 0;
    opacity: 1;
    transform: translateY(0);
    width: 100%;
  }
  .hexagon-wrapper {
    width: min(100%, 550px);
    height: auto; /* Let it wrap naturally */
    justify-content: center;
    margin-bottom: 0;
  }
  .hexagon-card {
    position: relative; /* Allow flow layout instead of absolute collapsing */
    left: auto;
    width: 100%;
    height: auto; /* Allow flexible height as text wrapping occurs on mobile */
    padding: 40px 30px;
    animation: none; /* Turn off float animation on mobile to keep alignment stable */
    text-align: center !important;
    align-items: center !important; /* Centering the button and contents inside the flex column container on mobile */
  }
  .hex-subtitle {
    justify-content: center !important; /* Centering the inline subtitle dot-tagline on mobile */
    text-align: center !important;
    width: 100%;
  }
  .hex-title {
    text-align: center !important;
    width: 100%;
  }
  .hex-desc {
    text-align: center !important;
    width: 100%;
  }
  .hexagon-inner-layers {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
  }
  .hexagon-image {
    display: none; /* Hide overlapping image on tablet/mobile for better readability */
  }
}

@media (max-width: 575px) {
  .premium-section-header .sec-title__title {
    font-size: 26px;
  }
  .premium-tabs-right {
    height: auto;
    min-height: 420px;
  }
  .hexagon-card {
    padding: 30px 25px;
    clip-path: none;
    border-radius: 16px;
  }
  .hex-title {
    font-size: 22px;
  }
  .tab-text {
    font-size: 14px !important; /* Extra adjustment for compact mobile phones */
  }
  .premium-tab-item {
    padding: 0 12px !important; /* Extra horizontal room for compact screens */
  }
}

/* ==========================================================================
   Lab Work Process Section Styles
   ========================================================================== */
.lab-process-section {
  position: relative;
  background-color: #ffffff; /* Beautiful light background */
  padding: 0px 0 60px 0;
  margin-top: -115px;
  overflow: hidden;
  font-family: 'Lexend', sans-serif;
  z-index: 1;
}

/* Background elements */
.lab-process-section .dna-bg-element {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.85;
  pointer-events: none;
  z-index: 1;
}

.lab-process-section .lab-bg-element {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.85;
  pointer-events: none;
  z-index: 1;
}

.process-card-wrapper {
  position: relative;
  z-index: 3;
}

.process-card {
  padding: 20px;
  transition: all 0.4s ease;
}

.process-card:hover {
  transform: translateY(-8px);
}

.hex-icon-container {
  position: relative;
  width: 90px;
  height: 100px;
  margin: 0 auto 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  filter: drop-shadow(0 8px 15px rgba(0,0,0,0.1));
}

.hex-shape {
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  z-index: 1;
  transition: all 0.4s ease;
}

.hex-icon-container i {
  position: relative;
  z-index: 2;
  color: #ffffff;
  font-size: 26px;
}

/* Color Hexagon shapes */
.green-hex .hex-shape { background: #25b069; }
.yellow-hex .hex-shape { background: #f9b60b; }
.red-hex .hex-shape { background: #ff3b4e; }
.purple-hex .hex-shape { background: #9333ea; }
.blue-hex .hex-shape { background: #2563eb; }

.process-card:hover .hex-shape {
  transform: scale(1.05) rotate(5deg);
}

.process-title {
  color: #123056;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  transition: color 0.3s;
}

.process-desc {
  color: #666666;
  font-size: 15px;
  line-height: 1.6;
  max-width: 290px;
  margin: 0 auto;
}

/* Connectors */
@media (min-width: 992px) {
  .connector-line {
    position: absolute;
    top: 50px;
    width: 60%;
    left: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
  }
  
  .connector-line .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 2px solid #888888;
    background: #ffffff;
    flex-shrink: 0;
  }
  
  .connector-line .line {
    flex-grow: 1;
    height: 0;
    border-top: 2px dashed rgba(136, 136, 136, 0.45);
    margin: 0 4px;
  }
  
  .process-row-2 .connector-line {
    width: 60%;
    left: 70%;
  }
}

@media (max-width: 991px) {
  .connector-line {
    display: none;
  }
  .lab-process-section {
    padding: 60px 0;
  }
  .dna-bg-element, .lab-bg-element {
    display: none;
  }
  .process-card-wrapper {
    margin-bottom: 40px;
  }
  .process-row-2 .process-card-wrapper:last-child {
    margin-bottom: 0;
  }
  .lab-process-section .sec-title {
    text-align: center !important;
  }
  .lab-process-section .sec-title__tagline {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }
}

/* ==========================================================================
   Choose Us Custom 2x2 Grid Styles
   ========================================================================== */
.choose-us-custom-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
}

.choose-us-grid-item {
  display: flex;
  align-items: flex-start;
  background: #ffffff;
  border: 1.5px solid #f0f0f0;
  border-radius: 6px;
  padding: 20px 22px;
  gap: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.choose-us-grid-item:hover {
  border-color: rgba(30, 189, 182, 0.3);
  box-shadow: 0 8px 25px rgba(30, 189, 182, 0.15);
  transform: translateY(-3px);
}

.choose-us-grid-item .icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-right: 1.5px solid #f0f0f0;
  padding-right: 18px;
  flex-shrink: 0;
  color: #ff3b4e; /* red/orange icon color */
  font-size: 24px;
  margin-top: 2px;
}

.choose-us-grid-item .content-box {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.choose-us-grid-item .title-box {
  color: #123056;
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.choose-us-grid-item .desc-box {
  color: #666666;
  font-size: 13.5px;
  line-height: 1.45;
  margin: 6px 0 0 0;
  font-weight: 400;
}

@media (max-width: 575px) {
  .choose-us-custom-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

.choose-us-grid-item.overlap-bottom {
  position: relative;
  z-index: 10;
  margin-bottom: -60px;
  transform: translateY(50px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  border-color: rgba(30, 189, 182, 0.25);
}

/* Allow overlapping outside section boundaries */
.choose-us-two {
  overflow: visible !important;
}

.choose-us-two__right {
  overflow: visible !important;
}


