/* 1. UMUMIY SOZLAMALAR */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: #f4f7fe;
    color: #2c3e50;
}

/* 2. SLIDER (HOME PAGE) FUNKSIYALARI */
.about_photos {
    display: none; /* Skript ishlamaguncha yashirib turadi */
    max-width: 100%;
    height: auto;
    transition: opacity 0.5s ease-in-out;
}

.about_photos.active {
    display: block; /* Faqat aktiv rasm ko'rinadi */
    animation: fadeIn 0.8s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.swipe {
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
}

.swipe:hover {
    background-color: #f8f9fa !important;
    transform: translateY(-50%) scale(1.1) !important;
}

/* 3. TESTLAR KONTEYNERI (Dinamik yuklanadigan kartalar) */
.the_tests_container {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}

.col.tests {
    background: #ffffff;
    width: 320px; /* Sidebar bilan sig'ishi uchun optimal kenglik */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #edf2f7;
    margin-bottom: 20px;
}

.col.tests:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(44, 74, 134, 0.1);
}

.col.tests .image {
    width: 100%;
    height: 180px;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.col.tests .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.test_details {
    padding: 20px;
}

.test_title {
    font-size: 18px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 15px;
}

/* 4. KONTAKT FORMASI */
.contact_we {
    background: #ffffff;
    border-radius: 25px;
    padding: 30px;
    margin-top: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact_input {
    width: 100%;
    padding: 12px 20px;
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8f9fa;
    outline: none;
    transition: 0.3s;
}

.contact_input:focus {
    border-color: #2c4a86;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(44, 74, 134, 0.1);
}

.nav-item i {
    font-size: 1.2rem;
    margin-right: 12px;
}

[data-target] {
    transition: all 0.5s ease;
}

@media (max-width: 992px) {
    .main-content-wrapper {
        margin-left: 0 !important;
        width: 100% !important;
    }
    .sidebar-fixed {
        display: none;
    }
    .the_tests_container {
        justify-content: center;
    }
}
.main-welcome-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: 30px;
    padding: 60px 50px;
    color: white;
    position: relative;
    overflow: hidden;
}

.stat-card {
    background: white;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.bg-primary-light { background: #eff6ff; }
.bg-success-light { background: #f0fdf4; }
.bg-warning-light { background: #fffbeb; }

.highlight-card {
    background: #1e293b;
    border-radius: 20px;
}

.tests {
    text-decoration: none;
    
}

.tests .card-custom {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
}

.tests:hover .card-custom {
    box-shadow: 0 20px 25px -5px rgba(77, 50, 50, 0.1);
}
.main-wrapper {
    min-height: 100vh;
    padding-top: 20px;
}
.the_tests_container .card-img-top, 
.the_tests_container .test_image_box {
    height: 200px;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: center !important;
}

/* Konteynerni to'liq kenglikka yoyish */
#tests-list-container {
    width: 100%;
    padding: 20px 0;
    justify-content: flex-start; /* Chapdan tartib bilan boshlanadi */
}

/* Premium Karta Dizayni */
.test-card-premium {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.test-card-premium:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px -10px rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
}

/* Rasm qismi kengroq ko'rinishi uchun */
.test-image-wrapper {
    position: relative;
    height: 220px; /* Balandlikni biroz oshirdik */
    overflow: hidden;
    border-radius: 24px 24px 0 0;
}

.test-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.test-card-premium:hover .test-image-wrapper img {
    transform: scale(1.1);
}

/* Matnlar qismi */
.test-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.test-title-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

/* Tugmani "Full Width" va chiroyli qilish */
.btn-premium-start {
    margin-top: auto;
    background: #f8fafc;
    color: #3b82f6;
    text-align: center;
    padding: 12px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    border: 1px solid #e2e8f0;
}

.btn-premium-start:hover {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
}
.the_tests_container {
    padding-left: 10px !important;
    padding-right: 10px !important;
    display: flex;
    justify-content: center;
}

.card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}