/* ---------- Haberler / blog ---------- */
.site-nav a.is-active {
  color: #fff;
  background: rgba(255, 196, 0, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 196, 0, 0.22);
}

.news-hero {
  position: relative;
  isolation: isolate;
  padding: 66px 0 54px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.news-hero-orbs {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.news-hero-inner {
  max-width: 900px;
}

.news-hero-title {
  max-width: 820px;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.news-hero-title span {
  display: block;
}

.news-hero-title .accent {
  background: linear-gradient(100deg, var(--yellow-soft), var(--yellow) 55%, #ff9d00);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.news-hero-text {
  max-width: 660px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.news-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.news-section {
  padding-top: 46px;
}

.news-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.news-section-title {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 700;
}

.news-toolbar .chips {
  justify-content: flex-end;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.news-grid.count-1 {
  grid-template-columns: 1fr;
}

.news-grid.count-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.news-grid.count-1 .news-card.is-featured,
.news-grid.count-2 .news-card.is-featured {
  grid-column: span 1;
}

.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease,
    box-shadow 0.22s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.32);
}

.news-card.is-featured {
  grid-column: span 2;
  border-color: rgba(255, 196, 0, 0.32);
  background:
    radial-gradient(600px 220px at 82% -10%, rgba(255, 196, 0, 0.14), transparent 70%),
    rgba(255, 255, 255, 0.045);
}

.news-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(420px 220px at 78% 12%, rgba(59, 130, 246, 0.32), transparent 70%),
    radial-gradient(320px 220px at 12% 88%, rgba(255, 196, 0, 0.18), transparent 70%),
    #0a1223;
}

.news-card.is-featured .news-media {
  aspect-ratio: 21 / 9;
}

.news-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.news-card:hover .news-media img {
  transform: scale(1.035);
}

.news-media-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.24);
}

.news-media-fallback .icon {
  width: 46px;
  height: 46px;
}

.news-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 11px;
  padding: 20px 22px 22px;
}

.news-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: var(--muted-2);
  font-size: 0.74rem;
}

.news-cat {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.news-card.is-featured .news-cat {
  background: rgba(255, 196, 0, 0.16);
  color: var(--yellow-soft);
}

.news-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.news-date .icon {
  width: 14px;
  height: 14px;
}

.news-card-title {
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.25;
}

.news-card.is-featured .news-card-title {
  font-size: clamp(1.3rem, 2.1vw, 1.7rem);
}

.news-card-excerpt {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.62;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.news-card.is-featured .news-card-excerpt {
  -webkit-line-clamp: 2;
  font-size: 0.92rem;
}

.news-card-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 6px;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 650;
}

.news-card-more .icon {
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease;
}

.news-card:hover .news-card-more .icon {
  transform: translateX(4px);
}

.news-featured-flag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(6, 10, 19, 0.76);
  color: var(--yellow-soft);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

/* Skeleton */
.news-skeleton {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.news-skeleton span {
  height: 330px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.03) 20%, rgba(255, 255, 255, 0.07) 40%, rgba(255, 255, 255, 0.03) 60%);
  background-size: 220% 100%;
  animation: newsShimmer 1.4s infinite linear;
}

@keyframes newsShimmer {
  from {
    background-position: 120% 0;
  }
  to {
    background-position: -120% 0;
  }
}

/* Detail */
.news-detail {
  padding-top: 42px;
}

.news-article-wrap {
  max-width: 880px;
}

.news-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.news-back:hover {
  color: var(--yellow);
}

.news-back .icon {
  width: 16px;
  height: 16px;
  transform: rotate(180deg);
}

.news-article-head {
  max-width: 780px;
}

.news-article-head h1 {
  margin-top: 16px;
  font-size: clamp(1.95rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.news-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 18px;
  color: var(--muted-2);
  font-size: 0.8rem;
}

.news-article-excerpt {
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.news-article-cover {
  margin: 32px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0a1223;
}

.news-article-cover img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.news-article-body {
  margin-top: 34px;
  color: #d5dbe8;
  font-size: 1.02rem;
  line-height: 1.82;
}

.news-article-body p {
  margin: 0 0 20px;
  white-space: pre-line;
}

.news-article-body p:last-child {
  margin-bottom: 0;
}

.news-article-body h2,
.news-article-body h3 {
  margin: 34px 0 14px;
  color: var(--text);
}

.news-article-body h2 {
  font-size: 1.5rem;
}

.news-article-body h3 {
  font-size: 1.2rem;
}

.news-article-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.news-related {
  margin-top: 64px;
}

.news-related h2 {
  margin-bottom: 22px;
  font-size: 1.35rem;
}

@media (max-width: 980px) {
  .news-grid,
  .news-skeleton {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-card.is-featured {
    grid-column: span 2;
  }
}

@media (max-width: 680px) {
  .news-hero {
    padding: 46px 0 42px;
  }

  .news-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .news-toolbar .chips {
    justify-content: flex-start;
  }

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

  .news-card.is-featured {
    grid-column: span 1;
  }

  .news-card.is-featured .news-media {
    aspect-ratio: 16 / 9;
  }

  .news-card-body {
    padding: 18px;
  }
}

@media (min-width: 1900px) {
  .news-hero-inner,
  .news-toolbar,
  .news-grid,
  .news-skeleton,
  .news-article-wrap {
    max-width: 1320px;
  }

  .news-article-wrap {
    max-width: 920px;
  }
}
