/* ===== Biruni-Meros — sayt index landing (ibratprint uslubi) ===== */

/* Bo'lim sarlavhasi "Journals" */
.page_index_site .journals > h2 {
  font-size: 20px; color: #0D2B4E; font-weight: 700;
  margin: 0 0 4px; padding-bottom: 12px; border-bottom: 2px solid #C9A84C;
}

/* Kartochkalar grid (faqat to'g'ridan-to'g'ri jurnal ro'yxati) */
.page_index_site .journals > ul {
  list-style: none; margin: 24px 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 22px;
}

/* Kartochka */
.page_index_site .journals > ul > li {
  background: #fff; border: 1px solid #eef1f5; border-radius: 10px;
  box-shadow: 0 2px 12px rgba(13,43,78,.07);
  padding: 22px 24px; display: flex; flex-direction: row; gap: 22px;
  align-items: flex-start; transition: box-shadow .2s ease, transform .2s ease;
}
.page_index_site .journals > ul > li:hover {
  box-shadow: 0 6px 22px rgba(13,43,78,.13); transform: translateY(-2px);
}

/* Rasm (thumbnail) */
.page_index_site .journals > ul > li > .thumb { flex: 0 0 auto; }
.page_index_site .journals > ul > li > .thumb img {
  width: 110px; height: auto; border-radius: 6px;
  box-shadow: 0 2px 8px rgba(13,43,78,.12); display: block;
}
/* Rasmsiz kartochka uchun neytral placeholder */
.page_index_site .journals > ul > li:not(.has_thumb)::before {
  content: ""; flex: 0 0 auto; width: 110px; height: 141px;
  background: linear-gradient(135deg, #0D2B4E 0%, #163b66 100%);
  border: 1px solid #C9A84C55; border-radius: 6px;
  box-shadow: 0 2px 8px rgba(13,43,78,.12);
}

/* Matn qismi */
.page_index_site .journals > ul > li > .body { flex: 1 1 auto; min-width: 0; }
.page_index_site .journals > ul > li > .body h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; line-height: 1.35; }
.page_index_site .journals > ul > li > .body h3 a { color: #0D2B4E; text-decoration: none; }
.page_index_site .journals > ul > li > .body h3 a:hover { color: #C9A84C; }

/* Tavsif — ixcham (4 qator) */
.page_index_site .journals > ul > li > .body > .description {
  color: #55606b; font-size: 13.5px; line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.page_index_site .journals > ul > li > .body > .description p { margin: 0 0 8px; }

/* Tugmalar */
.page_index_site .journals ul.links {
  display: flex !important; gap: 10px; list-style: none; margin: 16px 0 0; padding: 0; flex-wrap: wrap;
}
.page_index_site .journals ul.links > li {
  margin: 0; background: none; border: 0; box-shadow: none; padding: 0; display: block;
}
.page_index_site .journals ul.links > li::before { display: none !important; content: none !important; }
.page_index_site .journals ul.links a {
  display: inline-block; padding: 7px 16px; border-radius: 6px;
  font-size: 13px; font-weight: 600; text-decoration: none; transition: opacity .15s ease;
}
.page_index_site .journals ul.links a:hover { opacity: .88; }
.page_index_site .journals ul.links .view a { background: #0D2B4E; color: #fff; }
.page_index_site .journals ul.links .current a { background: #C9A84C; color: #0D2B4E; }

/* Sidebar blok sarlavhalari */
.pkp_page_index .pkp_block .title,
.pkp_page_index .pkp_block h2 {
  color: #0D2B4E; font-size: 14px; text-transform: uppercase; letter-spacing: .5px;
  border-bottom: 2px solid #C9A84C; padding-bottom: 6px; margin-bottom: 12px;
}

/* Mobil */
@media (max-width: 767px) {
  .page_index_site .journals > ul > li { flex-direction: column; }
  .page_index_site .journals > ul > li > .thumb img { width: 90px; }
  .page_index_site .journals > ul > li:not(.has_thumb)::before { width: 90px; height: 120px; }
  .page_index_site .journals > ul > li > .body > .description { -webkit-line-clamp: 3; }
}

/* ===== Sayt index HEADER (ibratprint uslubi — ixcham) ===== */
body:has(.page_index_site) .pkp_structure_head {
  background: linear-gradient(120deg,#0D2B4E 0%,#14406e 55%,#0D2B4E 100%) !important;
  border-bottom: 3px solid #C9A84C; box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
/* Head wrapper: tema layout saqlanadi, faqat padding kamaytiriladi */
body:has(.page_index_site) .pkp_head_wrapper { padding-top: 12px; padding-bottom: 12px; }
/* Bo'sh primary nav qatorini yashirish (balandlikni kamaytiradi) */
body:has(.page_index_site) .pkp_navigation_primary_row { display: none !important; }
/* Logo + MEROS wordmark bir qatorda (site_name_wrapper tema tomonidan chapga float qilingan) */
body:has(.page_index_site) .pkp_site_name_wrapper { display: flex; align-items: center; gap: 14px; }
body:has(.page_index_site) .pkp_site_name { margin: 0; padding: 0; line-height: 0; }
body:has(.page_index_site) .pkp_site_name .is_img { display: inline-flex; align-items: center; }
body:has(.page_index_site) .pkp_site_name img {
  width: 56px !important; height: 56px !important; max-width: 56px;
  background: #fff; border-radius: 50%; padding: 4px; box-sizing: border-box; box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
body:has(.page_index_site) .pkp_site_name_wrapper::after {
  content: "MEROS"; color: #fff; font-family: Georgia,'Times New Roman',serif;
  font-size: 23px; font-weight: 700; letter-spacing: 4px; line-height: 1; white-space: nowrap;
}
/* User nav (Kirish/Ro'yxat yoki admin) tema tomonidan o'ngda — faqat rang */
body:has(.page_index_site) .pkp_navigation_user > li > a { color: #fff !important; font-weight: 600; }
body:has(.page_index_site) .pkp_navigation_user > li > a:hover { color: #C9A84C !important; }
@media (max-width:767px){
  body:has(.page_index_site) .pkp_site_name_wrapper::after { font-size: 19px; letter-spacing: 2px; }
  body:has(.page_index_site) .pkp_site_name img { width: 46px !important; height: 46px !important; }
}

/* ===== Sidebar bloklari — silliqlash ===== */
.pkp_structure_sidebar { box-sizing: border-box; padding: 4px 8px 0 22px !important; }
.pkp_structure_sidebar .pkp_block { padding: 0 !important; margin: 0 0 24px !important; }

/* Blok sarlavhalari (ko'rinadiganlari) — oltin chiziq */
.pkp_structure_sidebar .pkp_block > .title:not(.pkp_screen_reader),
.pkp_structure_sidebar .pkp_block > h2.title:not(.pkp_screen_reader),
.pkp_structure_sidebar .pkp_block > h3.title:not(.pkp_screen_reader) {
  color: #0D2B4E; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .6px;
  padding-bottom: 7px; margin: 0 0 12px; border-bottom: 2px solid #C9A84C;
}

/* Ro'yxatlar */
.pkp_structure_sidebar .pkp_block .content > ul { list-style: none; margin: 0; padding: 0; }
.pkp_structure_sidebar .pkp_block .content > ul > li { margin: 0 0 7px; padding: 0; }
.pkp_structure_sidebar .pkp_block .content > ul > li a { color: #35506e; text-decoration: none; font-size: 13.5px; line-height: 1.5; }
.pkp_structure_sidebar .pkp_block .content > ul > li a:hover { color: #C9A84C; }

/* Til almashtirgich */
.pkp_structure_sidebar .block_language .content ul { display: flex; gap: 8px; flex-wrap: wrap; }
.pkp_structure_sidebar .block_language .content ul li { margin: 0; }
.pkp_structure_sidebar .block_language .content ul li a {
  display: inline-block; padding: 4px 11px; border: 1px solid #d7dee6; border-radius: 5px; font-size: 12.5px;
}
.pkp_structure_sidebar .block_language .content ul li a:hover { border-color: #C9A84C; background: rgba(201,168,76,.08); }

/* Make a Submission -> tugma */
.pkp_structure_sidebar .block_make_submission .block_make_submission_link {
  display: block; text-align: center; background: #0D2B4E; color: #fff !important;
  padding: 11px 14px; border-radius: 7px; font-weight: 600; text-decoration: none; font-size: 13.5px;
  transition: background .15s ease;
}
.pkp_structure_sidebar .block_make_submission .block_make_submission_link:hover { background: #C9A84C; color: #0D2B4E !important; }

/* Indekslash badge'lari markazlash */
.pkp_structure_sidebar .block_custom .content img { max-width: 100%; height: auto; }

/* Bo'sh spacer bloklarni yashirish */
#customblock-wos, #customblock-OAC { display: none !important; }

/* ===== Footer foni — kulrangni navy'ga almashtirish ===== */
.pkp_structure_footer_wrapper { background: #0D2B4E !important; }

/* ===== Footer notch (chiqib turgan navy) tuzatish ===== */
.pkp_structure_footer .pkp_footer_content > div { margin-top: 0 !important; margin-bottom: 0 !important; }
.pkp_structure_footer_wrapper { background: #0D2B4E !important; padding-bottom: 0 !important; }

/* ===== uz tugma tarjimasi (site.journalView/Current uz'da yo'q) ===== */
html[lang="uz-UZ@latin"] .page_index_site .journals ul.links .view a { font-size: 0 !important; }
html[lang="uz-UZ@latin"] .page_index_site .journals ul.links .view a::after { content: "Jurnalni ko'rish"; font-size: 13px; }
html[lang="uz-UZ@latin"] .page_index_site .journals ul.links .current a { font-size: 0 !important; }
html[lang="uz-UZ@latin"] .page_index_site .journals ul.links .current a::after { content: "Joriy son"; font-size: 13px; }
