/* Base Styles */
:root {
    --primary-color: #3c88e7;
    --primary-dark: #c0392b;
    --primary-light: #f8d7da;
    --secondary-color: #3498db;
    --secondary-dark: #2980b9;
    --secondary-light: #d6eaf8;
    --accent-color: #2ecc71;
    --accent-dark: #27ae60;
    --accent-light: #d5f5e3;
    --dark-color: #2c3e50;
    --dark-light: #34495e;
    --light-color: #ecf0f1;
    --light-dark: #bdc3c7;
    --gray-color: #95a5a6;
    --gray-dark: #7f8c8d;
    --gray-light: #f5f5f5;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #3498db;
    --font-primary: 'Poppins', sans-serif;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 20px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-primary);
    font-size: 14px;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
}

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

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--border-radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 14px;
}

.btn i {
    margin-right: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    color: white;
}

.btn-accent {
    background-color: var(--accent-color);
    color: white;
}

.btn-accent:hover {
    background-color: var(--accent-dark);
    color: white;
}

.btn-light {
    background-color: white;
    color: var(--dark-color);
    border: 1px solid var(--light-dark);
}

.btn-light:hover {
    background-color: var(--light-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: var(--shadow-sm);
}

.top-bar {
    background-color: var(--dark-color);
    color: white;
    padding: 8px 0;
}

.top-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.left-links a.active {
    color: var(--primary-color);
    font-weight: bold;
    border-bottom: 2px solid var(--primary-color);
}


.left-links a,
.right-links a {
    color: white;
    margin-right: 15px;
    font-size: 14px;
}

.left-links a:hover,
.right-links a:hover {
    color: var(--light-dark);
}

.right-links a:last-child {
    margin-right: 0;
}

.main-header {
    padding: 15px 0;
    display: flex;
    align-items: center;
}

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

.logo a {
    display: flex;
    align-items: center;
    color: var(--dark-color);
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo span {
    font-size: 24px;
    font-weight: 700;
}

.header-title h1 {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 500;
}

/* Search Section */
.search-section {
    padding: 20px 0;
    background-color: var(--light-color);
}

.search-container {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 5px;
}

.search-icon {
    padding: 0 15px;
    color: var(--gray-color);
}

#search-input {
    flex: 1;
    border: none;
    padding: 12px 15px;
    font-size: 16px;
    outline: none;
}

.location-selector {
    display: flex;
    align-items: center;
    padding: 0 15px;
    border-left: 1px solid var(--light-dark);

}

.location-selector i {
    margin-right: 10px;
    color: var(--gray-color);
}

.location-selector select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}


#location-select {
    border: none;
    background: transparent;
    padding: 12px 0;
    font-size: 16px;
    outline: none;
    color: var(--dark-color);
    cursor: pointer;
}


.search-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.search-btn:hover {
    background-color: var(--primary-dark);
}

/* Featured Banner */
.banner-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    padding: 0 16px; /* keeps space from screen edges on mobile */
}

.small-banner {
    width: 100%;
    max-width: 800px; /* good size for desktop */
    aspect-ratio: 2.5 / 1; /* taller than before for better readability */
    overflow: hidden;
    border-radius: 10px;
    background-color: var(--primary-color, #f0f0f0);
    position: relative;
}

/* Image inside banner */
.small-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Optional overlay text */
.small-banner .banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: clamp(1rem, 2.5vw, 1.8rem);
    font-weight: 600;
    text-align: center;
    padding: 0 12px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); /* light readability effect */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .banner-wrapper {
        margin: 20px 0;
    }

    .small-banner {
        aspect-ratio: 1.6 / 1; /* taller for smaller screens */
        border-radius: 8px;
    }

    .small-banner .banner-text {
        font-size: clamp(1rem, 4vw, 1.4rem);
        padding: 0 8px;
    }
}


/*!* Featured Banner *!*/
/*.banner-wrapper {*/
/*    display: flex;*/
/*    justify-content: center;*/
/*    margin: 40px 0;*/
/*}*/

/*.small-banner {*/
/*    width: 900px;*/
/*    height: 120px;*/
/*    overflow: hidden;*/
/*    border-radius: 8px;*/
/*}*/


/*.small-banner img {*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    object-fit: cover;*/
/*    display: block;*/
/*}*/

.carousel-outer {
    width: 710px; /* 3 × 200px + 2 × 10px (gaplar) */
    overflow: hidden;
    margin: 0 auto;
}

.famous-service {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.famous-service img {
    width: 230px;
    height: 200px;
    margin-right: 10px;
    flex-shrink: 0;
    border-radius: 7px;
    /*object-fit: cover;*/
}

.famous-service img:last-child {
    margin-right: 0;
}


@media (max-width: 768px) {
    .carousel-outer {
        width: 100%; /* ekran bo'yicha */
        padding: 0 10px; /* ichki bo'sh joy */
    }


    .famous-service img {
        width: 100%; /* Ekranga mos, 1ta rasm asosiy ko‘rinadi */
    }

    .famous-service img:last-child {
        margin-right: 0;
    }

}


/*.banner {*/
/*    background-color: var(--primary-color);*/
/*    border-radius: var(--border-radius-lg);*/
/*    overflow: hidden;*/
/*    box-shadow: var(--shadow-md);*/
/*}*/


.stat {
    margin-right: 30px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
}

.stat-text {
    font-size: 14px;
    opacity: 0.9;
}

/* Categories Section */
.clinic-categories-section {
    max-width: 100%;
    margin: 60px auto;
    font-family: 'Segoe UI', sans-serif;
    color: var(--primary-color);
}


.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.category-list a {
    background-color: var(--light-color);
    color: var(--primary-color);
    padding: 8px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: background-color 0.2s ease;
    font-size: 14px;
}

.category-list a:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.filter-sort {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.filter-sort label {
    font-weight: 500;
}

.filter-sort select {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid var(--light-color);
}

.filter-sort .active {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: underline;
}

.clinic-list {
    background-color: var(--light-color);
    padding: 20px;
    border: 1px dashed var(--light-color);
    border-radius: 10px;
}

.empty-message {
    color: var(--light-color);
    font-style: italic;
    margin-top: 10px;
}

.categories-section {
    padding: 50px 0;
}

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

.section-header h1 {
    display: inline;
    color: var(--primary-color);
}

.search-title {
    display: inline;
}

.section-header h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.section-header p {
    font-size: 16px;
    color: var(--gray-color);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    background-color: white;
    border-radius: var(--border-radius-lg);
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
}

.category-card.show {
    opacity: 1;
    transform: translateY(0);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.category-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 28px;
}

.category-card h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.category-card p {
    font-size: 14px;
    color: var(--gray-color);
}

.category-card.no-icon .category-icon {
    display: none;
}

.category-card.no-icon {
    align-items: center;
    text-align: center;
    height: auto; /* yoki sizga kerakli balandlik */
    padding-top: 10px;
    padding-bottom: 10px;
}


/* Featured Clinics */
.featured-clinics {
    padding: 50px 0;
    background-color: var(--gray-light);
}

.individual-medical-centers {
    padding: 50px 0;
    background-color: var(--gray-light);
}

.view-all {
    margin-top: 10px;
}

.view-all a {
    font-size: 16px;
    font-weight: 500;
}

.view-all a i {
    margin-left: 5px;
    transition: var(--transition);
}

.view-all a:hover i {
    transform: translateX(5px);
}

.clinics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}


.main-clinics-grid {
    max-width: 1200px;
    margin: 0 auto;
}

.all-news-grid {
    display: flex;
    flex-direction: column;
    gap: 30px; /* Har bir qator orasida bo'shliq */
    padding: 20px;
}

.all-news-row {
    display: flex;
    gap: 30px; /* Har bir kartochka orasida bo'shliq */
    justify-content: center;
    flex-wrap: wrap;
}

.news-grid {
    justify-items: center;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr); /* planshetlar uchun */
    }
}

@media (max-width: 640px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .section-header {
        padding: 0 16px;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .section-header p {
        font-size: 1.05rem;
    }
}

@media (max-width: 640px) {
    .section-header {
        padding: 0 12px;
    }

    .section-header h2 {
        font-size: 1.3rem;
    }

    .section-header p {
        font-size: 0.95rem;
    }
}


/*.main-clinic-contact {*/
/*    margin-top: 10px;*/
/*}*/

.main-clinic-contact strong {
    color: #333;
}


.main-clinic-description p {
    font-size: 14px;
    color: #333;
    margin: 5px 0;
}

.main-clinic-description a {
    color: #0044cc;
    text-decoration: none;
    font-size: 14px;
}


/* Pagination umumiy qismi */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
    font-family: 'Poppins', sans-serif;
}

/* Har bir tugma uchun umumiy stil */
.pagination a {
    padding: 8px 14px;
    text-decoration: none;
    border: 1px solid #ddd;
    color: #333;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    font-size: 14px;
}

/* Hover effekti */
.pagination a:hover {
    background-color: #3c88e7;
    color: #fff;
    border-color: #3c88e7;
}

/* Aktiv sahifa */
.pagination .active {
    background-color: #3c88e7;
    color: #fff;
    font-weight: bold;
    pointer-events: none;
}

/* Arrow tugmalar uchun */
.pagination-arrow {
    font-weight: bold;
    color: #666;
}

/* Responsiv qilish uchun (optional) */
@media (max-width: 480px) {
    .pagination a {
        padding: 6px 10px;
        font-size: 12px;
    }


}


.clinic-card {
    background-color: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    height: 430px;
}

.clinic-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.clinic-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: var(--border-radius-sm);
    font-size: 12px;
    font-weight: 500;
    z-index: 1;
}

.clinic-image {
    height: 200px;
    overflow: hidden;
}

.clinic-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.clinic-card:hover .clinic-image img {
    transform: scale(1.05);
}

.clinic-content {
    padding: 20px;
}


.clinic-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.clinic-specialties {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.clinic-specialties span {
    background-color: var(--light-color);
    padding: 4px 10px;
    border-radius: var(--border-radius-sm);
    font-size: 12px;
    margin-right: 8px;
    margin-bottom: 8px;
}

.clinic-location {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: var(--gray-dark);
}

.clinic-location i {
    margin-right: 8px;
    margin-top: 3px;
}

.clinic-location p {
    font-size: 14px;
}

.clinic-promo {
    background-color: var(--primary-light);
    padding: 10px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.discount {
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 5px;
}

.promo-text {
    font-size: 14px;
    color: var(--primary-dark);
}

.clinic-actions {
    display: flex;
    gap: 10px;
}

.clinic-actions .btn {
    flex: 1;
    font-size: 14px;
}

/* Special Offers */
.special-offers {
    padding: 50px 0;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.offer-card {
    background-color: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.offer-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent-color);
    color: white;
    padding: 5px 10px;
    border-radius: var(--border-radius-sm);
    font-size: 12px;
    font-weight: 500;
    z-index: 1;
}

.offer-content {
    padding: 30px;
    text-align: center;
}

.offer-content h3 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.offer-content h4 {
    font-size: 18px;
    margin-bottom: 15px;
}

.offer-content p {
    font-size: 14px;
    color: var(--gray-dark);
    margin-bottom: 20px;
}

.offer-clinic {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.offer-clinic img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
}

.offer-clinic span {
    font-weight: 500;
}

.offer-validity {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--gray-dark);
    font-size: 14px;
}

.offer-validity i {
    margin-right: 5px;
}


/* App Download */
.app-download {
    padding: 70px 0;
}

.app-content {
    display: flex;
    align-items: center;
    background-color: var(--secondary-light);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.app-text {
    flex: 1;
    padding: 40px;
}

.app-text h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.app-text p {
    font-size: 16px;
    margin-bottom: 25px;
    color: var(--dark-color);
}

.app-features {
    margin-bottom: 25px;
}

.feature {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.feature i {
    width: 30px;
    height: 30px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 14px;
}

.feature span {
    font-weight: 500;
}

.app-buttons {
    display: flex;
    gap: 15px;
}

.app-button {
    display: flex;
    align-items: center;
    background-color: var(--dark-color);
    color: white;
    padding: 10px 20px;
    border-radius: var(--border-radius-md);
    transition: var(--transition);
}

.app-button:hover {
    background-color: var(--dark-light);
    color: white;
}

.app-button i {
    font-size: 24px;
    margin-right: 10px;
}

.app-button-text span {
    display: block;
    font-size: 12px;
    opacity: 0.8;
}

.app-button-text strong {
    font-size: 16px;
}

.app-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.app-image img {
    max-height: 400px;
}

/* Newsletter */
.newsletter {
    padding: 50px 0;
    background-color: var(--gray-light);
}


.newsletter-form {
    flex: 1;
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--light-dark);
    border-radius: var(--border-radius-md) 0 0 var(--border-radius-md);
    font-size: 16px;
    outline: none;
}

.newsletter-form button {
    padding: 12px 25px;
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
    font-size: 16px;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 70px 0 20px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
    margin-right: 10px;
}

.footer-logo span {
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.footer-column p {
    margin-bottom: 20px;
    color: var(--light-dark);
    line-height: 1.7;
}

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

.social-links a {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

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

.footer-column ul li a {
    color: var(--light-dark);
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: white;
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    margin-bottom: 15px;
}

.contact-info li i {
    margin-right: 10px;
    margin-top: 5px;
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: var(--light-dark);
    font-size: 14px;
}

.footer-links a {
    color: var(--light-dark);
    margin-left: 20px;
    font-size: 14px;
}

.footer-links a:hover {
    color: white;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    color: white;
}

/* Breadcrumb */
.breadcrumb-section {
    background-color: var(--light-color);
    padding: 15px 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
}

.breadcrumb a {
    color: var(--gray-dark);
}

.breadcrumb i {
    margin: 0 10px;
    font-size: 12px;
    color: var(--gray-color);
}

.breadcrumb span {
    color: var(--primary-color);
    font-weight: 500;
}

/* Clinic Details */
.clinic-details {
    padding: 40px 0;
}

.clinic-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.news-detail {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.news-detail .detail-news-card {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 30px;
    margin: 0 auto;
    max-width: 900px;
    text-align: left;
    height: auto;
    overflow: visible;
    position: relative;
    display: block;
}

.news-detail .detail-news-card img {
    border-radius: var(--border-radius-md);
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
}

.detail-news-card-body {
    margin: 10px;
    padding-bottom: 20px;
}

.detail-news-card hr {
    width: 100%;
    margin-bottom: 30px;
    font-weight: lighter;
    color: var(--dark-light);

}

.detail-news-card-header {
    margin-bottom: 15px;
}

.detail-news-card-header p {
    margin-top: 5px;
    font-size: 15px;
    font-weight: lighter;
}

.clinic-header-left {
    display: flex;
}


.clinic-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.clinic-header-info h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.clinic-location,
.clinic-contact,
.clinic-hours {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    color: var(--gray-dark);
}


.news-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    width: 320px;
    height: 360px;
    transition: transform 0.2s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.main-clinic-description p {
    display: inline;
}

.main-clinic-description a {
    display: block;
}


.news-card:hover {
    transform: translateY(-3px);
}

.category-card.hidden {
    display: none;
}


.news-image img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 6px;
}

.news-content {
    padding-top: 10px;
}

.news-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827; /* qora */
    margin-bottom: 6px;
}

.news-meta {
    font-size: 14px;
    font-style: italic;
    color: #555;
}

.news-link {
    color: inherit; /* asosiy rangda qoladi */
    text-decoration: none;
}

.news-link:hover {
    text-decoration: underline;
}


.clinic-location i,
.clinic-contact i,
.clinic-hours i {
    margin-right: 10px;
    margin-top: 3px;
}

.clinic-contact span {
    margin-right: 20px;
}

.hours-details {
    display: flex;
    flex-direction: column;
}

.open-now {
    color: var(--success-color);
    font-weight: 500;
    margin-bottom: 5px;
}

.clinic-header-right {
    text-align: right;
}

.clinic-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.clinic-promo-badge {
    background-color: var(--primary-light);
    padding: 10px 15px;
    border-radius: var(--border-radius-md);
    display: inline-block;
}

.clinic-gallery {
    margin-bottom: 30px;
}

.gallery-main {
    height: 400px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-bottom: 15px;
}

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

.gallery-thumbnails {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 10px 0;
    max-width: 100%;
    width: 100%;
    -webkit-overflow-scrolling: touch; /* iOS uchun smooth scroll */
    scrollbar-width: none; /* Firefox uchun */
}

.gallery-thumbnails::-webkit-scrollbar {
    display: none; /* Chrome/Safari uchun scrollbarni yashirish */
}

.gallery-thumbnails img {
    max-height: 80px;
    flex-shrink: 0;
    border-radius: 6px;
    cursor: pointer;
}

.gallery-thumbnails img.active,
.gallery-thumbnails img:hover {
    opacity: 1;
    box-shadow: 0 0 0 2px var(--primary-color);
}

/* Tabs */
.clinic-tabs {
    margin-bottom: 50px;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid var(--light-dark);
    margin-bottom: 30px;
}

.tab-btn {
    padding: 15px 25px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: var(--gray-dark);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

.tab-pane {
    display: none;
}

.tab-pane h3 {
    padding-bottom: 15px;
}

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

/* Overview Tab */
.about-clinic {
    margin-bottom: 40px;
}

.about-clinic h3,
.clinic-highlights h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.about-clinic h4 {
    font-size: 18px;
    margin: 20px 0 10px;
    color: var(--dark-color);
}

.about-clinic p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.about-clinic ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.about-clinic ul li {
    margin-bottom: 10px;
}


.highlight-item {
    background-color: white;
    border-radius: var(--border-radius-md);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.highlight-item i {
    font-size: 30px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.highlight-item h4 {
    font-size: 16px;
    margin-bottom: 10px;
}

.highlight-item p {
    font-size: 14px;
    color: var(--gray-dark);
}

/* Services Tab */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: var(--border-radius-md);
    padding: 12px 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    /*height: 60px; !* card balandligini kichiklashtirildi *!*/
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 12px;
    flex-shrink: 0;
}

.service-content h4 {
    font-size: 14px;
    margin: 0;
    line-height: 1.1;
}

.speciality-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.speciality-list__letter-block {
    flex: 1 1 210px;
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.mobile-only {
    /*display: none;*/
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }
}


@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
    }


    .main-card-header img {
        margin: 5px;
    }

}


.section-title {
    margin: 30px 0 20px 0;
}


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

.doctor-card {
    display: flex;
    background-color: white;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.doctor-image {
    width: 120px;
    height: 150px;
    overflow: hidden;
}

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

.doctor-content {
    flex: 1;
    padding: 20px;
}

.doctor-content h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.doctor-specialty {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 10px;
}

.doctor-experience,
.doctor-schedule {
    font-size: 14px;
    color: var(--gray-dark);
    margin-bottom: 10px;
}

.doctor-category,
.doctor-experience {
    display: inline;
}

/* Reviews Tab */
.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.reviews-summary {
    display: flex;
    gap: 30px;
}

.overall-rating {
    text-align: center;
}

.rating-number {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    color: var(--dark-color);
}

.stars {
    margin: 10px 0;
}

.stars i {
    color: #f39c12;
}

.review-count {
    font-size: 14px;
    color: var(--gray-dark);
}

.rating-breakdown {
    flex: 1;
}

.rating-bar {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.rating-label {
    width: 60px;
    font-size: 14px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background-color: var(--light-dark);
    border-radius: 4px;
    margin: 0 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: #f39c12;
}

.rating-percent {
    width: 40px;
    font-size: 14px;
    text-align: right;
}

.reviews-list {
    margin-bottom: 30px;
}

.review-item {
    background-color: white;
    border-radius: var(--border-radius-md);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.reviewer-info {
    display: flex;
    align-items: center;
}

.reviewer-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

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

.reviewer-details h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.review-date {
    font-size: 14px;
    color: var(--gray-dark);
}

.review-content p {
    line-height: 1.7;
}

.reviews-pagination {
    display: flex;
    justify-content: center;
}

.reviews-pagination a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
    margin: 0 5px;
    transition: var(--transition);
}

.reviews-pagination a.active,
.reviews-pagination a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Location Tab */
.map-container {
    margin-bottom: 30px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.location-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.location-item {
    display: flex;
    align-items: flex-start;
}

.location-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 5px;
}

.location-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.location-item p {
    font-size: 14px;
    color: var(--gray-dark);
    line-height: 1.7;
}

/* Appointment Booking */
.appointment-booking {
    background-color: var(--light-color);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    margin-bottom: 50px;
}

.appointment-booking h2 {
    text-align: center;
    margin-bottom: 30px;
}

.booking-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.booking-form {
    background-color: white;
    border-radius: var(--border-radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}


.clinic-header,
.clinic-gallery,
.tabs-container,
.tab-content {
    margin-bottom: 40px;
}

/*Clinic detail tab style*/
.tabs-container,
.tab-content {
    display: none;
}

@media (max-width: 768px) {
    .tabs-container {
        display: flex;
        overflow-x: auto;
        border-bottom: 2px solid #ccc;
        margin-bottom: 20px;
    }

    .tab-content {
        display: none;
    }

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

@media (min-width: 769px) {
    .tab-content {
        display: block !important;
    }

    .tabs-container {
        display: none !important;
    }
}

section + section,
.tab-content + .tab-content {
    margin-top: 40px;
}

/* Qo‘shimcha tab styling mobil uchun */
.tab-button {
    flex: 0 0 auto;
    padding: 12px 16px;
    border: none;
    background: none;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-button.active {
    color: #007BFF;
    border-color: #007BFF;
}

.share-link {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    text-decoration: none;
    color: inherit;
}

.share-link i {
    font-size: 20px;
}

.d-map-mobile {
    display: none;
}

.d-map-desktop {
    display: block;
}

@media (max-width: 768px) {
    .d-map-mobile {
        display: block;
    }

    .d-map-desktop {
        display: none;
    }
}

@media (max-width: 768px) {
    #map {
        display: none !important;
    }

    #map-mobile-container {
        display: none;
    }

    #map-mobile-container.active {
        display: block;
    }
}

@media (min-width: 769px) {
    #map-mobile-container {
        display: none !important;
    }
}


/* Doctor info section */
.doctor-info-section {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.doctor-photo-container {
    flex: 0 0 200px;
}

.doctor-photo {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.doctor-details {
    flex: 1;
}

.doctor-name {
    font-size: 22px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 10px;
}

.doctor-specializations {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.doctor-specialization {
    color: #2563eb;
    cursor: pointer;
}

.doctor-specialization:hover {
    text-decoration: underline;
}

.doctor-category,
.doctor-experience,
.doctor-clinic,
.doctor-address,
.doctor-landmark,
.doctor-phone-container {
    margin: 5px 0;
}

.doctor-clinic-link,
.doctor-phone {
    color: #2563eb;
    text-decoration: none;
}

.doctor-clinic-link:hover,
.doctor-phone:hover {
    text-decoration: underline;
}

.doctor-pin {
    color: #2563eb;
    margin-right: 5px;
}

.doctor-add-review-btn {
    margin-top: 15px;
    background-color: #e6f0ff;
    color: #2563eb;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.doctor-add-review-btn:hover {
    background-color: #d1e3ff;
}

/* Prices section */
.doctor-prices-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.doctor-section-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.doctor-price-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.doctor-price-item {
    display: flex;
    justify-content: space-between;
}

.doctor-price {
    color: #ef4444;
}

/* Working hours */
.doctor-hours-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.doctor-clock {
    color: #ef4444;
    margin-right: 8px;
}

.doctor-schedule {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.doctor-workday {
    margin: 0;
}

/* Appointment section */
.doctor-appointment-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.doctor-appointment-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

/* PAGINATION */
.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination a {
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    color: #333;
    transition: all 0.3s ease;
}

.pagination .page-number {
    background-color: #f5f5f5;
}

.pagination .page-number:hover {
    background-color: #e0e0e0;
}

.pagination .page-number.active {
    background-color: #007bff;
    color: white;
}

.pagination .pagination-arrow {
    font-weight: bold;
}

.pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
    padding: 8px 12px;
}


/* Responsive styles */
@media (max-width: 768px) {
    .doctor-info-section {
        flex-direction: column;
    }

    .doctor-photo-container {
        flex: 0 0 auto;
        max-width: 200px;
        margin: 0 auto;
    }

}

.clinic-categories-section-v2 {
    max-width: 100%;
    margin: 40px auto;
    padding: 20px;
    font-family: 'Segoe UI', sans-serif;
    color: var(--primary-color);
}

.clinic-categories-section-v2 h2 {
    font-size: 28px;
    margin-bottom: 20px;
    display: inline-block;
    padding-bottom: 5px;
    color: var(--dark-color);
}

.clinic-record {
    width: 33.33%;
    margin-left: 0;
    margin-bottom: 20px;
}


.category-list-v2 {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.searched-query {
    color: var(--primary-color);
!important;
    font-style: italic
}

.category-list-v2 a {
    background-color: #f0f8ff;
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    transition: background-color 0.2s ease;
    font-size: 14px;
}

.category-list-v2 a:hover {
    background-color: var(--primary-color);
    color: white;
}


/* Responsive Styles */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .clinics-grid,
    .offers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }

    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }

    .location-details {
        grid-template-columns: 1fr;
    }
}

.map {
    width: 400px;
    height: 300px;
}

#recordPhoneNumber {
    padding-left: 55px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }

    .map {
        width: 100%;
    }

    .main-header .container {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        margin-bottom: 15px;
    }

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

    .search-container {
        flex-direction: column;
    }

    .search-icon {
        display: none;
    }

    #search-input {
        width: 100%;
        border-bottom: 1px solid var(--light-dark);
    }

    .location-selector {
        width: 100%;
        border-left: none;
        padding: 10px 15px;
    }

    .search-btn {
        width: 100%;
        border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .clinics-grid,
    .offers-grid {
        grid-template-columns: 1fr;
    }

    .clinic-header {
        flex-direction: column;
    }

    .clinic-header-left {
        margin-bottom: 20px;
    }

    .clinic-header-right {
        text-align: left;
        max-width: 100%;
    }

    .tabs-header {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
    }

    .tab-btn {
        padding: 10px 15px;
    }

    .services-grid,
    .doctors-grid {
        grid-template-columns: 1fr;
    }

    .reviews-header {
        flex-direction: column;
        align-items: center;
    }

    .reviews-summary {
        flex-direction: column;
        margin-bottom: 20px;
    }

    .form-row {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 75%;
    }

    .top-links {
        flex-direction: column;
        align-items: flex-start;
    }

    .right-links {
        margin-top: 10px;
    }

    .clinic-record {
        width: 100%;
        margin: 0 auto;
        text-align: center;
    }


    .stat {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }


    .app-buttons {
        flex-direction: column;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .copyright {
        margin-bottom: 15px;
    }

    .footer-links a {
        margin: 0 10px;
    }

    .clinic-header-left {
        flex-direction: column;
    }


    .clinic-header-info {
        text-align: center;
    }

    .clinic-actions {
        flex-direction: column;
    }

    .service-card {
        flex-direction: column;
        text-align: center;
    }

    .service-icon {
        margin: 0 auto 15px;
    }

    .doctor-card {
        flex-direction: column;
    }

    .doctor-image {
        width: 100%;
        height: 200px;
    }
}

/* Additional styles for About Us page */
.about-hero {
    padding: 60px 0;
    background-color: var(--light-color);
}

.about-hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-hero-text {
    flex: 1;
}

.about-hero-text h1 {
    font-size: 36px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.subtitle {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 500;
}

.about-stats {
    display: flex;
    flex-wrap: wrap;
    margin-top: 30px;
    gap: 20px;
}

.stat-item {
    flex: 1;
    min-width: 120px;
    text-align: center;
    background-color: white;
    padding: 20px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.about-hero-image {
    flex: 1;
}

.about-hero-image img {
    width: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.our-story {
    padding: 80px 0;
}

.story-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.story-image {
    flex: 1;
}

.story-image img {
    width: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.story-text {
    flex: 1;
}

.story-text h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.story-text p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.founder-quote {
    margin-top: 30px;
    padding: 20px;
    background-color: var(--light-color);
    border-radius: var(--border-radius-md);
    position: relative;
}

.quote-icon {
    color: var(--primary-light);
    font-size: 30px;
    margin-bottom: 10px;
}

blockquote {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.7;
}

.quote-author {
    display: flex;
    align-items: center;
}

.quote-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.quote-author h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.quote-author p {
    font-size: 14px;
    color: var(--gray-color);
    margin-bottom: 0;
}

.our-mission {
    padding: 80px 0;
    background-color: var(--light-color);
}

.mission-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.mission-text {
    flex: 1;
}

.mission-text h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--dark-color);
}

.mission-item {
    display: flex;
    margin-bottom: 30px;
}

.mission-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 20px;
    flex-shrink: 0;
}

.mission-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.values-list {
    list-style: none;
    padding: 0;
}

.values-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: baseline;
}

.values-list li:before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.mission-image {
    flex: 1;
}

.mission-image img {
    width: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.our-team {
    padding: 80px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-member {
    background-color: white;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.member-image {
    height: 220px;
    overflow: hidden;
}

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

.member-info {
    padding: 20px;
    text-align: center;
}

.member-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.member-role {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 10px;
}

.member-bio {
    font-size: 14px;
    color: var(--gray-dark);
    margin-bottom: 5px;
    line-height: 1.6;
}

.member-social {
    display: flex;
    justify-content: center;
    gap: 10px;
}


.member-social a:hover {
    background-color: var(--primary-color);
    color: white;
}

.how-it-works {
    padding: 80px 0;
    background-color: var(--light-color);
}

.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 50px 0;
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.step-number {
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 15px;
}

.step-icon {
    width: 80px;
    height: 80px;
    background-color: white;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-md);
}

.step h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.step p {
    font-size: 14px;
    color: var(--gray-dark);
    max-width: 200px;
    margin: 0 auto;
}

.step-connector {
    flex: 0.5;
    height: 2px;
    background-color: var(--light-dark);
    position: relative;
    z-index: 0;
}

.cta-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.partners {
    padding: 80px 0;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.partner-logo:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.partner-logo img {
    max-width: 100%;
    max-height: 60px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.partner-logo:hover img {
    filter: grayscale(0);
    opacity: 1;
}

.contact-cta {
    padding: 60px 0;
    background-color: var(--primary-color);
    color: white;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.cta-content p {
    margin-bottom: 30px;
    font-size: 18px;
    opacity: 0.9;
}

/* Contact Page Styles */
.contact-hero {
    padding: 60px 0;
    background-color: var(--light-color);
    text-align: center;
}

.contact-hero h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.contact-info-section {
    padding: 60px 0;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.contact-info-card {
    background-color: white;
    border-radius: var(--border-radius-md);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
}

.contact-info-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.contact-info-card p {
    color: var(--gray-dark);
    margin-bottom: 5px;
}

.btn-sm {
    padding: 8px 15px;
    font-size: 14px;
    margin-top: 10px;
}

.contact-form-section {
    padding: 60px 0;
    background-color: var(--light-color);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form {
    background-color: white;
    border-radius: var(--border-radius-md);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.contact-form h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.contact-form p {
    color: var(--gray-dark);
    margin-bottom: 30px;
}

.contact-map h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.map-container {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.article-section {
    padding: 80px 0;
}

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

.article-item {
    margin-bottom: 20px;
    border: 1px solid var(--light-dark);
    border-radius: var(--border-radius-md);
    position: relative;
}

.article-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}


.article-title {
    padding: 20px;
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.article-title h2 {
    font-size: 18px;
    margin: 0;
    color: var(--dark-light);
}

.article-description {
    padding: 0 20px;
    overflow: hidden;
    margin-bottom: 15px;
}


.article-description p {
    margin: 0;
    line-height: 1.7;
    color: var(--dark-light);
}


/* Health Articles Styles */
.health-articles {
    padding: 50px 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.article-card {
    background-color: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.article-image {
    height: 200px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 20px;
}

.article-category {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: var(--border-radius-sm);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 10px;
}

.article-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-content p {
    font-size: 14px;
    color: var(--gray-dark);
    margin-bottom: 15px;
    line-height: 1.6;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--gray-color);
    margin-bottom: 15px;
}

.article-meta span i {
    margin-right: 5px;
}

.read-more {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.read-more i {
    margin-left: 5px;
    transition: var(--transition);
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Responsive styles for new pages */
@media (max-width: 992px) {
    .about-hero-content,
    .story-content,
    .mission-content {
        flex-direction: column;
    }

    .about-hero-text,
    .story-text,
    .mission-text {
        order: 1;
    }

    .about-hero-image,
    .story-image,
    .mission-image {
        order: 0;
        margin-bottom: 30px;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .steps-container {
        flex-direction: column;
        gap: 30px;
    }

    .step-connector {
        width: 2px;
        height: 30px;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .about-stats {
        flex-direction: column;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
    }
}


/*@media (max-width: 768px) {*/
/*    .small-banner {*/
/*        width: 100%;*/
/*        height: auto; !* avtomatik balandlik *!*/
/*    }*/

/*    .small-banner img {*/
/*        width: 100%;*/
/*        height: auto; !* rasm nisbatini saqlaydi *!*/
/*        object-fit: cover;*/
/*    }*/
/*}*/

/* Place the filter in the top‑left of the container */
.featured-clinics .container {
    position: relative;
}

.news-filter {
    position: absolute;
    top: 4rem;
    left: 1rem;
    z-index: 10;
}

/* The dropdown wrapper card */
.news-filter form {
    background: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

/* Modern select styling */
.news-filter select {
    border: none;
    appearance: none;
    -webkit-appearance: none;
    padding: 0.5rem 2.5rem 0.5rem 0.75rem;
    font-size: 0.95rem;
    line-height: 1.3;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='7' viewBox='0 0 10 7' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 7 5-7z' fill='%23666'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 0.65rem auto;
    cursor: pointer;
}

/* Underline hover effect */
.news-filter select:hover {
    background-color: #f8f9fa;
}

/* Focus state with subtle glow */
.news-filter select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

/* Label (optional) */
.news-filter label {
    margin-right: 0.5rem;
    font-size: 0.95rem;
    color: #333;
}

.news-views {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem; /* adjust text size */
    color: #555; /* adjust color */
}

.news-views .views-icon {
    display: block;
    width: 1rem; /* ~16px */
    height: auto;
    margin-right: 0.25rem; /* space between icon & number */
}

.news-views .views-count {
    line-height: 1;
}

/* Main page text */