/* 
 * Index page custom styles
 * Extracted from inline <style> for better performance and security
 */

/* Yangiliklar carousel - aspect-ratio bilan proporsional */
.services .item {
  display: flex !important;
  flex-direction: column !important;
  padding: 1rem !important;
}

/* Rasm wrapper - oddiy */
.news-image-wrapper-simple {
  display: block !important;
  position: relative !important;
  overflow: hidden !important;
  border-radius: 0.625rem !important;
  margin-bottom: 0.75rem !important;
  min-height: 280px !important;
  background: #f9fafb !important;
}

.news-image-wrapper-simple .icon {
  width: 100% !important;
  height: auto !important;
  min-height: 280px !important;
  max-height: 450px !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 0.625rem !important;
  transition: all 0.3s ease !important;
}

.news-image-wrapper-simple:hover .icon {
  transform: scale(1.05) !important;
}

/* E'lon wrapper - rasmsiz */
.elon-wrapper-simple {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-radius: 0.625rem;
  padding: 2rem;
  min-height: 280px;
  margin-bottom: 0.75rem;
}

/* Meta ma'lumotlar (faqat views) */
.item-meta {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  margin-top: 0.5rem !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 100 !important;
}

/* Badge rasm ustida - kichik */
.meta-badge-top {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 35px !important;
  height: 35px !important;
  padding: 0 !important;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%) !important;
  color: white !important;
  border-radius: 50% !important;
  font-size: 0.9rem !important;
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.4) !important;
  z-index: 10 !important;
  transition: all 0.3s ease !important;
}

.meta-badge-top:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 3px 12px rgba(30, 64, 175, 0.6) !important;
}

.meta-badge-top i {
  font-size: 1rem !important;
}

/* Ko'rilgan soni */
.meta-views {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.3rem !important;
  color: #6b7280 !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 10 !important;
}

.meta-views i {
  color: #1e40af !important;
  font-size: 0.9rem !important;
}

.elon-icon-wrapper {
  text-align: center;
}

.elon-preview {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-top: 0.5rem;
}

/* Kengash position */
.kengash-position {
  color: #059669;
  font-weight: 500;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}

.item-date {
  margin-top: 0.5rem !important;
  margin-bottom: 0.5rem !important;
  font-size: 0.9rem !important;
  color: #666 !important;
}

.services .item p {
  margin-top: 0.5rem !important;
  margin-bottom: 0.5rem !important;
  font-size: 0.9rem !important;
  color: #666 !important;
}

.services .item h4 {
  margin-top: 0.25rem !important;
  font-size: 1rem !important;
  line-height: 1.4 !important;
}

@keyframes pulse-badge {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.5);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(251, 191, 36, 0.7);
  }
}

@keyframes rotate-star {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive o'lchamlar - yangilik va e'lonlar uchun */
@media (min-width: 1600px) {
  .news-image-wrapper-simple,
  .elon-wrapper-simple {
    min-height: 300px !important;
  }
  .news-image-wrapper-simple .icon {
    min-height: 300px !important;
    max-height: 500px !important;
  }
}

@media (min-width: 1200px) {
  .news-image-wrapper-simple,
  .elon-wrapper-simple {
    min-height: 280px !important;
  }
  .news-image-wrapper-simple .icon {
    min-height: 280px !important;
    max-height: 450px !important;
  }
}

@media (max-width: 768px) {
  .news-image-wrapper-simple,
  .elon-wrapper-simple {
    min-height: 220px !important;
  }
  .news-image-wrapper-simple .icon {
    min-height: 220px !important;
    max-height: 350px !important;
  }
}

@media (max-width: 576px) {
  .news-image-wrapper-simple,
  .elon-wrapper-simple {
    min-height: 200px !important;
  }
  .news-image-wrapper-simple .icon {
    min-height: 200px !important;
    max-height: 300px !important;
  }
}

/* Karusel ostidagi yangiliklar - standart razmer */
.upcoming-meetings .meeting-item {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  background: #fff !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s ease !important;
}

.upcoming-meetings .meeting-item:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

.upcoming-meetings .thumb {
  width: 100% !important;
  height: 320px !important;
  overflow: hidden !important;
  position: relative !important;
}

.upcoming-meetings .thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  transition: all 0.3s ease !important;
}

.upcoming-meetings .meeting-item:hover .thumb img {
  transform: scale(1.1) !important;
}

.upcoming-meetings .down-content {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 1.5rem !important;
  min-height: 140px !important;
}

.upcoming-meetings .news-title {
  font-size: 1rem !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  color: #011c72 !important;
  margin-bottom: 0.75rem !important;
  min-height: 72px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  transition: color 0.3s ease !important;
}

.upcoming-meetings .news-title:hover {
  color: #012969 !important;
}

.upcoming-meetings .news-date {
  color: #666 !important;
  font-size: 0.9rem !important;
  margin-top: auto !important;
}

/* Responsive */
@media (max-width: 992px) {
  .upcoming-meetings .thumb {
    height: 220px !important;
  }
  .upcoming-meetings .down-content {
    min-height: 130px !important;
  }
  .upcoming-meetings .news-title {
    min-height: 66px !important;
  }
}

@media (max-width: 768px) {
  .upcoming-meetings .thumb {
    height: 200px !important;
  }
  .upcoming-meetings .down-content {
    padding: 1.25rem !important;
    min-height: 120px !important;
  }
  .upcoming-meetings .news-title {
    font-size: 0.95rem !important;
    min-height: 60px !important;
  }
}

@media (max-width: 576px) {
  .upcoming-meetings .thumb {
    height: 180px !important;
  }
  .upcoming-meetings .down-content {
    padding: 1rem !important;
    min-height: 110px !important;
  }
  .upcoming-meetings .news-title {
    font-size: 0.9rem !important;
    min-height: 54px !important;
  }
}

