/* ═══════════════════════════
   ASOSIY SOZLAMALAR
═══════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --bg: #F7F6F3;
  --surface: #FFFFFF;
  --primary: #1B3A5C;
  --accent: #4A90A4;
  --accent2: #7EB5C1;
  --text: #1A1A2E;
  --text-muted: #6B7280;
  --border: #E2E0D8;
  --footer-bg: #1B3A5C;

  /* Hech qachon o'zgarmaydigan brend rangi — katta fon bloklarida
     (slider, dumaloq tugmalar) doim oq matn bilan ishlatiladi,
     shuning uchun qorong'i rejimda ham to'q ko'k bo'lib qoladi. */
  --brand-navy: #1B3A5C;

  /* Nav/til tanlash kabi joylardagi yumshoq "hover" foni */
  --soft-highlight: #EEF4F7;
}

/* ═══════════════════════════
   QORONG'I REJIM
═══════════════════════════ */
[data-theme="dark"] {
  --bg: #0F1620;
  --surface: #1A2530;
  --primary: #7EB5C1;
  --text: #E8EAED;
  --text-muted: #9AA5B1;
  --border: #2A3644;
  --soft-highlight: rgba(74, 144, 164, 0.18);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ═══════════════════════════
   HEADER
═══════════════════════════ */
.header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  padding: 0 32px;
  height: 70px;
  gap: 20px;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
  text-decoration: none;
}

.logo-icon {
  font-size: 28px;
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.1;
}

.logo-text span {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* MENYU */
.nav-menu {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px 6px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 8px 0;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 11px;
  border-radius: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
  background: var(--soft-highlight);
}

/* O'NG TOMON */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 140px;
  justify-content: flex-end;
}

.lang-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
}

.account-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-navy);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
}

/* QORONG'I REJIM TUGMASI */
.theme-toggle-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.theme-toggle-btn:hover {
  color: var(--primary);
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* SEARCH */
.search-bar {
  padding: 10px 32px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 48px;
  font-size: 14px;
}

.search-bar input {
  width: 100%;
  padding: 10px 16px 10px 36px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  outline: none;
  transition: border 0.2s;
}

.search-bar input:focus {
  border-color: var(--accent);
}

/* ═══════════════════════════
   SLIDER
═══════════════════════════ */
.slider {
  margin: 24px 32px;
  background: var(--brand-navy);
  border-radius: 16px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}

.slide {
  text-align: center;
  padding: 48px 80px;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.slide.active {
  display: flex;
}

.slide-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 2px dashed rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 8px;
}

.slide h2 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  color: white;
}

.slide p {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  max-width: 420px;
  line-height: 1.7;
}

.slide blockquote {
  font-style: italic;
  font-size: 13px;
  color: var(--accent2);
  border-left: 3px solid var(--accent2);
  padding-left: 14px;
  text-align: left;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  font-size: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}

.slider-btn:hover {
  background: rgba(255,255,255,0.2);
}

.slider-btn.left { left: 16px; }
.slider-btn.right { right: 16px; }

.slider-dots {
  position: absolute;
  bottom: 16px;
  display: flex;
  gap: 6px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.2s;
}

.dot.active {
  background: white;
  width: 20px;
  border-radius: 4px;
}

/* ═══════════════════════════
   BO'LIMLAR
═══════════════════════════ */
.sections {
  padding: 0 32px 24px;
}

.section-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
  margin-bottom: 14px;
}

.sections-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.section-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
}

.section-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(74,144,164,0.12);
  transform: translateY(-2px);
}

.card-icon { font-size: 28px; }

.card-title {
  font-weight: 600;
  font-size: 14px;
}

.card-count {
  font-size: 12px;
  color: var(--text-muted);
}

.card-arrow {
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  margin-top: 4px;
}

/* ═══════════════════════════
   YANGILIKLAR STRIP
═══════════════════════════ */
.news-strip {
  margin: 0 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden;
}

.news-label {
  background: var(--accent);
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  text-transform: uppercase;
}

.news-content {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.news-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: news-scroll 28s linear infinite;
}

.news-content:hover .news-track {
  animation-play-state: paused;
}

@keyframes news-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.news-content a {
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.news-content a:hover {
  color: var(--primary);
}

/* ═══════════════════════════
   FOOTER
═══════════════════════════ */
.footer {
  background: linear-gradient(165deg, #1B3A5C, #12283F);
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  padding: 44px 32px 30px;
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 32px;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-brand .logo-text {
  color: white;
  font-size: 21px;
}

.footer-brand .logo-text span {
  color: rgba(255,255,255,0.5);
}

.footer-brand p {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 6px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
  position: relative;
  padding-top: 26px;
}

.footer-links::before {
  content: "SAHIFALAR";
  position: absolute;
  top: 0;
  left: 0;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.4);
}

.footer-links a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 13.5px;
  width: fit-content;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
  color: white;
  transform: translateX(3px);
}

.footer-social-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.footer-contact-label {
  font-size: 13.5px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-contact-label:hover {
  color: white;
  transform: translateX(-2px);
}

.footer-social {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

/* ═══════════════════════════
   RESPONSIVE — TELEFON
═══════════════════════════ */
@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
    flex-wrap: wrap;
    height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .nav-menu {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 4px;
    padding-bottom: 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .nav-menu a {
    font-size: 12px;
    padding: 5px 8px;
  }

  .search-bar {
    padding: 10px 16px;
  }

  .slider {
    margin: 16px;
    min-height: 260px;
  }

  .slide {
    padding: 32px 48px;
  }

  .slide h2 {
    font-size: 20px;
  }

  .sections {
    padding: 0 16px 20px;
  }

  .sections-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .news-strip {
    margin: 0 16px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .news-content {
    width: 100%;
  }

  .news-track {
    animation-duration: 20s;
  }

  .news-content a {
    white-space: nowrap;
  }

  .footer {
    grid-template-columns: 1fr;
    padding: 32px 16px 24px;
    gap: 26px;
  }

  .footer-social {
    justify-content: flex-start;
  }

  .footer-social::before {
    left: 0;
    right: auto;
  }
}

/* ═══════════════════════════
   RESPONSIVE — PLANSHET
═══════════════════════════ */
@media (max-width: 1024px) and (min-width: 769px) {
  .sections-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .nav-menu a {
    font-size: 12px;
    padding: 5px 8px;
  }
}


/* ═══════════════════════════
   TIL SOZLAMALARI
═══════════════════════════ */
.lang-wrap {
  position: relative;
}

.lang-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: 110%;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  overflow: hidden;
  z-index: 999;
  min-width: 130px;
}

.lang-dropdown.open {
  display: block;
}

.lang-option {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s;
}

.lang-option:hover {
  background: var(--bg);
}

.lang-option.active {
  color: var(--primary);
  font-weight: 600;
  background: var(--soft-highlight);
}


/* ═══════════════════════════
   LOGO RASM
═══════════════════════════ */
.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}




.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  font-size: 17px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
  background: rgba(255,255,255,0.2);
  color: white;
  transform: translateY(-3px);
}



/* ═══════════════════════════
   HAMBURGER MENYU
═══════════════════════════ */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Desktop'da X tugmasi yashirin */
.nav-close {
  display: none;
}

@media (max-width: 768px) {
  .header-inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    height: 60px;
    overflow: visible;
  }

  .logo {
    flex: 1;
    min-width: 0;
  }

  .logo-text {
    font-size: 16px;
  }

  .logo-text span {
    display: none;
  }

  .logo-img {
    height: 36px;
  }

  .nav-right {
    display: flex;
    align-items: center;
    gap: 6px;
    order: 2;
  }

  .lang-btn {
    padding: 5px 8px;
    font-size: 11px;
  }

  .lang-dropdown {
    z-index: 1001;
  }

  .account-btn,
  .theme-toggle-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .hamburger {
    order: 3;
    display: flex;
    margin-right: 2px;
    flex-shrink: 0;
  }

  .search-bar {
    padding: 8px 16px;
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--surface);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    z-index: 999;
    padding: 88px 18px 24px;
    overflow-y: auto;
  }

  .nav-menu::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(135deg, #1B3A5C, #4A90A4);
    z-index: -1;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a {
    font-size: 16.5px;
    font-weight: 600;
    padding: 16px;
    border-radius: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    color: var(--text);
  }

  .nav-menu a:hover,
  .nav-menu a.active {
    background: var(--soft-highlight);
    color: var(--primary);
  }

  .nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    font-size: 20px;
    cursor: pointer;
    color: white;
    border: none;
    z-index: 1000;
  }
}
/* ═══════════════════════════
   SKELETON LOADING
═══════════════════════════ */
.skeleton-card {
  height: 280px;
  border-radius: 16px;
  background: linear-gradient(
    90deg,
    var(--surface) 25%,
    var(--border, #e0e0e0) 50%,
    var(--surface) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}