/* 1. ASOSIY VARIABLELAR VA GLOBAL SOZLAMALAR */
:root {
    --primary: #1e3a8a;
    --accent: #3b82f6;
    --bg-main: #f4f7fe;
    --text-dark: #1e293b;
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04);
    --card-hover-shadow: 0 20px 40px -10px rgba(59, 130, 246, 0.15);
    --radius-lg: 24px;
    --radius-md: 15px;
}

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* 2. MAIN LAYOUT (Sidebar bilan ishlash) */
.main-wrapper {
    min-height: 100vh;
    padding: 20px;
    transition: all 0.3s ease;
}

@media (max-width: 992px) {
    .main-wrapper {
        margin-left: 0 !important;
        padding: 15px;
    }
}

/* 3. WELCOME BANNER (Gradients) */
.main-welcome-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 30px;
    padding: 50px;
    color: white;
    box-shadow: 0 15px 35px rgba(30, 58, 138, 0.2);
    margin-bottom: 30px;
}

/* 4. PREMIUM TEST CARDS (Konteyner va Kartalar) */
.the_tests_container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: flex-start; /* Kartalar tartib bilan chapdan boshlanadi */
    padding: 10px 0;
}

.test-card-premium {
    background: #ffffff;
    width: 320px; /* Sidebar yonida sig'ishi uchun barqaror kenglik */
    border-radius: var(--radius-lg);
    border: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-decoration: none; /* Link bo'lsa tagiga chizmaydi */
}

.test-card-premium:hover {
    transform: translateY(-12px);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--accent);
}

/* Rasm qismi silliq animatsiya bilan */
.test-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

/* Karta ichidagi matnlar */
.test-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.test-title-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    line-height: 1.4;
}

/* Premium Tugma */
.btn-premium-start {
    margin-top: auto;
    background: #f8fafc;
    color: var(--accent);
    text-align: center;
    padding: 14px;
    border-radius: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    display: block;
}

.btn-premium-start:hover {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    transform: scale(1.02);
}

/* 5. KONTAKT FORMASI */
.contact_we {
    background: #ffffff;
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.contact_input {
    width: 100%;
    padding: 14px 20px;
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8f9fa;
    transition: 0.3s ease;
    box-sizing: border-box; /* Padding kenglikni buzmasligi uchun */
}

.contact_input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1);
}
.topbar{
  z-index: 900;
}
.dropdown-menu-custom{
  z-index: 1100;
}
