/* ==================== YAZILAR / XƏBƏRLƏR (news düzümü) ==================== */
.news-wrap { max-width: 1320px; margin: 0 auto; padding: 0 28px; }
.news-wrap--read { max-width: 820px; }

/* ----- başlıq zolağı ----- */
.news-head { padding: 54px 0 26px; }
.news-kicker { font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--brand-500); margin: 0 0 8px; }
.news-head h1 { font-size: clamp(34px, 5vw, 58px); letter-spacing: -.5px; margin: 0 0 10px; }
.news-sub { font-size: 17px; max-width: 62ch; margin: 0 0 26px; }
.news-bar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; border-top: 2px solid var(--text); padding-top: 16px; }
.news-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.news-tabs a { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--text); padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); transition: .2s; }
.news-tabs a span { margin-left: 6px; font-size: 12px; color: var(--text-muted); font-weight: 600; }
.news-tabs a:hover { border-color: var(--brand-500); color: var(--brand-600); }
.news-tabs a.is-on { background: var(--text); border-color: var(--text); color: #fff; }
.news-tabs a.is-on span { color: rgba(255,255,255,.7); }
.news-search { display: flex; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; overflow: hidden; min-width: 260px; }
.news-search input { border: 0; background: transparent; padding: 11px 16px; font: 500 14px var(--font-body); color: var(--text); flex: 1; min-width: 0; outline: none; }
.news-search button { border: 0; background: transparent; padding: 0 16px; cursor: pointer; font-size: 15px; }

/* ----- əsas hissə ----- */
.news-main { padding: 18px 0 70px; }
.news-sec { font-size: 28px; margin: 46px 0 22px; padding-bottom: 12px; border-bottom: 2px solid var(--text); letter-spacing: -.3px; }
.news-empty { text-align: center; padding: 70px 0; font-size: 17px; }

/* ----- kartlar ----- */
.ncard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; color: var(--text); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.ncard:hover { transform: translateY(-5px); border-color: var(--brand-500); box-shadow: 0 16px 36px rgba(100, 39, 143, .16); }
.ncard__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-alt); }
.ncard__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.ncard:hover .ncard__media img { transform: scale(1.05); }
.ncard__media--ph { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #40197D, #7817B6); }
.ncard__media--ph.ncard__media--media { background: linear-gradient(135deg, #1E305E, #2E5BFF); }
.ncard__media--ph span { font-size: 46px; opacity: .9; filter: drop-shadow(0 6px 14px rgba(0,0,0,.25)); }
.ncard__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.ncard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-muted); }
.ncard__chip { font-family: var(--font-display); font-weight: 800; font-size: 11px; letter-spacing: .6px; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: rgba(120, 23, 182, .1); color: var(--brand-500); }
.ncard__chip--media { background: rgba(46, 91, 255, .1); color: #2E5BFF; }
.ncard h3 { font-size: 19px; line-height: 1.3; margin: 0; letter-spacing: -.2px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ncard p { font-size: 14px; line-height: 1.6; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ncard__foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--text-muted); }
.ncard__foot em { font-style: normal; font-weight: 700; color: var(--brand-500); }

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

/* böyük (hero) kart */
.news-featured { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 26px; margin-top: 12px; }
.ncard--hero { position: relative; min-height: 520px; color: #fff; border: 0; }
.ncard--hero .ncard__media { position: absolute; inset: 0; aspect-ratio: auto; }
.ncard--hero .ncard__media--ph span { font-size: 110px; position: absolute; top: 18%; left: 50%; transform: translateX(-50%); }
.ncard--hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,8,40,.08) 10%, rgba(20,8,40,.78) 52%, rgba(20,8,40,.96) 100%); z-index: 1; }
.ncard--hero .ncard__body { position: relative; z-index: 2; margin-top: auto; padding: 34px; gap: 14px; }
.ncard--hero h3 { font-size: clamp(26px, 3vw, 38px); line-height: 1.18; color: #fff; -webkit-line-clamp: 4; }
.ncard--hero p { color: rgba(255,255,255,.88); font-size: 16px; -webkit-line-clamp: 3; }
.ncard--hero .ncard__meta, .ncard--hero .ncard__foot { color: rgba(255,255,255,.8); }
.ncard--hero .ncard__chip { background: rgba(255,255,255,.2); color: #fff; backdrop-filter: blur(6px); }
.ncard--hero .ncard__foot em { color: #fff; }

/* yan siyahı (kiçik sətir kartları) */
.news-featured__side { display: flex; flex-direction: column; gap: 18px; }
.ncard--row { flex-direction: row; flex: 1; min-height: 0; }
.ncard--row .ncard__media { width: 40%; flex-shrink: 0; aspect-ratio: auto; min-height: 140px; }
.ncard--row .ncard__body { padding: 16px 18px; gap: 8px; justify-content: center; }
.ncard--row h3 { font-size: 16.5px; -webkit-line-clamp: 3; }
.ncard--row .ncard__media--ph span { font-size: 34px; }

/* səhifələmə */
.news-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 44px; }
.news-pager a { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); font-weight: 700; color: var(--text); transition: .2s; }
.news-pager a:hover { border-color: var(--brand-500); color: var(--brand-600); }
.news-pager a.is-on { background: var(--text); border-color: var(--text); color: #fff; }

/* ==================== TƏK YAZI ==================== */
.news-art-head { padding: 52px 0 10px; }
.news-art-head .ncard__meta { margin-bottom: 18px; font-size: 14px; }
.news-art-head h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.12; letter-spacing: -.6px; margin: 0 0 18px; }
.news-art-lead { font-size: 19px; line-height: 1.6; color: var(--text); opacity: .75; margin: 0; }
.news-art-cover { max-width: 1180px; margin: 30px auto 6px; padding: 0 28px; }
.news-art-cover img { width: 100%; max-height: 560px; object-fit: cover; border-radius: 22px; display: block; box-shadow: 0 20px 50px rgba(40, 20, 70, .18); }

.news-body { padding: 26px 0 8px; font-size: 18px; line-height: 1.85; color: var(--text); }
.news-body p { color: var(--text); opacity: .9; font-size: 18px; line-height: 1.85; margin: 0 0 1.25em; }
.news-body h2, .news-body .epage-h2 { font-size: 30px; line-height: 1.25; margin: 1.9em 0 .6em; letter-spacing: -.3px; }
.news-body h3, .news-body .epage-h3 { font-size: 22px; line-height: 1.3; margin: 1.6em 0 .5em; }
.news-body a { color: var(--brand-500); text-decoration: underline; text-underline-offset: 3px; }
.news-body ul, .news-body ol, .news-body .epage-list { margin: 0 0 1.4em; padding-left: 1.3em; }
.news-body ul { list-style: disc; } .news-body ol { list-style: decimal; }
.news-body li { margin-bottom: .55em; font-size: 18px; line-height: 1.75; }
.news-body li::marker { color: var(--brand-500); }
.news-body figure { margin: 2em 0; }
.news-body figure img, .news-body > img { max-width: 100%; height: auto; border-radius: 16px; display: block; margin: 0 auto; }
.news-body blockquote { margin: 1.8em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--brand-500); font-size: 20px; font-style: italic; }
.news-table { overflow-x: auto; margin: 1.6em 0; }
.news-table table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.news-table td { border: 1px solid var(--border); padding: 10px 14px; vertical-align: top; }
.news-table tr:first-child td { background: var(--bg-alt); font-weight: 700; }
.news-source { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--border); font-size: 14.5px; }
.news-related { padding-top: 0; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1100px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .news-featured { grid-template-columns: 1fr; }
  .ncard--hero { min-height: 440px; }
  .news-featured__side { display: grid; grid-template-columns: repeat(3, 1fr); }
  .ncard--row { flex-direction: column; }
  .ncard--row .ncard__media { width: 100%; aspect-ratio: 16 / 10; }
}
@media (max-width: 720px) {
  .news-wrap { padding: 0 16px; }
  .news-head { padding-top: 34px; }
  .news-grid, .news-featured__side { grid-template-columns: 1fr; gap: 18px; }
  .ncard--hero { min-height: 400px; }
  .ncard--hero .ncard__body { padding: 22px; }
  .news-search { width: 100%; min-width: 0; }
  .ncard--row { flex-direction: row; }
  .ncard--row .ncard__media { width: 38%; aspect-ratio: auto; }
  .news-body, .news-body p, .news-body li { font-size: 17px; }
  .news-art-cover { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) { .ncard, .ncard__media img { transition: none; } }
