/* =====================================================
   NEWS PAGE — news.css
   Self-contained — includes all theme variables
   ===================================================== */


/* ── Theme Variables (mirrored from home.css) ── */
:root {
  --bg-deep:     #050d1a;
  --bg-dark:     #081225;
  --bg-card:     #0c1c36;
  --bg-card2:    #0e2040;
  --accent:      #1e90ff;
  --accent-glow: #1e90ff55;
  --accent-soft: #3aa0ff;
  --cyan:        #00d4ff;
  --text-white:  #f0f6ff;
  --text-muted:  #7a94b8;
  --text-body:   #a8c0db;
  --border:      rgba(30,144,255,0.15);
  --radius:      14px;
  --radius-sm:   8px;
  --font-head:   'Plus Jakarta Sans', sans-serif;
  --font-body:   'Inter', sans-serif;
  --transition:  0.3s cubic-bezier(0.4,0,0.2,1);
  --nav-h:       72px;
}


/* ── Base overrides to ensure dark background ── */
html, body {
  background: var(--bg-deep) !important;
  color: var(--text-white) !important;
}
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}


/* ── Grid background ── */
.grid-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(30,144,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,144,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}


/* ── Utility ── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.accent { color: var(--accent); }


.section-tag {
  display: inline-block;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(0,212,255,0.35);
  background: rgba(0,212,255,0.06);
  padding: 5px 16px; border-radius: 99px;
  margin-bottom: 16px;
}


/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius-sm);
  font-family: var(--font-head); font-size: 15px; font-weight: 600;
  cursor: pointer; transition: var(--transition); border: none;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 0 22px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-soft);
  box-shadow: 0 0 38px rgba(30,144,255,0.6);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent; color: var(--text-white);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-outline:hover {
  border-color: var(--accent); color: var(--accent);
  transform: translateY(-2px);
}


/* ── Page Hero ── */
.page-hero {
  position: relative; z-index: 1;
  padding: calc(var(--nav-h) + 80px) 0 80px;
  text-align: center; overflow: hidden;
}
.page-hero-glow {
  position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px; pointer-events: none;
  background: radial-gradient(ellipse, rgba(30,144,255,0.14) 0%, transparent 70%);
}
.page-hero .section-tag { margin-bottom: 20px; }
.page-hero h1 {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.12; letter-spacing: -0.025em;
  margin-bottom: 20px; color: var(--text-white);
}
.page-hero p {
  font-size: 18px; color: var(--text-body);
  max-width: 640px; margin: 0 auto; line-height: 1.75;
}
.page-hero .section-tag,
.page-hero h1,
.page-hero p {
  opacity: 0; transform: translateY(28px);
  animation: heroFadeUp 0.7s ease forwards;
}
.page-hero .section-tag { animation-delay: 0s; }
.page-hero h1           { animation-delay: 0.15s; }
.page-hero p            { animation-delay: 0.3s; }
@keyframes heroFadeUp { to { opacity: 1; transform: translateY(0); } }


/* ── service-cta link (used in featured card) ── */
.service-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: 14px; font-weight: 600;
  color: var(--accent); transition: gap var(--transition);
  text-decoration: none;
}
.service-cta:hover { gap: 14px; }


/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }


/* ── Back to top ── */
#back-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 500;
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px var(--accent-glow);
  cursor: pointer; border: none;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.3s, transform 0.3s;
}
#back-top svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
#back-top.show { opacity: 1; transform: translateY(0); }
#back-top:hover { transform: translateY(-4px); }


/* ── Shared keyframes ── */
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0.3;} }
@keyframes pulseglow {
  from { opacity: 0.6; transform: translateX(-50%) scale(1); }
  to   { opacity: 1;   transform: translateX(-50%) scale(1.1); }
}



/* ══════════════════════════════════
   LIVE TICKER
══════════════════════════════════ */
.news-ticker-wrap {
  position: relative; z-index: 1;
  display: flex; align-items: center;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  height: 46px; overflow: hidden;
}
.ticker-label {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 7px;
  padding: 0 20px;
  font-family: var(--font-head); font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  height: 100%;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.ticker-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #fff;
  animation: blink 1.2s ease-in-out infinite;
}
.ticker-track {
  flex: 1; overflow: hidden; position: relative;
}
.ticker-track::before,
.ticker-track::after {
  content: ''; position: absolute; top: 0; bottom: 0;
  width: 60px; z-index: 2; pointer-events: none;
}
.ticker-track::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-card), transparent);
}
.ticker-track::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-card), transparent);
}
.ticker-inner {
  display: inline-flex; white-space: nowrap;
  font-size: 13.5px; color: var(--text-body);
  animation: tickerScroll 38s linear infinite;
  padding-left: 100%;
}
.ticker-inner span { display: inline-block; }
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-inner:hover { animation-play-state: paused; }


/* ══════════════════════════════════
   FEATURED ARTICLE
══════════════════════════════════ */
.featured-section {
  position: relative; z-index: 1;
  padding: 80px 0 60px;
}
.featured-label { margin-bottom: 20px; }


.featured-card {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94),
              box-shadow 0.4s ease;
  transform-style: preserve-3d;
  cursor: default;
}
.featured-card:hover {
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 60px rgba(30,144,255,0.12);
}
.featured-bg-glow {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(30,144,255,0.07) 0%, transparent 60%);
}
.featured-corner-accent {
  position: absolute; top: 0; right: 0;
  width: 180px; height: 180px; pointer-events: none;
  background: radial-gradient(circle at top right, rgba(0,212,255,0.1) 0%, transparent 65%);
}


/* Image column */
.featured-img-col { position: relative; overflow: hidden; min-height: 420px; }
.featured-img-frame { position: relative; width: 100%; height: 100%; }
.featured-img-frame img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.6) saturate(0.65);
  transition: transform 0.7s ease, filter 0.7s ease;
}
.featured-card:hover .featured-img-frame img {
  transform: scale(1.05);
  filter: brightness(0.75) saturate(0.8);
}
.featured-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, transparent 50%, var(--bg-card) 100%);
}
.featured-category-badge {
  position: absolute; top: 20px; left: 20px;
  background: rgba(5,13,26,0.85); backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-family: var(--font-head); font-size: 12px; font-weight: 600;
  color: var(--cyan); letter-spacing: 0.08em; text-transform: uppercase;
}


/* Content column */
.featured-content-col {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding: 52px 52px 52px 44px;
  gap: 20px;
}
.featured-meta {
  display: flex; align-items: center; gap: 16px;
}
.featured-date {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-muted);
}
.featured-date svg {
  width: 13px; height: 13px; stroke: var(--text-muted); fill: none;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.featured-read {
  font-size: 12px; color: var(--accent); font-weight: 600;
  background: rgba(30,144,255,0.1); border: 1px solid rgba(30,144,255,0.25);
  padding: 3px 10px; border-radius: 99px;
}
.featured-title {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(22px, 2.5vw, 32px); line-height: 1.25;
  letter-spacing: -0.02em; color: var(--text-white);
}
.featured-excerpt {
  font-size: 15px; color: var(--text-body); line-height: 1.75;
}
.featured-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.news-tag {
  font-size: 12px; font-weight: 600;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 4px 12px; border-radius: 99px;
  letter-spacing: 0.04em;
}
.featured-cta { margin-top: 4px; }


/* ══════════════════════════════════
   FILTER BAR
══════════════════════════════════ */
.filter-section {
  position: relative; z-index: 1;
  padding: 0 0 10px;
}
.filter-bar {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.filter-btn {
  font-family: var(--font-head); font-size: 13px; font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1.5px solid var(--border);
  padding: 8px 20px; border-radius: 99px;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease,
              background 0.25s ease, transform 0.2s ease;
}
.filter-btn:hover {
  color: var(--text-white);
  border-color: rgba(30,144,255,0.4);
  transform: translateY(-1px);
}
.filter-btn.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 18px var(--accent-glow);
}
.filter-count {
  margin-left: auto;
  font-size: 13px; color: var(--text-muted);
  font-style: italic;
}


/* ══════════════════════════════════
   NEWS GRID
══════════════════════════════════ */
.news-grid-section {
  position: relative; z-index: 1;
  padding: 48px 0 80px;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}


/* ── News Card ── */
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--transition), border-color var(--transition),
              box-shadow var(--transition);
  position: relative;
}
.news-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  opacity: 0; transition: opacity var(--transition);
  z-index: 1;
}
.news-card:hover {
  transform: translateY(-7px);
  border-color: rgba(30,144,255,0.4);
  box-shadow: 0 24px 56px rgba(0,0,0,0.45), 0 0 30px rgba(30,144,255,0.08);
}
.news-card:hover::before { opacity: 1; }


.news-card-img {
  position: relative; overflow: hidden;
  aspect-ratio: 16/9;
}
.news-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.65) saturate(0.6);
  transition: transform 0.55s ease, filter 0.55s ease;
}
.news-card:hover .news-card-img img {
  transform: scale(1.06);
  filter: brightness(0.8) saturate(0.8);
}
.news-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg-card) 0%, transparent 50%);
}


/* Card body */
.news-card-body {
  flex: 1; display: flex; flex-direction: column;
  padding: 24px 26px 22px;
  gap: 12px;
}
.news-card-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.news-cat-badge {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; padding: 3px 10px; border-radius: 99px;
  border: 1px solid;
}
.news-cat-badge.product  { color: var(--accent); border-color: rgba(30,144,255,0.35); background: rgba(30,144,255,0.08); }
.news-cat-badge.company  { color: var(--cyan);   border-color: rgba(0,212,255,0.35);  background: rgba(0,212,255,0.07);  }
.news-cat-badge.industry { color: #a78bfa;       border-color: rgba(167,139,250,0.3); background: rgba(167,139,250,0.07);}
.news-cat-badge.events   { color: #fb923c;       border-color: rgba(251,146,60,0.3);  background: rgba(251,146,60,0.07); }


.news-card-date {
  font-size: 12px; color: var(--text-muted); margin-left: auto;
}
.news-card-title {
  font-family: var(--font-head); font-size: 16px; font-weight: 700;
  line-height: 1.4; color: var(--text-white);
  flex-shrink: 0;
}
.news-card-excerpt {
  font-size: 13.5px; color: var(--text-body); line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.news-card-read { font-size: 12px; color: var(--text-muted); }
.news-card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-size: 13px; font-weight: 600;
  color: var(--accent); transition: gap var(--transition);
}
.news-card-link svg {
  width: 14px; height: 14px; flex-shrink: 0;
}
.news-card-link:hover { gap: 10px; }


/* Load More */
.news-load-more {
  text-align: center; margin-top: 48px;
}
.load-more-btn {
  min-width: 220px; justify-content: center;
}


/* ══════════════════════════════════
   NEWSLETTER STRIP
══════════════════════════════════ */
.newsletter-section {
  position: relative; z-index: 1;
  padding: 0 0 100px;
}
.newsletter-card {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg,
    rgba(30,144,255,0.1) 0%,
    rgba(0,212,255,0.06) 50%,
    rgba(30,144,255,0.08) 100%
  );
  border: 1px solid rgba(30,144,255,0.3);
  border-radius: 20px;
  padding: 48px 52px;
  display: flex; align-items: center; gap: 40px; flex-wrap: wrap;
}
.newsletter-glow {
  position: absolute; left: -100px; top: -80px;
  width: 400px; height: 300px; pointer-events: none;
  background: radial-gradient(ellipse, rgba(30,144,255,0.18) 0%, transparent 65%);
  animation: pulseglow 4s ease-in-out infinite alternate;
}


/* Animated scan-line sweep */
.newsletter-scan-line {
  position: absolute; top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(30,144,255,0.06) 50%,
    transparent 100%
  );
  animation: scanSweep 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes scanSweep {
  0%   { left: -60%; }
  100% { left: 140%;  }
}


.newsletter-content {
  display: flex; align-items: center; gap: 20px; flex: 1;
}
.newsletter-icon {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: 14px;
  background: rgba(30,144,255,0.15); border: 1px solid rgba(30,144,255,0.3);
  display: flex; align-items: center; justify-content: center;
}
.newsletter-icon svg {
  width: 22px; height: 22px; stroke: var(--accent); fill: none;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.newsletter-content h3 {
  font-family: var(--font-head); font-size: 20px; font-weight: 700;
  margin-bottom: 4px;
}
.newsletter-content p { font-size: 14px; color: var(--text-body); line-height: 1.6; }
.newsletter-form {
  display: flex; gap: 10px; flex-wrap: wrap;
  flex-shrink: 0;
}
.newsletter-input {
  background: var(--bg-dark);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 18px; color: var(--text-white);
  font-family: var(--font-body); font-size: 15px;
  outline: none; transition: border-color var(--transition);
  width: 260px;
}
.newsletter-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30,144,255,0.12);
}
.newsletter-input::placeholder { color: var(--text-muted); }
.newsletter-btn { white-space: nowrap; }


/* ══════════════════════════════════
   INTERACTIVE ADDITIONS
══════════════════════════════════ */


/* Cursor glow orb */
#cursor-glow {
  position: fixed;
  top: -120px; left: -120px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30,144,255,0.07) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
  will-change: transform;
  transition: opacity 0.3s ease;
}


/* 3D perspective on cards */
.news-card {
  transform-style: preserve-3d;
  perspective: 900px;
}


/* Filter btn ripple */
.filter-btn { position: relative; overflow: hidden; }
.btn-ripple {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transform: translate(-50%, -50%) scale(0);
  animation: rippleOut 0.6s ease forwards;
  pointer-events: none;
}
@keyframes rippleOut {
  to { transform: translate(-50%, -50%) scale(28); opacity: 0; }
}




/* Ticker — fade edges slightly stronger */
.ticker-track::before { width: 80px; }
.ticker-track::after  { width: 80px; }


/* News card — shimmer on image on hover */
.news-card-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(30,144,255,0.06) 50%,
    transparent 60%
  );
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.news-card:hover .news-card-img::after {
  opacity: 1;
  animation: shimmer 1.4s ease forwards;
}
@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}


/* Featured card — animated border glow pulse on idle */
.featured-card {
  animation: borderPulse 5s ease-in-out infinite;
}
@keyframes borderPulse {
  0%, 100% { box-shadow: 0 0 0 0 transparent; }
  50%       { box-shadow: 0 0 28px rgba(30,144,255,0.08); }
}
.featured-card:hover { animation: none; }


/* Filter section — active btn animated indicator dot */
.filter-btn.active::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,0.7);
  margin-right: 6px;
  vertical-align: middle;
  animation: blink 1.5s ease-in-out infinite;
}


/* Newsletter input — glow ring on focus */
.newsletter-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30,144,255,0.12), 0 0 16px rgba(30,144,255,0.1);
}


/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 1000px) {
  .featured-card { grid-template-columns: 1fr; }
  .featured-img-col { min-height: 260px; }
  .featured-img-overlay { background: linear-gradient(to top, var(--bg-card) 20%, transparent 100%); }
  .featured-content-col { padding: 36px 32px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .news-grid { grid-template-columns: 1fr; }
  .newsletter-card { padding: 32px 24px; flex-direction: column; align-items: flex-start; }
  .newsletter-input { width: 100%; }
  .newsletter-form { width: 100%; flex-direction: column; }
  .newsletter-btn { width: 100%; justify-content: center; }
  .featured-content-col { padding: 28px 22px; }
  .filter-count { display: none; }
}
