﻿:root {
  --brand-dark: #0a0514;
  --brand-purple: #5b21b6;
  --brand-magenta: #c026d3;
  --brand-cyan: #06b6d4;
  --text-main: #ffffff;
  --text-muted: #cbd5e1;
  --text-muted-dark: #707172;
  --bg-light: #f8fafc;
  --text-light-theme: #0f172a;
  --text-muted-light: #475569;
  --font-main: "Plus Jakarta Sans", sans-serif;
  --font-serif: "Cormorant Garamond", serif;
}

body {
  font-family: var(--font-main);
  color: var(--text-main);
  overflow-x: clip;
  min-height: 100vh;
}

/* Custom Grid System */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
}
.row {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  margin: 0 -15px;
}
.align-items-center {
  align-items: center;
}
.position-relative {
  position: relative;
}
.mt-5 {
  margin-top: 3rem;
}
.col-md-9 {
  width: 75%;
  padding: 0 15px;
}
.col-lg-8 {
  width: 66.666667%;
  padding: 0 15px;
}
.text-center {
  text-align: center;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .col-md-9,
  .col-lg-8 {
    width: 100%;
  }
}

.color-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  filter: blur(80px);
  opacity: 0.15; /* Adjusted for dark theme visibility */
}

.blob {
  position: absolute;
  border-radius: 50%;
  animation: drift 15s infinite alternate ease-in-out;
}

.purple-blob {
  width: 50vw;
  height: 50vw;
  background: var(--brand-purple);
  top: -10%;
  left: -10%;
}

.cyan-blob {
  width: 40vw;
  height: 40vw;
  background: var(--brand-cyan);
  bottom: 0;
  right: -10%;
  animation-delay: -5s;
}

.magenta-blob {
  width: 45vw;
  height: 45vw;
  background: var(--brand-magenta);
  top: 30%;
  left: 30%;
  animation-delay: -10s;
}

.frost-pill-dark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 0 10px rgba(212, 212, 212, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #000000;
  backdrop-filter: blur(10px);
}
.glowing-dot-cyan {
  width: 8px;
  height: 8px;
  background: var(--brand-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--brand-cyan);
}
/* 
.btn-dark-magnetic {
  display: inline-block;
  background: var(--brand-purple);
  color: #fff;
  padding: 18px 40px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 15px 35px rgba(91, 33, 182, 0.2);
  border: none;
  cursor: pointer;
}
.btn-dark-magnetic:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(91, 33, 182, 0.4);
} */
/* =========================================
   1. BLOG HERO (3D MAGAZINE)
   ========================================= */
.blog-mag-hero {
  position: relative;
  padding: 150px 0;
  background-color: var(--bg-light);
  z-index: 10;
  overflow: hidden;
}

.mag-bg-text {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 22vw;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 2px rgba(15, 23, 42, 0.03);
  line-height: 1;
  pointer-events: none;
  z-index: 1;
}

.mag-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 5;
}

.mag-title {
  font-size: clamp(3.5rem, 5vw, 5rem);
  font-weight: 900;
  color: var(--brand-dark);
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 25px;
}
.mag-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted-light);
  line-height: 1.6;
  max-width: 450px;
  margin-bottom: 40px;
  font-weight: 500;
}

.mag-meta-info {
  display: flex;
  gap: 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 20px;
}
.mag-meta-info span {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  color: var(--text-muted-light);
}
.mag-meta-info strong {
  font-size: 1.1rem;
  color: var(--brand-dark);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* 3D Magazine Physics */
.mag-cover-zone {
  perspective: 1500px;
  display: flex;
  justify-content: center;
}
.magazine-3d-wrapper {
  position: relative;
  width: 100%;
  max-width: 450px;
  aspect-ratio: 3 / 4;
  transform-style: preserve-3d;
}

.magazine-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
  transform-style: preserve-3d;
  transition: transform 0.1s ease;
  overflow: hidden;
  cursor: pointer;
}

.mag-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.mag-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(10, 5, 20, 0.9) 0%,
    rgba(10, 5, 20, 0.2) 60%,
    transparent 100%
  );
  z-index: 2;
}

/* This content physically floats ABOVE the image during the 3D tilt */
.mag-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px 30px;
  z-index: 5;
  transform: translateZ(50px); /* Pushes text closer to user */
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.mag-tag {
  background: var(--brand-cyan);
  color: var(--brand-dark);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  align-self: flex-start;
  margin-bottom: 15px;
}
.mag-card-content h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.mag-author {
  display: flex;
  align-items: center;
  gap: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 15px;
}
.mag-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #fff;
}
.mag-author span {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

/* =========================================
   2. HOVER-REVEAL INDEX
   ========================================= */
.blog-index-section {
  position: relative;
  padding: 100px 0 150px 0;
  background-color: var(--bg-light);
  z-index: 10;
}

.index-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--brand-dark);
  padding-bottom: 20px;
  margin-bottom: 40px;
}
.index-header h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-dark);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0;
}

.index-list-wrapper {
  display: flex;
  flex-direction: column;
}

.index-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: var(--brand-dark);
  transition:
    padding 0.4s ease,
    opacity 0.4s ease;
  position: relative;
}

/* Hover Physics for the Rows */
.index-list-wrapper:hover .index-row {
  opacity: 0.3;
} /* Dim all rows */
.index-list-wrapper .index-row:hover {
  opacity: 1;
  padding: 40px 20px;
} /* Highlight and indent hovered row */

.row-left {
  display: flex;
  align-items: baseline;
  gap: 30px;
}
.row-num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--text-muted-light);
  transition: color 0.4s;
}
.row-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin: 0;
  transition: color 0.4s;
}

.row-right {
  display: flex;
  align-items: center;
  gap: 40px;
}
.row-category {
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--brand-purple);
}
.row-date {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted-light);
}

.index-row:hover .row-num {
  color: var(--brand-purple);
}
.index-row:hover .row-title {
  color: var(--brand-purple);
}

/* The Floating Cursor Image (Desktop Only) */
.floating-cursor-img {
  position: fixed;
  top: 0;
  left: 0;
  width: 350px;
  aspect-ratio: 4/3;
  border-radius: 16px;
  overflow: hidden;
  pointer-events: none;
  z-index: 100;
  opacity: 0;
  transform: scale(0.5); /* Hidden and scaled down by default */
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  /* GSAP will handle the movement, this transition handles the fade in/out */
  transition:
    opacity 0.3s ease,
    transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.floating-cursor-img.is-active {
  opacity: 1;
  transform: scale(1);
}
.floating-cursor-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-fallback-img {
  display: none;
} /* Hidden on desktop */

/* Mobile Adjustments */
@media (max-width: 1024px) {
  .mag-hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .magazine-3d-wrapper {
    max-width: 100%;
  }

  .index-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 30px 0;
  }
  .index-list-wrapper .index-row:hover {
    padding: 30px 0;
  } /* Disable horizontal indent on mobile */
  .row-left {
    flex-direction: column;
    gap: 10px;
  }
  .row-title {
    font-size: 1.8rem;
  }
  .row-right {
    width: 100%;
    justify-content: space-between;
  }

  /* Disable the floating cursor logic entirely for mobile and show static images */
  .floating-cursor-img {
    display: none !important;
  }
  .mobile-fallback-img {
    display: block;
    width: 100%;
    height: 250px;
    border-radius: 12px;
    object-fit: cover;
    margin-top: 20px;
  }
}

/* =========================================
   1. KINETIC SEARCH PORTAL (HERO)
   ========================================= */
.blog-kinetic-hero {
  position: relative;
  padding: 180px 0 150px 0;
  z-index: 10;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Infinite Kinetic Marquee */
.kinetic-marquee-wrapper {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100vw;
  transform: translateY(-50%) rotate(-4deg) scale(1.1);
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
}
.kinetic-track {
  display: flex;
  width: max-content;
  animation: scrollMarquee 40s linear infinite;
}
.kinetic-track span {
  font-size: 10vw;
  font-weight: 900;
  color: var(--brand-purple);
  white-space: nowrap;
  padding-right: 50px;
}
@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.hero-portal-content {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}



/* The Glass Search Bar */
.glass-search-wrapper {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  padding: 10px;
  margin-bottom: 30px;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.5),
    inset 0 0 20px rgba(255, 255, 255, 0.02);
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}
.glass-search-wrapper:focus-within {
  border-color: var(--brand-cyan);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(6, 182, 212, 0.3);
}

.search-icon {
  color: rgba(0, 0, 0, 0.5);
  font-size: 1.2rem;
  margin-left: 20px;
}
.glass-search-input {
  flex-grow: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-muted-light);
  font-size: 1.1rem;
  padding: 15px 20px;
  font-family: var(--font-main);
}
.glass-search-input::placeholder {
  color: rgba(0, 0, 0, 0.3);
}

.btn-search-submit {
  background: var(--brand-cyan);
  color: var(--brand-dark);
  border: none;
  border-radius: 100px;
  padding: 15px 40px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(6, 182, 212, 0.2);
  transition: all 0.3s;
}
.btn-search-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(6, 182, 212, 0.4);
}

/* Trending Tags */
.trending-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}
.trending-label {
  color: rgba(0, 0, 0, 0.4);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.trend-tag {
  color: var(--text-muted-light);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
}
.trend-tag:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted-dark);
  border-color: var(--brand-cyan);
}

/* =========================================
   2. CINEMATIC STORY STACKS (FEED)
   ========================================= */
.blog-cinematic-feed {
  padding: 50px 0 150px 0;
  z-index: 10;
  position: relative;
}

.feed-header {
  margin-bottom: 120px;
  text-align: center;
}
.feed-header h2 {
  margin: 0;
}

.cinematic-feed-wrapper {
  display: flex;
  flex-direction: column;
  gap: 120px;
}

/* The Architecture of a Story Stack */
.cinematic-stack {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
}

/* Alignment Modifiers */
.align-left {
  justify-content: flex-start;
}
.align-right {
  justify-content: flex-end;
}

/* The Visual Half */
.stack-visual {
  width: 65%; /* Takes up majority of the width */
  position: relative;
}
.align-right .stack-visual {
  order: 2;
} /* Push image to the right */

.visual-mask {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
  position: relative;
}
.stack-parallax-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 130%; /* Extra height for parallax */
  object-fit: cover;
  will-change: transform;
}

/* Text Overlay on Image */
.visual-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(10, 5, 20, 0.8) 0%,
    rgba(10, 5, 20, 0.2) 50%,
    transparent 100%
  );
  z-index: 2;
  pointer-events: none;
}
.visual-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px;
  z-index: 3;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.visual-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 10px;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}
.visual-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  font-weight: 500;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* The Content Half (The Overlap) */
.stack-content-card {
  width: 45%; /* Slightly smaller than visual */
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 1);
  padding: 50px;
  border-radius: 30px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
  position: absolute; /* Allows overlap */
  z-index: 5;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.cinematic-stack:hover .stack-content-card {
  transform: translateY(-10px);
}

.align-left .stack-content-card {
  right: 0;
} /* Card on right side of image */
.align-right .stack-content-card {
  left: 0;
} /* Card on left side of image */

/* Internal Card Styling */
.card-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}
.badge-cyan {
  background: rgba(6, 182, 212, 0.1);
  color: var(--brand-cyan);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 50px;
}
.badge-blue {
  background: #bf26d322;
  color: var(--brand-magenta);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 50px;
}
.badge-purple {
  background: rgba(91, 33, 182, 0.1);
  color: var(--brand-purple);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 50px;
}

.read-time {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stack-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--brand-dark);
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.stack-desc {
  font-size: 1.1rem;
  color: var(--text-muted-light);
  line-height: 1.6;
  margin-bottom: 40px;
  font-weight: 500;
}

.stack-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 25px;
}
.author-info {
  display: flex;
  align-items: center;
  gap: 15px;
}
.author-info img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.author-info div {
  display: flex;
  flex-direction: column;
}
.author-info strong {
  font-size: 1rem;
  color: var(--brand-dark);
  font-weight: 800;
}
.author-info span {
  font-size: 0.85rem;
  color: var(--text-muted-light);
}

.btn-read-story {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--brand-cyan);
  color: #fff;
  padding: 12px 25px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s;
}
.btn-read-story:hover {
  background: var(--brand-purple);
  transform: scale(1.05);
}

.g-blog-reveal,
.g-feed-reveal {
  visibility: hidden;
}

/* --- Mobile Responsive --- */
@media (max-width: 1024px) {
  .blog-kinetic-hero {
    padding: 150px 0 100px 0;
  }
  .hero-title-white {
    font-size: 3rem;
  }
  .glass-search-wrapper {
    flex-direction: column;
    border-radius: 20px;
    padding: 15px;
    gap: 15px;
  }
  .search-icon {
    display: none;
  }
  .glass-search-input {
    width: 100%;
    text-align: center;
  }
  .btn-search-submit {
    width: 100%;
  }

  .cinematic-feed-wrapper {
    gap: 60px;
  }
  .cinematic-stack {
    flex-direction: column;
  }
  .align-right .stack-visual {
    order: 1;
  } /* Reset order for mobile */
  .stack-visual {
    width: 100%;
  }
  .visual-mask {
    border-radius: 20px 20px 0 0;
    aspect-ratio: 4 / 3;
  }

  .stack-content-card {
    position: relative;
    width: 100%;
    left: 0 !important;
    right: 0 !important;
    border-radius: 0 0 20px 20px;
    padding: 30px;
    border-top: none;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
  }
  .cinematic-stack:hover .stack-content-card {
    transform: none;
  } /* Disable lift on mobile */
  .stack-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
  }
  .btn-read-story {
    width: 100%;
    justify-content: center;
  }
}

/* --- Mobile-only spacing (does not affect tablet/desktop above) --- */
@media (max-width: 768px) {
  .blog-kinetic-hero {
    padding: 100px 0 48px 0;
  }
  .blog-cinematic-feed {
    padding: 40px 0 40px 0;
  }
}

/* =========================================
   3. EDITORIAL ARCHIVE GRID (OLDER BLOGS)
   ========================================= */
.blog-archive-section {
  padding: 0 0 150px 0;
  position: relative;
  z-index: 10;
}

@media (max-width: 768px) {
  .blog-archive-section {
    padding: 0 0 40px 0;
  }
}

/* Section Header with flanking lines */
.archive-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-bottom: 80px;
}
.header-line {
  flex-grow: 1;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
  max-width: 200px;
}
.archive-header h2 {
  margin: 0;
}

/* Filter Tabs */
.blog-filter-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 60px;
  margin-top: 20px;
}
.filter-tab {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text-muted-dark);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-family: var(--font-main);
}
.filter-tab:hover {
  background: rgba(6, 182, 212, 0.05);
  color: var(--brand-dark);
  border-color: rgba(6, 182, 212, 0.3);
  transform: translateY(-3px);
}
.filter-tab.active {
  background: var(--brand-cyan);
  color: var(--brand-dark);
  border-color: var(--brand-cyan);
  box-shadow: 0 10px 20px rgba(6, 182, 212, 0.3);
}

/* The 3-Column Grid */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 80px;
}

/* Minimalist Archive Cards */
.archive-card {
  background: #ffffff20;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
  backdrop-filter: blur(10px);
}
.card-link-wrapper {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

/* The "Press" Hover Effect */
.archive-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
}

.archive-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.archive-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.archive-card:hover .archive-img-wrap img {
  transform: scale(1.05);
}

.img-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 50px;
  z-index: 2;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}
.img-badge.cyan {
  background: rgba(6, 182, 212, 0.1);
  color: var(--brand-cyan);
}
.img-badge.purple {
  background: rgba(147, 51, 234, 0.1);
  color: var(--brand-purple);
}
.img-badge.magenta {
  background: rgba(191, 38, 211, 0.1);
  color: var(--brand-magenta);
}
.archive-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.archive-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}
.archive-meta .dot {
  width: 4px;
  height: 4px;
  background: var(--brand-cyan);
  border-radius: 50%;
}

.archive-content h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--brand-dark);
  line-height: 1.4;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
  transition: color 0.3s;
}
.archive-card:hover .archive-content h3 {
  color: var(--brand-purple);
}

.archive-content p {
  font-size: 0.95rem;
  color: var(--text-muted-light);
  line-height: 1.6;
  font-weight: 500;
  margin-bottom: 25px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-link {
  margin-top: auto;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  transition:
    gap 0.3s,
    color 0.3s;
}
.archive-card:hover .read-link {
  gap: 15px;
  color: var(--brand-purple);
}

/* Load More Button */
.load-more-wrapper {
  margin-top: 60px;
}
.btn-load-more {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: var(--brand-dark);
  padding: 16px 40px;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 200px;
  font-family: var(--font-main);
}
.btn-load-more:hover {
  border-color: var(--brand-dark);
  background: rgba(0, 0, 0, 0.02);
}
.d-none {
  display: none !important;
}

/* Mobile Adjustments */
@media (max-width: 1024px) {
  .archive-header {
    gap: 15px;
  }
  .header-line {
    max-width: 50px;
  }
  .archive-header h2 {
    font-size: 2rem;
  }

  .blog-filter-tabs {
    gap: 8px;
    margin-bottom: 40px;
  
  }
  .filter-tab {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .archive-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .archive-content {
    padding: 25px;
  }
}
