/* ===== 1. UMUMIY STILLAR VA O'ZGARUVCHILAR ===== */
:root {
    --primary-color: #0d47a1; /* Asosiy ko'k rang (ishonch, professionallik) */
    --secondary-color: #1976d2; /* Ikkilamchi, yorqinroq ko'k rang */
    --accent-color: #4caf50; /* Yashil rang (tabiat, sog'lik, o'sish) */
    --text-color: #333333; /* Asosiy matn rangi */
    --light-gray-color: #f4f7f6; /* Orqa fon uchun och kulrang */
    --border-color: #e0e0e0; /* Chegara chiziqlari rangi */
    --font-heading: 'Montserrat', sans-serif; /* Sarlavhalar uchun shrift */
    --font-body: 'Lato', sans-serif; /* Matnlar uchun shrift */
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* Yumshoq soya effekti */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-color);
    background-color: #fff;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 700;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; text-align: center; margin-bottom: 50px;}
h3 { font-size: 1.5rem; }

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

section {
    padding: 80px 0;
}

/* ===== 2. HEADER (YUQORI QISM) ===== */
header {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.header-contact a {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.header-contact span {
    font-size: 0.8rem;
    color: #666;
    margin-top: 2px;
}

.lang-switcher {
    position: relative;
}

.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    transition: all 0.3s ease;
    min-width: 120px;
}

.lang-dropdown-btn:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(13, 71, 161, 0.1);
}

.flag-icon {
    width: 24px;
    height: 18px;
    border-radius: 3px;
    object-fit: cover;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
}

.lang-dropdown-btn:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.lang-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 150px;
    margin-top: 5px;
}

.lang-dropdown-content.show {
    display: block;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f5f5f5;
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: var(--light-gray-color);
    color: var(--primary-color);
}

.lang-option.active {
    background: var(--primary-color);
    color: white;
}

.lang-option.active:hover {
    background: var(--secondary-color);
}

.logo {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    color: var(--secondary-color);
    transform: scale(1.05);
}

.logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
    max-width: 100%;
    height: auto;
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

/* Mobile logo adjustments */
@media (max-width: 768px) {
    .logo {
        font-size: 24px;
    }
    
    .logo img {
        width: 35px;
        height: 35px;
    }
    
    .logo-text {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 20px;
    }
    
    .logo img {
        width: 30px;
        height: 30px;
    }
    
    .logo-text {
        font-size: 20px;
    }
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

header nav ul li a {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-color);
    position: relative;
    padding-bottom: 5px;
}

header nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

header nav ul li a:hover::after {
    width: 100%;
}

/* ===== MOBILE NAVIGATION ===== */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(13, 71, 161, 0.2);
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: rgba(13, 71, 161, 0.1);
    border-color: var(--primary-color);
}

.hamburger span {
    width: 22px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 2px 0;
    transition: 0.3s;
    border-radius: 1px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.95), rgba(0, 0, 0, 0.9));
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav.show {
    opacity: 1;
    visibility: visible;
}

.mobile-nav ul {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    list-style: none;
    text-align: center;
    width: 90%;
    max-width: 300px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mobile-nav ul li {
    margin: 15px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    width: 100%;
}

.mobile-nav.show ul li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav ul li:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav ul li:nth-child(2) { transition-delay: 0.2s; }
.mobile-nav ul li:nth-child(3) { transition-delay: 0.3s; }
.mobile-nav ul li:nth-child(4) { transition-delay: 0.4s; }
.mobile-nav ul li:nth-child(5) { transition-delay: 0.5s; }
.mobile-nav ul li:nth-child(6) { transition-delay: 0.6s; }

.mobile-nav ul li a {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    padding: 12px 20px;
    display: block;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.mobile-nav ul li a:hover::before {
    left: 100%;
}

.mobile-nav ul li a:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
}

.mobile-nav ul li a.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(13, 71, 161, 0.3);
}

/* Mobile Language Switcher */
.mobile-lang-switcher {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    width: 100%;
    z-index: 1000;
}

.mobile-lang-switcher .lang-dropdown {
    width: 100%;
}

.mobile-lang-switcher .lang-dropdown-btn {
    width: 100%;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1rem;
    padding: 12px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 120px;
    min-height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.mobile-lang-switcher .lang-dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.mobile-lang-switcher .lang-dropdown-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 90%;
    max-width: 320px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 10002;
    max-height: 400px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 15px 0;
}

.mobile-lang-switcher .lang-dropdown-content.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.mobile-lang-switcher .lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.mobile-lang-switcher .lang-option:last-child {
    border-bottom: none;
}

.mobile-lang-switcher .lang-option:hover {
    background: rgba(13, 71, 161, 0.08);
    color: var(--primary-color);
}

.mobile-lang-switcher .lang-option.active {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

/* Standalone Mobile Language Switcher - Hidden on mobile, only sidebar language switcher is used */
.mobile-lang-switcher-standalone {
    display: none !important;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10002;
    pointer-events: auto;
}

.mobile-lang-switcher-standalone .lang-dropdown {
    position: relative;
}

.mobile-lang-switcher-standalone .lang-dropdown-btn {
    background: var(--primary-color);
    border: 2px solid white;
    color: white;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    position: relative;
    z-index: 10002;
    min-width: 80px;
    min-height: 40px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    /* Add a subtle animation to make it more noticeable */
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 4px 20px rgba(13, 71, 161, 0.4);
    }
    100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
}

.mobile-lang-switcher-standalone .lang-dropdown-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.mobile-lang-switcher-standalone .lang-dropdown-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Hide standalone mobile language switcher on mobile - only use sidebar language switcher */
@media (max-width: 768px) {
    .mobile-lang-switcher-standalone {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    /* Hide desktop language switcher on mobile */
    .desktop-lang-switcher {
        display: none !important;
    }
}

.mobile-lang-switcher-standalone .lang-dropdown-content {
    position: fixed;
    top: 80px; /* Changed from 50% to 80px from top for better mobile positioning */
    left: 50%;
    transform: translateX(-50%) scale(0.95); /* Removed translateY(-50%) */
    width: 95%;
    max-width: 350px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 10001;
    max-height: calc(100vh - 120px); /* Dynamic height based on viewport */
    min-height: 250px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px 0;
}

.mobile-lang-switcher-standalone .lang-dropdown-content::before {
    content: 'Выберите язык / Tilni tanlang / Select Language';
    display: block;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color);
    padding: 20px 20px 15px 20px;
    border-bottom: 2px solid rgba(13, 71, 161, 0.1);
    margin-bottom: 10px;
    line-height: 1.4;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1;
    border-radius: 16px 16px 0 0;
    margin: -20px -20px 10px -20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: var(--font-heading);
    opacity: 0.9;
    transition: opacity 0.3s ease;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
    white-space: nowrap;
}

.mobile-lang-switcher-standalone .lang-dropdown-content.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1); /* Removed translateY(-50%) */
    z-index: 10002;
    pointer-events: auto;
    position: fixed;
}

.mobile-lang-switcher-standalone .lang-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 25px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 1.1rem;
    font-weight: 500;
    min-height: 60px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 10002;
    pointer-events: auto;
    -webkit-tap-highlight-color: rgba(13, 71, 161, 0.2);
}

.mobile-lang-switcher-standalone .lang-option:last-child {
    border-bottom: none;
}

.mobile-lang-switcher-standalone .lang-option:hover {
    background: rgba(13, 71, 161, 0.08);
    color: var(--primary-color);
    transform: translateX(8px);
    padding-left: 30px;
    box-shadow: 0 2px 8px rgba(13, 71, 161, 0.1);
}

.mobile-lang-switcher-standalone .lang-option.active {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(13, 71, 161, 0.3);
    position: relative;
    transform: translateX(0);
    padding-left: 25px;
}

.mobile-lang-switcher-standalone .lang-option.active::before {
    content: '✓';
    position: absolute;
    right: 20px;
    font-weight: bold;
    font-size: 1.2rem;
    color: white;
}

/* Standalone mobile language dropdown scrollbar styling */
.mobile-lang-switcher-standalone .lang-dropdown-content::-webkit-scrollbar {
    width: 8px;
}

.mobile-lang-switcher-standalone .lang-dropdown-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin: 5px 0;
}

.mobile-lang-switcher-standalone .lang-dropdown-content::-webkit-scrollbar-thumb {
    background: rgba(13, 71, 161, 0.4);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-lang-switcher-standalone .lang-dropdown-content::-webkit-scrollbar-thumb:hover {
    background: rgba(13, 71, 161, 0.6);
}





/* Mobile language dropdown background overlay */
.mobile-lang-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.mobile-lang-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 9999;
}

/* Ensure language dropdown is above overlay */
.mobile-lang-switcher-standalone .lang-dropdown-content {
    pointer-events: auto;
    position: fixed;
    z-index: 10002;
}

.mobile-lang-switcher-standalone .lang-dropdown-content.show {
    pointer-events: auto;
    z-index: 10002;
    position: fixed;
}

/* Hide desktop language switcher on mobile */
@media (max-width: 768px) {
    .desktop-lang-switcher {
        display: none;
    }
}

/* Desktop navigation styles */
.desktop-nav {
    display: block;
}

/* ===== 3. HERO (ASOSIY BANNER) ===== */
.hero {
    background: linear-gradient(rgba(13, 71, 161, 0.7), rgba(0, 0, 0, 0.5)), url('../images/banner.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 150px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background-color: #388e3c; /* To'qroq yashil */
    color: white;
    transform: translateY(-3px);
}

/* ===== 4. ADVANTAGES (AFZALLIKLAR) ===== */
.advantages {
    background: var(--light-gray-color);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.advantage-item {
    background: #fff;
    padding: 40px;
    text-align: center;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.advantage-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    filter: invert(24%) sepia(85%) saturate(2256%) hue-rotate(199deg) brightness(93%) contrast(95%); /* SVG ikonkalarni ko'k rangga bo'yash */
}

.advantage-item h3 {
    margin-bottom: 10px;
}

/* ===== 5. CATEGORIES (KATEGORIYALAR) ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.category-card {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 250px;
    border-radius: 10px;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/category-placeholder.jpg') no-repeat center center/cover;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: scale(1.05);
}

.category-card h3 {
    color: white;
    font-size: 1.8rem;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
    text-align: center;
}

/* ===== 6. PRODUCTS (MAHSULOTLAR) ===== */
.featured-products {
    background-color: var(--light-gray-color);
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.product-card h3 {
    font-size: 1.2rem;
    padding: 20px 20px 10px 20px;
    flex-grow: 1; /* H3 qismini cho'zib, tugmani pastga suradi */
}

.btn-secondary {
    display: block;
    background: #fff;
    color: var(--secondary-color);
    padding: 12px 20px;
    margin: 0 20px 20px 20px;
    border-radius: 50px;
    text-align: center;
    font-weight: 600;
    border: 2px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: #fff;
}


/* ===== 7. FOOTER (QUYI QISM) ===== */
footer {
    background: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 40px 0 20px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-section p {
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    margin: 0;
}

.footer-developer {
    margin-top: 10px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-developer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-developer a:hover {
    color: #fff;
    text-decoration: underline;
}

/* ===== 8. ADAPTIVLIK (RESPONSIVENESS) ===== */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    
    header .container {
        flex-direction: column;
        gap: 10px;
    }

    /* Mobile Navigation Styles */
    .hamburger {
        display: flex;
        order: 3;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .mobile-nav {
        display: block;
    }
    
    .header-container {
        flex-direction: column; /* Stacked vertically */
        gap: 10px;
        align-items: center;
    }
    
    .header-right {
        flex-direction: column; /* Stacked vertically */
        gap: 10px;
        width: 100%;
        align-items: center;
    }
    
    .header-contact {
        order: 1;
        display: block; /* Show contact on mobile */
        text-align: center;
    }
    
    .lang-switcher {
        order: 2;
        justify-content: center;
    }
    
    .lang-dropdown-btn {
        font-size: 0.8rem;
        padding: 6px 10px;
        min-width: 80px;
    }
    
    .lang-dropdown-content {
        min-width: 120px;
    }
    
    .lang-option {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
    
    .advantages-grid, .products-grid, .categories-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================================================================
   9. MAHSULOTLAR KATALOGI SAHIFASI STILLARI (products.php)
   ================================================================== */

/* Sahifa sarlavhasi bloki */
.page-header {
    background: linear-gradient(rgba(13, 71, 161, 0.8), rgba(0, 0, 0, 0.6)), url('../images/banner.jpg') no-repeat center center/cover;
    padding: 60px 0;
    text-align: center;
    color: #fff;
}

.page-header h1 {
    color: #fff;
    font-size: 2.8rem;
    margin-bottom: 10px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: bold;
}
.breadcrumbs a:hover {
    color: #fff;
}
.breadcrumbs span {
    color: #fff;
}


.catalog-section {
    padding-top: 60px;
}

/* Filtrlar va qidiruv paneli */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 50px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.categories-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.categories-filter a {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 50px;
    background-color: var(--light-gray-color);
    color: var(--text-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.categories-filter a:hover {
    background-color: var(--secondary-color);
    color: #fff;
}

.categories-filter a.active {
    background-color: var(--primary-color);
    color: #fff;
}

.search-form form {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    overflow: hidden;
}

.search-form input {
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    outline: none;
}

.search-form button {
    border: none;
    background: var(--secondary-color);
    color: #fff;
    padding: 0 20px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}
.search-form button:hover {
    background: var(--primary-color);
}

/* Katalogdagi mahsulot kartasi */
.catalog-grid .product-card {
    display: flex;
    flex-direction: column;
}

.product-card-link {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Kartani to'liq egallaydi */
    color: inherit;
    text-decoration: none;
}
.product-card-link:hover h3 {
    color: var(--secondary-color);
}

.product-card-content {
    padding: 20px;
    flex-grow: 1;
}

.product-card-content p {
    font-size: 0.95rem;
    color: #666;
    margin-top: 10px;
}

.product-card-footer {
    padding: 0 20px 20px 20px;
}

/* Mahsulot topilmaganda chiqadigan xabar */
.not-found-message {
    grid-column: 1 / -1; /* Gridning to'liq enini egallaydi */
    text-align: center;
    padding: 80px 20px;
    background-color: var(--light-gray-color);
    border-radius: 10px;
}

.not-found-message h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.not-found-message p {
    max-width: 500px;
    margin: 0 auto 25px auto;
}

@media (max-width: 768px) {
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ==================================================================
   9. MAHSULOTLAR KATALOGI SAHIFASI (YANGILANGAN DIZAYN)
   ================================================================== */

/* Eski .filter-bar ni yashiramiz, chunki yangi strukturaga o'tdik */
.filter-bar {
    display: none;
}

.catalog-wrapper {
    padding: 60px 0;
    background-color: var(--light-gray-color);
}

.catalog-container {
    display: grid;
    grid-template-columns: 280px 1fr; /* Sidebar uchun 280px, qolgani mahsulotlar uchun */
    gap: 40px;
}


/* ---- 9.1 YON PANEL (SIDEBAR) ---- */
.catalog-sidebar {
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    position: sticky; /* Yon panelni scroll bo'lganda qotirib qo'yish */
    top: 100px; /* Header balandligidan pastroqda */
    align-self: start; /* O'zini yuqoriga tekislaydi */
    height: fit-content;
}

.sidebar-block {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light-gray-color);
}
.sidebar-block:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-block h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Yangilangan Qidiruv formasi */
.sidebar-block .search-form form {
    display: flex;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}
.sidebar-block .search-form form:focus-within {
    border-color: var(--accent-color);
}

.search-input-wrapper {
    display: flex;
    width: 100%;
}

.sidebar-block .search-form input {
    border: none;
    padding: 12px 15px;
    font-size: 1rem;
    outline: none;
    width: 100%;
    background: transparent;
}
.sidebar-block .search-form input::placeholder {
    color: #999;
}

.sidebar-block .search-form button {
    border: none;
    background: var(--accent-color);
    padding: 12px 15px;
    cursor: pointer;
    color: white;
    transition: background-color 0.3s ease;
}
.sidebar-block .search-form button:hover {
    background: #388e3c;
}

/* Yangilangan Kategoriyalar filtri */
.sidebar-block .categories-filter {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: 8px;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid transparent;
}

.category-link:hover {
    background-color: var(--light-gray-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
    transform: translateX(5px);
}

.category-link.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(13, 71, 161, 0.3);
}

.category-icon {
    font-size: 1.2rem;
}

/* Ma'lumot bloki */
.info-box {
    background: var(--light-gray-color);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
}

.info-box p {
    margin-bottom: 15px;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.info-stats {
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---- 9.2 MAHSULOTLAR ASOSIY QISMI ---- */
.products-header {
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 2px solid var(--light-gray-color);
}

.results-info h3 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.results-count {
    color: #666;
    font-size: 0.95rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

/* Yangilangan mahsulot kartasi dizayni */
.product-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

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

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: var(--light-gray-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #ccc;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 71, 161, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.view-details {
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border: 2px solid white;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-details:hover {
    background: white;
    color: var(--primary-color);
}

.product-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    margin-bottom: 15px;
}

.product-title a {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 1.3;
}

.product-title a:hover {
    color: var(--accent-color);
}

.product-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-bottom: 15px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.price-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-unit {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

.product-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-primary {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    flex-grow: 1;
    text-align: center;
}

.btn-primary:hover {
    background: #388e3c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    padding: 12px 15px;
    border-radius: 50%;
    border: 2px solid var(--secondary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: white;
    transform: scale(1.1);
}

/* ---- 9.3 SAHIFA SARLAVHASI YANGILANGAN ---- */
.page-header {
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.9), rgba(25, 118, 210, 0.8)), url('../images/banner.jpg') no-repeat center center/cover;
    padding: 80px 0;
    text-align: center;
    color: #fff;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.header-content {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    font-weight: 700;
}

.header-subtitle {
    font-size: 1.2rem;
    margin-bottom: 20px;
    opacity: 0.9;
    font-weight: 300;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: #fff;
}

.breadcrumbs .separator {
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumbs span {
    color: #fff;
    font-weight: 600;
}

/* ---- 9.4 MAHSULOT TOPILMAGANDA ---- */
.not-found-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 20px;
    border: 2px dashed var(--border-color);
}

.not-found-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.7;
}

.not-found-message h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.not-found-message p {
    max-width: 500px;
    margin: 0 auto 30px auto;
    color: #666;
    line-height: 1.6;
}

.not-found-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- 9.5 ADAPTIVLIK ---- */
@media (max-width: 992px) {
    .catalog-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .catalog-sidebar {
        position: static;
        order: 1;
    }
    
    .products-main {
        order: 2;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .catalog-sidebar {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-content {
        padding: 20px;
    }
    
    .page-header {
        padding: 60px 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .header-subtitle {
        font-size: 1rem;
    }
    
    .breadcrumbs {
        flex-direction: column;
        gap: 5px;
    }
    
    .not-found-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .not-found-actions .btn-primary,
    .not-found-actions .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    /* Mobile Header Adjustments */
    .header-container {
        gap: 8px;
        flex-direction: column;
        align-items: center;
    }
    
    .header-right {
        gap: 8px;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .header-contact {
        order: 1;
        text-align: center;
    }
    
    .lang-switcher {
        order: 2;
    }
    
    .hamburger {
        order: 3;
    }
    
    .header-contact a {
        font-size: 1rem;
    }
    
    .header-contact span {
        font-size: 0.7rem;
    }
    
    /* Mobile Navigation Adjustments */
    .hamburger span {
        width: 20px;
        height: 2px;
    }
    
    .mobile-nav ul {
        width: 85%;
        max-width: 280px;
        padding: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .mobile-nav ul li a {
        font-size: 1.1rem;
        padding: 10px 15px;
    }
    
    .mobile-lang-switcher {
        width: 100%;
    }
    
    .mobile-lang-switcher .lang-dropdown-btn {
        font-size: 0.9rem;
        padding: 10px 15px;
    }
    
    .lang-dropdown-btn {
        min-width: 70px;
        font-size: 0.7rem;
        padding: 5px 8px;
    }
    
    .catalog-sidebar {
        padding: 15px;
    }
    
    .sidebar-block h4 {
        font-size: 1.1rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .btn-secondary {
        width: 100%;
        border-radius: 25px;
    }
}

/* ==================================================================
   10. KOMPANIYA HAQIDA SAHIFASI (about.php)
   ================================================================== */

/* ---- 10.1 ASOSIY MA'LUMOTLAR ---- */
.about-main {
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 2.5rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.mission-vision {
    margin-top: 40px;
    display: grid;
    gap: 30px;
}

.mission, .vision {
    background: var(--light-gray-color);
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid var(--accent-color);
}

.mission h3, .vision h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.mission p, .vision p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--light-gray-color), #e8f4f8);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border-color);
}

.image-placeholder span {
    font-size: 4rem;
    margin-bottom: 15px;
}

.image-placeholder p {
    color: #666;
    font-weight: 500;
}

/* ---- 10.2 QIYMATLAR ---- */
.values-section {
    background: var(--light-gray-color);
    padding: 80px 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.value-item {
    background: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.value-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.value-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.value-item p {
    color: #666;
    line-height: 1.6;
}

/* ---- 10.3 STATISTIKALAR ---- */
.stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.stats-section h2 {
    color: white;
    text-align: center;
    margin-bottom: 50px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stats-grid .stat-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stats-grid .stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 10px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.stats-grid .stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* ---- 10.4 JAMOA ---- */
.team-section {
    padding: 80px 0;
    background: #fff;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.team-member {
    background: var(--light-gray-color);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.member-photo {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto;
    font-size: 3rem;
}

.team-member h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.position {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.description {
    color: #666;
    line-height: 1.6;
}

/* ---- 10.5 SERTIFIKATLAR ---- */
.certificates-section {
    background: var(--light-gray-color);
    padding: 80px 0;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.certificate-item {
    background: #fff;
    padding: 30px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.certificate-item:hover {
    transform: translateY(-5px);
}

.certificate-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.certificate-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.certificate-item p {
    color: #666;
    line-height: 1.5;
}

/* ---- 10.6 BOG'LANISH CTA ---- */
.contact-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-content h2 {
    color: white;
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-primary {
    background: var(--accent-color);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-color);
}

.cta-buttons .btn-primary:hover {
    background: transparent;
    color: var(--accent-color);
    transform: translateY(-3px);
}

.cta-buttons .btn-secondary {
    background: transparent;
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.cta-buttons .btn-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* ---- 10.7 ADAPTIVLIK ---- */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-text h2 {
        font-size: 2rem;
    }
    
    .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .about-main,
    .values-section,
    .stats-section,
    .team-section,
    .certificates-section,
    .contact-cta {
        padding: 60px 0;
    }
    
    .about-text h2 {
        font-size: 1.8rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .value-item,
    .team-member,
    .certificate-item {
        padding: 25px 20px;
    }
    
    .image-placeholder {
        width: 250px;
        height: 250px;
    }
    
    .image-placeholder span {
        font-size: 3rem;
    }
}

/* ==================================================================
   11. BOG'LANISH SAHIFASI (contact.php)
   ================================================================== */

/* ---- 11.1 BOG'LANISH MA'LUMOTLARI ---- */
.contact-info-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.contact-info > p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.info-items {
    display: grid;
    gap: 25px;
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: var(--light-gray-color);
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.info-icon {
    font-size: 2rem;
    min-width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.info-content h3 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.info-content p {
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.info-content a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-content a:hover {
    color: var(--primary-color);
}

/* Ijtimoiy tarmoqlar */
.social-links h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 50px;
    height: 50px;
    background: var(--light-gray-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-icon:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
}

/* ---- 11.2 BOG'LANISH FORMASI ---- */
.contact-form-container {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 2rem;
}

.form-header p {
    color: #666;
    line-height: 1.5;
}

/* Alert xabarlari */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-success::before {
    content: "✅";
    font-size: 1.2rem;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-error::before {
    content: "❌";
    font-size: 1.2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Checkbox stillari */
.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--accent-color);
}

.checkbox-text a {
    color: var(--secondary-color);
    text-decoration: none;
}

.checkbox-text a:hover {
    text-decoration: underline;
}

/* Submit tugmasi */
.submit-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #388e3c;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.btn-icon {
    font-size: 1.2rem;
}

/* ---- 11.3 XARITA ---- */
.map-section {
    padding: 80px 0;
    background: var(--light-gray-color);
}

.map-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.map-container {
    max-width: 800px;
    margin: 0 auto;
}

.map-placeholder {
    background: #fff;
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 2px dashed var(--border-color);
}

.map-placeholder span {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.map-placeholder h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.map-placeholder p {
    color: #666;
    margin-bottom: 25px;
}

.map-link {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.map-link:hover {
    background: #388e3c;
    transform: translateY(-2px);
}

/* ---- 11.4 FAQ ---- */
.faq-section {
    padding: 80px 0;
    background: #fff;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 50px;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: var(--light-gray-color);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: var(--light-gray-color);
}

.faq-question h3 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.4;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: var(--light-gray-color);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 30px 25px 30px;
}

.faq-answer p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ---- 11.5 ADAPTIVLIK ---- */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info h2 {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-info-section,
    .map-section,
    .faq-section {
        padding: 60px 0;
    }
    
    .contact-form-container {
        padding: 30px 25px;
    }
    
    .info-item {
        padding: 15px;
        gap: 15px;
    }
    
    .info-icon {
        min-width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .map-placeholder {
        padding: 40px 25px;
    }
    
    .map-placeholder span {
        font-size: 3rem;
    }
    
    .faq-question {
        padding: 20px 25px;
    }
    
    .faq-question h3 {
        font-size: 1.1rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 25px 20px 25px;
    }
}

@media (max-width: 480px) {
    .lang-dropdown-btn {
        font-size: 0.7rem;
        padding: 5px 8px;
        min-width: 90px;
    }
    
    .lang-dropdown-content {
        min-width: 120px;
    }
    
    .lang-option {
        padding: 6px 8px;
        font-size: 0.7rem;
    }
    
    .contact-form-container {
        padding: 25px 20px;
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .submit-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .map-placeholder {
        padding: 30px 20px;
    }
    
    .map-placeholder span {
        font-size: 2.5rem;
    }
}

/* ==================================================================
   12. MAQOLALAR SAHIFASI (articles.php)
   ================================================================== */

/* ---- 12.1 ASOSIY LAYOUT ---- */
.articles-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
}

.articles-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 60px;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
}

/* ---- 12.2 YON PANEL (SIDEBAR) ---- */
.articles-sidebar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 100px;
    align-self: start;
    height: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.articles-sidebar .sidebar-block {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light-gray-color);
}

.articles-sidebar .sidebar-block:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.articles-sidebar .sidebar-block h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent-color);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Qidiruv formasi */
.search-form {
    margin-bottom: 20px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 15px;
    border: 2px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.search-input-wrapper:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.2);
    transform: translateY(-2px);
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.95rem;
    color: var(--text-color);
}

.search-input::placeholder {
    color: #94a3b8;
    font-style: italic;
}

.search-btn {
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--accent-color), #66bb6a);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: linear-gradient(135deg, #388e3c, #2e7d32);
    transform: scale(1.05);
}

.search-btn svg {
    width: 18px;
    height: 18px;
}

/* Mashhur maqolalar */
.popular-articles {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.popular-article {
    display: flex;
    gap: 15px;
    padding: 18px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 15px;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.popular-article::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.popular-article:hover {
    transform: translateX(8px) translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
}

.popular-article:hover::before {
    left: 100%;
}

.popular-article-image {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color), #66bb6a);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    position: relative;
    z-index: 1;
}

.popular-article-content h5 {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    line-height: 1.3;
}

.popular-article-content .article-date {
    font-size: 0.8rem;
    color: #666;
}

/* Kategoriya filtrlari */
.categories-filter {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.4s ease;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    font-weight: 500;
}

.category-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.1), transparent);
    transition: left 0.5s ease;
}

.category-link:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    color: var(--primary-color);
    transform: translateX(8px) translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.category-link:hover::before {
    left: 100%;
}

.category-link.active {
    background: linear-gradient(135deg, var(--accent-color), #66bb6a);
    color: white;
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
    transform: translateX(5px);
}

.category-link.active::before {
    display: none;
}

.category-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

/* Arxiv */
.archive-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.archive-list a {
    color: var(--text-color);
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 10px;
    transition: all 0.4s ease;
    font-size: 0.95rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.archive-list a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.1), transparent);
    transition: left 0.5s ease;
}

.archive-list a:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    color: var(--primary-color);
    transform: translateX(8px) translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.archive-list a:hover::before {
    left: 100%;
}

/* ---- 12.3 MAQOLALAR ASOSIY QISMI ---- */
.articles-main {
    flex: 1;
}

.articles-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 25px 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.results-info h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.results-count {
    color: #666;
    font-size: 0.95rem;
}

.sort-select {
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 150px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.sort-select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.2);
    transform: translateY(-2px);
}

/* Maqolalar grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 35px;
    margin-bottom: 60px;
}

/* Maqola kartasi */
.article-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.article-card:hover::before {
    transform: scaleX(1);
}

.article-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.article-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.95), rgba(102, 187, 106, 0.95));
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 2;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: #94a3b8;
    position: relative;
    overflow: hidden;
}

.placeholder-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.article-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.95), rgba(25, 118, 210, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
}

.article-card:hover .article-overlay {
    opacity: 1;
}

.read-more {
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border: 2px solid white;
    border-radius: 30px;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.read-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.read-more:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.read-more:hover::before {
    left: 100%;
}

.article-content {
    padding: 30px;
    position: relative;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #666;
}

.article-title {
    margin-bottom: 15px;
}

.article-title a {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--primary-color);
    text-decoration: none;
    line-height: 1.4;
    transition: all 0.3s ease;
    font-weight: 700;
    display: block;
}

.article-title a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.article-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.article-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: linear-gradient(135deg, var(--light-gray-color), #e2e8f0);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.tag:hover {
    background: linear-gradient(135deg, var(--accent-color), #66bb6a);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.article-stats {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #666;
}

.views, .likes {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ---- 12.4 SAHIFALASH ---- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 50px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-link {
    display: inline-block;
    padding: 12px 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    min-width: 45px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.1), transparent);
    transition: left 0.5s ease;
}

.page-link:hover {
    background: linear-gradient(135deg, var(--accent-color), #66bb6a);
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.page-link:hover::before {
    left: 100%;
}

.page-link.active {
    background: linear-gradient(135deg, var(--primary-color), #1976d2);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(13, 71, 161, 0.3);
}

.page-link.next {
    background: linear-gradient(135deg, var(--accent-color), #66bb6a);
    color: white;
    border-color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.page-link.next:hover {
    background: linear-gradient(135deg, #388e3c, #2e7d32);
    border-color: #388e3c;
    box-shadow: 0 8px 25px rgba(56, 142, 60, 0.4);
}

/* ---- 12.5 ADAPTIVLIK ---- */
@media (max-width: 1200px) {
    .articles-container {
        grid-template-columns: 280px 1fr;
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .articles-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .articles-sidebar {
        position: static;
        order: 1;
        margin-top: 0;
        margin-bottom: 30px;
    }
    
    .articles-main {
        order: 2;
    }
    
    .articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .articles-section {
        padding: 60px 0;
        background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    }
    
    .articles-container {
        gap: 30px;
    }
    
    .articles-header {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
        padding: 20px 25px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .article-content {
        padding: 25px;
    }
    
    .article-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .articles-sidebar {
        padding: 25px 20px;
        margin-top: 0;
        margin-bottom: 20px;
    }
    
    .popular-article {
        padding: 15px;
    }
    
    .popular-article-image {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .pagination {
        padding: 20px;
        gap: 8px;
    }
    
    .page-link {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .articles-section {
        padding: 40px 0;
    }
    
    .article-image {
        height: 200px;
    }
    
    .article-category {
        font-size: 0.75rem;
        padding: 6px 12px;
        top: 15px;
        left: 15px;
    }
    
    .article-title a {
        font-size: 1.2rem;
    }
    
    .article-content {
        padding: 20px;
    }
    
    .articles-sidebar {
        padding: 20px 15px;
    }
    
    .popular-article {
        padding: 12px;
    }
    
    .popular-article-image {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .pagination {
        padding: 15px;
        gap: 6px;
    }
    
    .page-link {
        padding: 8px 12px;
        font-size: 0.85rem;
        min-width: 40px;
    }
    
    .sort-select {
        padding: 10px 15px;
        font-size: 0.9rem;
        min-width: 120px;
    }
}

/* =================================================================
   PRODUCT DETAIL PAGE STYLES
   ================================================================= */

.product-detail-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Mahsulot rasmlari */
.product-images {
    position: sticky;
    top: 20px;
}

.main-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    background: white;
}

.main-image {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-zoom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.thumbnail-images {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail.active {
    border-color: #007bff;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-thumbnail {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #6c757d;
}

/* Mahsulot ma'lumotlari */
.product-info {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.product-header {
    margin-bottom: 30px;
}

.product-category {
    margin-bottom: 15px;
}

.category-badge {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.product-title {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.2;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    font-size: 18px;
    color: #ddd;
}

.star.filled {
    color: #ffc107;
}

.rating-text {
    color: #6c757d;
    font-size: 14px;
}

/* Narx */
.product-price {
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
}

.price-main {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 5px;
}

.price-amount {
    font-size: 36px;
    font-weight: 700;
    color: #28a745;
}

.price-currency {
    font-size: 18px;
    color: #6c757d;
}

.price-unit {
    font-size: 14px;
    color: #6c757d;
}

.price-contact {
    font-size: 24px;
    font-weight: 600;
    color: #007bff;
}

/* Tavsif */
.product-description {
    margin-bottom: 30px;
}

.product-description h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.product-description p {
    color: #6c757d;
    line-height: 1.6;
}

/* Xususiyatlar */
.product-features {
    margin-bottom: 30px;
}

.product-features h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 20px;
}

.feature-text {
    font-weight: 500;
    color: #495057;
}

/* Buyurtma qismi */
.product-actions {
    margin-bottom: 30px;
}

.quantity-selector {
    margin-bottom: 20px;
}

.quantity-selector label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 150px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #dee2e6;
    background: white;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    border-color: #007bff;
    color: #007bff;
}

#quantity {
    flex: 1;
    height: 40px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-order, .btn-contact, .btn-favorite {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.btn-outline {
    background: white;
    color: #007bff;
    border: 2px solid #007bff;
}

.btn-outline:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
}

.btn-outline.active {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
}

.btn-icon {
    font-size: 18px;
}

/* Tezkor aloqa */
.quick-contact {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    font-size: 20px;
    color: #007bff;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 600;
}

.contact-value {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

/* =================================================================
   PRODUCT DETAIL TABS
   ================================================================= */

.product-details-tabs {
    padding: 60px 0;
    background: white;
}

.tabs-container {
    max-width: 1000px;
    margin: 0 auto;
}

.tabs-header {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 40px;
    overflow-x: auto;
}

.tab-btn {
    padding: 16px 24px;
    border: none;
    background: none;
    font-size: 16px;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
}

.tab-btn:hover {
    color: #007bff;
}

.tab-btn.active {
    color: #007bff;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #007bff;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Xususiyatlar */
.specifications-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.spec-label {
    font-weight: 600;
    color: #495057;
}

.spec-value {
    color: #6c757d;
}

/* Tarkibi va qo'llash */
.composition-content, .usage-content {
    line-height: 1.8;
    color: #495057;
}

/* Sharhlar */
.reviews-content {
    max-width: 800px;
}

.reviews-summary {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
}

.average-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.rating-number {
    font-size: 48px;
    font-weight: 700;
    color: #007bff;
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.rating-text {
    color: #6c757d;
    font-size: 14px;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-item {
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    background: white;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.reviewer-name {
    font-weight: 600;
    color: #2c3e50;
}

.review-rating {
    display: flex;
    gap: 2px;
}

.review-date {
    color: #6c757d;
    font-size: 14px;
}

.review-text {
    color: #495057;
    line-height: 1.6;
}

/* =================================================================
   RELATED PRODUCTS
   ================================================================= */

.related-products {
    padding: 60px 0;
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.section-header p {
    color: #6c757d;
    font-size: 16px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Product detail responsive */
@media (max-width: 768px) {
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-images {
        position: static;
    }
    
    .main-image {
        height: 300px;
    }
    
    .product-info {
        padding: 20px;
    }
    
    .product-title {
        font-size: 24px;
    }
    
    .price-amount {
        font-size: 28px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .tabs-header {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1;
        min-width: 120px;
    }
    
    .specifications-grid {
        grid-template-columns: 1fr;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
