/* Umumiy sozlamalar (Wikipedia shriftlari va ranglari) */
body {
  font-family: sans-serif;
  background-color: #f6f6f6;
  color: #202122;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Sarlavha qismi */
.wiki-header {
  background-color: #ffffff;
  padding: 20px 40px;
  border-bottom: 1px solid #a2a9b1;
}

.wiki-header h1 {
  font-family: 'Linux Libertine', 'Georgia', 'Times', serif;
  font-size: 28px;
  margin: 0;
  font-weight: normal;
}

.wiki-tagline {
  font-size: 12px;
  color: #54595d;
  margin: 5px 0 0 0;
}

/* Konteyner (Ikkiga bo'linish) */
.wiki-container {
  display: flex;
  max-width: 1300px;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 20px;
}

/* Chap tomondagi Mundarija (Sidebar) */
.wiki-sidebar {
  width: 250px;
  background-color: #f8f9fa;
  border: 1px solid #a2a9b1;
  padding: 15px;
  height: fit-content;
  position: sticky;
  top: 20px;
}

.wiki-sidebar h3 {
  margin-top: 0;
  font-size: 14px;
  border-bottom: 1px solid #a2a9b1;
  padding-bottom: 5px;
}

.wiki-sidebar ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.wiki-sidebar ul li {
  margin-bottom: 8px;
  font-size: 13px;
}

.wiki-sidebar ul li a {
  text-decoration: none;
  color: #0645ad;
}

.wiki-sidebar ul li a:hover {
  text-decoration: underline;
}

/* Asosiy Kontent */
.wiki-content {
  flex: 1;
  padding-left: 30px;
}

/* Bo'lim sarlavhalari va chiziqlar */
.wiki-content h2 {
  font-family: 'Linux Libertine', 'Georgia', 'Times', serif;
  font-size: 22px;
  font-weight: normal;
  margin-top: 30px;
  margin-bottom: 0;
}

.wiki-content h3 {
  font-size: 16px;
  margin-top: 15px;
}

.wiki-content hr {
  border: 0;
  border-top: 1px solid #a2a9b1;
  margin-top: 5px;
  margin-bottom: 15px;
}

/* Oʻng tomondagi Maʼlumot qutisi (Infobox) */
.wiki-infobox {
  float: right;
  width: 300px;
  background-color: #f8f9fa;
  border: 1px solid #a2a9b1;
  padding: 10px;
  margin-left: 20px;
  margin-bottom: 20px;
  font-size: 13px;
}

.infobox-title {
  text-align: center;
  font-weight: bold;
  font-size: 16px;
  background-color: #eaecf0;
  padding: 5px;
}

.infobox-subtitle {
  text-align: center;
  font-style: italic;
  font-size: 12px;
  margin-bottom: 10px;
}

.wiki-infobox table {
  width: 100%;
  border-collapse: collapse;
}

.wiki-infobox th {
  text-align: left;
  vertical-align: top;
  width: 40%;
  padding: 5px 0;
  font-weight: bold;
}

.wiki-infobox td {
  padding: 5px 0;
}

/* Marketing va Maxsus Bo'limlar */
.wiki-promo-section {
  background-color: #f8f9fa;
  padding: 20px;
  border: 1px dashed #36e;
  margin-top: 30px;
  border-radius: 4px;
}

.book-card,
.bonus-box {
  background-color: #ffffff;
  border: 1px solid #a2a9b1;
  padding: 15px;
  margin-top: 10px;
  border-radius: 4px;
}
.book-card img {
  width: 300px;
  height: 250px;
  border-radius: 5px;
}

.price span {
  color: #b32424;
  font-weight: bold;
  font-size: 18px;
}

/* Tugmalar (Buttons) */
.btn {
  padding: 8px 15px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  border-radius: 3px;
  margin-right: 10px;
  margin-top: 10px;
}

.btn-blue {
  background-color: #36e;
  color: white;
}
.btn-grey {
  background-color: #eaecf0;
  color: #202122;
  border: 1px solid #a2a9b1;
}
.btn-green {
  background-color: #00af89;
  color: white;
  width: 100%;
  padding: 12px;
  font-size: 15px;
}
.btn:hover {
  opacity: 0.9;
}

/* Kurslar jadvali */
.course-grid {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.course-card {
  flex: 1;
  background-color: #ffffff;
  border: 1px solid #a2a9b1;
  padding: 15px;
  border-radius: 4px;
}

.course-card h5 {
  margin: 0 0 10px 0;
  font-size: 16px;
  color: #0645ad;
}

/* Footer (Sayt pastki qismi) */
.wiki-footer {
  background-color: #ffffff;
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: #54595d;
  border-top: 1px solid #a2a9b1;
  margin-top: 40px;
}

/* Mobil moslashuvchanlik */
@media (max-width: 768px) {
  .book-card img {
    width: 230px;
    height: 200px;
  }
  .wiki-container {
    flex-direction: column;
  }
  .wiki-sidebar {
    width: 100%;
    position: static;
    margin-bottom: 20px;
  }
  .wiki-infobox {
    float: none;
    width: 100%;
    margin-left: 0;
  }
  .course-grid {
    flex-direction: column;
  }
}
/* Kurs narxlari strukturasi */
.price-box {
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px dashed #a2a9b1;
}

.price-row {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.price-label {
  font-size: 13px;
  font-weight: bold;
  color: #202122;
}

.old-price {
  color: #72777d;
  text-decoration: line-through;
  font-size: 13px;
}

.new-price {
  font-weight: bold;
  font-size: 16px;
  color: #14866d; /* Wikipedia yashil rangi */
}

/* Bir martalik to'lov uchun maxsus vizual quticha */
.one-time-box {
  background-color: #f8f9fa;
  border: 1px solid #eaecf0;
  padding: 8px;
  border-radius: 3px;
  margin-top: 5px;
}

.red-price {
  color: #d33; /* Bir martalik katta chegirmani qizil bilan ajratish */
  font-size: 17px;
}

.course-duration {
  font-size: 11px;
  color: #54595d;
  display: block;
  width: 100%;
  margin-top: 2px;
}
