/* ==========================================================================
   TPS Empire - Scattered Floating Parallax Blog Showcase
   Reference: Massive Pinned Center Headline ("READ OUR LATEST ARTICLES")
              with asymmetrical floating image cards drifting across the screen
   ========================================================================== */

:root {
  --tps-blog-dark-bg: #000000;
  --tps-blog-white: #ffffff;
  --tps-blog-accent: #f96d00;
  --tps-blog-primary: #323edd;
  --tps-blog-muted: #94a3b8;
}

/* Main Section Wrapper */
.tps-blog-stream-section {
  position: relative;
  width: 100%;
  background: var(--tps-blog-dark-bg);
  color: var(--tps-blog-white);
  overflow: clip;
  box-sizing: border-box;
}

/* Scroll Runway Track */
.tps-blog-stream-track {
  position: relative;
  width: 100%;
  height: 520vh;
}

/* Sticky Viewport Container */
.tps-blog-stream-viewport {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 2;
  box-sizing: border-box;
  background: #000000;
}

/* --------------------------------------------------------------------------
   Sticky Center Header Block (Fixed in Center Viewport)
   -------------------------------------------------------------------------- */
.tps-blog-center-anchor {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 90%;
  max-width: 780px;
  z-index: 2;
  pointer-events: none;
  user-select: none;
}

/* Giant Bold Center Headline */
.tps-blog-giant-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(38px, 6.5vw, 96px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -2px;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
  text-align: center;
}

.tps-blog-giant-title span {
  display: block;
}


/* --------------------------------------------------------------------------
   Scattered Floating Cards Stage
   -------------------------------------------------------------------------- */
.tps-blog-floating-stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

/* Individual Floating Card */
.tps-blog-floating-card {
  position: absolute;
  pointer-events: none;
  text-decoration: none !important;
  color: #ffffff !important;
  display: flex;
  flex-direction: column;
  transition: filter 0.25s ease;
  will-change: transform, opacity;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
}

.tps-blog-floating-card:hover {
  z-index: 20;
}

/* Floating Card Header Information */
.tps-blog-card-info {
  margin-bottom: 8px;
  max-width: 100%;
}

.tps-blog-card-title-text {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #ffffff;
  line-height: 1.25;
  margin: 0 0 4px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.tps-blog-floating-card:hover .tps-blog-card-title-text {
  color: #60a5fa;
}

.tps-blog-card-meta-text {
  font-size: 11px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Floating Card Image Box */
.tps-blog-card-img-frame {
  position: relative;
  width: 100%;
  border-radius: 3px;
  overflow: hidden;
  background: #111422;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.85), 0 0 1px rgba(255, 255, 255, 0.2);
}

.tps-blog-card-img-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Card Size Variations (Aspect ratios and scale) */
.tps-card-portrait .tps-blog-card-img-frame img {
  aspect-ratio: 4/5;
  max-height: 480px;
}

.tps-card-tall .tps-blog-card-img-frame img {
  aspect-ratio: 3/4;
  max-height: 440px;
}

.tps-card-square .tps-blog-card-img-frame img {
  aspect-ratio: 1/1;
  max-height: 380px;
}

.tps-card-wide .tps-blog-card-img-frame img {
  aspect-ratio: 16/9;
  max-height: 290px;
}

.tps-card-landscape .tps-blog-card-img-frame img {
  aspect-ratio: 16/10;
  max-height: 310px;
}

.tps-blog-floating-card:hover .tps-blog-card-img-frame img {
  transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   Responsive & Mobile Styles
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .tps-blog-stream-track {
    height: auto !important;
  }
  .tps-blog-stream-viewport {
    position: relative !important;
    top: 0 !important;
    height: auto !important;
    min-height: auto !important;
    padding: 70px 18px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .tps-blog-center-anchor {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    margin-bottom: 40px;
    width: 100%;
  }
  .tps-blog-giant-title {
    font-size: 44px;
    line-height: 0.95;
    margin: 12px 0 20px 0;
  }
  .tps-blog-floating-stage {
    position: relative !important;
    height: auto !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 28px !important;
    width: 100% !important;
    max-width: 1100px;
  }
  .tps-blog-floating-card {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: none !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

@media (max-width: 576px) {
  .tps-blog-giant-title {
    font-size: 32px;
  }
  .tps-blog-floating-stage {
    grid-template-columns: 1fr !important;
  }
}
