:root {
    --primary:#2563eb;
    --primary-hover:#1d4ed8;
    --muted:#6b7280;
    --card-radius:16px;
    --shadow:0 6px 18px rgba(0,0,0,.08);
    --transition:.25s ease;
}
body {
    background: linear-gradient(135deg,#f9fafb,#eef2ff);
    padding-top: 35px !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
.conf-section { background: linear-gradient(135deg,#f9fafb,#eef2ff); height: 100%}
.conf-grid { display: grid; gap: 2rem; padding: 0 2rem; }
@media(min-width:992px){ .conf-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:991px){ .conf-grid { grid-template-columns: 1fr; } }

.conf-card {
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #fff;
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
}
.conf-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.12); }
/* Aktiv konferensiyalar uchun border va effekt */
.conf-card.conf-active {
    border: 2px solid #22c55e; /* yashil */
    box-shadow: 0 8px 22px rgba(34, 197, 94, 0.25); /* yashil soyasi */
    position: relative;
}

/* Hover holati aktivlar uchun kuchliroq */
.conf-card.conf-active:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(34, 197, 94, 0.35);
}

.conf-img-wrap {
    width: 280px; flex-shrink: 0;
    display:flex; align-items:center; justify-content:center;
    background:#f3f4f6; padding:1rem;
}
.conf-img-wrap img { width:100%; height:auto; object-fit:contain; transition: transform .4s ease; }
.conf-card:hover .conf-img-wrap img { transform: scale(1.02); }

.conf-body { padding: 1rem 1.5rem; flex: 1; }
.conf-title a{ font-weight:600; font-size:1.2rem; color:#111827; text-decoration:none; }
.conf-title a:hover{ color:var(--primary); }
.conf-meta {
    display: inline-block;
    font-size: .95rem;
    font-weight: 600;
    color: #20322a; /* to‘q yashil matn */
    background: #e0ffeb; /* och yashil fon */
    padding: 4px 10px;
    border-radius: 8px;
    margin-bottom: .5rem;
}
.conf-meta i {
    color: #22c55e; /* ikonka och yashil */
}
/* 🟠 O‘tib ketgan sanalar uchun */
.conf-meta.conf-past-date {
    color: #000000; /* orange */
    font-weight: 600;
    background: #f6ffda;
}

.conf-extra{ font-size:.9rem; color:var(--muted); }
.conf-footer .btn{ margin-right:.5rem; }

/* live badge */
.live-badge-top {
    position: absolute; top: 12px; right: 12px;
    width: 12px; height: 12px;
    border-radius: 50%; background: #22c55e;
    box-shadow: 0 0 0 rgba(34,197,94,.7);
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { transform: scale(0.9); box-shadow:0 0 0 0 rgba(34,197,94,.7); }
    70% { transform: scale(1); box-shadow:0 0 0 6px rgba(34,197,94,0); }
    100% { transform: scale(0.9); box-shadow:0 0 0 0 rgba(34,197,94,0); }
}

.pagination .page-item.active .page-link { background: var(--primary); border-color: var(--primary); }
.pagination .page-link { color: var(--primary); }
.pagination .page-link:hover { background: var(--primary-hover); color: #fff; }

.conf-section {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
.search-box {
    text-align: center;
}
.search-box .form-control {
    border-radius: 8px 0 0 8px;
}
.search-box .btn {
    border-radius: 0 8px 8px 0;
}

/* Pagination responsiv */
.pagination .page-link {
    color: var(--primary);
}
.pagination .page-link:hover {
    background: var(--primary-hover);
    color: #fff;
}
.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}

/* 📱 Mobil moslashuv */
/* 💻 Oddiy desktop / noutbuk (≥992px dan 1999px gacha) */
@media (min-width: 992px) and (max-width: 2400px) {
    .conf-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 ta yonma-yon */
    }
}

/* 🖥️ Juda katta monitorlar (≥2000px) */
@media (min-width: 2400px) {
    .conf-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 ta yonma-yon */
    }
}

/* 📱 Planshet va telefonlar */
@media (max-width: 1300px) {
    .conf-grid {
        grid-template-columns: 1fr; /* faqat bittadan */
    }
}



@media (max-width: 768px) {
    article.conf-card.d-flex {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    article.conf-card .conf-img-wrap {
        width: 100% !important;
        padding: 0.5rem !important;
    }

    article.conf-card .conf-img-wrap img {
        max-width: 100% !important;
        height: auto !important;
    }

    article.conf-card .conf-body {
        padding: 1rem !important;
        width: 100% !important;
    }

    article.conf-card .conf-footer .btn {
        display: block !important;
        width: 100% !important;
        margin: 5px 0 !important;
    }
}

/* 📱📱 Juda kichik ekranlar (≤576px — telefon) */
@media (max-width: 576px) {
    .conf-grid {
        grid-template-columns: 1fr !important; /* faqat bittadan chiqadi */
        gap: 1rem !important;
        padding: 0 1rem !important;
    }

    article.conf-card .conf-title a {
        font-size: 1rem !important; /* sarlavha biroz kichrayadi */
    }

    article.conf-card .conf-extra {
        font-size: 0.8rem !important;
    }

    article.conf-card .conf-footer .btn {
        font-size: 0.85rem !important;
        padding: 0.5rem !important;
    }
}

/* 📱📱📱 Juda kichkina ekranlar (≤400px) */
@media (max-width: 400px) {
    .conf-grid {
        gap: 0.8rem !important;
    }

    article.conf-card .conf-title a {
        font-size: 0.9rem !important;
    }

    article.conf-card .conf-meta {
        font-size: 0.8rem !important;
        padding: 3px 8px !important;
    }

    article.conf-card .conf-footer .btn {
        font-size: 0.8rem !important;
        padding: 0.4rem !important;
    }
}

