/* ===================================================================
 * news.css — Yeniliklər (news.php) + ana səhifədəki son xəbərlər.
 * ------------------------------------------------------------------- */
.nw-filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 40px; }
.nw-filters a { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.6rem 1.05rem; border-radius: 999px; font-size: 0.84rem; font-weight: 600; color: #d9cfb8;
  background: linear-gradient(#0e0c09, #0e0c09) padding-box, linear-gradient(135deg, rgba(243, 201, 91, 0.4), rgba(243, 201, 91, 0.08)) border-box; border: 1px solid transparent; transition: all 0.2s ease; }
.nw-filters a i { color: var(--g-3); }
.nw-filters a:hover { color: #fff; }
.nw-filters a.is-on { background: var(--g-fill); color: #1a1103; } .nw-filters a.is-on i { color: #1a1103; }

.nw-cat { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.75rem; border-radius: 999px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--g-2); background: rgba(10, 8, 6, 0.75); border: 1px solid rgba(243, 201, 91, 0.4); backdrop-filter: blur(4px); }
.nw-flag { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.75rem; border-radius: 999px; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; background: var(--g-fill); color: #1a1103; }
.nw-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.nw-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.8rem; color: #a39780; }
.nw-meta i { color: var(--g-3); margin-right: 4px; }
.nw-more { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.85rem; font-weight: 700; color: var(--g-2); }
.nw-more i { transition: transform 0.2s ease; }

/* seçilmiş xəbər */
.nw-feature { display: grid; grid-template-columns: 1.25fr 1fr; min-height: 380px; border-radius: 24px; overflow: hidden; margin-bottom: 34px;
  background: linear-gradient(180deg, #14100a, #0a0806) padding-box, var(--g-line) border-box; border: 1.5px solid transparent; transition: box-shadow 0.3s ease, transform 0.3s ease; }
.nw-feature:hover { transform: translateY(-4px); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 50px rgba(243, 201, 91, 0.12); }
.nw-feature__img { position: relative; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, rgba(243, 201, 91, 0.2), transparent 60%), #120e08; background-size: cover; background-position: center; transition: transform 0.8s ease; }
.nw-feature__img i { font-size: 5rem; color: rgba(243, 201, 91, 0.6); }
.nw-feature__text { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 40px 40px 36px; }
.nw-feature__title { font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.2; font-weight: 800; background: var(--g-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nw-feature__sum { color: #c9c2b0; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.nw-feature:hover .nw-more i, .nw-card:hover .nw-more i { transform: translateX(4px); }

/* kartlar */
.nw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.nw-card { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, #14100a, #0a0806) padding-box, linear-gradient(160deg, rgba(243, 201, 91, 0.45), rgba(243, 201, 91, 0.08) 50%, rgba(243, 201, 91, 0.3)) border-box; border: 1px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease; }
.nw-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(243, 201, 91, 0.1); }
.nw-card__img { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; background: radial-gradient(circle at 50% 40%, rgba(243, 201, 91, 0.18), transparent 60%), #120e08; background-size: cover; background-position: center; }
.nw-card__img > i { font-size: 2.8rem; color: rgba(243, 201, 91, 0.55); }
.nw-card__img .nw-cat { position: absolute; left: 14px; top: 14px; }
.nw-card__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.nw-card__title { font-size: 1.1rem; font-weight: 800; line-height: 1.3; color: #f4ecd8; }
.nw-card__sum { flex: 1; font-size: 0.9rem; line-height: 1.6; color: #b9b09a; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.nw-empty { display: grid; justify-items: center; gap: 16px; padding: 60px 20px; text-align: center; color: #a39780; }
.nw-empty i { font-size: 3rem; color: rgba(243, 201, 91, 0.5); }
.nw-motto { margin-top: 50px; text-align: center; font-weight: 700; font-style: italic; color: var(--g-2); letter-spacing: 0.02em; }

/* tək xəbər */
.nw-article__hero { position: relative; overflow: hidden; padding: 110px 0 60px; border-bottom: 1px solid rgba(243, 201, 91, 0.15);
  background: radial-gradient(ellipse 55% 70% at 85% 10%, rgba(243, 201, 91, 0.16), transparent 60%), #08070a; }
.nw-article__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.18; filter: blur(2px); transform: scale(1.05); }
.nw-article__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 7, 10, 0.4), #08070a); }
.nw-article__head { position: relative; z-index: 1; display: grid; gap: 18px; justify-items: start; max-width: 900px; }
.nw-back { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 600; color: #a39780; }
.nw-back:hover { color: var(--g-2); }
.nw-article__title { font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.12; font-weight: 800; background: var(--g-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nw-article__body { max-width: 860px !important; padding: 44px 0 70px; }
.nw-article__cover { margin: 0 0 32px; border-radius: 20px; overflow: hidden; border: 1px solid rgba(243, 201, 91, 0.25); }
.nw-article__cover img { width: 100%; max-height: 520px; object-fit: cover; }
.nw-article__lead { font-size: 1.2rem; line-height: 1.7; color: #f0e7d0; font-weight: 500; padding-left: 20px; border-left: 3px solid var(--g-2); margin-bottom: 28px; }
.nw-prose { font-size: 1.04rem; line-height: 1.85; color: #d4ccb8; }
.nw-prose > * + * { margin-top: 1.1em; }
.nw-prose h2, .nw-prose h3 { color: var(--g-1); margin-top: 1.6em; line-height: 1.3; }
.nw-prose a { color: var(--g-2); text-decoration: underline; }
.nw-prose img { border-radius: 14px; margin: 1.4em 0; }
.nw-prose ul { list-style: disc; padding-left: 1.4em; } .nw-prose ol { list-style: decimal; padding-left: 1.4em; }
.nw-prose blockquote { padding: 16px 22px; border-left: 3px solid var(--g-2); background: rgba(243, 201, 91, 0.06); border-radius: 0 12px 12px 0; font-style: italic; }
.nw-share { display: flex; align-items: center; gap: 10px; margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(243, 201, 91, 0.15); color: #a39780; font-size: 0.85rem; }
.nw-share a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--g-2); border: 1px solid rgba(243, 201, 91, 0.35); transition: all 0.2s ease; }
.nw-share a:hover { background: var(--g-2); color: #1b1203; }

@media (max-width: 960px) { .nw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nw-feature { grid-template-columns: 1fr; } .nw-feature__img { min-height: 220px; } }
@media (max-width: 620px) { .nw-grid { grid-template-columns: 1fr; } .nw-feature__text { padding: 26px 22px; } }
.nw-filters { margin-bottom: 26px; }

/* Xəbər portalı üslubu (v3): bütün xəbərlər eyni ölçüdə, kiçik və səliqəli kartlar */
.nw-grid--portal { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.nw-grid--portal .nw-card { border-radius: 14px; }
.nw-grid--portal .nw-card:hover { transform: translateY(-4px); }
.nw-grid--portal .nw-card__img { aspect-ratio: 16 / 10; }
.nw-grid--portal .nw-card__img > i { font-size: 2rem; }
.nw-grid--portal .nw-card__img .nw-cat { left: 10px; top: 10px; padding: 3px 9px; font-size: 0.62rem; }
.nw-grid--portal .nw-card__body { gap: 7px; padding: 12px 14px 14px; }
.nw-grid--portal .nw-meta { font-size: 0.72rem; }
.nw-grid--portal .nw-card__title { font-size: 0.95rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.nw-grid--portal .nw-card__sum { flex: 0 0 auto; font-size: 0.8rem; line-height: 1.5; -webkit-line-clamp: 2; }
.nw-grid--portal .nw-more { margin-top: auto; font-size: 0.75rem; }
@media (max-width: 1100px) { .nw-grid--portal { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px)  { .nw-grid--portal { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 480px)  { .nw-grid--portal .nw-card__sum { display: none; } .nw-grid--portal .nw-card__title { font-size: 0.85rem; } }
.nw-grid--portal .nw-cat { display: inline-block; max-width: calc(100% - 20px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 620px) {
  /* Telefonda kateqoriya filtrləri bir sətirdə, yana sürüşür */
  .nw-filters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-bottom: 6px; margin-left: -4px; margin-right: -4px; scrollbar-width: none; }
  .nw-filters::-webkit-scrollbar { display: none; }
  .nw-filters a { flex: none; white-space: nowrap; }
  .nw-grid--portal .nw-cat { font-size: 0.56rem; }
}

/* Xəbər səhifəsi (v4): şəkil daha kiçik və səliqəli */
.nw-article__hero { padding: 90px 0 36px; }
.nw-article__title { font-size: clamp(1.5rem, 3vw, 2.3rem); }
.nw-article__body { max-width: 780px !important; padding-top: 32px; }
.nw-article__cover { max-width: 640px; margin: 0 auto 26px; border-radius: 14px; }
.nw-article__cover img { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 360px; object-fit: cover; }
.nw-article__lead { font-size: 1.05rem; }
@media (max-width: 620px) { .nw-article__hero { padding: 80px 0 26px; } .nw-article__cover { border-radius: 10px; } }

/* Xəbər şəkli üçün xüsusi qızılı çərçivə (v5) */
.nw-frame { position: relative; padding: 8px; border: 0 !important; overflow: visible !important; border-radius: 18px;
  background: linear-gradient(#0e0b07, #0e0b07) padding-box, linear-gradient(135deg, #f8e3a0, #b8861f 30%, rgba(243, 201, 91, 0.15) 55%, #c9962a 80%, #f8e3a0) border-box;
  border: 1.5px solid transparent !important; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 50px rgba(243, 201, 91, 0.08); }
.nw-frame img { border-radius: 11px; }
.nw-frame__c { position: absolute; width: 22px; height: 22px; z-index: 2; border-color: #f3c95b; border-style: solid; pointer-events: none; }
.nw-frame__c--tl { top: -6px; left: -6px; border-width: 2px 0 0 2px; border-radius: 8px 0 0 0; }
.nw-frame__c--tr { top: -6px; right: -6px; border-width: 2px 2px 0 0; border-radius: 0 8px 0 0; }
.nw-frame__c--bl { bottom: -6px; left: -6px; border-width: 0 0 2px 2px; border-radius: 0 0 0 8px; }
.nw-frame__c--br { bottom: -6px; right: -6px; border-width: 0 2px 2px 0; border-radius: 0 0 8px 0; }
.nw-frame--video { cursor: pointer; }
.nw-frame--video img { filter: brightness(0.75); transition: filter 0.3s ease; }
.nw-frame--video:hover img { filter: brightness(0.95); }
.nw-frame__play { position: absolute; left: 50%; top: 50%; z-index: 3; width: 70px; height: 70px; margin: -35px 0 0 -35px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.3rem; color: #1a1103; background: var(--g-fill); box-shadow: 0 0 0 9px rgba(243, 201, 91, 0.2), 0 14px 34px rgba(0, 0, 0, 0.5); transition: transform 0.3s ease; }
.nw-frame__play i { margin-left: 4px; }
.nw-frame--video:hover .nw-frame__play { transform: scale(1.08); }
.nw-frame__tag { position: absolute; left: 20px; top: 20px; z-index: 3; padding: 4px 10px; border-radius: 999px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #1a1103; background: var(--g-fill); }
/* kartda video işarəsi */
.nw-card__play { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; display: grid; place-items: center;
  font-size: 0.8rem; color: #1a1103; background: var(--g-fill); box-shadow: 0 0 0 5px rgba(243, 201, 91, 0.18), 0 8px 20px rgba(0, 0, 0, 0.5); }
.nw-card__play i { margin-left: 3px; }
@media (max-width: 620px) { .nw-frame { padding: 5px; border-radius: 12px; } .nw-frame__play { width: 54px; height: 54px; margin: -27px 0 0 -27px; font-size: 1rem; } }
