/* Reset va Asosiy Stil */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

:root {
    --primary-color: #1a365d;
    --secondary-color: #3182ce;
    --accent-color: #dd6b20;
    --light-color: #6c86d4;
    --dark-color: #2d3748;
    --success-color: #38a169;
    --warning-color: #dd6b20;
    --error-color: #e53e3e;
    --header-height: 80px;
    --text-light: #ffffff;
    --text-dark: #1a365d;
}

html {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    touch-action: pan-y;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: #6c86d4;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* ✅ Video Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

#bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.25;
    filter: brightness(0.8) saturate(1.2);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(108, 134, 212, 0.85) 0%, 
        rgba(97, 124, 206, 0.88) 50%,
        rgba(86, 114, 200, 0.9) 100%);
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow-x: hidden;
}

/* ✅ Tuzatilgan Header - Kompakt va Fixed */
.header {
    background-color: rgba(26, 54, 93, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 100vw;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    height: 100%;
    justify-content: space-between;
    gap: 100px;
    width: 100%;
    overflow: visible;
}

/* Hamburger Menu */
.hamburger {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    font-size: 24px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s;
    flex-shrink: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* ✅ Tuzatilgan Logo - Image logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    flex-shrink: 0;
    filter: brightness(1.2);
}

.logo-text {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Language Selector */
.language-selector {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.lang-btn {
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.lang-btn.active {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    border-color: white;
}

.lang-btn:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.2);
}

/* ✅ Tuzatilgan Search - TO'G'RI JOYLASHTIRILGAN */
.search-container {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    position: relative;
    min-width: 0;
    z-index: 1001;
}

#search-input {
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    width: 180px;
    font-size: 0.9rem;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-light);
    backdrop-filter: blur(5px);
    -webkit-appearance: none;
    -moz-appearance: none;
}

#search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

#search-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
    width: 200px;
    background: rgba(255, 255, 255, 0.25);
}

#search-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.3s;
    -webkit-appearance: none;
    -moz-appearance: none;
}

#search-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* ✅ Search Results - HEADER OSTIGA TO'G'RI CHIQISHI UCHUN */
.search-results {
    position: fixed;
    top: calc(var(--header-height) + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: min(720px, 92%);
    max-height: calc(100vh - var(--header-height) - 40px);
    background: rgba(26, 54, 93, 0.98);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    padding: 15px;
    display: none;
    z-index: 2000;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.search-results.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.search-result-item {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    border-radius: 6px;
    margin-bottom: 5px;
}

.search-result-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-title {
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 5px;
    font-size: 0.95rem;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result-snippet {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    line-height: 1.4;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.search-result-snippet mark {
    background-color: rgba(255, 235, 59, 0.3);
    padding: 0 2px;
    border-radius: 2px;
    color: var(--text-light);
}

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

/* ✅ Sidebar - Xizmatlar kabi chiroyli */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background: rgba(26, 54, 93, 0.98);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    transition: left 0.3s ease;
    overflow-y: auto;
    padding-top: var(--header-height);
    max-width: 100vw;
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar.active {
    left: 0;
}

.close-sidebar {
    position: absolute;
    top: 25px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 20px;
    color: var(--text-light);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.close-sidebar:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.sidebar-nav {
    padding: 25px 20px;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 10px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 18px;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-light);
    transform: translateX(5px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.sidebar-nav i {
    width: 22px;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.sidebar-nav span {
    font-weight: 500;
    font-size: 0.95rem;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    backdrop-filter: blur(3px);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Asosiy Kontent - Header balandligiga mos */
.main-content {
    margin-top: var(--header-height);
    padding: 20px 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
    z-index: 1;
}

/* News Sections */
.news-section {
    padding: 40px 0;
    width: 100%;
    overflow-x: hidden;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 35px;
    position: relative;
    padding-bottom: 12px;
    width: 100%;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), #6c86d4);
    border-radius: 2px;
}

.bg-light {
    background-color: rgba(255, 255, 255, 0.05);
}

/* ✅ YANGILIKLAR HORIZONTAL SLIDER - O'NG TOMONGA SILJISH */
.news-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 20px;
    width: 100%;
}

.news-slider {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 25px;
    padding: 15px 10px;
    width: 100%;
    scroll-padding: 0 20px;
}

.news-slider::-webkit-scrollbar {
    display: none;
}

.news-slider .news-card {
    min-width: 320px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    width: 320px;
    height: 500px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

/* ✅ 16:9 MEDIA FORMAT */
.news-media {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #000000;
    width: 100%;
    cursor: pointer;
}

.news-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    display: block;
}

.news-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.news-media.landscape { aspect-ratio: 16 / 9; }
.news-media.portrait { aspect-ratio: 9 / 16; }
.news-media.landscape img,
.news-media.landscape video { object-fit: cover; }
.news-media.portrait img,
.news-media.portrait video { object-fit: contain; background: #000; }

.news-card:hover .news-media img {
    transform: scale(1.05);
}

.news-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    height: 300px;
}

/* ✅ TO'G'RILANGAN: News Content uchun qo'shimcha stillar */
.news-title {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 12px;
    line-height: 1.4;
    font-weight: 700;
    text-transform: none;
    letter-spacing: normal;
}

.news-body {
    color: #444;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    max-height: 4.8rem;
    transition: max-height 0.35s ease;
    font-weight: 400;
}

.news-body.expanded {
    max-height: 200px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.news-body.expanded::-webkit-scrollbar {
    width: 6px;
}

.news-body.expanded::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.news-body.expanded::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.news-body.expanded::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.news-body::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2rem;
    pointer-events: none;
    background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,1) 90%);
    transition: opacity 0.25s ease;
}

.news-body.expanded::after {
    opacity: 0;
}

.show-more-btn {
    background: var(--secondary-color);
    border: none;
    color: white;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 6px;
    align-self: flex-start;
    margin-top: 5px;
    transition: all 0.3s;
    font-weight: 500;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.show-more-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.news-date {
    display: block;
    font-size: 0.85rem;
    color: #777;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

/* ✅ Rasm Modali */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-content-container {
    position: relative;
    width: 90%;
    max-width: 900px;
    height: 85vh;
    margin: 50px auto;
    display: flex;
    flex-direction: column;
    background: rgba(26, 54, 93, 0.95);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-content {
    width: 100%;
    height: 70%;
    object-fit: contain;
    background: #000;
    flex-shrink: 0;
}

.modal-caption {
    padding: 20px 25px;
    flex-grow: 1;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.05);
}

.modal-caption h3 {
    color: var(--text-light);
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.modal-caption p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 1rem;
}

.modal-caption span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    display: block;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    z-index: 3001;
    transition: all 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.close-modal:hover {
    background: rgba(229, 62, 62, 0.8);
    transform: rotate(90deg);
}

.modal-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    z-index: 3002;
}

.modal-prev, .modal-next {
    pointer-events: all;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-prev:hover, .modal-next:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    transform: scale(1.1);
}

/* ✅ News Slider Buttons */
.news-prev-btn, .news-next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    opacity: 0.9;
    transition: all 0.3s;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.news-prev-btn:hover, .news-next-btn:hover {
    background: var(--primary-color);
    color: white;
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.news-prev-btn {
    left: -22px;
}

.news-next-btn {
    right: -22px;
}

/* ✅ No Data & Error Messages */
.no-data-message, .error-message {
    text-align: center;
    padding: 50px 20px;
    grid-column: 1 / -1;
    width: 100%;
    color: var(--text-light);
}

.no-data-message i, .error-message i {
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.no-data-message p, .error-message p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.error-message i {
    color: var(--error-color);
}

/* Services Section */
.services-section {
    padding: 60px 0;
    width: 100%;
    overflow-x: hidden;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 40px;
    width: 100%;
}

/* ✅ Xizmatlar kartalari - Shaffof va video fon ustida */
.service-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px 25px;
    text-align: center;
    text-decoration: none;
    color: var(--text-light);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    width: 100%;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.service-icon i {
    font-size: 28px;
    color: var(--text-light);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--text-light);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.service-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ✅ Social Embed - Responsive va To'g'ri Ishlash Uchun */
.social-section {
    padding: 60px 0;
    width: 100%;
    overflow-x: hidden;
}

.social-slider-container {
    position: relative;
    margin-top: 35px;
    width: 100%;
    overflow: hidden;
}

.social-slider {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 15px 10px;
    scroll-padding: 0 20px;
    width: 100%;
}

.social-slider::-webkit-scrollbar {
    display: none;
}

.social-card {
    min-width: 320px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    width: 320px;
    height: 500px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* ✅ Social Embed Container */
.social-embed-container {
    width: 100%;
    position: relative;
    background: #f8f9fa;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    flex-grow: 1;
    height: 450px;
}

/* Instagram */
.social-embed-container.instagram {
    background: white;
    position: relative;
}

.social-embed-container.instagram iframe {
    width: 100%;
    height: 100%;
    border: none;
    min-height: 450px;
}

.instagram-fallback {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    text-align: center;
    display: none;
}

.social-embed-container.instagram:hover .instagram-fallback {
    display: block;
}

.instagram-fallback a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #E1306C;
    text-decoration: none;
    font-weight: 500;
}

.instagram-fallback a:hover {
    text-decoration: underline;
}

/* YouTube */
.social-embed-container.youtube {
    background: #000;
}

.social-embed-container.youtube iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Telegram */
.social-embed-container.telegram {
    background: white;
}

.social-embed-container.telegram iframe {
    width: 100%;
    height: 100%;
    border: none;
    min-height: 450px;
}

/* Facebook */
.social-embed-container.facebook {
    background: white;
}

.social-embed-container.facebook iframe {
    width: 100%;
    height: 100%;
    border: none;
    min-height: 450px;
}

/* Twitter */
.social-embed-container.twitter {
    background: white;
}

.social-embed-container.twitter iframe {
    width: 100%;
    height: 100%;
    border: none;
    min-height: 300px;
}

/* Fallback design */
.social-link-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    text-align: center;
}

.social-link-fallback a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: white;
    padding: 30px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.social-link-fallback a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.social-link-fallback i {
    font-size: 48px;
    margin-bottom: 10px;
}

.social-link-fallback span {
    font-size: 18px;
    font-weight: 500;
}

.fallback-url {
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    word-break: break-all;
    text-align: center;
    max-width: 90%;
}

/* Platforma nomi */
.social-platform {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    padding: 15px 20px;
    background-color: var(--primary-color);
    color: white;
    width: 100%;
    font-weight: 500;
}

.social-platform i {
    font-size: 1.3rem;
}

/* Slider tugmalari */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    opacity: 0.9;
    transition: all 0.3s;
}

.slider-btn:hover {
    background: var(--primary-color);
    color: white;
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: -22px;
}

.next-btn {
    right: -22px;
}

@media (max-width: 768px) {
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
}

/* Footer */
.footer {
    background-color: rgba(26, 54, 93, 0.98);
    color: var(--text-light);
    padding: 50px 0 25px;
    margin-top: 60px;
    width: 100%;
    overflow-x: hidden;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text-light);
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), #6c86d4);
}

.contact-info p {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.contact-info i {
    color: var(--secondary-color);
    width: 20px;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s;
    display: block;
    padding: 6px 0;
    border-radius: 4px;
}

.footer-links a:hover {
    color: var(--text-light);
    padding-left: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 200px;
    border: none;
}

.partners {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.partner-logo {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.partner-logo:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--text-light);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    width: 100%;
}

/* ✅ Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--text-light);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ✅ Notification System */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 10px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    animation: slideIn 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.notification.info {
    background: rgba(49, 130, 206, 0.95);
}

.notification.success {
    background: rgba(56, 161, 105, 0.95);
}

.notification.warning {
    background: rgba(221, 107, 32, 0.95);
}

.notification.error {
    background: rgba(229, 62, 62, 0.95);
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.notification.fade-out {
    animation: slideOut 0.3s ease forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ✅ Fade-in Animation for Cards */
.fade-in {
    animation: fadeInUp 0.5s ease;
}

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

/* Disable text selection for buttons */
button, .btn {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Disable double-tap zoom */
* {
    touch-action: manipulation;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .header-content {
        flex-wrap: nowrap;
        gap: 15px;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .logo-text {
        font-size: 1rem;
        display: none;
    }
    
    .language-selector {
        display: none;
    }
    
    #search-input {
        width: 140px;
        padding: 8px 12px;
    }
    
    #search-input:focus {
        width: 160px;
    }
    
    #search-btn {
        padding: 8px 12px;
    }
    
    .search-results {
        width: calc(100vw - 40px);
        left: 50%;
        transform: translateX(-50%);
        max-height: calc(100vh - var(--header-height) - 30px);
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .news-slider .news-card {
        min-width: 280px;
        width: 280px;
        height: 450px;
    }
    
    .news-media {
        height: 158px;
    }
    
    .news-prev-btn, .news-next-btn {
        display: none;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .service-card {
        padding: 25px 20px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .social-card {
        min-width: 280px;
        width: 280px;
        height: 450px;
    }
    
    .social-embed-container {
        height: 380px;
    }
    
    .slider-btn {
        display: none;
    }
    
    .notification {
        left: 20px;
        right: 20px;
        min-width: auto;
        max-width: none;
        width: calc(100vw - 40px);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .modal-content-container {
        width: 95%;
        height: 80vh;
        margin: 30px auto;
    }
    
    .modal-content {
        height: 60%;
    }
}

@media (max-width: 480px) {
    .header-content {
        justify-content: flex-start;
    }
    
    .hamburger {
        order: 1;
    }
    
    .logo {
        order: 2;
        margin-left: 10px;
    }
    
    .search-container {
        order: 3;
        margin-left: auto;
    }
    
    .search-results {
        width: calc(100vw - 40px);
        left: 50%;
        transform: translateX(-50%);
        max-height: calc(100vh - var(--header-height) - 20px);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .news-slider .news-card {
        min-width: 260px;
        width: 260px;
        height: 420px;
    }
    
    .news-media {
        height: 146px;
    }
    
    .social-card {
        min-width: 260px;
        width: 260px;
        height: 420px;
    }
    
    .social-embed-container {
        height: 350px;
    }
    
    .footer {
        padding: 30px 0 20px;
    }
    
    .modal-navigation {
        padding: 0 10px;
    }
    
    .modal-prev, .modal-next {
        width: 40px;
        height: 40px;
    }
}

/* Prevent horizontal scroll */
body, html {
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
}

/* Disable pinch zoom on mobile */
@media (hover: none) and (pointer: coarse) {
    * {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    
    input, textarea {
        -webkit-user-select: text;
        -moz-user-select: text;
        -ms-user-select: text;
        user-select: text;
    }
}

/* Placeholder news card */
.placeholder-news {
    min-width: 320px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    width: 320px;
    height: 500px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}