/* Timeline Horizontal V2 Component
 * Desktop: Full-screen slides with large date chip
 * Mobile/Tablet: Card-based scrolling (same as V1)
 */

.prm-tlh2 {
  position: relative;
  /* Fixed height: viewport minus nav height (120px) */
  height: calc(100vh - 120px) !important;
  min-height: calc(100vh - 120px) !important;
  max-height: calc(100vh - 120px) !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  
  /* CSS Variables */
  --tlh2-rail-color: rgba(255, 255, 255, 0.9);
  --tlh2-badge-bg: #08A0C6;
  --tlh2-badge-fg: #ffffff;
  --tlh2-card-bg: #ffffff;
  --tlh2-card-fg: #30343A;
  --tlh2-content-fg: #ffffff;
  --tlh2-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  
  /*
   * ==================== SPINE POSITION - CRITICAL ALIGNMENT ====================
   * This variable controls the vertical position of THREE elements that MUST stay aligned:
   * 1. .prm-tlh2__spine-fixed (dashed white line)
   * 2. .prm-tlh2__media (timeline image)
   * 3. .prm-tlh2__date-chip (date badge)
   * 
   * All three use: top: var(--tlh2-spine-position); transform: translateY(-50%);
   * Changing this value moves ALL elements together to maintain alignment.
   * ==========================================================================
   */
  /* Moved up ~100px from center on large screens */
  --tlh2-spine-position: calc(50% - 50px);
  
  /* Mobile card layout */
  --tlh2-max-card-w: calc(46vw - 24px);
  --tlh2-col-gap: 4vw;
  --tlh2-row-gap: clamp(12px, min(1.5vw, 2vh), 32px);
  --tlh2-radius-card: clamp(12px, 1.5vw, 24px);
  --tlh2-pad-card: clamp(16px, 2.5vw, 40px);
  --tlh2-radius-badge: 999px;
}

/* Background and overlay */
.prm-tlh2__bg {
  position: absolute;
  inset: 0;
  background-image: var(--tlh2-bg-image, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

.prm-tlh2__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Desktop slides - base visibility (GLOBAL rule to ensure non-active slides are hidden) */
/* This must be outside media queries to prevent any cascading visibility issues */
.prm-tlh2__desktop-view .prm-tlh2__slide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Only active slide OR slides currently animating should be visible */
.prm-tlh2__desktop-view .prm-tlh2__slide--active,
.prm-tlh2__desktop-view .prm-tlh2__slide--exiting-left,
.prm-tlh2__desktop-view .prm-tlh2__slide--exiting-right,
.prm-tlh2__desktop-view .prm-tlh2__slide--entering-left,
.prm-tlh2__desktop-view .prm-tlh2__slide--entering-right {
  opacity: 1;
  visibility: visible;
}

/* Header section */
.prm-tlh2__header {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
  padding: 24px;
  padding-top: 40px;
}

.prm-tlh2__intro {
  position: relative;
  width: 100%;
  padding: 0;
  flex-shrink: 0;
}

.prm-tlh2__intro-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.prm-tlh2__intro-title * {
  margin: 0;
}

.prm-tlh2__intro-title p {
  margin: 0;
}

.prm-tlh2__intro-text {
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.7;
  color: #fff;
  margin: 0;
}

.prm-tlh2__intro-text p {
  margin: 0 0 1em;
}

.prm-tlh2__intro-text p:last-child {
  margin-bottom: 0;
}

/* Controls */
.prm-tlh2__controls-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 0;
}

.prm-tlh2__controls {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
}

.prm-tlh2__arrow.prm-nav-button {
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  text-align: center;
}

.prm-tlh2__arrow svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  color: #0093BE;
  display: block;
}

/* Pause/Play button - mobile base */
.prm-tlh2__pause.prm-nav-button {
  display: none; /* Hidden on mobile by default */
}

/* Back to Start button */
.prm-tlh2__back-to-start.prm-nav-button {
  display: grid !important;
  place-items: center !important;
  padding: 0 16px !important;
  width: auto !important;
  min-width: 120px;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  width: 0;
  min-width: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.prm-tlh2__back-to-start.prm-nav-button.prm-tlh2__back-to-start--visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  width: auto;
  min-width: 120px;
  padding: 0 16px;
  margin: 0;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, width 0.3s ease-in-out, min-width 0.3s ease-in-out, padding 0.3s ease-in-out;
}

.prm-tlh2__back-to-start-text {
  font-size: 13px;
  font-weight: 600;
  color: #0093BE;
  letter-spacing: 0.02em;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.prm-tlh2__empty {
  padding: 40px 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

/* ===== DESKTOP VIEW (Full-screen slides) ===== */
.prm-tlh2__desktop-view {
  display: none; /* Hidden by default (mobile first) */
}

.prm-tlh2__mobile-view {
  display: block; /* Shown by default (mobile first) */
  flex: 1;
  position: relative;
  z-index: 2;
}

/* Desktop (≥1025px) */
@media (min-width: 1025px) {
  .prm-tlh2__desktop-view {
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
    z-index: 2;
    min-height: 0; /* Allow flex shrinking */
  }
  
  .prm-tlh2__mobile-view {
    display: none;
  }
  
  /* Header layout */
  .prm-tlh2__header {
    flex-direction: row;
    align-items: center;
    gap: 0;
    padding-left: clamp(1.25rem, 6.522vw + -0.217rem, 5rem) !important;
    padding-right: clamp(1.25rem, 6.522vw + -0.217rem, 5rem) !important;
    padding-top: 40px;
    padding-bottom: 20px;
    flex-shrink: 0; /* Don't shrink header */
  }

  .prm-tlh2__intro {
    width: 85%;
    padding: 0 24px 0 0;
  }
  
  .prm-tlh2__controls-wrapper {
    width: 15%;
    display: grid;
    grid-template-columns: auto;
    grid-template-rows: auto auto;
    gap: 8px;
    align-content: center;
    justify-content: flex-end;
    padding-left: 16px;
  }

  .prm-tlh2__controls {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    grid-column: 1;
    grid-row: 1;
    width: fit-content;
    margin-left: auto;
  }

  .prm-tlh2__arrow.prm-nav-button {
    width: clamp(56px, 5vw, 70px) !important;
    height: clamp(56px, 5vw, 70px) !important;
  }

  .prm-tlh2__arrow.prm-nav-button svg {
    width: clamp(26px, 2.2vw, 32px) !important;
    height: clamp(26px, 2.2vw, 32px) !important;
  }

  .prm-tlh2__back-to-start.prm-nav-button {
    /* Width spans all 3 buttons (left + pause + right + 2 gaps of 8px) */
    width: 0;
    min-width: 0;
    grid-column: 1;
    grid-row: 2;
    justify-self: flex-end;
    height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
  }

  .prm-tlh2__back-to-start.prm-nav-button.prm-tlh2__back-to-start--visible {
    /* Width matches all 3 nav buttons + gaps: (button * 3) + (gap * 2) */
    width: calc((clamp(56px, 5vw, 70px) * 3) + 16px) !important;
    height: clamp(56px, 5vw, 70px) !important;
    padding: 0 20px !important;
    margin: 0;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, height 0.3s ease-in-out, width 0.3s ease-in-out, padding 0.3s ease-in-out;
  }

  .prm-tlh2__back-to-start-text {
    font-size: 14px !important;
  }
  
  /* Right arrow glow animation - flashes 3 times before auto-advance */
  @keyframes prm-arrow-glow {
    0%, 100% {
      box-shadow: 0 0 0 0 rgba(0, 147, 190, 0);
    }
    50% {
      box-shadow: 0 0 12px 4px rgba(0, 147, 190, 0.4), 0 0 20px 8px rgba(0, 147, 190, 0.15);
    }
  }
  
  .prm-tlh2__arrow--right.prm-tlh2__arrow--glowing {
    animation: prm-arrow-glow 0.6s ease-in-out 3;
  }
  
  /* Dot navigation glow animation - flashes on next dot before auto-advance */
  @keyframes prm-dot-glow {
    0%, 100% {
      transform: scale(1);
      box-shadow: 0 0 0 0 rgba(0, 147, 190, 0);
    }
    50% {
      transform: scale(1.15);
      box-shadow: 0 0 10px 3px rgba(0, 147, 190, 0.5), 0 0 16px 6px rgba(0, 147, 190, 0.2);
    }
  }
  
  .prm-tlh2__dot--glowing .prm-tlh2__dot-inner {
    animation: prm-dot-glow 0.6s ease-in-out 3;
  }
  
  /* Pause/Play button */
  .prm-tlh2__pause.prm-nav-button {
    display: grid !important;
    place-items: center !important;
    width: clamp(56px, 5vw, 70px) !important;
    height: clamp(56px, 5vw, 70px) !important;
    padding: 0 !important;
  }
  
  .prm-tlh2__pause svg {
    width: clamp(22px, 2vw, 28px);
    height: clamp(22px, 2vw, 28px);
    color: #0093BE;
    display: block;
  }
  
  /* Toggle icons based on state */
  .prm-tlh2__pause .prm-tlh2__play-icon {
    display: none;
  }
  
  .prm-tlh2__pause.prm-tlh2__pause--paused .prm-tlh2__pause-icon {
    display: none;
  }
  
  .prm-tlh2__pause.prm-tlh2__pause--paused .prm-tlh2__play-icon {
    display: block;
  }
  
  /* Spine - Dashed line with gradient transparency */
  /* Now inside each slide so it moves with the slide content */
  /* Fixed spine - gradient mask is fixed, dashed line pattern animates with content */
  /*
   * ==================== CRITICAL ALIGNMENT NOTE ====================
   * The following elements MUST always be perfectly vertically aligned:
   * 1. .prm-tlh2__spine-fixed (this element) - uses --tlh2-spine-position
   * 2. .prm-tlh2__media (image) - uses --tlh2-spine-position
   * 3. .prm-tlh2__date-chip - uses --tlh2-spine-position
   * 
   * All three use: top: var(--tlh2-spine-position, 50%); transform: translateY(-50%);
   * If you change the spine position, ALL elements will move together.
   * ================================================================
   */
  .prm-tlh2__spine-fixed {
    position: absolute;
    /* Extend to full viewport width - break out of container */
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: 100vw;
    /* Position to align with image/chip vertical centers - MUST use same variable */
    top: var(--tlh2-spine-position, 50%);
    height: 4px;
    pointer-events: none;
    z-index: 1; /* BEHIND image and date chip */
    /* Dashed line pattern */
    background: repeating-linear-gradient(
      to right,
      var(--tlh2-rail-color) 0 10px,
      transparent 10px 26px
    );
    background-position: 0 0;
    /* Transition matches slide animation timing */
    transition: background-position 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    /* Mask for gradient transparency: ~10% at far left, full opacity on right */
    /* This mask stays FIXED - doesn't move with the dashed line */
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 20%, rgba(0,0,0,0.6) 35%, rgba(0,0,0,1) 50%);
    mask-image: linear-gradient(to right, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 20%, rgba(0,0,0,0.6) 35%, rgba(0,0,0,1) 50%);
  }
  
  /* Spine moves LEFT when content moves LEFT (navigating forward) */
  /* Shift amount roughly matches visual movement of content */
  .prm-tlh2__spine-fixed.prm-tlh2__spine--move-left {
    background-position: -20vw 0;
  }
  
  /* Spine moves RIGHT when content moves RIGHT (navigating backward) */
  .prm-tlh2__spine-fixed.prm-tlh2__spine--move-right {
    background-position: 20vw 0;
  }
  
  /* Hide individual slide spines - we use the fixed one instead */
  .prm-tlh2__spine {
    display: none;
  }
  
  /* Slides container - take remaining height */
  .prm-tlh2__slides {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 0; /* Critical for flex children with overflow */
    overflow: hidden;
  }
  
  /* Individual slide - fill slides container */
  .prm-tlh2__slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    padding: 0 clamp(1.25rem, 6.522vw + -0.217rem, 5rem);
    transform: translateX(0);
    z-index: 2; /* Above spine (z-index: 1) */
    /* No transition on base state - controlled by animation classes */
  }
  
  /* Active slide is visible at center position */
  .prm-tlh2__slide--active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease-in-out;
  }
  
  /* Exiting LEFT - slide moves to the left (going forward in timeline) */
  .prm-tlh2__slide--exiting-left {
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease-in-out;
  }
  
  /* Exiting RIGHT - slide moves to the right (going backward in timeline) */
  .prm-tlh2__slide--exiting-right {
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease-in-out;
  }
  
  /* Entering from RIGHT - starts off-screen right, will slide left into position */
  .prm-tlh2__slide--entering-right {
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    transform: translateX(100%);
    transition: none; /* No transition when positioning - will animate when class is removed */
  }
  
  /* Entering from LEFT - starts off-screen left, will slide right into position */
  .prm-tlh2__slide--entering-left {
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    transform: translateX(-100%);
    transition: none; /* No transition when positioning - will animate when class is removed */
  }
  
  /* Main content area (image + date chip) */
  .prm-tlh2__slide-main {
    position: relative;
    flex: 1;
    min-height: 0;
  }

  /* Image container - positioned so spine runs through vertical center */
  /* Right-justified within left half - grows to the left if needed */
  .prm-tlh2__image-container {
    position: absolute;
    /* Position from right at 50% (where chip/content starts) with small gap */
    left: auto;
    right: 52%;
    /* Center vertically on the spine position */
    top: var(--tlh2-spine-position, 50%);
    transform: translateY(-50%);
    width: clamp(320px, 47%, 650px);
    max-width: 55%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    z-index: 2; /* Above spine (z-index: 1) */
  }
  
  .prm-tlh2__media {
    margin: 0;
    padding: 0;
    width: auto;
    max-width: 100%;
    /* Larger max-height to show more of the image */
    max-height: min(calc(var(--tlh2-image-height, 50) * 1vh), 50vh);
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
  }
  
  .prm-tlh2__media img {
    width: auto;
    max-width: 100%;
    height: auto;
    /* Larger max-height - preserves aspect ratio */
    max-height: min(calc(var(--tlh2-image-height, 50) * 1vh), 48vh);
    /* Contain preserves aspect ratio without cropping */
    object-fit: contain;
    display: block;
  }
  
  /* Date chip - positioned so spine runs through vertical center */
  /* No separate animation - the entire slide transforms together */
  /* Left-aligned with content - expands to the RIGHT for longer dates */
  .prm-tlh2__date-chip {
    position: absolute;
    /* Position from left - aligns left edge with content */
    left: 50%;
    right: auto;
    /* Position top at spine position, centered with transform */
    top: var(--tlh2-spine-position, 50%);
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--tlh2-badge-bg, #08A0C6);
    border-radius: clamp(16px, 3vw, 50px);
    /* Responsive padding - scales down for zoomed browsers */
    padding: clamp(16px, 3vh, 50px) clamp(24px, 4vw, 70px);
    min-height: clamp(80px, 12vh, 160px);
    /* Content-based width - expands to right as needed */
    width: fit-content;
    min-width: clamp(250px, 22%, 380px);
    max-width: 48%;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    z-index: 2; /* Above spine */
  }
  
  .prm-tlh2__date-chip-text {
    /* Responsive font size - scales down for zoomed browsers */
    font-size: clamp(28px, 4vw, 64px);
    font-weight: 800;
    color: var(--tlh2-badge-fg, #ffffff);
    text-align: center;
    line-height: 1.1;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }
  
  /* Content area - positioned under the date chip */
  /* Left-aligned with chip - both share same left position */
  .prm-tlh2__slide-content {
    position: absolute;
    /* Same left position as chip for perfect alignment */
    left: 50%;
    right: auto;
    /* Responsive gap - scales down for zoomed browsers */
    top: calc(var(--tlh2-spine-position, 50%) + min(100px, 12vh));
    /* Fixed width for content readability */
    width: clamp(300px, 45%, 600px);
    max-width: 48%;
    padding: clamp(12px, 1.5vh, 20px) 0;
    /* Prevent overflow */
    max-height: 30vh;
    overflow-y: auto;
  }

  .prm-tlh2__content {
    /* Responsive font size - scales for zoomed browsers */
    /* Using min() to cap font size based on viewport */
    /* Increased base size for better readability at 100% zoom */
    font-size: min(clamp(18px, 1.4vw, 24px), 3vh);
    line-height: 1.6;
    color: var(--tlh2-content-fg, #ffffff);
    max-width: 100%;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    text-align: left;
  }

  .prm-tlh2__content p {
    margin: 0 0 0.8em;
    /* Inherit responsive font-size */
    font-size: inherit;
  }

  .prm-tlh2__content p:last-child {
    margin-bottom: 0;
  }
  
  /* Content and Image fade animations - ORDER MATTERS for specificity */
  
  /* ACTIVE state - defined first so animation states can override */
  .prm-tlh2__slide--active .prm-tlh2__content {
    opacity: 1;
    transition: opacity 0.5s ease-in-out 0.1s; /* Slight delay for staggered effect */
  }
  
  .prm-tlh2__slide--active .prm-tlh2__media {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
  }
  
  /* ENTERING states - start hidden, will fade in when entering class removed */
  .prm-tlh2__slide--entering-left .prm-tlh2__content,
  .prm-tlh2__slide--entering-right .prm-tlh2__content {
    opacity: 0;
    transition: none;
  }
  
  .prm-tlh2__slide--entering-left .prm-tlh2__media,
  .prm-tlh2__slide--entering-right .prm-tlh2__media {
    opacity: 0;
    transition: none;
  }
  
  /* EXITING states - fade out (must come last to override active when both present) */
  .prm-tlh2__slide--exiting-left .prm-tlh2__content,
  .prm-tlh2__slide--exiting-right .prm-tlh2__content {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
  }
  
  .prm-tlh2__slide--exiting-left .prm-tlh2__media,
  .prm-tlh2__slide--exiting-right .prm-tlh2__media {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
  }
  
  /* ===== DOT NAVIGATION (Desktop only) ===== */
  .prm-tlh2__dot-nav {
    position: absolute;
    bottom: clamp(12px, 2vh, 24px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    z-index: 10;
    padding: 4px 8px;
  }
  
  .prm-tlh2__dot {
    position: relative;
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    opacity: 0.5;
    outline: none;
    border-radius: 50%;
    -webkit-tap-highlight-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 
      transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
      opacity 0.4s ease,
      filter 0.4s ease,
      background-color 0.3s ease;
  }
  
  .prm-tlh2__dot:hover,
  .prm-tlh2__dot:focus,
  .prm-tlh2__dot:active {
    background: rgba(255, 255, 255, 0.2);
  }
  
  .prm-tlh2__dot-inner {
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--tlh2-badge-bg, #08A0C6);
    background: transparent;
    box-sizing: border-box;
    pointer-events: none;
    flex-shrink: 0;
    transition: 
      width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
      height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
      margin 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
      background-color 0.4s ease,
      border-color 0.4s ease,
      box-shadow 0.4s ease;
  }
  
  /* Hover state - glow effect and full opacity */
  .prm-tlh2__dot:hover {
    opacity: 0.85;
  }
  
  .prm-tlh2__dot:hover .prm-tlh2__dot-inner {
    box-shadow: 0 0 8px 2px rgba(8, 160, 198, 0.5);
  }
  
  /* Active state - filled, larger, raised with glow beam, full opacity */
  .prm-tlh2__dot--active {
    opacity: 1;
    transform: translateY(-3px);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
  }
  
  .prm-tlh2__dot--active .prm-tlh2__dot-inner {
    width: 18px;
    height: 18px;
    background: var(--tlh2-badge-bg, #08A0C6);
    border-color: var(--tlh2-badge-bg, #08A0C6);
    box-shadow: 
      0 0 12px 4px rgba(8, 160, 198, 0.6),
      0 0 24px 8px rgba(8, 160, 198, 0.3);
  }
  
  /* Tooltip */
  .prm-tlh2__dot::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    padding: 6px 12px;
    background: rgba(48, 52, 58, 0.95);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 20;
  }
  
  /* Tooltip arrow */
  .prm-tlh2__dot::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(48, 52, 58, 0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
  }
  
  /* Show tooltip on hover */
  .prm-tlh2__dot:hover::before,
  .prm-tlh2__dot:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
  }
  
  .prm-tlh2__dot:hover::after {
    transform: translateX(-50%);
  }
}

/* Laptop (1025px - 1366px) - Adjust proportions */
@media (min-width: 1025px) and (max-width: 1366px) {
  .prm-tlh2__date-chip {
    /* Content-based width for laptop - expands right */
    width: fit-content;
    min-width: clamp(200px, 20%, 300px);
    max-width: 45%;
    padding: clamp(16px, 2.5vh, 36px) clamp(20px, 3.5vw, 50px);
  }
  
  .prm-tlh2__date-chip-text {
    font-size: clamp(24px, 4vw, 48px);
  }
  
  .prm-tlh2__image-container {
    width: clamp(300px, 50%, 550px);
  }
  
  /* Content area - same left position as chip */
  .prm-tlh2__slide-content {
    width: clamp(280px, 42%, 500px);
    max-width: 45%;
  }
}

/* ===== ZOOM RESPONSIVE BREAKPOINTS ===== */
/* These breakpoints handle browser zoom levels from 100% to 175%+ */
/* On a 1080p screen: 100%=1080px, 105%=1029px, 110%=982px, 125%=864px, 150%=720px, 175%=617px */
/* On a 1440p screen: 100%=1440px, 110%=1309px, 125%=1152px */

/* Large screens baseline (~90-92% or 1440p default) */
@media (min-width: 1025px) and (max-height: 1400px) {
  .prm-tlh2__intro-title {
    font-size: clamp(34px, 4.2vw, 52px) !important;
    margin-bottom: 16px !important;
  }
  
  .prm-tlh2__intro-title p {
    font-size: inherit !important;
  }
  
  .prm-tlh2__intro-text,
  .prm-tlh2__intro-text p {
    font-size: clamp(15px, 1.25vw, 19px) !important;
    line-height: 1.72 !important;
  }
  
  .prm-tlh2__date-chip {
    padding: clamp(18px, 2.4vh, 40px) clamp(24px, 3.5vw, 60px);
    min-height: clamp(80px, 12.5vh, 150px);
  }
  
  .prm-tlh2__date-chip-text {
    font-size: clamp(32px, 4.8vw, 70px) !important;
  }
  
  .prm-tlh2__media {
    max-height: 48vh;
  }
  
  .prm-tlh2__media img {
    max-height: 46vh;
  }
  
  .prm-tlh2__slide-content {
    width: clamp(320px, 48%, 760px);
    max-width: 58%;
    max-height: calc(50vh - 45px);
  }
  
  .prm-tlh2__content,
  .prm-tlh2__content p {
    font-size: min(clamp(19px, 1.35vw, 24px), 3.2vh) !important;
    line-height: 1.65 !important;
  }
}

/* Large screens slight zoom (~92-95%) */
@media (min-width: 1025px) and (max-height: 1350px) {
  .prm-tlh2__intro-title {
    font-size: clamp(33px, 4.1vw, 50px) !important;
    margin-bottom: 16px !important;
  }
  
  .prm-tlh2__intro-title p {
    font-size: inherit !important;
  }
  
  .prm-tlh2__intro-text,
  .prm-tlh2__intro-text p {
    font-size: clamp(15px, 1.22vw, 18px) !important;
    line-height: 1.7 !important;
  }
  
  .prm-tlh2__date-chip {
    padding: clamp(17px, 2.3vh, 38px) clamp(23px, 3.4vw, 58px);
    min-height: clamp(78px, 12vh, 145px);
  }
  
  .prm-tlh2__date-chip-text {
    font-size: clamp(30px, 4.6vw, 68px) !important;
  }
  
  .prm-tlh2__media {
    max-height: 47vh;
  }
  
  .prm-tlh2__media img {
    max-height: 45vh;
  }
  
  .prm-tlh2__slide-content {
    width: clamp(320px, 48%, 740px);
    max-width: 57%;
    max-height: calc(50vh - 48px);
  }
  
  .prm-tlh2__content,
  .prm-tlh2__content p {
    font-size: min(clamp(19px, 1.32vw, 23px), 3.1vh) !important;
    line-height: 1.64 !important;
  }
}

/* Standard screens baseline (~95-97%) */
@media (min-width: 1025px) and (max-height: 1300px) {
  .prm-tlh2__intro-title {
    font-size: clamp(32px, 4vw, 49px) !important;
    margin-bottom: 15px !important;
  }
  
  .prm-tlh2__intro-title p {
    font-size: inherit !important;
  }
  
  .prm-tlh2__intro-text,
  .prm-tlh2__intro-text p {
    font-size: clamp(14px, 1.2vw, 18px) !important;
    line-height: 1.68 !important;
  }
  
  .prm-tlh2__date-chip {
    padding: clamp(16px, 2.2vh, 36px) clamp(22px, 3.3vw, 56px);
    min-height: clamp(76px, 11.8vh, 140px);
  }
  
  .prm-tlh2__date-chip-text {
    font-size: clamp(29px, 4.5vw, 65px) !important;
  }
  
  .prm-tlh2__media {
    max-height: 46vh;
  }
  
  .prm-tlh2__media img {
    max-height: 44vh;
  }
  
  .prm-tlh2__slide-content {
    width: clamp(320px, 49%, 720px);
    max-width: 56%;
    max-height: calc(50vh - 52px);
  }
  
  .prm-tlh2__content,
  .prm-tlh2__content p {
    font-size: min(clamp(18px, 1.28vw, 22px), 3vh) !important;
    line-height: 1.62 !important;
  }
}

/* Standard screens slight zoom (~97-98%) */
@media (min-width: 1025px) and (max-height: 1250px) {
  .prm-tlh2__intro-title {
    font-size: clamp(32px, 3.95vw, 48px) !important;
    margin-bottom: 15px !important;
  }
  
  .prm-tlh2__intro-title p {
    font-size: inherit !important;
  }
  
  .prm-tlh2__intro-text,
  .prm-tlh2__intro-text p {
    font-size: clamp(14px, 1.18vw, 17px) !important;
    line-height: 1.66 !important;
  }
  
  .prm-tlh2__date-chip {
    padding: clamp(16px, 2.15vh, 35px) clamp(21px, 3.2vw, 54px);
    min-height: clamp(74px, 11.6vh, 138px);
  }
  
  .prm-tlh2__date-chip-text {
    font-size: clamp(28px, 4.3vw, 62px) !important;
  }
  
  .prm-tlh2__media {
    max-height: 45vh;
  }
  
  .prm-tlh2__media img {
    max-height: 43vh;
  }
  
  .prm-tlh2__slide-content {
    width: clamp(320px, 49%, 710px);
    max-width: 56%;
    max-height: calc(50vh - 56px);
  }
  
  .prm-tlh2__content,
  .prm-tlh2__content p {
    font-size: min(clamp(18px, 1.25vw, 21px), 2.9vh) !important;
    line-height: 1.62 !important;
  }
}

/* Minimal zoom (~98-100% - catches edge cases) */
@media (min-width: 1025px) and (max-height: 1200px) {
  .prm-tlh2__intro-title {
    font-size: clamp(31px, 3.9vw, 47px) !important;
    margin-bottom: 14px !important;
  }
  
  .prm-tlh2__intro-title p {
    font-size: inherit !important;
  }
  
  .prm-tlh2__intro-text,
  .prm-tlh2__intro-text p {
    font-size: clamp(14px, 1.15vw, 17px) !important;
    line-height: 1.65 !important;
  }
  
  .prm-tlh2__date-chip {
    padding: clamp(15px, 2.1vh, 34px) clamp(20px, 3.1vw, 52px);
    min-height: clamp(72px, 11.5vh, 135px);
  }
  
  .prm-tlh2__date-chip-text {
    font-size: clamp(27px, 4.2vw, 60px) !important;
  }
  
  .prm-tlh2__media {
    max-height: 45vh;
  }
  
  .prm-tlh2__media img {
    max-height: 43vh;
  }
  
  .prm-tlh2__slide-content {
    width: clamp(320px, 50%, 700px);
    max-width: 55%;
    max-height: calc(50vh - 60px);
  }
  
  .prm-tlh2__content,
  .prm-tlh2__content p {
    font-size: min(clamp(17px, 1.22vw, 20px), 2.8vh) !important;
    line-height: 1.6 !important;
  }
}

/* Very slight zoom (~100-102%) */
@media (min-width: 1025px) and (max-height: 1150px) {
  .prm-tlh2__intro-title {
    font-size: clamp(31px, 3.9vw, 47px) !important;
    margin-bottom: 14px !important;
  }
  
  .prm-tlh2__intro-title p {
    font-size: inherit !important;
  }
  
  .prm-tlh2__intro-text,
  .prm-tlh2__intro-text p {
    font-size: clamp(14px, 1.18vw, 17px) !important;
    line-height: 1.68 !important;
  }
  
  .prm-tlh2__date-chip {
    padding: clamp(15px, 2.1vh, 34px) clamp(21px, 3.1vw, 52px);
    min-height: clamp(72px, 11.5vh, 135px);
  }
  
  .prm-tlh2__date-chip-text {
    font-size: clamp(27px, 4.2vw, 60px) !important;
  }
  
  .prm-tlh2__media {
    max-height: 45vh;
  }
  
  .prm-tlh2__media img {
    max-height: 43vh;
  }
  
  .prm-tlh2__slide-content {
    width: clamp(320px, 50%, 680px);
    max-width: 54%;
    max-height: calc(50vh - 65px);
  }
  
  .prm-tlh2__content,
  .prm-tlh2__content p {
    font-size: min(clamp(17px, 1.18vw, 20px), 2.7vh) !important;
    line-height: 1.58 !important;
  }
}

/* First zoom step (~102-105% zoom) */
@media (min-width: 1025px) and (max-height: 1100px) {
  /* Intro section scaling - very slight reduction */
  .prm-tlh2__intro-title {
    font-size: clamp(30px, 3.8vw, 46px) !important;
    margin-bottom: 14px !important;
  }
  
  .prm-tlh2__intro-title p {
    font-size: inherit !important;
  }
  
  .prm-tlh2__intro-text,
  .prm-tlh2__intro-text p {
    font-size: clamp(14px, 1.15vw, 17px) !important;
    line-height: 1.65 !important;
  }
  
  .prm-tlh2__date-chip {
    padding: clamp(14px, 2vh, 32px) clamp(20px, 3vw, 50px);
    min-height: clamp(70px, 11vh, 130px);
  }
  
  .prm-tlh2__date-chip-text {
    font-size: clamp(26px, 4vw, 58px) !important;
  }
  
  .prm-tlh2__media {
    max-height: 44vh;
  }
  
  .prm-tlh2__media img {
    max-height: 42vh;
  }
  
  .prm-tlh2__slide-content {
    width: clamp(320px, 50%, 660px);
    max-width: 53%;
    max-height: calc(50vh - 70px);
  }
  
  .prm-tlh2__content,
  .prm-tlh2__content p {
    font-size: min(clamp(16px, 1.15vw, 19px), 2.6vh) !important;
    line-height: 1.55 !important;
  }
}

/* Second zoom step (~105-108% zoom) */
@media (min-width: 1025px) and (max-height: 1050px) {
  /* Intro section scaling - slight reduction */
  .prm-tlh2__intro-title {
    font-size: clamp(29px, 3.6vw, 44px) !important;
    margin-bottom: 13px !important;
  }
  
  .prm-tlh2__intro-title p {
    font-size: inherit !important;
  }
  
  .prm-tlh2__intro-text,
  .prm-tlh2__intro-text p {
    font-size: clamp(14px, 1.12vw, 16px) !important;
    line-height: 1.62 !important;
  }
  
  .prm-tlh2__date-chip {
    padding: clamp(13px, 1.9vh, 30px) clamp(19px, 2.9vw, 48px);
    min-height: clamp(65px, 10.5vh, 125px);
  }
  
  .prm-tlh2__date-chip-text {
    font-size: clamp(24px, 3.8vw, 54px) !important;
  }
  
  .prm-tlh2__slide-content {
    width: clamp(320px, 50%, 640px);
    max-width: 52%;
    max-height: calc(50vh - 75px);
  }
  
  .prm-tlh2__media {
    max-height: 42vh;
  }
  
  .prm-tlh2__media img {
    max-height: 40vh;
  }
  
  .prm-tlh2__content,
  .prm-tlh2__content p {
    font-size: min(clamp(15px, 1.1vw, 18px), 2.5vh) !important;
    line-height: 1.52 !important;
  }
}

/* Third zoom step (107-115% zoom) */
@media (min-width: 1025px) and (max-height: 1000px) {
  /* Intro section scaling */
  .prm-tlh2__intro-title {
    font-size: clamp(28px, 3.5vw, 42px) !important;
    margin-bottom: 12px !important;
  }
  
  .prm-tlh2__intro-title p {
    font-size: inherit !important;
  }
  
  .prm-tlh2__intro-text,
  .prm-tlh2__intro-text p {
    font-size: clamp(14px, 1.1vw, 16px) !important;
    line-height: 1.6 !important;
  }
  
  .prm-tlh2__date-chip {
    padding: clamp(12px, 1.8vh, 28px) clamp(18px, 2.8vw, 45px);
    min-height: clamp(60px, 10vh, 120px);
  }
  
  .prm-tlh2__date-chip-text {
    font-size: clamp(22px, 3.5vw, 50px) !important;
  }
  
  .prm-tlh2__media {
    max-height: 40vh;
  }
  
  .prm-tlh2__media img {
    max-height: 38vh;
  }
  
  .prm-tlh2__slide-content {
    width: clamp(320px, 50%, 620px);
    max-width: 52%;
    max-height: calc(50vh - 80px);
  }
  
  .prm-tlh2__content,
  .prm-tlh2__content p {
    font-size: min(clamp(15px, 1.05vw, 18px), 2.4vh) !important;
    line-height: 1.5 !important;
  }
}

/* Moderate zoom (120-135% zoom) */
@media (min-width: 1025px) and (max-height: 900px) {
  /* Intro section scaling */
  .prm-tlh2__intro-title {
    font-size: clamp(24px, 3vw, 36px) !important;
    margin-bottom: 10px !important;
  }
  
  .prm-tlh2__intro-title p {
    font-size: inherit !important;
  }
  
  .prm-tlh2__intro-text,
  .prm-tlh2__intro-text p {
    font-size: clamp(12px, 0.95vw, 14px) !important;
    line-height: 1.5 !important;
  }
  
  .prm-tlh2__date-chip {
    padding: clamp(8px, 1.2vh, 18px) clamp(14px, 2vw, 32px);
    min-height: clamp(40px, 6vh, 80px);
    border-radius: clamp(8px, 1.2vw, 24px);
  }
  
  .prm-tlh2__date-chip-text {
    font-size: clamp(16px, 2.5vw, 32px) !important;
  }
  
  .prm-tlh2__media {
    max-height: 32vh;
  }
  
  .prm-tlh2__media img {
    max-height: 30vh;
  }
  
  .prm-tlh2__slide-content {
    /* Keep positioned relative to spine, but constrain height */
    top: calc(var(--tlh2-spine-position, 50%) + min(80px, 10vh));
    width: clamp(320px, 52%, 600px);
    max-width: 54%;
    max-height: calc(50vh - 85px);
    padding: clamp(4px, 0.6vh, 10px) 0;
    overflow-y: auto;
  }
  
  .prm-tlh2__content,
  .prm-tlh2__content p {
    /* Override Elementor typography for zoomed browsers */
    font-size: min(clamp(13px, 0.92vw, 16px), 2vh) !important;
    line-height: 1.4 !important;
  }
  
  /* Dot navigation - smaller for zoomed viewports */
  .prm-tlh2__dot-nav {
    bottom: clamp(4px, 0.6vh, 8px);
    gap: 0;
    padding: 2px 6px;
  }
  
  .prm-tlh2__dot {
    width: 24px;
    height: 24px;
  }
  
  .prm-tlh2__dot-inner {
    width: 10px;
    height: 10px;
    border-width: 1.5px;
  }
  
  .prm-tlh2__dot--active .prm-tlh2__dot-inner {
    width: 14px;
    height: 14px;
  }
  
  /* Smaller tooltip for zoomed browsers */
  .prm-tlh2__dot::before {
    padding: 4px 8px;
    font-size: 10px;
    bottom: calc(100% + 6px);
  }
  
  .prm-tlh2__dot::after {
    bottom: calc(100% + 2px);
    border-width: 4px;
  }
}

/* High zoom (135-150% zoom) */
@media (min-width: 1025px) and (max-height: 800px) {
  /* Intro section scaling */
  .prm-tlh2__intro-title {
    font-size: clamp(20px, 2.5vw, 30px) !important;
    margin-bottom: 8px !important;
  }
  
  .prm-tlh2__intro-title p {
    font-size: inherit !important;
  }
  
  .prm-tlh2__intro-text,
  .prm-tlh2__intro-text p {
    font-size: clamp(11px, 0.85vw, 13px) !important;
    line-height: 1.45 !important;
  }
  
  .prm-tlh2__date-chip {
    padding: clamp(7px, 1.1vh, 16px) clamp(13px, 1.8vw, 28px);
    min-height: clamp(36px, 5.5vh, 70px);
    border-radius: clamp(7px, 1.1vw, 22px);
  }
  
  .prm-tlh2__date-chip-text {
    font-size: clamp(15px, 2.2vw, 28px) !important;
  }
  
  .prm-tlh2__media {
    max-height: 30vh;
  }
  
  .prm-tlh2__media img {
    max-height: 28vh;
  }
  
  .prm-tlh2__slide-content {
    top: calc(var(--tlh2-spine-position, 50%) + min(75px, 9.5vh));
    width: clamp(320px, 54%, 580px);
    max-width: 56%;
    max-height: calc(50vh - 90px);
    padding: clamp(3px, 0.5vh, 8px) 0;
  }
  
  .prm-tlh2__content,
  .prm-tlh2__content p {
    font-size: min(clamp(12px, 0.88vw, 15px), 1.85vh) !important;
    line-height: 1.38 !important;
  }
  
  .prm-tlh2__dot-nav {
    bottom: clamp(3px, 0.5vh, 6px);
    gap: 0;
    padding: 2px 5px;
  }
  
  .prm-tlh2__dot {
    width: 22px;
    height: 22px;
  }
  
  .prm-tlh2__dot-inner {
    width: 9px;
    height: 9px;
    border-width: 1.5px;
  }
  
  .prm-tlh2__dot--active .prm-tlh2__dot-inner {
    width: 13px;
    height: 13px;
  }
  
  .prm-tlh2__dot::before {
    padding: 3px 7px;
    font-size: 9px;
    bottom: calc(100% + 5px);
  }
  
  .prm-tlh2__dot::after {
    bottom: calc(100% + 1px);
    border-width: 3px;
  }
}

/* Very high zoom (150-165% zoom) */
@media (min-width: 1025px) and (max-height: 700px) {
  /* Intro section scaling */
  .prm-tlh2__intro-title {
    font-size: clamp(18px, 2.2vw, 26px) !important;
    margin-bottom: 6px !important;
  }
  
  .prm-tlh2__intro-title p {
    font-size: inherit !important;
  }
  
  .prm-tlh2__intro-text,
  .prm-tlh2__intro-text p {
    font-size: clamp(10px, 0.75vw, 12px) !important;
    line-height: 1.4 !important;
  }
  
  .prm-tlh2__date-chip {
    padding: clamp(6px, 1vh, 14px) clamp(12px, 1.5vw, 24px);
    min-height: clamp(32px, 5vh, 60px);
    border-radius: clamp(6px, 1vw, 20px);
  }
  
  .prm-tlh2__date-chip-text {
    font-size: clamp(14px, 2vw, 26px) !important;
  }
  
  .prm-tlh2__media {
    max-height: 28vh;
  }
  
  .prm-tlh2__media img {
    max-height: 26vh;
  }
  
  .prm-tlh2__slide-content {
    /* Keep positioned relative to spine */
    top: calc(var(--tlh2-spine-position, 50%) + min(70px, 9vh));
    width: clamp(320px, 56%, 560px);
    max-width: 58%;
    max-height: calc(50vh - 95px);
    padding: clamp(3px, 0.5vh, 8px) 0;
  }
  
  .prm-tlh2__content,
  .prm-tlh2__content p {
    /* Override Elementor typography for extreme zoom */
    font-size: min(clamp(11px, 0.84vw, 14px), 1.7vh) !important;
    line-height: 1.35 !important;
  }
  
  /* Dot navigation - even smaller */
  .prm-tlh2__dot-nav {
    bottom: clamp(2px, 0.4vh, 5px);
    gap: 0;
    padding: 2px 4px;
  }
  
  .prm-tlh2__dot {
    width: 20px;
    height: 20px;
  }
  
  .prm-tlh2__dot-inner {
    width: 8px;
    height: 8px;
    border-width: 1px;
  }
  
  .prm-tlh2__dot--active .prm-tlh2__dot-inner {
    width: 12px;
    height: 12px;
  }
  
  .prm-tlh2__dot::before {
    padding: 3px 6px;
    font-size: 9px;
    bottom: calc(100% + 4px);
  }
  
  .prm-tlh2__dot::after {
    bottom: calc(100% + 1px);
    border-width: 3px;
  }
}

/* Extreme zoom (165-175% zoom) */
@media (min-width: 1025px) and (max-height: 600px) {
  /* Intro section scaling */
  .prm-tlh2__intro-title {
    font-size: clamp(16px, 2vw, 22px) !important;
    margin-bottom: 5px !important;
  }
  
  .prm-tlh2__intro-title p {
    font-size: inherit !important;
  }
  
  .prm-tlh2__intro-text,
  .prm-tlh2__intro-text p {
    font-size: clamp(9px, 0.7vw, 11px) !important;
    line-height: 1.35 !important;
  }
  
  .prm-tlh2__date-chip {
    padding: clamp(5px, 0.9vh, 12px) clamp(11px, 1.4vw, 22px);
    min-height: clamp(30px, 4.5vh, 55px);
    border-radius: clamp(5px, 0.9vw, 18px);
  }
  
  .prm-tlh2__date-chip-text {
    font-size: clamp(13px, 1.9vw, 24px) !important;
  }
  
  .prm-tlh2__media {
    max-height: 26vh;
  }
  
  .prm-tlh2__media img {
    max-height: 24vh;
  }
  
  .prm-tlh2__slide-content {
    top: calc(var(--tlh2-spine-position, 50%) + min(65px, 8.5vh));
    width: clamp(320px, 58%, 540px);
    max-width: 60%;
    max-height: calc(50vh - 100px);
    padding: clamp(2px, 0.4vh, 6px) 0;
  }
  
  .prm-tlh2__content,
  .prm-tlh2__content p {
    font-size: min(clamp(10px, 0.8vw, 13px), 1.6vh) !important;
    line-height: 1.32 !important;
  }
  
  .prm-tlh2__dot-nav {
    bottom: clamp(2px, 0.35vh, 4px);
    gap: 0;
    padding: 2px 4px;
  }
  
  .prm-tlh2__dot {
    width: 18px;
    height: 18px;
  }
  
  .prm-tlh2__dot-inner {
    width: 7px;
    height: 7px;
    border-width: 1px;
  }
  
  .prm-tlh2__dot--active .prm-tlh2__dot-inner {
    width: 11px;
    height: 11px;
  }
  
  .prm-tlh2__dot::before {
    padding: 2px 5px;
    font-size: 8px;
    bottom: calc(100% + 3px);
  }
  
  .prm-tlh2__dot::after {
    bottom: calc(100% + 0px);
    border-width: 2px;
  }
}

/* Maximum zoom (175%+ zoom) */
@media (min-width: 1025px) and (max-height: 550px) {
  /* Intro section scaling - smallest */
  .prm-tlh2__intro-title {
    font-size: clamp(14px, 1.8vw, 20px) !important;
    margin-bottom: 4px !important;
  }
  
  .prm-tlh2__intro-title p {
    font-size: inherit !important;
  }
  
  .prm-tlh2__intro-text,
  .prm-tlh2__intro-text p {
    font-size: clamp(8px, 0.6vw, 10px) !important;
    line-height: 1.3 !important;
  }
  
  .prm-tlh2__date-chip {
    padding: clamp(4px, 0.8vh, 10px) clamp(10px, 1.2vw, 18px);
    min-height: clamp(26px, 4vh, 45px);
  }
  
  .prm-tlh2__date-chip-text {
    font-size: clamp(12px, 1.7vw, 20px) !important;
  }
  
  .prm-tlh2__media {
    max-height: 24vh;
  }
  
  .prm-tlh2__media img {
    max-height: 22vh;
  }
  
  .prm-tlh2__slide-content {
    /* Keep positioned relative to spine */
    top: calc(var(--tlh2-spine-position, 50%) + min(55px, 7.5vh));
    width: clamp(320px, 60%, 520px);
    max-width: 62%;
    max-height: calc(50vh - 105px);
  }
  
  .prm-tlh2__content,
  .prm-tlh2__content p {
    font-size: min(clamp(9px, 0.72vw, 12px), 1.5vh) !important;
    line-height: 1.28 !important;
  }
  
  /* Dot navigation - smallest size */
  .prm-tlh2__dot-nav {
    bottom: clamp(2px, 0.3vh, 4px);
    gap: 0;
    padding: 2px 4px;
  }
  
  .prm-tlh2__dot {
    width: 14px;
    height: 14px;
  }
  
  .prm-tlh2__dot-inner {
    width: 5px;
    height: 5px;
    border-width: 1px;
  }
  
  .prm-tlh2__dot--active .prm-tlh2__dot-inner {
    width: 10px;
    height: 10px;
  }
  
  .prm-tlh2__dot::before {
    padding: 2px 4px;
    font-size: 8px;
    bottom: calc(100% + 3px);
  }
  
  .prm-tlh2__dot::after {
    bottom: calc(100% + 0px);
    border-width: 2px;
  }
}

/* ===== MOBILE/TABLET VIEW (Card-based scrolling) ===== */

/* Viewport for card scrolling */
.prm-tlh2__viewport {
  position: relative;
  z-index: 2;
  max-width: 100vw;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  user-select: none;
  scroll-snap-type: x mandatory;
  /* Enhanced touch scrolling */
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}

.prm-tlh2__viewport:active {
  cursor: grabbing;
}

.prm-tlh2__viewport::-webkit-scrollbar {
  display: none;
}

/* Card list container */
.prm-tlh2__list {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  min-width: max-content;
  padding: 16px 24px 94px 24px;
  flex-shrink: 0;
  height: 100%;
  box-sizing: border-box;
  gap: 0;
}

/* Timeline item */
.prm-tlh2__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  margin-right: var(--tlh2-col-gap, 60px);
  position: relative;
  scroll-snap-align: center;
}

.prm-tlh2__item:last-child {
  margin-right: 0;
}

/* Card wrapper */
.prm-tlh2__card-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
  transition: margin-bottom 0.3s ease-out;
  justify-content: flex-start;
}

/* Mobile spine */
.prm-tlh2__spine-mobile {
  position: absolute;
  left: 0;
  top: var(--spine-top, 50%);
  width: var(--spine-width, 100%);
  height: 2px;
  transform: translateY(-1px);
  pointer-events: none;
  z-index: 1;
  background: repeating-linear-gradient(
    to right,
    color-mix(in srgb, var(--tlh2-rail-color, rgba(255,255,255,.7)) 100%, transparent) 0 6px,
    transparent 6px 18px
  );
  display: none; /* Hidden on mobile by default */
}

/* Spine column with dot */
.prm-tlh2__spine-col-mobile {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 0;
  height: 0;
  pointer-events: none;
  transition: top 0.3s ease-out;
  display: none; /* Hidden on mobile */
}

.prm-tlh2__dot-mobile {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--tlh2-badge-bg, #0aa3c2);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--tlh2-badge-bg, #0aa3c2) 25%, transparent);
}

/* Badge wrapper below spine */
.prm-tlh2__badge-wrapper-mobile {
  display: none; /* Hidden on mobile - badges are on cards */
}

/* Card */
.prm-tlh2__card {
  position: relative;
  background: var(--tlh2-card-bg);
  color: var(--tlh2-card-fg);
  max-width: 90vw;
  width: 90vw;
  border-radius: var(--tlh2-radius-card);
  padding: var(--tlh2-pad-card);
  box-shadow: var(--tlh2-shadow);
  transition: box-shadow 0.3s ease;
  z-index: 2;
  overflow: visible;
  display: flex;
  flex-direction: column;
  padding-top: 0;
}

.prm-tlh2__card:focus-within,
.prm-tlh2__card:hover {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}

/* Badge on card */
.prm-tlh2__badge--card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% + (var(--tlh2-pad-card) * 2));
  padding: 20px 18px;
  min-height: 48px;
  margin-left: calc(var(--tlh2-pad-card) * -1);
  margin-right: calc(var(--tlh2-pad-card) * -1);
  margin-top: 0;
  border-radius: var(--tlh2-radius-card) var(--tlh2-radius-card) 0 0;
  background: var(--tlh2-badge-bg, #0aa3c2);
  color: #fff;
  font-size: clamp(13px, 2.5vw, 15px);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.4;
  white-space: nowrap;
  box-shadow: none;
  order: 0;
  position: relative;
  z-index: 1;
}

.prm-tlh2__title {
  margin: 0 !important;
  margin-top: calc(var(--tlh2-pad-card) * 1.5) !important;
  margin-bottom: var(--tlh2-pad-card) !important;
  color: var(--tlh2-badge-bg);
  font-size: clamp(20px, 4.5vw, 26px) !important;
  font-weight: 700;
  line-height: 1.25;
  text-align: center !important;
  order: 1;
}

.prm-tlh2__card-media {
  margin: 0;
  margin-bottom: var(--tlh2-pad-card);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  order: 2;
}

.prm-tlh2__card-media img {
  max-width: 100%;
  max-height: 300px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

.prm-tlh2__card-content {
  font-size: clamp(14px, 3vw, 17px) !important;
  line-height: 1.55;
  color: var(--tlh2-card-fg);
  margin-bottom: var(--tlh2-pad-card);
  order: 3;
}

.prm-tlh2__card-content p {
  margin: 0 0 1em;
}

.prm-tlh2__card-content p:last-child {
  margin-bottom: 0;
}

/* Badge below spine on desktop (hidden on mobile) */
.prm-tlh2__badge-mobile {
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--tlh2-radius-badge);
  font-weight: 700;
  font-size: clamp(10px, min(1vw, 1.5vh), 14px);
  text-transform: uppercase;
  background: var(--tlh2-badge-bg, #0aa3c2);
  color: var(--tlh2-badge-fg, #fff);
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

/* Tablet (768px - 1024px) - 2 cards visible */
@media (min-width: 768px) and (max-width: 1024px) {
  .prm-tlh2 {
    height: auto !important;
    min-height: calc(100vh - 120px) !important;
    max-height: none !important;
  }
  
  .prm-tlh2__header {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 20px;
    padding-top: 30px;
    padding-left: clamp(1.25rem, 6.522vw + -0.217rem, 5rem) !important;
    padding-right: clamp(1.25rem, 6.522vw + -0.217rem, 5rem) !important;
  }

  .prm-tlh2__intro {
    width: 100%;
    padding: 0;
  }
  
  .prm-tlh2__intro-title {
    font-size: clamp(24px, 4vw, 32px) !important;
    margin-bottom: 12px !important;
  }
  
  .prm-tlh2__intro-text,
  .prm-tlh2__intro-text p {
    font-size: clamp(13px, 2vw, 15px) !important;
    line-height: 1.55 !important;
  }
  
  .prm-tlh2__card-media img {
    max-height: 200px;
  }
  
  .prm-tlh2__card-content {
    /* Clamp content to prevent excessive height */
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  /* Ensure viewport allows horizontal scroll */
  .prm-tlh2__viewport {
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
  }

  .prm-tlh2__controls-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    padding-left: 0;
  }

  .prm-tlh2__controls {
    display: flex;
    flex-direction: row;
    gap: 8px;
    width: 100%;
    justify-content: space-between;
  }

  .prm-tlh2__arrow--left,
  .prm-tlh2__arrow--right {
    flex: 1;
    max-width: calc(50% - 4px);
  }

  .prm-tlh2__back-to-start.prm-nav-button {
    width: 100% !important;
    margin-top: 0;
  }
  
  /* Cards - 2 visible at once */
  .prm-tlh2 {
    --tlh2-max-card-w: calc(45vw - 20px);
    --tlh2-col-gap: 5vw;
    --tlh2-pad-card: clamp(14px, 2vw, 28px);
  }
  
  .prm-tlh2__card {
    max-width: var(--tlh2-max-card-w);
    width: var(--tlh2-max-card-w);
  }
  
  .prm-tlh2__item {
    margin-right: 60px;
  }
  
  /* Show spine and dots on tablet */
  .prm-tlh2__spine-mobile {
    display: block;
  }
  
  .prm-tlh2__spine-col-mobile {
    display: block;
  }
  
  .prm-tlh2__badge-wrapper-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    z-index: 2;
    width: auto;
    min-width: 0;
    transition: top 0.3s ease-out;
  }
  
  /* Hide badge on card when showing below spine */
  .prm-tlh2__badge--card {
    display: none;
  }
  
  /* Adjust card padding when badge is hidden */
  .prm-tlh2__card {
    padding-top: var(--tlh2-pad-card);
  }
  
  .prm-tlh2__title {
    margin-top: 0 !important;
    font-size: clamp(14px, 2.5vw, 22px);
    text-align: center !important;
  }
  
  .prm-tlh2__card-content {
    font-size: clamp(12px, 1.8vw, 16px);
  }
}

/* Mobile (≤767px) */
@media (max-width: 767px) {
  .prm-tlh2 {
    height: auto !important;
    min-height: calc(100vh - 120px) !important;
    max-height: none !important;
  }
  
  /* Compact header for mobile */
  .prm-tlh2__header {
    padding: 16px;
    padding-top: 24px;
    gap: 16px;
  }
  
  .prm-tlh2__intro-title {
    font-size: clamp(20px, 5vw, 28px) !important;
    margin-bottom: 10px !important;
  }
  
  .prm-tlh2__intro-text,
  .prm-tlh2__intro-text p {
    font-size: clamp(12px, 3vw, 14px) !important;
    line-height: 1.5 !important;
  }
  
  .prm-tlh2__item {
    margin-right: 40px;
  }
  
  /* Cards take full width - NO overflow-y to allow horizontal swipe */
  .prm-tlh2__card {
    max-width: 90vw;
    width: 90vw;
    /* Let card grow naturally - no max-height to avoid overflow issues */
  }
  
  .prm-tlh2__card-media img {
    max-height: 150px;
  }
  
  .prm-tlh2__title {
    font-size: clamp(14px, 4vw, 18px) !important;
  }
  
  .prm-tlh2__card-content {
    font-size: clamp(12px, 3vw, 14px) !important;
    /* Clamp content to prevent excessive height */
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  /* Ensure viewport allows horizontal scroll */
  .prm-tlh2__viewport {
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
  }
}

/* Removed first-child fallback - global rules now handle visibility */

/* Loading state - show content immediately, loader is optional */
.prm-tlh2--loading .prm-tlh2__desktop-view,
.prm-tlh2--loading .prm-tlh2__mobile-view {
  /* Don't hide - content should be visible */
  opacity: 1;
  visibility: visible;
}

.prm-tlh2--ready .prm-tlh2__desktop-view,
.prm-tlh2--ready .prm-tlh2__mobile-view {
  opacity: 1;
  visibility: visible;
}

/* Loading spinner */
.prm-tlh2__loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  pointer-events: none;
}

.prm-tlh2__loader-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(8, 160, 198, 0.2);
  border-top-color: #08A0C6;
  border-radius: 50%;
  animation: prm-tlh2-spin 1s linear infinite;
}

.prm-tlh2__loader-text {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes prm-tlh2-spin {
  to {
    transform: rotate(360deg);
  }
}

.prm-tlh2__loader--hidden {
  display: none;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .prm-tlh2__viewport {
    scroll-behavior: auto;
  }
  
  .prm-tlh2__slide,
  .prm-tlh2__date-chip,
  .prm-tlh2__content,
  .prm-tlh2__media {
    transition: none;
  }
}







