/* ==========================================================================
   GURUCAD NEWS PAGE
   Reuses gurucad_css.css as shared base.
   ========================================================================== */

.news-feed {
  position: relative;
  overflow: hidden;
}

/* ==========================================================================
   FILTER
   ========================================================================== */

.news-feed {
  border-top: 1px solid var(--line-soft);
}

.news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
  margin-bottom: 30px;
}

.news-filter__button {
  appearance: none;
  border: 1px solid rgba(105, 237, 248, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.24s ease,
    border-color 0.24s ease,
    color 0.24s ease,
    transform 0.24s ease;
}

.news-filter__button:hover {
  transform: translateY(-1px);
  border-color: rgba(105, 237, 248, 0.28);
  color: #fff;
}

.news-filter__button.is-active {
  background: linear-gradient(180deg, rgba(24, 200, 215, 0.20) 0%, rgba(5, 157, 175, 0.16) 100%);
  border-color: rgba(105, 237, 248, 0.32);
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 166, 182, 0.12);
}

/* ==========================================================================
   NEWS GRID
   ========================================================================== */

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.news-card {
  position: relative;
  overflow: hidden;
  padding: 30px 28px 28px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(12, 22, 35, 0.92) 0%, rgba(8, 15, 24, 0.96) 100%);
  box-shadow: var(--shadow);
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease,
    opacity 0.24s ease;
}

.news-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(105, 237, 248, 0),
    rgba(105, 237, 248, 0.55),
    rgba(105, 237, 248, 0)
  );
  opacity: 0.7;
}

.news-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(105, 237, 248, 0.015), transparent 48%),
    radial-gradient(circle at 100% 0%, rgba(105, 237, 248, 0.04), transparent 30%);
  pointer-events: none;
}

.news-card:hover {
  transform: translateY(-3px);
  border-color: rgba(105, 237, 248, 0.18);
  box-shadow:
    0 28px 74px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(105, 237, 248, 0.04) inset;
}

.news-card--featured {
  grid-column: span 2;
  padding: 34px 32px 32px;
}

.news-card--contact {
  background:
    linear-gradient(180deg, rgba(14, 27, 42, 0.96) 0%, rgba(8, 16, 27, 0.98) 100%);
}

.news-card.is-hidden {
  display: none;
}

.news-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.news-card__tag,
.news-card__marker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.news-card__tag {
  color: var(--teal);
  background: rgba(105, 237, 248, 0.08);
  border: 1px solid rgba(105, 237, 248, 0.14);
}

.news-card__marker {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.news-card h3 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
}

.news-card__lead {
  margin: 16px 0 0;
  color: #fff;
  font-size: 18px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.news-card p:not(.news-card__lead) {
  margin: 14px 0 0;
  color: var(--text-soft);
  line-height: 1.85;
  position: relative;
  z-index: 1;
}

.news-card__footer {
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

.news-card__contact {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  position: relative;
  z-index: 1;
}

.news-card__contact span {
  color: var(--text-soft);
}

/* ==========================================================================
   STATE + ANIMATION
   ========================================================================== */

.news-card.is-hidden {
  display: none;
}

.section--active .news-card {
  border-color: rgba(105, 237, 248, 0.18);
  box-shadow:
    0 22px 72px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(105, 237, 248, 0.04) inset;
}

/* @keyframes newsHeroScan {
  0% {
    transform: translate3d(-18%, -12%, 0);
  }
  100% {
    transform: translate3d(18%, 12%, 0);
  }
}

@keyframes newsAuthorityScan45 {
  0% {
    transform: translate3d(-12%, -14%, 0);
  }
  100% {
    transform: translate3d(12%, 14%, 0);
  }
} */

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1180px) {
  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-card--featured {
    grid-column: span 1;
  }

}

@media (max-width: 640px) {
  .news-card,
  .news-card--featured {
    padding-left: 22px;
    padding-right: 22px;
  }

  .news-filter {
    gap: 10px;
  }

  .news-filter__button {
    width: 100%;
  }
}