
/* Strict Removal of All Text Overlays and Slat Captions Over Images */
.spotlight-slat-top-badge,
.spotlight-slat-index,
.spotlight-slat-scrim,
.spotlight-slat-title,
.spotlight-slat-sub,
.spotlight-scrim-meta,
.spotlight-read-btn {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/**
 * Spotlight Frames — Originkit Architecture
 * Vanilla CSS for High-Performance Slats Accordion & Auto-Panning Strip
 * Durga Public School, Pilani, Rajasthan
 */

/* Container wrapper */
.spotlight-frames-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 460px;
  overflow: hidden;
  background: transparent;
  user-select: none;
  touch-action: pan-y pinch-zoom;
  border-radius: inherit;
}

/* Internal frame stage (the sliding horizontal track) */
.spotlight-frames-stage {
  position: absolute;
  top: 50%;
  left: 0;
  height: 100%;
  transform: translateY(-50%);
  overflow: visible;
  border-radius: inherit;
  will-change: transform;
  transition: transform 0.85s cubic-bezier(0.075, 0.82, 0.165, 1);
}

/* Individual slat */
.spotlight-slat {
  position: absolute;
  top: 0;
  height: 100%;
  overflow: hidden;
  cursor: pointer;
  border-radius: 18px;
  outline-offset: 2px;
  will-change: left, width;
  transition: left 0.85s cubic-bezier(0.075, 0.82, 0.165, 1),
              width 0.85s cubic-bezier(0.075, 0.82, 0.165, 1);
  box-shadow: 0 8px 24px rgba(46, 8, 21, 0.08);
  border: 1px solid rgba(217, 184, 138, 0.35);
  background: var(--card-bg, #FFFFFF);
  z-index: 2;
}

.spotlight-slat.is-active {
  z-index: 10;
  box-shadow: 0 16px 42px rgba(46, 8, 21, 0.22);
  border-color: rgba(217, 184, 138, 0.9);
  background: var(--cream-50, #FCFBF9);
}

/* Inner wrapper for image & overlays */
.spotlight-slat-inner {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  transition: filter 0.6s cubic-bezier(0.075, 0.82, 0.165, 1),
              opacity 0.6s ease;
  background: #FAF8F5;
}

/* Closed slats slight dimming & subtle hover */
.spotlight-slat:not(.is-active) .spotlight-slat-inner {
  filter: brightness(0.86) saturate(0.88);
}

.spotlight-slat:not(.is-active):hover .spotlight-slat-inner {
  filter: brightness(0.97) saturate(0.98);
}

/* Default centered image (center-slice cropping for closed slats) */
.spotlight-slat-img {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  pointer-events: none;
  user-select: none;
  will-change: transform, width;
  transition: opacity 0.3s ease;
}

/* Contain Fit Mode (Used for Newspaper Clippings & Documents to show 100% full uncropped image) */
.spotlight-fit-contain .spotlight-slat.is-active .spotlight-slat-inner {
  filter: none;
  background: #FAF8F5;
}

.spotlight-fit-contain .spotlight-slat.is-active .spotlight-slat-img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  left: 0 !important;
  top: 0 !important;
  transform: none !important;
  object-fit: contain !important;
  background: #FAF8F5 !important;
  padding: 14px !important; /* Reserve space for bottom floating glass caption */
  box-sizing: border-box;
}

/* Slat number badge on closed slats */
.spotlight-slat-index {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(46, 8, 21, 0.88);
  border: 1.5px solid rgba(217, 184, 138, 0.55);
  color: #FDF9EE;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.spotlight-slat.is-active .spotlight-slat-index {
  opacity: 0;
  transform: translateX(-50%) scale(0.5);
  pointer-events: none;
}

/* Editorial Top Badge on active slat */
.spotlight-slat-top-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(46, 8, 21, 0.88);
  color: #FDF9EE;
  border: 1px solid rgba(217, 184, 138, 0.5);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  z-index: 6;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.4s ease 0.15s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.spotlight-slat.is-active .spotlight-slat-top-badge {
  opacity: 1;
  transform: translateY(0);
}

/* Floating Glass Caption at Bottom of active slat */
.spotlight-slat-scrim {
  position: absolute;
  inset: auto 14px 14px 14px;
  height: auto;
  background: rgba(46, 8, 21, 0.92);
  border: 1px solid rgba(217, 184, 138, 0.45);
  border-radius: 14px;
  padding: 8px 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
  z-index: 6;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.45s ease 0.15s, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.spotlight-slat.is-active .spotlight-slat-scrim {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.spotlight-scrim-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.spotlight-slat-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.spotlight-slat-sub {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Read / Enlarge Full Document Button */
.spotlight-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--wine-900, #7D1D3F);
  color: #FDF9EE;
  border: 1px solid rgba(217, 184, 138, 0.5);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.spotlight-read-btn:hover {
  background: var(--gold-400, #E6C285);
  color: var(--wine-950, #2E0815);
  border-color: #FFFFFF;
  transform: translateY(-1px);
}

/* Active Selector Box (Originkit hairline box + top/bottom guide lines) */
.spotlight-selector {
  position: absolute;
  top: 0;
  height: 100%;
  border: 2.5px solid var(--gold-border, #D9B88A);
  border-radius: 18px;
  pointer-events: none;
  z-index: 25;
  will-change: left, width;
  transition: left 0.85s cubic-bezier(0.075, 0.82, 0.165, 1),
              width 0.85s cubic-bezier(0.075, 0.82, 0.165, 1);
  box-shadow: 0 0 24px rgba(217, 184, 138, 0.45), inset 0 0 12px rgba(217, 184, 138, 0.18);
}

/* Guide lines extending from box top and bottom */
.spotlight-selector-line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 600px;
  background: var(--gold-border, #D9B88A);
  pointer-events: none;
  opacity: 0.85;
}

.spotlight-selector-line.top {
  bottom: 100%;
}

.spotlight-selector-line.bottom {
  top: 100%;
}

/* Spotlight Navigation / Autoplay Video Bar */
.spotlight-controls-bar {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(46, 8, 21, 0.90);
  border: 1px solid rgba(217, 184, 138, 0.45);
  border-radius: 999px;
  padding: 6px 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
  z-index: 30;
  backdrop-filter: blur(10px);
}

/* Play/Pause Video Reel Toggle */
.spotlight-video-btn {
  background: transparent;
  border: none;
  color: var(--gold-300, #F3D2A2);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.2s ease, transform 0.2s ease;
}

.spotlight-video-btn:hover {
  color: #FFFFFF;
  transform: scale(1.12);
}

/* Step chevron buttons inside bar */
.spotlight-step-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.2s ease, transform 0.2s ease;
}

.spotlight-step-btn:hover {
  color: var(--gold-300, #F3D2A2);
  transform: scale(1.12);
}

/* Counter Pill for large item collections */
.spotlight-counter-pill {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0 4px;
  font-size: 0.76rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  font-variant-numeric: tabular-nums;
}

.spotlight-cur-num {
  color: var(--gold-300, #F3D2A2);
}

.spotlight-sep {
  opacity: 0.5;
  font-size: 0.70rem;
}

.spotlight-total-num {
  opacity: 0.85;
}

/* Progress Scrubber Track */
.spotlight-scrub-track {
  position: relative;
  width: 90px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  overflow: hidden;
  cursor: pointer;
  margin: 0 2px;
}

.spotlight-scrub-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--gold-300, #F3D2A2);
  border-radius: 999px;
  transition: width 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
}

/* Pagination Dots (used when items <= 8) */
.spotlight-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.spotlight-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}

.spotlight-dot.active {
  width: 22px;
  background: var(--gold-300, #F3D2A2);
}

/* Outer Prev/Next Arrow controls on container sides */
.spotlight-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(46, 8, 21, 0.88);
  border: 1.5px solid rgba(217, 184, 138, 0.45);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
  transition: all 0.2s ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.spotlight-arrow-btn:hover {
  background: var(--wine-900, #7D1D3F);
  border-color: var(--gold-300, #F3D2A2);
  transform: translateY(-50%) scale(1.08);
}

.spotlight-arrow-btn.prev {
  left: 14px;
}

.spotlight-arrow-btn.next {
  right: 14px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .spotlight-frames-wrap {
    min-height: 400px;
  }
  .spotlight-slat {
    border-radius: 14px;
  }
  .spotlight-selector {
    border-radius: 14px;
  }
  .spotlight-slat-title {
    font-size: 0.86rem;
  }
  .spotlight-arrow-btn {
    display: none;
  }
  .spotlight-scrub-track {
    width: 60px;
  }
}

/* ============================================================================
   HERO & NEWS SECTION INTEGRATIONS
   ============================================================================ */

/* Hero Showcase Spotlight Stage */
.hero-spotlight-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: linear-gradient(160deg, #FDFBF7 0%, #F5EFE6 50%, #ECE4D4 100%);
}

.hero-spotlight-stage .spotlight-slat {
  border-radius: 24px;
}

.hero-spotlight-stage .spotlight-selector {
  border-radius: 24px;
}

/* News Section Spotlight Viewport */
.s-spotlight-container-wrap {
  position: relative;
  width: 100%;
  margin-top: 14px;
}

.s-spotlight-viewport {
  position: relative;
  width: 100%;
  height: 520px;
  min-height: 520px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(251, 247, 239, 0.90) 0%, rgba(244, 236, 220, 0.98) 100%);
  border: 1.5px solid rgba(217, 184, 138, 0.5);
  box-shadow: 0 12px 36px rgba(46, 8, 21, 0.08);
}

.s-spotlight-viewport .spotlight-slat {
  border-radius: 16px;
  border: 1px solid rgba(217, 184, 138, 0.45);
}

.s-spotlight-viewport .spotlight-selector {
  border-radius: 16px;
}

/* Ensure Notch Pills inside Hero curved card float on top of slats */
.client-curved-card .curved-notch-pill,
.client-curved-card .curved-notch-gallery-pill {
  z-index: 35 !important;
}

@media (max-width: 768px) {
  .s-spotlight-viewport {
    height: 440px;
    min-height: 440px;
  }
}
