body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.category-btn {
    transition: all 0.3s;
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    margin: 5px;
}

.category-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.category-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Mobile toggle styles */
.category-toggle-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    display: none;
}

.category-filters {
    transition: all 0.3s ease;
}

@media (max-width: 991px) {
    .category-toggle-btn {
        display: inline-block;
    }

    .category-filters {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
    }

    .category-filters.show {
        max-height: 500px;
        opacity: 1;
        margin-top: 15px;
    }

    .category-filters .category-btn {
        display: block;
        width: 100%;
        margin: 8px 0;
    }
}

.news-card {
    transition: all 0.3s;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.news-card img {
    height: 200px;
}

.featured-news {
    position: relative;
    height: 450px;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 40px;
}

.featured-news img {
    width: 100%;
    height: 100%;
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    padding: 40px;
    color: white;
}

.badge-category {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* Sarlavhani 2 qatordan keyin qirqish */
.card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3rem; /* 2 qator uchun taxminiy joy */
}

/* Tavsifni (description) 3 qatordan keyin qirqish */
.card-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 4.5rem; /* 3 qator uchun taxminiy joy */
    margin-bottom: 15px;
}

/* Pastki qism (vaqt va boshqalar) har doim eng pastda turishi uchun */
.card-body {
    display: flex;
    flex-direction: column;
}

.card-footer-info {
    margin-top: auto; /* Matn qisqa bo'lsa ham pastga surib qo'yadi */
    padding-top: 10px;
    border-top: 1px solid #eee;
}
.image-credit {
    color: #fff; /* yoki qora fon bo‘lsa qora */
    font-size: 12px;
}

#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    display: none; /* Boshida yashirin */
    z-index: 1000;
    transition: all 0.3s ease;
}

#backToTop:hover {
    transform: translateY(-5px); /* Bosganda ozgina effekt */
    background-color: #0056b3;
}

footer {
    background: #2c3e50;
    color: white;
    margin-top: 60px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    margin: 0 5px;
    transition: all 0.3s;
}

.social-icon:hover {
    background: #667eea;
    color: white;
    text-decoration: none;
}

.trending-badge {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}