/* ========================================
   NEWS PAGES — Soleko IOL
   ======================================== */

/* Hero — dark, matching products-hero */
.news-hero {
  background: linear-gradient(135deg, var(--primary, #003B5C) 0%, var(--primary-light, #00516F) 50%, #002640 100%);
  background-size: cover;
  background-position: center;
  padding: 120px 4% 40px;
  text-align: center;
  position: relative;
  overflow: hidden
}
.news-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0,166,214,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none
}
.news-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1
}
.news-hero-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-light, #0DCAF0);
  letter-spacing: .5px;
  margin-bottom: 12px
}
.news-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--white, #fff);
  margin-bottom: 12px;
  letter-spacing: -0.02em
}
.news-hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  line-height: 1.5;
  max-width: 600px;
  margin: 0 auto
}
.news-hero .news-hero-subtitle {
  margin-top: 12px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: .3px
}

/* Search bar — on dark hero */
.news-search {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 520px;
  margin: 28px auto 0
}
.news-search-inner {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center
}
.news-search-icon {
  position: absolute;
  left: 16px;
  pointer-events: none
}
.news-search input {
  width: 100%;
  padding: 13px 16px 13px 46px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  font-size: 0.95rem;
  color: #fff;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  outline: none;
  transition: border-color .3s, box-shadow .3s, background .3s
}
.news-search input::placeholder {
  color: rgba(255,255,255,0.45)
}
.news-search input:focus {
  border-color: var(--accent, #00A6D6);
  box-shadow: 0 0 0 3px rgba(0,166,214,0.15);
  background: rgba(255,255,255,0.12)
}
.news-search-btn {
  padding: 13px 24px;
  border: none;
  border-radius: 12px;
  background: var(--accent, #00A6D6);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .3s, transform .2s
}
.news-search-btn:hover {
  background: var(--accent-light, #0DCAF0);
  transform: translateY(-1px)
}

/* Listing Grid */
.news-listing {
  padding: 60px 4% 120px;
  background: #fff
}
.news-listing-inner {
  max-width: 1200px;
  margin: 0 auto
}
.news-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px
}

/* ========================================
   ARTICLE CARD — Overlay Style
   ======================================== */
.news-article-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16/10;
  display: flex;
  text-decoration: none;
  color: white;
  background: linear-gradient(135deg, #2d3748 0%, #1a2332 100%);
  transition: transform .5s cubic-bezier(.22,1,.36,1), box-shadow .5s cubic-bezier(.22,1,.36,1)
}

.news-article-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 32px 64px rgba(0,0,0,0.18)
}

/* Blurred fill — same image scaled up + blurred behind */
.news-article-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--card-bg) center/cover no-repeat;
  filter: blur(24px) saturate(1.6) brightness(.85);
  transform: scale(1.25);
  z-index: 0;
  pointer-events: none
}

/* Sharp image — contain to show full image */
.article-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform .8s cubic-bezier(.22,1,.36,1);
  z-index: 1
}
.news-article-card:hover .article-card-bg {
  transform: scale(1.04)
}

/* Dark gradient overlay — text sits here */
.article-card-overlay {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  width: 100%;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.78) 0%,
    rgba(0,0,0,0.4) 40%,
    rgba(0,0,0,0.08) 65%,
    transparent 100%
  );
  transition: background .5s
}
.news-article-card:hover .article-card-overlay {
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.45) 45%,
    rgba(0,0,0,0.1) 70%,
    transparent 100%
  )
}

/* Tag badge */
.article-tag {
  display: inline-block;
  width: fit-content;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: white;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 14px;
  border: 1px solid rgba(255,255,255,0.12)
}

/* Card text */
.article-card-overlay h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  line-height: 1.35;
  margin-bottom: 10px
}
.article-card-overlay p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px
}
.article-card-overlay .article-date {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  font-weight: 500
}

/* Placeholder card (no image) */
.news-card-no-image {
  background: linear-gradient(135deg, var(--primary, #003B5C) 0%, #004d73 60%, var(--accent, #00A6D6) 100%)
}

/* ========================================
   ARTICLE DETAIL — 2-column layout
   ======================================== */

.article-breadcrumb {
  max-width: 1100px;
  margin: 0 auto;
  padding: 120px 4% 0;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8896a6
}
.article-breadcrumb a {
  color: var(--accent, #2AAAE0);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px
}
.article-breadcrumb a:hover { text-decoration: underline }

.article-detail {
  padding: 40px 4% 80px
}
.article-detail-inner {
  max-width: 1100px;
  margin: 0 auto
}

/* 2-column grid: content + sidebar */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start
}

/* Left: main content */
.article-main {
  min-width: 0
}

.article-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e8ecf0
}
.article-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--gray-900, #1a1d21);
  line-height: 1.25;
  margin-bottom: 8px
}
.article-date-line {
  font-size: 0.85rem;
  color: #8896a6;
  font-weight: 400
}

.article-lead {
  font-size: 1.1rem;
  color: #5a6a7a;
  line-height: 1.7;
  margin-bottom: 28px;
  font-style: italic
}

.article-featured-image {
  border-radius: var(--radius, 16px);
  overflow: hidden;
  margin-bottom: 32px
}
.article-featured-image img {
  width: 100%;
  height: auto;
  display: block
}

/* Right: sidebar */
.article-sidebar {
  position: sticky;
  top: 100px
}

.sidebar-card {
  background: #fff;
  border: 1px solid #e8ecf0;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px
}
.sidebar-card h4 {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #8896a6;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e8ecf0
}

/* Author card */
.sidebar-author {
  text-align: center
}
.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 14px;
  border: 3px solid #f0f2f5
}
.author-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f2f5;
  margin: 0 auto 14px
}
.author-name {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900, #1a1d21);
  margin-bottom: 8px
}
.author-bio {
  font-size: 0.85rem;
  color: var(--gray-600, #6E7985);
  line-height: 1.6;
  margin: 0
}

/* Meta card */
.sidebar-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--gray-800, #2D3540);
  margin-bottom: 12px
}
.sidebar-meta-item:last-child { margin-bottom: 0 }
.sidebar-meta-item svg {
  color: var(--accent, #00A6D6);
  flex-shrink: 0
}

/* Prose — stili per body WYSIWYG */
.article-body.prose {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #2d3748
}
.article-body.prose h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
  color: var(--gray-900, #1a1d21)
}
.article-body.prose h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--gray-900, #1a1d21)
}
.article-body.prose p {
  margin-bottom: 1.2rem
}
.article-body.prose ul, .article-body.prose ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2rem
}
.article-body.prose li {
  margin-bottom: 0.5rem
}
.article-body.prose a {
  color: var(--accent, #2AAAE0);
  text-decoration: underline
}
.article-body.prose blockquote {
  border-left: 4px solid var(--accent, #2AAAE0);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: #f7f9fb;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #4a5568
}
.article-body.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5rem 0
}
.article-body.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0
}
.article-body.prose td, .article-body.prose th {
  border: 1px solid #e2e8f0;
  padding: 10px 14px;
  text-align: left
}
.article-body.prose th {
  background: #f7f9fb;
  font-weight: 600
}
.article-body.prose hr {
  border: none;
  border-top: 2px solid #e8ecf0;
  margin: 2.5rem 0
}

/* Other Articles */
.other-articles {
  padding: 100px 4%;
  background: #f8fafc
}
.other-articles-inner {
  max-width: 1200px;
  margin: 0 auto
}
.other-articles h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: var(--gray-900, #1a1d21)
}
.other-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 900px) {
  .news-articles-grid,
  .other-articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .article-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .sidebar-card { margin-bottom: 0 }
}

@media (max-width: 600px) {
  .news-hero { padding: 120px 5% 50px; }
  .news-hero h1 { font-size: 2rem; }
  .news-listing { padding: 40px 4% 80px; }

  .news-articles-grid,
  .other-articles-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .news-article-card {
    aspect-ratio: 16/10;
  }

  .news-search {
    flex-direction: column;
  }
  .news-search-btn {
    width: 100%;
  }

  .article-breadcrumb { padding-top: 90px; }
  .article-detail { padding: 24px 4% 60px; }
  .article-header h1 { font-size: 1.6rem; }
  .other-articles { padding: 60px 4%; }
  .article-sidebar {
    grid-template-columns: 1fr;
  }
  
  .article-hero-glass {
    min-height: 380px;
    padding: 30px 20px;
    border-radius: 20px;
  }
  .glass-content {
    padding: 24px;
    border-radius: 20px;
  }
}

/* ========================================
   ARTICLE IMMERSIVE HERO
   ======================================== */
.article-detail {
  padding-top: 0;
  position: relative;
}

.article-hero-immersive {
  position: relative;
  width: 100vw;
  height: 50vh;
  min-height: 400px;
  max-height: 550px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 4%;
  margin-left: calc(-50vw + 50%);
  margin-bottom: 50px;
  overflow: hidden;
  background-color: #001a2b; /* Fallback */
}

.hero-parallax-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  z-index: 0;
  animation: slowZoom 25s ease-out infinite alternate;
  filter: saturate(1.1);
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,25,45,0.5) 40%, rgba(0,18,33,1) 100%);
}

.hero-immersive-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  text-align: center;
  color: white;
  animation: fadeUpText 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(40px);
  padding-bottom: 30px;
}

.immersive-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(13, 202, 240, 0.3);
  padding-bottom: 8px;
}

.immersive-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 300;
  line-height: 1.25;
  color: white;
  margin-bottom: 24px;
  text-shadow: 0 10px 40px rgba(0,0,0,0.6);
  letter-spacing: -0.01em;
}

.immersive-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  font-weight: 300;
}
.immersive-date {
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0.6;
}

.scroll-mouse {
  width: 24px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 20px;
  position: relative;
}
.scroll-mouse::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 6px;
  background: white;
  border-radius: 4px;
  animation: scrollWheel 2s infinite cubic-bezier(0.15, 0.41, 0.69, 0.94);
}

@keyframes slowZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.12); }
}
@keyframes fadeUpText {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scrollWheel {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 15px); opacity: 0; }
}

@media (max-width: 600px) {
  .article-hero-immersive {
    height: 40vh;
    min-height: 320px;
    padding: 6% 4%;
  }
}

/* Enhancing prose for WOW effect */
.article-lead {
  font-size: 1.35rem;
  color: var(--primary);
  line-height: 1.8;
  margin-bottom: 40px;
  font-weight: 400;
  border-left: 4px solid var(--accent);
  padding-left: 24px;
  animation: wowFadeUp 1s 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.article-body.prose {
  font-size: 1.15rem;
  line-height: 1.9;
  color: #334155;
  animation: wowFadeUp 1s 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.article-body.prose p {
  margin-bottom: 1.6rem;
}
.article-body.prose img {
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  transition: transform 0.5s;
}
.article-body.prose img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

/* Liquid Glass Sidebar Overrides */
.sidebar-card {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 59, 92, 0.06);
  padding: 36px 32px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s;
}
.sidebar-card::after {
  content: '';
  position: absolute;
  top: -50%; right: -50%; bottom: -50%; left: -50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 40%, rgba(255,255,255,0.5) 100%);
  transform: rotate(35deg) translate(-20%, -20%);
  pointer-events: none;
  opacity: 0.6;
}
.sidebar-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 166, 214, 0.12);
  border-color: rgba(255, 255, 255, 1);
}

.author-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 4px solid white;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transition: transform 0.5s;
}
.sidebar-card:hover .author-avatar {
  transform: scale(1.05) rotate(5deg);
}
