/* === ASOSIY SAHIFA STILI (FINAL A–Z) === */

/* BODY struktura */
body.home .site-main,
body.home .site-content,
body.home .inside-article,
body.home .content-area,
body.home #content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  text-align: center;
  padding: 0 !important;
}

/* Container wide */
.container-wide {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Page intro */
.page-intro {
  text-align: center;
  margin: 40px auto 20px;
}
.page-intro h1 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #222;
}
.page-intro p {
  font-size: 16px;
  color: #333;
  font-weight: 500;
}

/* Search bar (optional) */
.search-bar {
  margin: 20px auto;
  width: 100%;
  max-width: 500px;
}
.search-bar input {
  width: 70%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px 0 0 4px;
  outline: none;
}
.search-bar button {
  padding: 10px 16px;
  font-size: 16px;
  background: #ff8c00;
  color: #fff;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}
.search-bar button:hover {
  background: #e67e00;
}

/* Infografika */
.infografika-row {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 40px auto;
}
.weather-ranking {
  background: #fffdf5;
  border: 1px solid #ffe3a4;
  border-radius: 16px;
  padding: 20px;
  max-width: 500px;
  flex: 1;
  box-shadow: 0 4px 10px rgba(255, 200, 0, 0.05);
  text-align: center;
}
.weather-ranking h3 {
  font-size: 22px;
  margin-bottom: 16px;
  color: #b25e00;
}
.weather-ranking ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.weather-ranking ol li {
  font-size: 18px;
  font-weight: 500;
  margin: 10px 0;
  display: flex;
  justify-content: space-between;
  padding: 8px 14px;
  background: #fff8e1;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(255, 193, 7, 0.04);
}
.weather-ranking ol li span {
  color: #8a4c00;
}
.weather-ranking ol li strong {
  color: #ff5a1e;
  font-weight: 700;
}
.weather-ranking small {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  color: #555;
  font-style: italic;
}
.weather-ranking .feels-like-note {
  margin-top: 8px;
  font-size: 14px;
  color: #444;
}

/* === OXIRGI YANGILIKLAR BLOKI FINAL === */

.latest-news-section {
  max-width: 1080px;
  margin: 40px auto;
  padding: 40px 16px; /* light background bilan ajratilgan bo‘lsa, tepaga padding qo‘shildi */
  background: #f9f9f9; /* light background */
  border-radius: 12px;
}

.latest-news-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center !important;
  color: #0077cc !important;
  position: relative;
  display: inline-block;
}

.latest-news-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #0077cc;
  margin: 8px auto 0;
  border-radius: 2px;
}

.latest-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* balansli min width */
  gap: 20px;
  align-items: stretch;
}

/* Card styles */
.latest-news-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.latest-news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Thumbnail image */
.latest-news-thumb img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

/* Card title */
.latest-news-card-title {
  font-size: 16px;
  font-weight: 600;
  margin: 12px;
  color: #333;
  text-align: center;
  flex-grow: 1;
}

/* Excerpt */
.latest-news-excerpt {
  font-size: 14px;
  color: #555;
  margin: 0 12px 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: justify;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .latest-news-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 480px) {
  .latest-news-card {
    border-radius: 6px;
    max-width: 300px;
    margin: 0 auto;
  }

  .latest-news-thumb img {
    height: 120px;
  }

  .latest-news-card-title {
    font-size: 15px;
  }

  .latest-news-excerpt {
    font-size: 13px;
    line-height: 1.6;
    text-align: left;
  }
}

/* === DESKTOP SPECIFIC === */
@media (min-width: 1024px) {
  .latest-news-card-title {
    font-size: 14px !important; /* desktopda kichikroq shrift */
  }
}

/* SEO matn */
.seo-text {
  max-width: 960px;
  margin: 40px auto 60px;
  padding: 0 16px 40px;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  text-align: justify;
}
.seo-text p {
  margin-bottom: 16px;
  line-height: 1.6;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .page-intro h1 {
    font-size: 20px !important;
    line-height: 1.3 !important;
  }
}

@media (max-width: 480px) {
  .infografika-row {
    flex-direction: column !important;
    gap: 16px !important;
    margin: 20px 10px !important;
  }
  .weather-ranking {
    padding: 12px !important;
    border-radius: 12px !important;
  }
  .weather-ranking h3 {
    font-size: 18px;
  }
  .weather-ranking ol li {
    font-size: 15px;
    padding: 4px 10px;
  }
  .weather-ranking small {
    font-size: 12px;
  }
  .weather-ranking .feels-like-note {
    font-size: 13px;
  }
  .latest-news-card-title {
    font-size: 15px;
  }
}
