/* =========================================================
   SAYT QOBIG'I (site.css) — "Korporativ" uslubning umumiy qismi.
   Bosh sahifa va yangiliklar sahifalari ishlatadi: theme.css → site.css → sahifa CSS.
   * To'liq enli oq menyu paneli; bo'limlar to'liq enli bloklar:
     oq / och yalpiz (.band-mint) / to'q yashil (.band-deep) / yashil (.band-cta).
   * Kartochkalar: oq sirt, ingichka chegara, soyasiz, 12px burchak.
   * Tugmalar to'rtburchakroq va sakramaydi.
   ========================================================= */

:root {
    --surface: #ffffff;
    --band: #ecfdf5;
    --deep: #0b231c;
    --hair: rgba(6, 78, 59, 0.10);
    --line-strong: rgba(16, 185, 129, 0.45);
    --tint: rgba(16, 185, 129, 0.08);
    --on-deep: rgba(255, 255, 255, 0.74);
    --on-deep-line: rgba(255, 255, 255, 0.12);
}

body { background: #fff; }
body::before { display: none; }   /* theme.css dagi fon "mesh" i — bu uslubda kerak emas */

/* Kengroq konteyner (theme.css da 1180px): katta ekranlarda ikki chetda keraksiz
   bo'sh joy qolmasin. Maqola matni o'qishga qulay bo'lishi uchun o'z ustunida
   alohida cheklanadi (blog-details.css). 1283px gacha 92% <= 1180px. */
@media (min-width: 1283px) {
    .container { max-width: none; width: min(1400px, 92%); }
}

/* ===== MENYU — to'liq enli oq panel, kontent konteyner bilan bir chiziqda ===== */
header { top: 0; }
.nav-pill.glass { width: 100%; border-radius: 0; border: 0; border-bottom: 1px solid var(--hair);
    background: rgba(255,255,255,0.95); background-image: none; box-shadow: none; padding: 12px 20px;
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
@media (min-width: 1283px) {
    .nav-pill.glass { padding-inline: calc((100vw - min(1400px, 92vw)) / 2 + 20px); }
}
header.scrolled .nav-pill { padding-top: 8px; padding-bottom: 8px; box-shadow: 0 12px 30px -26px rgba(6,78,59,0.55); }

/* ===== TUGMALAR — to'rtburchakroq, sakramaydi ===== */
.btn { border-radius: 10px; box-shadow: 0 8px 20px -10px rgba(5, 150, 105, 0.7); }
.btn:hover { transform: none; }
.btn:not(.btn-ghost):not(.btn-white):not(.btn-line):not(.btn-logout):hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-deep));
    box-shadow: 0 10px 24px -10px rgba(5, 150, 105, 0.85);
}
.nav-links > li > a.btn-logout { border-radius: 10px; }
a:focus-visible, button:focus-visible { outline: 3px solid rgba(16, 185, 129, 0.5); outline-offset: 3px; }

/* Bo'limlar ichidagi kartochkalar — oq sirt, ingichka chegara, soyasiz */
section .glass {
    background: var(--surface);
    -webkit-backdrop-filter: none; backdrop-filter: none;
    border: 1px solid var(--hair);
    border-radius: 12px;
    box-shadow: none;
}

/* ===== BO'LIMLAR — to'liq enli bloklar, har biri o'z ichki masofasi bilan ===== */
.section { padding: 72px 0; }
.band-mint { background: var(--band); }
.band-deep { background: var(--deep); color: #fff; }
.band-cta { background: linear-gradient(135deg, #059669, #047857); }
footer { margin-top: 0; }

.section-head { text-align: left; max-width: none; margin: 0 0 36px; }
.section-head h2 { font-size: clamp(1.9rem, 2.8vw, 2.6rem); line-height: 1.15; letter-spacing: -0.02em;
    margin: 0; text-wrap: balance; }
/* Sarlavha ustida qisqa yashil chiziq */
.section-head h2::before { content: ''; display: block; width: 44px; height: 4px; border-radius: 2px;
    background: var(--primary); margin-bottom: 18px; }
.section-head p { color: var(--gray); font-size: 1.05rem; max-width: 560px; margin: 12px 0 0; }
/* Kompyuterda: sarlavha chapda, izoh matni o'ngda, pastki chiziq bo'yicha tekis */
@media (min-width: 1100px) {
    .section-head:has(p) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
        column-gap: 56px; align-items: end; }
    .section-head:has(p) p { margin: 0; }
}

/* Joriy sahifa menyuda ajralib turadi */
.nav-links > li > a.active { color: var(--primary-dark); font-weight: 700; }

/* ===== YANGILIK KARTOCHKASI — bosh sahifa va yangiliklar ro'yxatida bir xil =====
   3×390 + 2×20 = 1210px — kartochka eni 390px dan oshmaydi. */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 390px)); justify-content: start; gap: 20px; }
.news-card { overflow: hidden; display: flex; flex-direction: column; color: inherit; transition: border-color 0.2s, box-shadow 0.2s; }
.news-grid .news-card:hover { border-color: var(--line-strong); box-shadow: 0 18px 40px -26px rgba(6, 78, 59, 0.45); }
.news-thumb { height: 200px; background: var(--tint); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.45s; }
.news-card:hover .news-thumb img { transform: scale(1.04); }
.news-thumb i { font-size: 2.4rem; color: rgba(4,120,87,0.35); }
.news-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.news-date { font-size: 0.8rem; color: var(--gray); display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
.news-card h3 { font-size: 1.05rem; line-height: 1.4; margin-bottom: 8px; color: var(--ink); }
.news-card p { font-size: 0.9rem; color: var(--gray); line-height: 1.6; flex: 1; margin-bottom: 14px; }
.news-more { font-weight: 700; font-size: 0.88rem; color: var(--primary-deep); display: inline-flex; align-items: center; gap: 7px; }
.news-more i { transition: transform 0.25s; }
.news-card:hover .news-more i { transform: translateX(4px); }
.news-all { margin-top: 28px; }

/* ===== ICHKI SAHIFA SARLAVHASI (yangiliklar ro'yxati va maqola) — yalpiz blok ===== */
.page-head { padding: 124px 0 48px; }
.page-head h1 { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; text-wrap: balance; }
.page-head h1::before { content: ''; display: block; width: 44px; height: 4px; border-radius: 2px;
    background: var(--primary); margin-bottom: 18px; }
.page-head .lead { color: var(--gray); font-size: 1.08rem; max-width: 620px; margin-top: 12px; }

@media (max-width: 620px) {
    .section { padding: 52px 0; }
    .section-head { margin-bottom: 26px; }
    .page-head { padding: 100px 0 36px; }
}
