/* ============================================================
   ILM SARCHASHMALARI — "navy + gold" mavzu.
   ds.css dan KEYIN yuklanadi: tokenlarni qayta belgilaydi va
   yangi bosh sahifa / header / footer bloklarini beradi.
   ============================================================ */

/* ---------- 1. Token'lar ---------- */
:root {
  --navy-900: #08203f;
  --navy-800: #0d2c57;
  --navy-700: #123a6b;
  --navy-600: #1a4b87;
  --navy-100: #eaf1f9;
  --gold:     #c9a227;
  --gold-2:   #e2bd52;

  --ink:      #16243a;
  --muted:    #5b6b80;
  --line:     #dfe6ef;

  --wrap: 1180px;
  --header-h: 76px;

  /* ds.css tokenlarini mavzuga moslash — ichki sahifalar ham yangi rangda */
  --color-text: var(--ink);
  --color-text-muted: var(--muted);
  --color-divider: var(--line);
  --color-accent: var(--navy-600);
  --color-accent-dark: var(--navy-800);
  --color-surface: #f4f7fb;
}

body { color: var(--ink); }
.btn-primary { background: var(--navy-700); border-color: var(--navy-700); }
.btn-primary:hover, .btn-primary:active { background: var(--navy-800); border-color: var(--navy-800); }

/* ---------- 2. Yuqori qator (topbar) ---------- */
.topbar {
  background: var(--navy-800);
  color: rgba(255,255,255,.85);
  font-family: var(--font-ui);
  font-size: 12.5px;
}
.topbar-inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: 8px var(--pad-x);
  display: flex; align-items: center; gap: 26px;
}
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: #fff; }
.tb-item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.tb-item svg { flex: none; opacity: .8; }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.lang {
  padding: 3px 11px; border-radius: 4px;
  color: rgba(255,255,255,.72); font-size: 12px; line-height: 1.6;
}
.lang:hover { background: rgba(255,255,255,.08); }
.lang.is-active { background: var(--navy-600); color: #fff; font-weight: 600; }

/* ---------- 3. Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.hdr-inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: 13px var(--pad-x);
  display: flex; align-items: center; gap: 26px;
}
.logo { display: flex; align-items: center; gap: 13px; text-decoration: none; color: inherit; margin-right: auto; }
.logo-mark { width: 42px; height: 50px; flex: none; }
.logo-name {
  font-family: var(--font-heading);
  font-weight: 800; font-size: 22px; line-height: 1.05;
  letter-spacing: .01em; text-transform: uppercase; color: var(--navy-700);
}
.logo-sub { font-family: var(--font-ui); font-size: 11.5px; color: var(--muted); margin-top: 3px; }

.mainnav { display: flex; align-items: center; gap: 26px; }
.nav-group { position: relative; }
.navitem {
  font-family: var(--font-ui); font-size: 14.5px; font-weight: 500;
  color: #2b3648; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 0; border: 0; border-bottom: 2px solid transparent;
  background: none; cursor: pointer; white-space: nowrap;
}
.navitem:hover { color: var(--navy-700); }
.navitem[aria-current="page"] { color: var(--navy-700); font-weight: 600; border-bottom-color: var(--navy-700); }
.navitem .caret { transition: transform .16s; }

.dropdown {
  position: absolute; top: calc(100% + 12px); left: -14px;
  min-width: 218px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 14px 34px rgba(12,40,80,.14);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s, transform .16s, visibility .16s;
}
.nav-group:hover .dropdown,
.nav-group:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.nav-group:hover .caret { transform: rotate(180deg); }
.dropdown a {
  display: block; padding: 9px 12px; border-radius: 5px;
  font-family: var(--font-ui); font-size: 14px; color: #2b3648; text-decoration: none;
}
.dropdown a:hover { background: var(--navy-100); color: var(--navy-700); }

.btn-cta {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--navy-700); color: #fff; text-decoration: none;
  font-family: var(--font-ui); font-size: 13px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 12px 20px; border-radius: 6px; white-space: nowrap;
  transition: background .15s, box-shadow .15s;
}
.btn-cta:hover { background: var(--navy-800); box-shadow: 0 8px 20px rgba(18,58,107,.28); }

.hdr-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.hdr-toggle span { display: block; width: 22px; height: 2px; background: var(--navy-700); margin: 4px 0; transition: transform .18s, opacity .18s; }
.hdr-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hdr-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hdr-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 4. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #e9f0f8 0%, #f6f9fc 45%, #e8eff8 100%);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 380px at 78% 12%, rgba(26,75,135,.10), transparent 70%),
    repeating-linear-gradient(135deg, rgba(18,58,107,.035) 0 2px, transparent 2px 22px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: var(--wrap); margin: 0 auto;
  padding: 48px var(--pad-x) 56px;
  display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,.62fr) 198px;
  gap: 26px; align-items: center;
}
.hero-kicker {
  font-family: var(--font-ui); font-weight: 700; font-size: 12.5px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 14px;
}
.hero-title {
  font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(30px, 3.9vw, 50px); line-height: 1.04;
  letter-spacing: -.015em; text-transform: uppercase; color: var(--navy-700);
  margin: 0 0 6px;
}
.hero-sub {
  font-family: var(--font-heading); font-weight: 600;
  font-size: clamp(18px, 1.95vw, 25px); color: #23405f; margin: 0 0 18px;
}
.hero-text { font-size: 15.5px; line-height: 1.65; color: #33445c; max-width: 46ch; margin: 0 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-ui); font-size: 13px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  padding: 14px 24px; border-radius: 6px; text-decoration: none;
  border: 1px solid transparent; transition: background .15s, box-shadow .15s, border-color .15s;
}
.hero-btn-solid { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }
.hero-btn-solid:hover { background: var(--navy-800); box-shadow: 0 10px 24px rgba(18,58,107,.26); }
.hero-btn-ghost { background: #fff; color: var(--navy-700); border-color: #c3d3e6; }
.hero-btn-ghost:hover { border-color: var(--navy-600); box-shadow: 0 8px 20px rgba(18,58,107,.12); }

/* Muqova (3D kitob) */
.book-wrap { display: flex; justify-content: center; }
.book {
  position: relative; width: min(252px, 100%); aspect-ratio: 3 / 4.15;
  border-radius: 3px 6px 6px 3px; overflow: hidden;
  background: linear-gradient(135deg, #1a4b87 0%, #123a6b 45%, #0b2749 100%);
  box-shadow: 0 26px 54px rgba(9,32,63,.38), 0 3px 10px rgba(9,32,63,.22);
  color: #fff; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  padding: 26px 20px 22px;
  transform: perspective(1200px) rotateY(-9deg);
}
.book::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 13px;
  background: linear-gradient(90deg, rgba(0,0,0,.42), rgba(255,255,255,.10));
}
.book-frame {
  position: absolute; inset: 12px 12px 12px 22px;
  border: 1px solid rgba(226,189,82,.55); border-radius: 2px; pointer-events: none;
}
.book-corner {
  position: absolute; top: 0; right: 0; width: 78px; height: 78px;
  background: linear-gradient(225deg, var(--gold-2) 0%, var(--gold) 45%, transparent 46%);
  opacity: .9;
}
.book-issn { position: relative; z-index: 2; font-family: var(--font-ui); font-size: 8.5px; letter-spacing: .1em; color: rgba(255,255,255,.75); align-self: flex-start; margin-bottom: 18px; }
.book-name { font-family: var(--font-heading); font-weight: 800; font-size: 20px; line-height: 1.12; letter-spacing: .01em; text-transform: uppercase; }
.book-sub { font-family: var(--font-ui); font-size: 10.5px; color: rgba(255,255,255,.78); margin-top: 7px; letter-spacing: .02em; }
.book-rule { width: 46px; height: 1px; background: var(--gold); margin: 14px 0; }
.book-num { font-family: var(--font-heading); font-weight: 800; font-size: 27px; line-height: 1.15; }
.book-seal { width: 54px; height: 54px; margin: auto auto 12px; color: var(--gold-2); }
.book-city { font-family: var(--font-ui); font-size: 9.5px; letter-spacing: .12em; color: rgba(255,255,255,.72); }
.book-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Hero xususiyatlari */
.hero-feats { display: flex; flex-direction: column; gap: 20px; }
.feat { display: flex; gap: 12px; align-items: flex-start; }
.feat-ico {
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  border: 1px solid rgba(18,58,107,.28); color: var(--navy-700);
  display: grid; place-items: center; background: rgba(255,255,255,.7);
}
.feat-text { font-family: var(--font-ui); font-size: 13.5px; line-height: 1.35; color: #26374f; }

/* ---------- 5. Tezkor kartalar ---------- */
.quick { background: #fff; }
.quick-inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: 26px var(--pad-x) 20px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.qcard {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 7px; background: #fff;
  padding: 15px 16px; text-decoration: none; color: inherit;
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.qcard:hover { transform: translateY(-3px); border-color: #c2d5ea; box-shadow: 0 12px 26px rgba(16,44,84,.10); }
.qcard-ico { color: var(--navy-700); flex: none; margin-top: 1px; }
.qcard-k { font-family: var(--font-ui); font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.qcard-v { font-family: var(--font-heading); font-weight: 700; font-size: 14.8px; line-height: 1.25; color: var(--ink); margin: 5px 0 8px; }
.qcard-a { font-family: var(--font-ui); font-size: 13px; font-weight: 600; color: var(--navy-600); }

/* ---------- 6. Panellar (joriy son + e'lonlar) ---------- */
.panels {
  max-width: var(--wrap); margin: 0 auto;
  padding: 10px var(--pad-x) 52px;
  display: grid; grid-template-columns: 1.28fr 1fr; gap: 24px; align-items: start;
}
.panel { border: 1px solid var(--line); border-radius: 7px; background: #fff; overflow: hidden; }
.panel-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.panel-title {
  font-family: var(--font-heading); font-weight: 800; font-size: 17px;
  letter-spacing: .02em; text-transform: uppercase; color: var(--navy-700); margin: 0;
}
.panel-more { font-family: var(--font-ui); font-size: 13px; font-weight: 600; color: var(--navy-600); text-decoration: none; white-space: nowrap; }
.panel-more:hover { color: var(--navy-800); }
.panel-body { padding: 18px 20px; }

.issue-layout { display: grid; grid-template-columns: 140px 1fr; gap: 22px; align-items: start; }
.issue-mini { position: relative; border-radius: 3px; overflow: hidden; box-shadow: 0 10px 24px rgba(9,32,63,.24); }

.art-row {
  display: grid; grid-template-columns: 118px minmax(0,1fr) auto;
  gap: 14px; align-items: center; padding: 11px 0;
  border-bottom: 1px solid #eef2f7;
}
.art-row:first-child { padding-top: 0; }
.art-row:last-child { border-bottom: 0; padding-bottom: 0; }
.chip {
  font-family: var(--font-ui); font-size: 11.5px; font-weight: 600;
  background: var(--navy-100); color: var(--navy-600);
  border-radius: 4px; padding: 6px 8px; text-align: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.art-title {
  font-size: 14.5px; line-height: 1.35; color: var(--ink); text-decoration: none;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.art-title:hover { color: var(--navy-600); }
.art-author { font-family: var(--font-ui); font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.pdf-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-ui); font-size: 12.5px; font-weight: 600;
  color: var(--navy-700); text-decoration: none;
  border: 1px solid #d5e0ee; border-radius: 5px; padding: 7px 11px; white-space: nowrap;
}
.pdf-btn:hover { border-color: var(--navy-600); background: var(--navy-100); }

.news-row { display: grid; grid-template-columns: 108px minmax(0,1fr); gap: 14px; padding: 13px 0; border-bottom: 1px solid #eef2f7; }
.news-row:first-child { padding-top: 0; }
.news-row:last-child { border-bottom: 0; padding-bottom: 0; }
.news-date { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-ui); font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.news-link { font-size: 14px; line-height: 1.45; color: var(--ink); text-decoration: none; }
.news-link:hover { color: var(--navy-600); }

/* ---------- 7. Footer ---------- */
.ftr { background: var(--navy-800); color: rgba(255,255,255,.78); margin-top: auto; }
.ftr-inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: 44px var(--pad-x) 30px;
  display: grid; grid-template-columns: 1.6fr 1fr 1.05fr 1.35fr 1fr; gap: 30px;
}
.ftr h6 { font-family: var(--font-ui); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin: 0 0 15px; }
.ftr a { color: rgba(255,255,255,.78); text-decoration: none; font-family: var(--font-ui); font-size: 13.5px; }
.ftr a:hover { color: var(--gold-2); }
.ftr-list { display: flex; flex-direction: column; gap: 9px; }
.ftr-contact { display: flex; flex-direction: column; gap: 11px; }
.ftr-contact .tb-item { align-items: flex-start; font-family: var(--font-ui); font-size: 13.5px; white-space: normal; }
.ftr-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ftr-logo .logo-name { color: #fff; }
.ftr-logo .logo-sub { color: rgba(255,255,255,.6); }
.ftr-note { font-family: var(--font-ui); font-size: 12.5px; color: rgba(255,255,255,.55); line-height: 1.6; }
.soc-row { display: flex; gap: 10px; }
.ftr .soc { width: 40px; height: 40px; border-radius: 9px; background: #fff; color: var(--navy-700); display: grid; place-items: center; transition: transform .15s, background .15s; }
.ftr .soc:hover { transform: translateY(-2px); background: var(--gold-2); color: var(--navy-900); }
.ftr-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.ftr-bottom-inner { flex-wrap: wrap; row-gap: 8px; }
.ftr-credit { flex-basis: 100%; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ftr .ftr-credit a { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: #fff; font-weight: 600; }
.ftr .ftr-credit a:hover { color: var(--gold-2); }
.ftr-urdu { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ftr-urdu-badge { width: 40px; height: 40px; border-radius: 8px; background: #fff; display: grid; place-items: center; flex: none; }
.ftr-urdu-badge img { width: 28px; height: auto; display: block; }

/* UrDU logotipi — header */
.urdu-logo { display: flex; align-items: center; flex: none; padding-right: 16px; margin-right: -10px; border-right: 1px solid var(--line); }
.urdu-logo img { width: 42px; height: auto; display: block; }

/* ---------- 8. Responsive ---------- */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr 300px; gap: 32px; }
  .hero-feats { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 16px 28px; }
  .feat { flex: 1 1 240px; }
  .quick-inner { grid-template-columns: repeat(3, 1fr); }
  .ftr-inner { grid-template-columns: 1.4fr 1fr 1fr; row-gap: 34px; }
}

@media (max-width: 900px) {
  .panels { grid-template-columns: 1fr; }
  .topbar .tb-hide { display: none; }
}

@media (max-width: 860px) {
  .hdr-toggle { display: block; order: 3; }
  .hdr-inner { flex-wrap: wrap; gap: 12px; }
  .mainnav {
    order: 5; width: 100%; display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    border-top: 1px solid var(--line); padding-top: 6px;
  }
  .hdr.is-open .mainnav { display: flex; }
  .navitem { width: 100%; justify-content: space-between; padding: 12px 2px; border-bottom: 1px solid #eef2f7; }
  .navitem[aria-current="page"] { border-bottom-color: #eef2f7; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-bottom: 1px solid #eef2f7;
    border-radius: 0; padding: 4px 0 8px 14px; display: none;
  }
  .nav-group:hover .dropdown { display: none; }
  .nav-group.is-open .dropdown,
  .nav-group.is-open:hover .dropdown { display: block; }
  .hdr .btn-cta { order: 6; width: 100%; justify-content: center; display: none; }
  .hdr.is-open .btn-cta { display: inline-flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .book-wrap { order: -1; }
  .book { transform: none; }
  .quick-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .urdu-logo { padding-right: 10px; margin-right: -4px; }
  .urdu-logo img { width: 34px; }
  .topbar-inner { flex-wrap: wrap; gap: 10px 18px; }
  .tb-right { margin-left: 0; width: 100%; }
  .quick-inner { grid-template-columns: 1fr; }
  .issue-layout { grid-template-columns: 1fr; }
  .issue-mini { max-width: 160px; }
  .art-row { grid-template-columns: 1fr auto; }
  .art-row .chip { grid-column: 1 / -1; justify-self: start; }
  .news-row { grid-template-columns: 1fr; gap: 5px; }
  .ftr-inner { grid-template-columns: 1fr; }
}

/* Sticky header ostida qolmasligi uchun anchor ofseti */
:target { scroll-margin-top: 110px; }

/* deploy: 2026-09-08 — xesh yangilash (proksi keshidagi eski 404 uchun) */
