
/* ========================================
   VA CATEGORIES - MAGAZINE EDITORIAL (STICKY STACK)
   ======================================== */


/* ========== FONTS ========== */
@font-face {
  font-family: 'Barlow Condensed';
  src: url('../fonts/Barlow/fonnts.com-BarlowCondensed-Regular.ttf') format('truetype');
  font-weight: 400;
}

@font-face {
  font-family: 'Barlow Condensed';
  src: url('../fonts/Barlow/fonnts.com-BarlowCondensed-Bold.ttf') format('truetype');
  font-weight: 700;
}

@font-face {
  font-family: 'Roc Grotesk';
  src: url('../fonts/fonnts.com-Roc_Grotesk_Regular.otf') format('opentype');
  font-weight: 400;
}

@font-face {
  font-family: 'Roc Grotesk';
  src: url('../fonts/fonnts.com-Roc_Grotesk_Bold.otf') format('opentype');
  font-weight: 700;
}

@font-face {
  font-family: 'Roc Grotesk';
  src: url('../fonts/fonnts.com-Roc_Grotesk_ExtraBold.otf') format('opentype');
  font-weight: 800;
}

/* ========== CSS VARIABLES ========== */
:root {
  --color-open-tab: #F3F1DE;
  --color-night-shift: #1C1C1C;
  --color-global-thread: #3D405B;
  --color-active-status: #80B29B;
  --color-highlight: #F2CC8F;
  --color-taskforce: #DF7A5F;
  --font-primary: 'Roc Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-secondary: 'Barlow Condensed', sans-serif;
}


/* ========== RESET ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--color-open-tab);
  color: var(--color-night-shift);
  font-family: var(--font-secondary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ========== SCROLL PROGRESS ========== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: var(--color-night-shift);
  z-index: 1000;
  transition: width 0.1s ease;
}

/* ========== CATEGORIES SECTION ========== */
.categories-magazine {
  min-height: auto; /* ✅ Changed from 200vh */
  padding: 100px 80px 80px 80px;
  background-color: var(--color-open-tab);
  position: relative;
}

/* ========== MAGAZINE CONTAINER ========== */
.magazine-container {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 80px 1fr;
  gap: 0;
  align-items: start;
  position: relative;
}

/* ========== LEFT COLUMN - STICKY HEADER ========== */
.magazine-header {
  position: sticky;
  top: 100px;
  align-self: start;
  padding-right: 40px;
  z-index: 100;
  background-color: var(--color-open-tab);
  padding-bottom: 30px;
}

/* Title */
.magazine-header h2 {
  font-family: var(--font-primary);
  font-weight: 800;
  color: var(--color-night-shift);
  line-height: 0.9;
  margin-bottom: 20px;
}

.header-small {
  font-size: 2.5rem;
  letter-spacing: 0.02em;
  display: block;
}

.header-large {
  font-size: 3.2rem;
  letter-spacing: -0.05em;
  display: block;
}

/* ✅ HORIZONTAL DIVIDER LINE */
.header-divider {
  width: 100%;
  height: 2px;
  background-color: var(--color-night-shift);
  margin-bottom: 25px;
}

/* ✅ DESCRIPTION - FORCE BLACK COLOR */
.header-description {
  font-family: var(--font-secondary) !important;
  font-size: 1.3rem !important;
  line-height: 1.6 !important;
  color: #1C1C1C !important;
  font-weight: 400 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* ========== DIVIDER CONTAINER ========== */
.divider-container {
  position: sticky;
  top: 100px;
  width: 80px;
  height: calc(100vh - 100px);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  align-self: start;
  z-index: 50;
}

/* Static Vertical Line (left) */
.vertical-line-static {
  position: absolute;
  left: 20px;
  top: 0;
  width: 2px;
  height: 100%;
  background-color: var(--color-night-shift);
  opacity: 0.3;
}

/* Arrow Line Container (right) */
.vertical-line-arrow {
  position: absolute;
  right: 20px;
  top: 0;
  width: 2px;
  height: 100%;
}

/* Arrow Line (grows on scroll) */
.arrow-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 0%;
  background-color: var(--color-night-shift);
  transition: height 0.1s linear;
}

/* Arrow Tip (moves with line) - ✅ FIXED GAP */
.arrow-tip {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-2px); /* ✅ Pull up to connect with line */
  width: 20px;
  height: 30px;
  z-index: 10;
  transition: top 0.1s linear;
}


/* ========== RIGHT COLUMN - CATEGORIES (NORMAL SCROLL) ========== */
.magazine-categories {
  display: flex;
  flex-direction: column;
  gap: 80px; /* ✅ Space between categories */
  padding-left: 40px;
  padding-bottom: 40px;
  position: relative;
}

/* ========== CATEGORY ENTRY - NORMAL SCROLL (NO STACKING) ========== */
.category-entry {
  position: relative; /* ✅ Changed from sticky */
  background-color: var(--color-open-tab);
  padding: 0; /* ✅ Removed extra padding */
  transition: all 0.3s ease;
}

/* ✅ NO Z-INDEX NEEDED - Delete these lines */
/* .category-entry:nth-child(1) { z-index: 1; } etc. */

/* ✅ Horizontal divider line ABOVE each category (except first) */
.category-entry:not(:first-child)::before {
  content: '';
  position: absolute;
  top: -40px; /* ✅ Position above category */
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--color-night-shift);
  opacity: 0.2;
}

/* ✅ Category Content - Image LEFT, Details RIGHT */
.category-content {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 50px;
  align-items: start;
  background-color: var(--color-open-tab);
  padding-left: 60px;
}

/* ✅ Image (LEFT side) */
.category-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
  background-color: #D4D2BE;
  border: 2px solid var(--color-night-shift);
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  opacity: 0.9;
}

.category-entry:hover .category-image img {
  transform: scale(1.08);
  opacity: 1;
}

/* ✅ Details Container - VERTICAL (title on top, description below) */
.category-details {
  display: flex;
  flex-direction: column;
  gap: 25px; /* ✅ Space between title and description */
}

/* ✅ Category Header - Contains the title */
.category-header {
  display: flex;
  flex-direction: column;
  gap: 0;
  background-color: var(--color-open-tab);
}

/* ✅ EDITORIAL STYLE: Big vertical title with one word per line */
.category-title {
  font-family: var(--font-primary);
  font-size: 5rem; /* ✅ HUGE! */
  font-weight: 800; /* ✅ Extra bold */
  letter-spacing: -0.04em; /* ✅ Tight spacing */
  text-transform: uppercase;
  color: var(--color-night-shift);
  line-height: 0.9; /* ✅ Tight line height */
}

/* ✅ Text/Description - below the title */
.category-text {
  font-family: var(--font-secondary);
  font-size: 1.1rem; /* ✅ Normal size */
  line-height: 1.75;
  color: var(--color-night-shift);
  font-weight: 400;
}
/* ========== DYNAMIC CATEGORY INDICATOR ========== */


/* ✅ Dynamic Category Indicator - FIXED CLIPPING */
.category-indicator {
  position: absolute;
  top: 0;
  left: 28px;
  font-family: var(--font-secondary);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-taskforce);
  line-height: 1;
  letter-spacing: 0.02em; /* ✅ Changed from -0.05em (was squeezing) */
  transition: top 0.1s linear;
  pointer-events: none;
  z-index: 20;
  overflow: visible; /* ✅ Changed from hidden (was clipping) */
  height: auto; /* ✅ Changed from 3rem (was too tight) */
  min-width: 60px; /* ✅ Added to ensure enough space */
  display: flex;
  align-items: center;
  justify-content: flex-start; /* ✅ Added for alignment */
}



/* ✅ Rolling number animation */
@keyframes rollUp {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(-100%);
    opacity: 0;
  }
  51% {
    transform: translateY(100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.category-indicator.rolling {
  animation: rollUp 0.1s ease-out;
}
/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1400px) {
  .magazine-container {
    grid-template-columns: 280px 80px 1fr;
  }

  .category-content {
    grid-template-columns: 300px 1fr;
    gap: 40px;
  }
}

@media (max-width: 1200px) {
  .categories-magazine {
    padding: 80px 60px;
  }

  .magazine-container {
    grid-template-columns: 260px 70px 1fr;
  }

  .header-large {
    font-size: 2.8rem;
  }

  .category-title {
    font-size: 4rem; /* ✅ Slightly smaller */
  }

  .category-content {
    grid-template-columns: 280px 1fr;
  }
}

@media (max-width: 992px) {
  .categories-magazine {
    padding: 70px 40px;
  }

  .magazine-container {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .magazine-header {
    position: relative;
    top: 0;
    padding-right: 0;
    margin-bottom: 40px;
  }

  .divider-container {
    display: none;
  }

  .magazine-categories {
    padding-left: 0;
    gap: 80px;
  }

  .category-entry {
    position: relative;
    top: auto;
    padding: 30px 0;
  }

  .category-content {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  /* ✅ Already vertical, just adjust sizing */
  .category-title {
    font-size: 3rem; /* ✅ Smaller on mobile */
    max-width: 180px; /* ✅ Adjusted for mobile */
  }

  .category-image {
    height: 280px;
  }
}


@media (max-width: 768px) {
  .categories-magazine {
    padding: 60px 30px;
  }

  .header-small {
    font-size: 2rem;
  }

  .header-large {
    font-size: 2.3rem;
  }

  .category-title {
    font-size: 2.5rem; /* ✅ Adjusted */
  }

  .magazine-categories {
    gap: 70px;
  }
}

@media (max-width: 480px) {
  .categories-magazine {
    padding: 40px 20px;
  }

  .header-large {
    font-size: 2rem;
  }

  .category-title {
    font-size: 2rem; /* ✅ Smaller on tiny screens */
  }

  .category-text {
    font-size: 1rem;
  }

  .magazine-categories {
    gap: 60px;
  }

  .category-image {
    height: 220px;
  }
}

/* ========================================
   MOBILE OPTIMIZATION - CLEAN VERSION
   ======================================== */

@media (max-width: 992px) {
  
  /* ✅ Hide all desktop divider elements */
  .divider-container,
  .vertical-line-static,
  .vertical-line-arrow,
  .arrow-line,
  .arrow-tip,
  .category-indicator {
    display: none !important;
  }
  
  /* ✅ Section padding */
  .categories-magazine {
    padding: 70px 40px;
  }
  
  /* ✅ Single column layout */
  .magazine-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  /* ✅ Header: Center aligned, not sticky */
  .magazine-header {
    position: relative;
    top: 0;
    padding-right: 0;
    margin-bottom: 50px;
    text-align: center;
  }
  
  .magazine-header h2 {
    text-align: center;
  }
  
  .header-divider {
    margin-left: auto;
    margin-right: auto;
    max-width: 150px;
  }
  
  .header-description {
    text-align: center !important;
    max-width: 100%;
    margin: 0 auto;
  }
  
  /* ✅ Categories container */
  .magazine-categories {
    padding-left: 0;
    gap: 60px;
  }
  
  /* ✅ Category entries */
  .category-entry {
    position: relative;
    top: auto;
    padding: 0;
  }
  
  /* ✅ Remove horizontal dividers between categories */
  .category-entry:not(:first-child)::before {
    display: none;
  }
  
  /* ✅ Category content: Stack image above details, centered */
  .category-content {
    grid-template-columns: 1fr;
    gap: 25px;
    padding-left: 0;
    text-align: center;
  }
  
  /* ✅ Image: Full width */
  .category-image {
    height: 280px;
    width: 100%;
    margin: 0 auto;
  }
  
  /* ✅ Details: Center everything */
  .category-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  .category-header {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  /* ✅ Title: Center aligned, smaller */
  .category-title {
    font-size: 3rem;
    text-align: center;
    line-height: 0.95;
    max-width: 100%;
  }
  
  /* ✅ Text: Center aligned */
  .category-text {
    font-size: 1.1rem;
    text-align: center;
    max-width: 90%;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .categories-magazine {
    padding: 50px 30px;
  }
  
  .header-small {
    font-size: 2rem;
  }
  
  .header-large {
    font-size: 2.3rem;
  }
  
  .category-title {
    font-size: 2.5rem;
  }
  
  .category-image {
    height: 250px;
  }
  
  .magazine-categories {
    gap: 50px;
  }
}

@media (max-width: 480px) {
  .categories-magazine {
    padding: 40px 20px;
  }
  
  .header-small {
    font-size: 1.75rem;
  }
  
  .header-large {
    font-size: 2rem;
  }
  
  .category-title {
    font-size: 2rem;
  }
  
  .category-text {
    font-size: 1rem;
  }
  
  .category-image {
    height: 220px;
  }
  
  .magazine-categories {
    gap: 40px;
  }
}
