/* SHARQ24 — maxsus uslublar (Tailwind CDN klasslari bilan birga) */

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Google Sans Flex", "Google Sans", sans-serif;
  background: #f2f3fa;
  color: #1a1a2e;
}

/* ── Ticker ── */
@keyframes ticker {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}
.ticker-track { display: flex; white-space: nowrap; animation: ticker 32s linear infinite; }
.ticker-wrap  { overflow: hidden; flex: 1; }
.ticker-wrap:hover .ticker-track { animation-play-state: paused; }

/* ── Dropdown ── */
.nav-item { position: relative; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid #e0e2f0;
  border-top: 3px solid #003399;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 8px 32px rgba(0, 51, 153, 0.1);
  z-index: 999;
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: #1a1a2e;
  white-space: nowrap;
  border-bottom: 1px solid #f2f3fa;
  transition: background 0.15s, color 0.15s;
}
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { background: #f2f3fa; color: #003399; }

.has-sub { position: relative; }
.has-sub > a::after { content: "›"; float: right; margin-left: 8px; }
.sub-dropdown {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 200px;
  background: #fff;
  border: 1px solid #e0e2f0;
  border-top: 3px solid #5779bd;
  border-radius: 0 12px 12px 0;
  box-shadow: 8px 8px 32px rgba(0, 51, 153, 0.1);
}
.has-sub:hover .sub-dropdown { display: block; }
.sub-dropdown a { border-bottom: 1px solid #f2f3fa; }
.sub-dropdown a:hover { background: #f2f3fa; color: #5779bd; }

/* ── Mobile menu ── */
#mobile-menu { display: none; }
#mobile-menu.open { display: block; }

/* ── Card hover ── */
.news-card { transition: transform 0.2s, box-shadow 0.2s; }
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0, 51, 153, 0.1);
}
.news-card:hover .card-img { transform: scale(1.04); }
.card-img-wrap { overflow: hidden; border-radius: 12px; }
.card-img { transition: transform 0.4s ease; }

/* ── Read-more line ── */
.read-more-line { position: relative; display: inline-block; }
.read-more-line::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: #5779bd;
  transition: width 0.25s;
}
.read-more-line:hover::after { width: 100%; }

/* ── Section header bar ── */
.section-bar { border-left: 4px solid #003399; padding-left: 14px; }

/* ── Progress bar ── */
#read-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: #ff0000;
  z-index: 9999;
  width: 0%;
  transition: width 0.1s;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f2f3fa; }
::-webkit-scrollbar-thumb { background: #5779bd; border-radius: 99px; }

.nl-input:focus {
  outline: none;
  border-color: #5779bd;
  box-shadow: 0 0 0 3px rgba(87, 121, 189, 0.15);
}

.video-play { transition: transform 0.2s, background 0.2s; }
.video-card:hover .video-play { transform: scale(1.1); background: #ff0000; }

.avatar { display: flex; align-items: center; justify-content: center; font-weight: 700; }

.hscroll::-webkit-scrollbar { height: 4px; }
.hscroll {
  scrollbar-width: thin;
  scrollbar-color: #5779bd #f2f3fa;
}

/* CBU kurslari — cheksiz aylanuvchi lenta */
@keyframes cbu-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.cbu-marquee-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 1rem, #000 calc(100% - 1rem), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 1rem, #000 calc(100% - 1rem), transparent);
}
.cbu-marquee-track {
  width: max-content;
  animation: cbu-marquee 42s linear infinite;
}
.cbu-marquee-wrap:hover .cbu-marquee-track {
  animation-play-state: paused;
}

/* ── Article (yangilik detali) ── */
.article-body p {
  margin-bottom: 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.85;
  color: #4a4a6a;
}
.article-body h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1a1a2e;
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}
.article-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 2rem 0 0.75rem;
}
.article-body blockquote {
  border-left: 4px solid #003399;
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: #f2f3fa;
  border-radius: 0 12px 12px 0;
}
.article-body blockquote p {
  font-size: 1.125rem;
  font-style: italic;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0;
}
.article-body blockquote cite {
  display: block;
  font-size: 0.85rem;
  color: #4a4a6a;
  font-style: normal;
  margin-top: 0.5rem;
}
.article-body ul {
  margin: 0 0 1.5rem 1.5rem;
}
.article-body ul li {
  list-style: disc;
  margin-bottom: 0.5rem;
  color: #4a4a6a;
  line-height: 1.7;
}
.article-body a {
  color: #5779bd;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-body .drop-cap::first-letter {
  float: left;
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 0.75;
  color: #003399;
  margin: 0.1rem 0.75rem 0 0;
  font-family: "Google Sans Flex", serif;
}
.article-body .infobox {
  background: #fff;
  border: 1px solid #e0e2f0;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.article-body .infobox-title {
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #003399;
  margin-bottom: 0.75rem;
}
.article-body .pull-quote {
  text-align: center;
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
  border-top: 3px solid #003399;
  border-bottom: 3px solid #003399;
}
.article-body .pull-quote p {
  font-size: 1.4rem;
  font-weight: 800;
  color: #1a1a2e;
  font-style: italic;
  margin: 0;
}
#toc-nav a {
  transition: color 0.15s, border-color 0.15s;
}
#toc-nav a.active {
  color: #003399;
  border-left-color: #003399;
  font-weight: 700;
}
#share-bar {
  transition: opacity 0.3s;
}

/* Chap yonidagi ulashish — faqat ikonka, matn chiqib ketmasin */
.share-rail-btn {
  position: relative;
  flex-shrink: 0;
  line-height: 0;
}
.share-rail-btn svg {
  display: block;
}

.img-caption {
  font-size: 0.8rem;
  color: #4a4a6a;
  margin-top: 0.5rem;
  font-style: italic;
}
.tag-pill {
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.tag-pill:hover {
  background: #003399;
  color: #fff;
  border-color: #003399;
}
