/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: #fff;
}

/* CSS Variables for Themes */
:root {
    /* Women's Health Theme - Light Pink */
    --womens-primary: #ff6b9d;
    --womens-secondary: #ffb3d1;
    --womens-light: #ffeef5;
    --womens-gradient: linear-gradient(135deg, #ff6b9d, #ff8fab);
    --womens-shadow: 0 10px 30px rgba(255, 107, 157, 0.3);
    
    /* General Medicine Theme - Light Blue */
    --general-primary: #4fb3d9;
    --general-secondary: #87ceeb;
    --general-light: #e8f4fd;
    --general-gradient: linear-gradient(135deg, #4fb3d9, #6ec1e4);
    --general-shadow: 0 10px 30px rgba(79, 179, 217, 0.3);
    
    /* Neutral Colors */
    --white: #ffffff;
    --light-gray: #f8fafc;
    --gray: #64748b;
    --dark-gray: #1e293b;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Theme Classes */
body.womens-theme {
    --current-primary: var(--womens-primary);
    --current-secondary: var(--womens-secondary);
    --current-light: var(--womens-light);
    --current-gradient: var(--womens-gradient);
    --current-shadow: var(--womens-shadow);
    --current-primary-rgb: 255, 107, 157;
}

body.general-theme {
    --current-primary: var(--general-primary);
    --current-secondary: var(--general-secondary);
    --current-light: var(--general-light);
    --current-gradient: var(--general-gradient);
    --current-shadow: var(--general-shadow);
    --current-primary-rgb: 79, 179, 217;
}

body.neutral-theme {
    --current-primary: #6366f1;
    --current-secondary: #a5b4fc;
    --current-light: #f0f4ff;
    --current-gradient: linear-gradient(135deg, #6366f1, #8b5cf6);
    --current-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    --current-primary-rgb: 99, 102, 241;
}

/* Neutral theme logo visibility */
body.neutral-theme .logo-base {
    opacity: 1;
    position: static;
}

body.neutral-theme .logo-womens {
    opacity: 0;
    position: absolute;
}

body.neutral-theme .logo-general {
    opacity: 0;
    position: absolute;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    gap: 2rem;
    height: 100%;
    max-width: 100%;
}

/* Logo Section */
.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 280px;
    flex-shrink: 0;
}

.clinic-logo {
    
    width: 250px;
    max-width: 250px;
    flex-shrink: 0;
    transition: var(--transition);
}

/* Base logo - visible on clinic selection screen */
.logo-base {
    opacity: 1;
    position: static;
}

.logo-womens {
    opacity: 0;
    position: absolute;
}

.logo-general {
    opacity: 0;
    position: absolute;
}

/* When Women's theme is active */
body.womens-theme .logo-base {
    opacity: 0;
    position: absolute;
}

body.womens-theme .logo-womens {
    opacity: 1;
    position: static;
}

body.womens-theme .logo-general {
    opacity: 0;
    position: absolute;
}

/* When General theme is active */
body.general-theme .logo-base {
    opacity: 0;
    position: absolute;
}

body.general-theme .logo-womens {
    opacity: 0;
    position: absolute;
}

body.general-theme .logo-general {
    opacity: 1;
    position: static;
}

.clinic-info {
    display: flex;
    flex-direction: column;
    min-width: 20px;
}

.clinic-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.2rem;
    white-space: nowrap;
}

.current-clinic {
    font-size: 0.9rem;
    color: var(--gray);
    transition: var(--transition);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 1.2em;
}

/* Clinic Toggle */
.clinic-toggle {
    display: flex;
    background: var(--light-gray);
    border-radius: 50px;
    padding: 0.3rem;
    gap: 0.3rem;
    flex-shrink: 0;
}

.toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 50px;
    background: transparent;
    color: var(--gray);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.85rem;
    white-space: nowrap;
    min-width: 120px;
    justify-content: center;
}

.toggle-btn:hover {
    background: rgba(255, 255, 255, 0.8);
    color: var(--dark-gray);
}

.toggle-btn.active {
    background: var(--current-gradient, #6366f1);
    color: var(--white);
    box-shadow: var(--current-shadow, var(--shadow));
    transform: translateY(-1px);
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-shrink: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--current-primary, #6366f1);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--current-gradient, #6366f1);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--dark-gray);
    border-radius: 2px;
    transition: var(--transition);
}

/* Home Section */
.home-section {
    min-height: 100vh;
    padding-top: 80px;
    position: relative;
}

/* Clinic Selection Screen */
.clinic-selection-screen {
    display: none;
    min-height: calc(100vh - 80px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4rem 0;
}

.clinic-selection-screen.active {
    display: block;
}

.welcome-content {
    text-align: center;
    margin-bottom: 4rem;
}

.welcome-content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.welcome-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.welcome-content h2 {
    font-size: 2rem;
    font-weight: 600;
    color: white;
}

/* Welcome Logo Styles */
.welcome-logo {
    margin-bottom: 2rem;
    text-align: center;
    padding: 1rem 0;
}

.main-logo {
    height: 120px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Hero Logo Styles */
.hero-logo {
    margin-bottom: 2rem;
    text-align: center;
    padding: 1rem 0;
}

.clinic-hero-logo {
    height: 100px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
}

/* Clinics Grid */
.clinics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.clinic-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: left;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.clinic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: var(--transition);
}

.womens-card::before {
    background: var(--womens-gradient);
}

.general-card::before {
    background: var(--general-gradient);
}

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

.clinic-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.womens-card .clinic-icon {
    background: var(--womens-gradient);
}

.general-card .clinic-icon {
    background: var(--general-gradient);
}

.clinic-card h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Adjust spacing when clinic name is removed */
.clinic-card .clinic-icon + .specialties-list {
    margin-top: 1rem;
}

/* Specialties List */
.specialties-list {
    margin-bottom: 1.5rem;
}

.specialties-list h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.womens-card .specialties-list h4 {
    color: var(--womens-primary);
}

.general-card .specialties-list h4 {
    color: var(--general-primary);
}

.specialties-list ul {
    list-style: none;
    padding: 0;
}

.specialties-list li {
    padding: 0.4rem 0;
    color: var(--gray);
    position: relative;
    padding-left: 1.2rem;
    font-size: 0.95rem;
}

.specialties-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2rem;
}

.womens-card .specialties-list li::before {
    color: var(--womens-primary);
}

.general-card .specialties-list li::before {
    color: var(--general-primary);
}

/* Doctor Info */
.doctor-info {
    background: var(--light-gray);
    padding: 1.2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.doctor-info h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.8rem;
}

.credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.credentials span {
    background: white;
    color: var(--gray);
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.womens-card .credentials span {
    border-color: var(--womens-secondary);
    color: var(--womens-primary);
}

.general-card .credentials span {
    border-color: var(--general-secondary);
    color: var(--general-primary);
}

.select-btn {
    width: 100%;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: white;
}

.womens-btn {
    background: var(--womens-gradient);
    box-shadow: var(--womens-shadow);
}

.general-btn {
    background: var(--general-gradient);
    box-shadow: var(--general-shadow);
}

.select-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Clinic Features */
.clinic-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    background: rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.feature i {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.feature h4 {
    font-size: 1.2rem;
    color: white;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Clinic Views */
.clinic-view {
    display: none;
    min-height: calc(100vh - 80px);
    background: var(--current-gradient, linear-gradient(135deg, #6366f1, #8b5cf6));
    padding: 4rem 0;
    transition: var(--transition);
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Background Images for Different Clinic Views */
.womens-clinic-view {
    background-image: 
        linear-gradient(135deg, rgba(255, 107, 157, 0.5) 0%, rgba(255, 179, 209, 0.5) 100%),
        url('femaleclinic/WhatsApp\ Image\ 2025-07-09\ at\ 10.48.50\ AM.jpeg');
}

.general-clinic-view {
    background-image: 
        linear-gradient(135deg, rgba(79, 179, 217, 0.5) 0%, rgba(135, 206, 235, 0.5) 100%),
        url('maleclinic/WhatsApp\ Image\ 2025-07-09\ at\ 10.48.53\ AM.jpeg');
}


.clinic-view.active {
    display: block;
}

/* Background overlay animation */
.clinic-view::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.02);
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: backgroundFloat 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes backgroundFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) scale(1.05);
        opacity: 0.5;
    }
}

/* Ensure content is above the overlay */
.clinic-view .container {
    position: relative;
    z-index: 2;
}

.clinic-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 60vh;
    position: relative;
    z-index: 10;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 0, 0, 0.3);
}

.hero-content h2 {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
    font-weight: 400;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* Doctor Highlight */
.doctor-highlight {
    margin-bottom: 2rem;
}

.doctor-badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 1.2rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.doctor-badge i {
    font-size: 2rem;
    color: white;
    opacity: 0.9;
}

.doctor-badge div strong {
    display: block;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.doctor-badge div span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn.primary {
    background: white;
    color: var(--current-primary, #6366f1);
}

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

.btn.secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn.secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.image-placeholder:hover {
    transform: scale(1.05);
}

/* Carousel Styles */
.clinic-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.carousel-slide.prev {
    transform: translateX(-100%);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.carousel-slide:hover img {
    transform: scale(1.02);
}

/* Carousel Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    z-index: 15;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 30px;
}

.carousel-next {
    right: 30px;
}

/* Carousel Dots */
.carousel-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 15;
}

.carousel-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.carousel-dot.active {
    background: white;
    border-color: white;
    transform: scale(1.3);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

/* Theme-specific carousel styling */
.womens-carousel .carousel-btn:hover {
    background: rgba(255, 107, 157, 0.6);
    border-color: rgba(255, 107, 157, 0.8);
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.4);
}

.womens-carousel .carousel-dot.active {
    background: var(--womens-primary);
    border-color: var(--womens-primary);
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.7);
}

.general-carousel .carousel-btn:hover {
    background: rgba(79, 179, 217, 0.6);
    border-color: rgba(79, 179, 217, 0.8);
    box-shadow: 0 0 20px rgba(79, 179, 217, 0.4);
}

.general-carousel .carousel-dot.active {
    background: var(--general-primary);
    border-color: var(--general-primary);
    box-shadow: 0 0 20px rgba(79, 179, 217, 0.7);
}

/* Auto-slide animation */
@keyframes autoSlide {
    0% { transform: translateX(0); }
    20% { transform: translateX(0); }
    25% { transform: translateX(-100%); }
    45% { transform: translateX(-100%); }
    50% { transform: translateX(-200%); }
    70% { transform: translateX(-200%); }
    75% { transform: translateX(-300%); }
    95% { transform: translateX(-300%); }
    100% { transform: translateX(-400%); }
}

/* Responsive carousel styles */
@media (max-width: 768px) {
    .carousel-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .carousel-prev {
        left: 20px;
    }
    
    .carousel-next {
        right: 20px;
    }
    
    .carousel-dots {
        bottom: 30px;
        gap: 10px;
    }
    
    .carousel-dot {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 480px) {
    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .carousel-prev {
        left: 15px;
    }
    
    .carousel-next {
        right: 15px;
    }
    
    .carousel-dots {
        bottom: 25px;
        gap: 8px;
    }
    
    .carousel-dot {
        width: 10px;
        height: 10px;
        border-width: 1px;
    }
}

/* About Section */
.about-section {
    padding: 6rem 0;
    background: var(--light-gray);
    scroll-margin-top: 80px;
    position: relative;
}

.about-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.about-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--current-gradient, #6366f1);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* About Grid Layout */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 4rem;
}

.about-text {
    space-y: 3rem;
}

/* About Intro */
.about-intro {
    margin-bottom: 3rem;
}

.about-intro h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.about-intro p {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.7;
}

/* Clinic Specialties */
.clinic-specialties {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.specialty-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.specialty-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.specialty-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.womens-specialty {
    background: var(--womens-gradient);
}

.general-specialty {
    background: var(--general-gradient);
}

.specialty-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.specialty-content p {
    color: var(--gray);
    line-height: 1.6;
}

/* Enhanced styling when specialty heading is removed */
.specialty-content p:first-child {
    margin-top: 0;
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--dark-gray);
}

/* About Stats */
.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.stat-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--current-gradient, #6366f1);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--current-primary, #6366f1);
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Values Section */
.values-section {
    margin-top: 4rem;
}

.values-section h3 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--dark-gray);
    text-align: center;
    margin-bottom: 3rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.value-item i {
    font-size: 2.5rem;
    color: var(--current-primary, #6366f1);
    margin-bottom: 1rem;
}

.value-item h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.8rem;
}

.value-item p {
    color: var(--gray);
    line-height: 1.6;
}

/* Doctors Collaboration Section */
.doctors-collaboration {
    margin: 40px 0;
    padding: 40px 0;
    border-top: 2px solid #e9ecef;
    border-bottom: 2px solid #e9ecef;
}

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

.collaboration-text h3 {
    color: var(--dark-gray);
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 600;
}

.collaboration-text p {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.collaboration-features {
    margin-top: 25px;
}

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

.feature-point i {
    color: var(--current-primary, #6366f1);
    font-size: 1.2rem;
    margin-right: 15px;
    min-width: 24px;
}

.feature-point span {
    color: var(--dark-gray);
    font-weight: 500;
}

.collaboration-image {
    text-align: center;
    position: relative;
}

.doctors-photo {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.doctors-photo:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.image-caption {
    margin-top: 15px;
    text-align: center;
}

.image-caption p {
    color: var(--dark-gray);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.image-caption span {
    color: var(--gray);
    font-style: italic;
    font-size: 0.95rem;
}

/* Responsive Design for Doctors Collaboration */
@media (max-width: 768px) {
    .collaboration-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .collaboration-text {
        order: 2;
    }
    
    .collaboration-image {
        order: 1;
    }
    
    .doctors-photo {
        max-width: 300px;
    }
    
    .feature-point {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .doctors-collaboration {
        margin: 20px 0;
        padding: 30px 0;
    }
    
    .collaboration-text h3 {
        font-size: 1.5rem;
    }
    
    .collaboration-text p {
        font-size: 1rem;
    }
    
    .doctors-photo {
        max-width: 250px;
    }
}

/* Doctor Layout */
.doctor-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 3rem;
}

.doctor-info {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.doctor-details {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--light-gray);
}

.doctor-details h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.doctor-title {
    font-size: 1.3rem;
    color: var(--current-primary, #6366f1);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.doctor-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.doctor-credentials span {
    background: var(--current-light, #f0f4ff);
    color: var(--current-primary, #6366f1);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid var(--current-secondary, #a5b4fc);
    transition: var(--transition);
}

.doctor-credentials span:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.doctor-bio {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 15px;
}

.doctor-bio p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.doctor-bio p:last-child {
    margin-bottom: 0;
}

/* Doctor Image Container */
.doctor-image-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 2rem;
    height: 100%;
    min-height: 500px;
    position: sticky;
    top: 100px;
}

.doctor-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: var(--current-gradient, linear-gradient(135deg, #6366f1, #8b5cf6));
    color: white;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
}

.doctor-image-placeholder:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.doctor-image-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.doctor-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    transition: var(--transition);
}

.doctor-image-placeholder:hover .doctor-photo {
    transform: scale(1.1);
}

.doctor-image-placeholder p {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    color: var(--dark-gray);
    text-align: center;
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* Services Overview */
.services-overview h4 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-category {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.service-category h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--current-primary, #6366f1);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--current-light, #f0f4ff);
}

.service-category ul {
    list-style: none;
    padding: 0;
}

.service-category li {
    padding: 0.4rem 0;
    color: var(--gray);
    position: relative;
    padding-left: 1.2rem;
    line-height: 1.5;
}

.service-category li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--current-primary, #6366f1);
    font-weight: bold;
}

/* Clinic Highlights */
.clinic-highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.highlight-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--current-gradient, #6366f1);
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.highlight-card i {
    font-size: 2.2rem;
    color: var(--current-primary, #6366f1);
    margin-bottom: 1rem;
}

.highlight-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.8rem;
}

.highlight-card p {
    color: var(--gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Services Section */
.services-section {
    padding: 6rem 0;
    background: var(--light-gray);
    scroll-margin-top: 80px;
    position: relative;
}

.services-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.services-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    align-items: start;
}

/* Service Tiles */
.service-tile {
    position: relative;
    width: 100%;
    height: 350px;
    perspective: 1000px;
    cursor: pointer;
    transform-style: preserve-3d;
    margin: 0;
    padding: 0;
}

.service-front,
.service-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform-origin: center center;
}

.service-front {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    overflow: hidden;
    transform: rotateY(0deg);
    z-index: 2;
}

.service-back {
    background: white;
    transform: rotateY(180deg);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.service-tile:hover .service-front {
    transform: rotateY(-180deg);
}

.service-tile:hover .service-back {
    transform: rotateY(0deg);
}

/* Service Front Overlay */
.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 2rem;
    transition: var(--transition);
}

.service-tile:hover .service-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
}

.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.service-tile:hover .service-icon {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

.service-overlay h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.service-overlay p {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Service Back Details */
.service-details {
    text-align: center;
    width: 100%;
}

.service-details h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--current-primary, #6366f1);
    margin-bottom: 1.5rem;
    text-align: center;
}

.service-details ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.service-details li {
    padding: 0.6rem 0;
    color: var(--gray);
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.5;
    font-size: 0.95rem;
    text-align: left;
}

.service-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--current-primary, #6366f1);
    font-weight: bold;
    font-size: 1rem;
}

.service-cta {
    background: var(--current-light, #f0f4ff);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    margin-top: auto;
}

.service-cta span {
    color: var(--current-primary, #6366f1);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Service Background Images */
.womens-service .service-front {
    background-image: linear-gradient(135deg, rgba(255, 107, 157, 0.8), rgba(255, 179, 209, 0.6)), 
                      url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><defs><pattern id="womens-pattern" patternUnits="userSpaceOnUse" width="40" height="40"><circle cx="20" cy="20" r="2" fill="%23ff6b9d" opacity="0.3"/></pattern></defs><rect width="400" height="300" fill="%23ffeef5"/><rect width="400" height="300" fill="url(%23womens-pattern)"/></svg>');
}

.general-service .service-front {
    background-image: linear-gradient(135deg, rgba(79, 179, 217, 0.8), rgba(135, 206, 235, 0.6)), 
                      url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><defs><pattern id="general-pattern" patternUnits="userSpaceOnUse" width="40" height="40"><circle cx="20" cy="20" r="2" fill="%234fb3d9" opacity="0.3"/></pattern></defs><rect width="400" height="300" fill="%23e8f4fd"/><rect width="400" height="300" fill="url(%23general-pattern)"/></svg>');
}

.emergency-service .service-front {
    background-image: linear-gradient(135deg, rgba(239, 68, 68, 0.8), rgba(248, 113, 113, 0.6)), 
                      url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><defs><pattern id="emergency-pattern" patternUnits="userSpaceOnUse" width="30" height="30"><path d="M15 5 L20 15 L15 25 L10 15 Z" fill="%23ef4444" opacity="0.2"/></pattern></defs><rect width="400" height="300" fill="%23fef2f2"/><rect width="400" height="300" fill="url(%23emergency-pattern)"/></svg>');
}

.diagnostic-service .service-front {
    background-image: linear-gradient(135deg, rgba(16, 185, 129, 0.8), rgba(52, 211, 153, 0.6)), 
                      url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><defs><pattern id="diagnostic-pattern" patternUnits="userSpaceOnUse" width="35" height="35"><rect x="15" y="15" width="5" height="5" fill="%2310b981" opacity="0.3"/></pattern></defs><rect width="400" height="300" fill="%23ecfdf5"/><rect width="400" height="300" fill="url(%23diagnostic-pattern)"/></svg>');
}

.obstetrics-service .service-front {
    background-image: linear-gradient(135deg, rgba(236, 72, 153, 0.8), rgba(244, 114, 182, 0.6)), 
                      url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><defs><pattern id="obstetrics-pattern" patternUnits="userSpaceOnUse" width="50" height="50"><circle cx="25" cy="25" r="8" fill="none" stroke="%23ec4899" stroke-width="2" opacity="0.3"/></pattern></defs><rect width="400" height="300" fill="%23fdf2f8"/><rect width="400" height="300" fill="url(%23obstetrics-pattern)"/></svg>');
}

.gynecology-service .service-front {
    background-image: linear-gradient(135deg, rgba(168, 85, 247, 0.8), rgba(196, 181, 253, 0.6)), 
                      url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><defs><pattern id="gynecology-pattern" patternUnits="userSpaceOnUse" width="45" height="45"><path d="M22.5 10 Q30 22.5 22.5 35 Q15 22.5 22.5 10" fill="%23a855f7" opacity="0.3"/></pattern></defs><rect width="400" height="300" fill="%23faf5ff"/><rect width="400" height="300" fill="url(%23gynecology-pattern)"/></svg>');
}

.surgery-service .service-front {
    background-image: linear-gradient(135deg, rgba(59, 130, 246, 0.8), rgba(147, 197, 253, 0.6)), 
                      url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><defs><pattern id="surgery-pattern" patternUnits="userSpaceOnUse" width="40" height="40"><path d="M20 8 L32 20 L20 32 L8 20 Z" fill="none" stroke="%233b82f6" stroke-width="2" opacity="0.3"/></pattern></defs><rect width="400" height="300" fill="%23eff6ff"/><rect width="400" height="300" fill="url(%23surgery-pattern)"/></svg>');
}

.womens-general-service .service-front {
    background-image: linear-gradient(135deg, rgba(245, 101, 101, 0.8), rgba(252, 165, 165, 0.6)), 
                      url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><defs><pattern id="womens-general-pattern" patternUnits="userSpaceOnUse" width="35" height="35"><path d="M17.5 10 Q22.5 17.5 17.5 25 Q12.5 17.5 17.5 10" fill="%23f56565" opacity="0.3"/></pattern></defs><rect width="400" height="300" fill="%23fef2f2"/><rect width="400" height="300" fill="url(%23womens-general-pattern)"/></svg>');
}

.internal-medicine-service .service-front {
    background-image: linear-gradient(135deg, rgba(14, 165, 233, 0.8), rgba(56, 189, 248, 0.6)), 
                      url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><defs><pattern id="internal-pattern" patternUnits="userSpaceOnUse" width="50" height="50"><circle cx="25" cy="25" r="3" fill="%230ea5e9" opacity="0.3"/><circle cx="25" cy="25" r="8" fill="none" stroke="%230ea5e9" stroke-width="1" opacity="0.2"/></pattern></defs><rect width="400" height="300" fill="%23f0f9ff"/><rect width="400" height="300" fill="url(%23internal-pattern)"/></svg>');
}

.diabetes-service .service-front {
    background-image: linear-gradient(135deg, rgba(34, 197, 94, 0.8), rgba(74, 222, 128, 0.6)), 
                      url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><defs><pattern id="diabetes-pattern" patternUnits="userSpaceOnUse" width="40" height="40"><rect x="15" y="10" width="10" height="20" rx="5" fill="%2322c55e" opacity="0.3"/></pattern></defs><rect width="400" height="300" fill="%23f0fdf4"/><rect width="400" height="300" fill="url(%23diabetes-pattern)"/></svg>');
}

.cardiac-service .service-front {
    background-image: linear-gradient(135deg, rgba(239, 68, 68, 0.8), rgba(248, 113, 113, 0.6)), 
                      url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><defs><pattern id="cardiac-pattern" patternUnits="userSpaceOnUse" width="60" height="40"><path d="M15 20 Q20 10 25 20 Q30 10 35 20 Q30 30 25 20 Q20 30 15 20" fill="%23ef4444" opacity="0.3"/></pattern></defs><rect width="400" height="300" fill="%23fef2f2"/><rect width="400" height="300" fill="url(%23cardiac-pattern)"/></svg>');
}

.geriatric-service .service-front {
    background-image: linear-gradient(135deg, rgba(124, 58, 237, 0.8), rgba(167, 139, 250, 0.6)), 
                      url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><defs><pattern id="geriatric-pattern" patternUnits="userSpaceOnUse" width="45" height="45"><circle cx="22.5" cy="22.5" r="5" fill="none" stroke="%237c3aed" stroke-width="2" opacity="0.3"/></pattern></defs><rect width="400" height="300" fill="%23f5f3ff"/><rect width="400" height="300" fill="url(%23geriatric-pattern)"/></svg>');
}

/* Gallery Section */
.gallery-section {
    padding: 6rem 0;
    background: var(--light-gray);
    scroll-margin-top: 80px;
    position: relative;
}

.gallery-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.gallery-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Gallery Notice (Default View) */
.gallery-notice {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.notice-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 0 auto;
}

.notice-card i {
    font-size: 3rem;
    color: var(--current-primary, #6366f1);
    margin-bottom: 1.5rem;
}

.notice-card h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.notice-card p {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.6;
}

/* Gallery Grid - Flowing Animation */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
    padding: 1rem 0;
}

.flowing-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    animation: containerFlow 25s ease-in-out infinite;
    will-change: transform;
    transform: translateZ(0);
    perspective: 1000px;
}

.flowing-gallery:hover {
    animation-play-state: paused;
}

/* Performance optimization for mobile */
@media (prefers-reduced-motion: reduce) {
    .flowing-gallery,
    .gallery-item {
        animation: none !important;
    }
}

@keyframes containerFlow {
    0% {
        transform: translateY(0px) rotateX(0deg);
    }
    20% {
        transform: translateY(-8px) rotateX(1deg);
    }
    40% {
        transform: translateY(3px) rotateX(-0.5deg);
    }
    60% {
        transform: translateY(-5px) rotateX(0.8deg);
    }
    80% {
        transform: translateY(2px) rotateX(-0.3deg);
    }
    100% {
        transform: translateY(0px) rotateX(0deg);
    }
}

.gallery-item {
    opacity: 0;
    transform: translateY(50px) scale(0.8) rotateY(10deg);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    animation: 
        fadeInUp 1s ease-out forwards,
        floatIndividual 8s ease-in-out infinite,
        rotateSubtle 12s ease-in-out infinite;
    transform-origin: center;
    backface-visibility: hidden;
    will-change: transform;
}

.gallery-item:nth-child(1) { 
    animation-delay: 0.1s, 0s, 1s; 
}
.gallery-item:nth-child(2) { 
    animation-delay: 0.2s, 1s, 2s; 
}
.gallery-item:nth-child(3) { 
    animation-delay: 0.3s, 2s, 0.5s; 
}
.gallery-item:nth-child(4) { 
    animation-delay: 0.4s, 3s, 1.5s; 
}
.gallery-item:nth-child(5) { 
    animation-delay: 0.5s, 1.5s, 2.5s; 
}
.gallery-item:nth-child(6) { 
    animation-delay: 0.6s, 4s, 0.8s; 
}
.gallery-item:nth-child(7) { 
    animation-delay: 0.7s, 0.5s, 3s; 
}
.gallery-item:nth-child(8) { 
    animation-delay: 0.8s, 2.5s, 1.8s; 
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0) scale(1) rotateY(0deg);
    }
}

@keyframes floatIndividual {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    25% {
        transform: translateY(-12px) translateX(3px);
    }
    50% {
        transform: translateY(0px) translateX(-2px);
    }
    75% {
        transform: translateY(-6px) translateX(2px);
    }
}

@keyframes rotateSubtle {
    0%, 100% {
        transform: rotateZ(0deg) rotateY(0deg);
    }
    25% {
        transform: rotateZ(0.5deg) rotateY(1deg);
    }
    50% {
        transform: rotateZ(0deg) rotateY(0deg);
    }
    75% {
        transform: rotateZ(-0.3deg) rotateY(-0.5deg);
    }
}

/* Enhanced Wave Effects */
.gallery-item:nth-child(even) {
    animation-direction: reverse;
}

.gallery-item:nth-child(3n) {
    animation-duration: 9s, 7s, 14s;
}

.gallery-item:nth-child(4n) {
    animation-delay: 0.5s, 2.5s, 1.2s;
}

.gallery-item:nth-child(5n) {
    animation-direction: alternate;
}

.gallery-item:nth-child(6n) {
    animation-duration: 10s, 6s, 16s;
}

/* Wave propagation effect */
@keyframes wavePropagate {
    0% {
        transform: translateY(0px) scale(1);
    }
    25% {
        transform: translateY(-8px) scale(1.02);
    }
    50% {
        transform: translateY(0px) scale(1);
    }
    75% {
        transform: translateY(-4px) scale(1.01);
    }
    100% {
        transform: translateY(0px) scale(1);
    }
}

.gallery-item:hover {
    animation-play-state: paused;
    transform: translateY(-20px) scale(1.08) rotateY(8deg) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 15;
    position: relative;
}

/* Ripple effect on hover */
.gallery-item:hover .gallery-card {
    animation: rippleEffect 0.6s ease-out;
}

@keyframes rippleEffect {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(var(--current-primary-rgb, 99, 102, 241), 0.4);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 20px rgba(var(--current-primary-rgb, 99, 102, 241), 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(var(--current-primary-rgb, 99, 102, 241), 0);
    }
}

/* Stagger effect for sequential animations */
.gallery-grid.animate-in .gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-grid.animate-in .gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-grid.animate-in .gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-grid.animate-in .gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-grid.animate-in .gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-grid.animate-in .gallery-item:nth-child(6) { animation-delay: 0.6s; }

/* Gallery Cards */
.gallery-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: white;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 1px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 280px;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.gallery-card:hover {
    transform: translateY(-15px) rotateY(5deg) rotateX(5deg);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.2),
        0 5px 20px rgba(0, 0, 0, 0.1);
}

.gallery-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.gallery-card:hover::before {
    opacity: 1;
}

.gallery-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    cursor: pointer;
    border-radius: 15px;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.05);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--current-gradient, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    position: relative;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

.image-placeholder i {
    position: relative;
    z-index: 2;
    opacity: 0.8;
}



/* Specialty Background Colors */
.womens-gallery .image-placeholder {
    background: var(--womens-gradient);
}

.general-medicine-gallery .image-placeholder {
    background: var(--general-gradient);
}

/* Category-specific backgrounds */
.gallery-item[data-category="facilities"] .image-placeholder {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.gallery-item[data-category="equipment"] .image-placeholder {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.gallery-item[data-category="consultation"] .image-placeholder {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.gallery-item[data-category="surgery"] .image-placeholder {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

.gallery-item[data-category="diagnostic"] .image-placeholder {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}

/* Other Sections */
.section-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.section-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.section-content p {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.6;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--current-gradient, #6366f1);
    color: white;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--current-shadow, var(--shadow));
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
    display: flex;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    color: #f1f1f1;
    transform: scale(1.1);
}

#lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    margin-top: 15px;
    text-align: center;
}

.lightbox-caption p {
    color: white;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

/* Lightbox Mobile Responsive */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .lightbox-close {
        top: -30px;
        font-size: 30px;
    }
    
    #lightbox-image {
        max-height: 70vh;
    }
    
    .lightbox-caption p {
        font-size: 14px;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .lightbox-content {
        max-width: 98%;
        max-height: 98%;
    }
    
    .lightbox-close {
        top: -25px;
        font-size: 28px;
    }
    
    #lightbox-image {
        max-height: 65vh;
    }
    
    .lightbox-caption p {
        font-size: 13px;
        padding: 6px 12px;
    }
}

/* Tablet Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .clinics-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        max-width: 600px;
        margin: 0 auto 4rem;
    }
    
    .clinic-hero {
        gap: 3rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .welcome-content h1 {
        font-size: 2.5rem;
    }
    
    /* Gallery Tablet Optimizations */
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.8rem;
        padding: 0.8rem 0;
    }
    
    .flowing-gallery {
        animation: containerFlowTablet 22s ease-in-out infinite;
        gap: 1.8rem;
    }
    
    @keyframes containerFlowTablet {
        0% {
            transform: translateY(0px) rotateX(0deg);
        }
        25% {
            transform: translateY(-6px) rotateX(0.8deg);
        }
        50% {
            transform: translateY(2px) rotateX(-0.4deg);
        }
        75% {
            transform: translateY(-4px) rotateX(0.6deg);
        }
        100% {
            transform: translateY(0px) rotateX(0deg);
        }
    }
    
    .gallery-item {
        animation: 
            fadeInUp 0.9s ease-out forwards,
            floatTablet 9s ease-in-out infinite,
            rotateTablet 13s ease-in-out infinite;
    }
    
    @keyframes floatTablet {
        0%, 100% {
            transform: translateY(0px) translateX(0px);
        }
        25% {
            transform: translateY(-8px) translateX(2px);
        }
        50% {
            transform: translateY(0px) translateX(-1px);
        }
        75% {
            transform: translateY(-4px) translateX(1px);
        }
    }
    
    @keyframes rotateTablet {
        0%, 100% {
            transform: rotateZ(0deg) rotateY(0deg);
        }
        25% {
            transform: rotateZ(0.3deg) rotateY(0.8deg);
        }
        50% {
            transform: rotateZ(0deg) rotateY(0deg);
        }
        75% {
            transform: rotateZ(-0.2deg) rotateY(-0.4deg);
        }
    }
    
    .gallery-item:hover {
        transform: translateY(-10px) scale(1.03) !important;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar {
        height: 70px;
    }
    
    .nav-container {
        padding: 0.8rem 1rem;
        gap: 1rem;
    }
    
    .logo-section {
        min-width: 180px;
        gap: 0.8rem;
    }
    
    .clinic-logo {
        height: 35px;
        width: 35px;
    }
    
    .clinic-name {
        font-size: 1rem;
        margin-bottom: 0.1rem;
    }
    
    .current-clinic {
        font-size: 0.75rem;
    }
    
    .clinic-toggle {
        padding: 0.2rem;
        gap: 0.2rem;
    }
    
    .clinic-toggle .toggle-btn span {
        display: none;
    }
    
    .toggle-btn {
        padding: 0.6rem;
        min-width: 38px;
        justify-content: center;
        font-size: 0.9rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 2rem 0;
        transition: var(--transition);
        gap: 1.5rem;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 1rem 0;
    }
    
    .mobile-menu-btn {
        display: flex;
        order: 3;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Home Section Mobile */
    .home-section {
        padding-top: 70px;
    }
    
    .clinic-selection-screen,
    .clinic-view {
        min-height: calc(100vh - 70px);
        padding: 2rem 0;
    }
    
    /* Welcome Content Mobile */
    .welcome-content {
        margin-bottom: 3rem;
        padding: 0 1rem;
    }
    
    .welcome-content h1 {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }
    
    .welcome-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .welcome-content h2 {
        font-size: 1.6rem;
    }

    .main-logo {
        height: 120px;
        max-width: 280px;
    }

    .clinic-hero-logo {
        height: 100px;
        max-width: 240px;
    }

    .welcome-logo {
        margin-bottom: 2.5rem;
        padding: 1.5rem 0;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 15px;
        backdrop-filter: blur(10px);
    }

    .hero-logo {
        margin-bottom: 2.5rem;
        padding: 1.5rem 0;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 15px;
        backdrop-filter: blur(10px);
    }
    
    /* Clinics Grid Mobile */
    .clinics-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 3rem;
    }
    
    .clinic-card {
        padding: 1.8rem;
        margin: 0 0.5rem;
    }
    
    .clinic-card h3 {
        font-size: 1.5rem;
        margin-bottom: 1.2rem;
    }
    
    .clinic-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin: 0 auto 1.2rem;
    }
    
    .specialties-list h4 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
    
    .specialties-list li {
        font-size: 0.9rem;
        padding: 0.3rem 0;
    }
    
    .doctor-info {
        padding: 1rem;
        margin-bottom: 1.2rem;
    }
    
    .doctor-info h5 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
    
    .credentials {
        gap: 0.4rem;
    }
    
    .credentials span {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    .select-btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }
    
    /* Clinic Features Mobile */
    .clinic-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 0 1rem;
    }
    
    .feature {
        padding: 1.5rem;
    }
    
    .feature i {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .feature h4 {
        font-size: 1.1rem;
        margin-bottom: 0.4rem;
    }
    
    .feature p {
        font-size: 0.85rem;
    }
    
    /* Clinic Views Mobile Background */
    .clinic-view {
        background-attachment: scroll; /* Better performance on mobile */
    }
    
    .clinic-view::before {
        animation: none; /* Disable complex animations on mobile for performance */
    }

    /* Clinic Hero Mobile */
    .clinic-hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 0 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-content h2 {
        font-size: 1.2rem;
        margin-bottom: 1.2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .doctor-highlight {
        margin-bottom: 1.5rem;
    }
    
    .doctor-badge {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .doctor-badge i {
        font-size: 1.5rem;
    }
    
    .doctor-badge div strong {
        font-size: 1rem;
        margin-bottom: 0.2rem;
    }
    
    .doctor-badge div span {
        font-size: 0.85rem;
    }
    
    .hero-buttons {
        justify-content: center;
        gap: 0.8rem;
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .image-placeholder {
        width: 200px;
        height: 200px;
        font-size: 2.5rem;
        margin-top: 1rem;
    }
    
    /* About Section Mobile */
    .about-section {
        padding: 4rem 0;
        scroll-margin-top: 70px;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin-bottom: 3rem;
    }
    
    .about-intro h3 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }
    
    .about-intro p {
        font-size: 1rem;
    }
    
    .clinic-specialties {
        gap: 1.5rem;
        margin-bottom: 2.5rem;
    }
    
    .specialty-item {
        padding: 1.2rem;
        gap: 1rem;
    }
    
    .specialty-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .specialty-content h4 {
        font-size: 1.2rem;
        margin-bottom: 0.4rem;
    }
    
    .specialty-content p {
        font-size: 0.95rem;
    }
    
    .about-stats {
        gap: 1.2rem;
    }
    
    .stat-card {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
        margin-bottom: 0.4rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .values-section {
        margin-top: 3rem;
    }
    
    .values-section h3 {
        font-size: 1.7rem;
        margin-bottom: 2rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .value-item {
        padding: 1.5rem;
    }
    
    .value-item i {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .value-item h4 {
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
    }
    
    .value-item p {
        font-size: 0.95rem;
    }
    
    /* Doctor Profile Mobile */
    /* Doctor Layout Mobile */
    .doctor-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .doctor-info {
        padding: 2rem;
    }
    
    .doctor-details {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    .doctor-details h3 {
        font-size: 1.8rem;
    }
    
    .doctor-title {
        font-size: 1.2rem;
        margin-bottom: 1.2rem;
    }
    
    .doctor-credentials {
        gap: 0.6rem;
    }
    
    .doctor-credentials span {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .doctor-bio {
        padding: 1.5rem;
    }
    
    .doctor-bio p {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }
    
    .doctor-image-container {
        position: relative;
        top: auto;
        padding: 1.5rem;
        min-height: auto;
        height: auto;
    }
    
    .doctor-image-placeholder {
        width: 100%;
        height: 250px;
        margin-bottom: 0.5rem;
    }
    
    .doctor-image-placeholder i {
        font-size: 3rem;
    }
    
    .doctor-image-placeholder p {
        font-size: 1rem;
        position: absolute;
        bottom: 15px;
        left: 15px;
        right: 15px;
        background: rgba(255, 255, 255, 0.95);
        padding: 0.4rem 0.8rem;
        border-radius: 6px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(10px);
        margin-top: 0;
    }
    
    .doctor-details h3 {
        font-size: 1.5rem;
        margin-bottom: 0.4rem;
    }
    
    .doctor-title {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .doctor-credentials {
        justify-content: center;
        gap: 0.4rem;
    }
    
    .doctor-credentials span {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    .doctor-bio {
        padding: 1.5rem;
        margin-top: 0.8rem;
    }
    
    .doctor-bio p {
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
    }
    
    /* Services Overview Mobile */
    .services-overview h4 {
        font-size: 1.4rem;
        margin-bottom: 1.2rem;
    }
    
    .services-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-category {
        padding: 1.2rem;
    }
    
    .service-category h5 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .service-category li {
        font-size: 0.9rem;
        padding: 0.3rem 0;
        padding-left: 1.5rem;
    }
    
    .clinic-highlights {
        gap: 1.2rem;
    }
    
    .highlight-card {
        padding: 1.5rem;
    }
    
    .highlight-card i {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .highlight-card h4 {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }
    
    .highlight-card p {
        font-size: 0.9rem;
    }
    
    /* Services Section Mobile */
    .services-section {
        padding: 4rem 0;
        scroll-margin-top: 70px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .service-tile {
        height: 300px;
    }
    
    .service-front,
    .service-back {
        border-radius: 15px;
    }
    
    .service-overlay {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .service-overlay h3 {
        font-size: 1.5rem;
        margin-bottom: 0.6rem;
    }
    
    .service-overlay p {
        font-size: 0.9rem;
    }
    
    .service-back {
        padding: 1.5rem;
    }
    
    .service-details h4 {
        font-size: 1.3rem;
        margin-bottom: 1.2rem;
    }
    
    .service-details li {
        font-size: 0.9rem;
        padding: 0.5rem 0;
        padding-left: 1.2rem;
    }
    
    .service-cta {
        padding: 0.8rem 1.2rem;
    }
    
    .service-cta span {
        font-size: 0.85rem;
    }
    
    /* Gallery Section Mobile */
    .gallery-section {
        padding: 4rem 0;
        scroll-margin-top: 70px;
    }
    
    .gallery-notice {
        min-height: 250px;
        padding: 0 1rem;
    }
    
    .notice-card {
        padding: 2rem 1.5rem;
    }
    
    .notice-card i {
        font-size: 2.5rem;
        margin-bottom: 1.2rem;
    }
    
    .notice-card h3 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }
    
    .notice-card p {
        font-size: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .flowing-gallery {
        animation: containerFlowMobile 18s ease-in-out infinite;
        gap: 1.5rem;
    }
    
    @keyframes containerFlowMobile {
        0% {
            transform: translateY(0px) rotateX(0deg);
        }
        33% {
            transform: translateY(-4px) rotateX(0.5deg);
        }
        66% {
            transform: translateY(1px) rotateX(-0.3deg);
        }
        100% {
            transform: translateY(0px) rotateX(0deg);
        }
    }
    
    .gallery-item {
        animation: 
            fadeInUp 0.8s ease-out forwards,
            floatMobile 10s ease-in-out infinite,
            rotateMobile 15s ease-in-out infinite;
    }
    
    @keyframes floatMobile {
        0%, 100% {
            transform: translateY(0px) translateX(0px);
        }
        25% {
            transform: translateY(-6px) translateX(1px);
        }
        50% {
            transform: translateY(0px) translateX(-0.5px);
        }
        75% {
            transform: translateY(-3px) translateX(0.5px);
        }
    }
    
    @keyframes rotateMobile {
        0%, 100% {
            transform: rotateZ(0deg);
        }
        25% {
            transform: rotateZ(0.2deg);
        }
        50% {
            transform: rotateZ(0deg);
        }
        75% {
            transform: rotateZ(-0.1deg);
        }
    }
    
    .gallery-item:hover {
        transform: translateY(-8px) scale(1.02) !important;
        transition: transform 0.2s ease-out;
    }
    
    .gallery-card {
        height: 250px;
        border-radius: 15px;
    }
    
    .image-placeholder {
        font-size: 2.5rem;
    }
    
    /* Other Sections Mobile */
    .testimonials-section,
    .contact-section {
        padding: 4rem 0;
        scroll-margin-top: 70px;
    }
    
    .section-content h2 {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .section-content p {
        font-size: 1rem;
    }
    
    /* Back to Top Mobile */
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* Small Mobile Responsive */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    /* Navigation Extra Small */
    .nav-container {
        padding: 0.6rem 0.8rem;
        gap: 0.5rem;
    }
    
    .logo-section {
        min-width: 150px;
        gap: 0.6rem;
    }
    
    .clinic-logo {
        height: 30px;
        width: 120px;
    }
    
    .clinic-name {
        font-size: 0.9rem;
    }
    
    .current-clinic {
        font-size: 0.7rem;
    }
    
    .toggle-btn {
        padding: 0.5rem;
        min-width: 35px;
        font-size: 0.8rem;
    }
    
    /* Welcome Content Extra Small */
    .welcome-content h1 {
        font-size: 1.8rem;
    }
    
    .welcome-content p {
        font-size: 0.9rem;
    }
    
    .welcome-content h2 {
        font-size: 1.4rem;
    }

    .main-logo {
        height: 100px;
        max-width: 220px;
    }

    .clinic-hero-logo {
        height: 80px;
        max-width: 180px;
    }

    .welcome-logo {
        margin-bottom: 2rem;
        padding: 1rem 0;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        backdrop-filter: blur(8px);
    }

    .hero-logo {
        margin-bottom: 2rem;
        padding: 1rem 0;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        backdrop-filter: blur(8px);
    }
    
    /* Clinic Card Extra Small */
    .clinic-card {
        padding: 1.5rem 1rem;
        margin: 0;
    }
    
    .clinic-card h3 {
        font-size: 1.3rem;
    }
    
    .clinic-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .specialties-list h4 {
        font-size: 0.95rem;
    }
    
    .specialties-list li {
        font-size: 0.85rem;
        padding-left: 1.2rem;
    }
    
    .doctor-info {
        padding: 0.8rem;
    }
    
    .doctor-info h5 {
        font-size: 0.95rem;
    }
    
    .credentials span {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
    
    .select-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    /* Features Extra Small */
    .feature {
        padding: 1.2rem;
    }
    
    .feature i {
        font-size: 1.8rem;
    }
    
    .feature h4 {
        font-size: 1rem;
    }
    
    .feature p {
        font-size: 0.8rem;
    }
    
    /* Hero Extra Small */
    .hero-content h1 {
        font-size: 1.7rem;
    }
    
    .hero-content h2 {
        font-size: 1.1rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .doctor-badge {
        padding: 0.8rem;
    }
    
    .doctor-badge div strong {
        font-size: 0.95rem;
    }
    
    .doctor-badge div span {
        font-size: 0.8rem;
    }
    
    .btn {
        max-width: 260px;
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .image-placeholder {
        width: 160px;
        height: 160px;
        font-size: 2rem;
    }
    
    /* About Section Extra Small */
    .section-header h2 {
        font-size: 1.9rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    .about-intro h3 {
        font-size: 1.3rem;
    }
    
    .specialty-item {
        padding: 1rem;
        gap: 0.8rem;
    }
    
    .specialty-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .specialty-content h4 {
        font-size: 1.1rem;
    }
    
    .stat-card {
        padding: 1.2rem 0.8rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .values-section h3 {
        font-size: 1.5rem;
    }
    
    .value-item {
        padding: 1.2rem;
    }
    
    .value-item i {
        font-size: 1.8rem;
    }
    
    .value-item h4 {
        font-size: 1.1rem;
    }
    
    /* Doctor Layout Small Mobile */
    .doctor-layout {
        gap: 2rem;
    }
    
    .doctor-info {
        padding: 1.5rem;
    }
    
    .doctor-details h3 {
        font-size: 1.6rem;
    }
    
    .doctor-title {
        font-size: 1.1rem;
    }
    
    .doctor-credentials span {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .doctor-bio {
        padding: 1.2rem;
    }
    
    .doctor-bio p {
        font-size: 0.95rem;
    }
    
    .doctor-image-container {
        padding: 1.2rem;
        min-height: auto;
        height: auto;
    }
    
    .doctor-image-placeholder {
        width: 100%;
        height: 400px;
        margin-bottom: 0.5rem;
    }
    
    .doctor-image-placeholder i {
        font-size: 2.5rem;
    }
    
    .doctor-image-placeholder p {
        font-size: 0.95rem;
        position: absolute;
        bottom: 12px;
        left: 12px;
        right: 12px;
        background: rgba(255, 255, 255, 0.95);
        padding: 0.3rem 0.6rem;
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(10px);
        margin-top: 0;
    }
    
    .services-overview h4 {
        font-size: 1.2rem;
    }
    
    .service-category {
        padding: 1rem;
    }
    
    .service-category h5 {
        font-size: 1rem;
    }
    
    .service-category li {
        padding-left: 1.5rem;
    }
    
    .highlight-card {
        padding: 1.2rem;
    }
    
    .highlight-card i {
        font-size: 1.6rem;
    }
    
    .highlight-card h4 {
        font-size: 1rem;
    }
    
    /* Services Section Extra Small */
    .service-tile {
        height: 280px;
    }
    
    .service-overlay {
        padding: 1.2rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .service-overlay h3 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    
    .service-overlay p {
        font-size: 0.85rem;
    }
    
    .service-back {
        padding: 1.2rem;
    }
    
    .service-details h4 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .service-details li {
        font-size: 0.85rem;
        padding: 0.4rem 0;
        padding-left: 1rem;
    }
    
    .service-cta {
        padding: 0.7rem 1rem;
    }
    
    .service-cta span {
        font-size: 0.8rem;
    }
    
    /* Gallery Section Extra Small */
    .gallery-notice {
        min-height: 200px;
        padding: 0 0.5rem;
    }
    
    .notice-card {
        padding: 1.5rem 1rem;
    }
    
    .notice-card i {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .notice-card h3 {
        font-size: 1.3rem;
        margin-bottom: 0.6rem;
    }
    
    .notice-card p {
        font-size: 0.9rem;
    }
    
    .flowing-gallery {
        animation: containerFlowSmall 16s ease-in-out infinite;
    }
    
    @keyframes containerFlowSmall {
        0%, 100% {
            transform: translateY(0px);
        }
        50% {
            transform: translateY(-2px);
        }
    }
    
    .gallery-item {
        animation: 
            fadeInUp 0.7s ease-out forwards,
            floatSmall 12s ease-in-out infinite;
    }
    
    @keyframes floatSmall {
        0%, 100% {
            transform: translateY(0px) translateX(0px);
        }
        25% {
            transform: translateY(-3px) translateX(0.5px);
        }
        50% {
            transform: translateY(0px) translateX(0px);
        }
        75% {
            transform: translateY(-1px) translateX(-0.3px);
        }
    }
    
    .gallery-item:hover {
        transform: translateY(-5px) scale(1.01) !important;
        transition: transform 0.15s ease-out;
    }
    
    .gallery-card {
        height: 220px;
    }
    
    .image-placeholder {
        font-size: 2rem;
    }
    
    /* Sections Extra Small */
    .section-content h2 {
        font-size: 1.8rem;
    }
    
    .section-content p {
        font-size: 0.9rem;
    }
    
    /* Back to Top Extra Small */
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .clinic-card {
        padding: 1.2rem 0.8rem;
    }
    
    .specialties-list li {
        padding-left: 1rem;
        font-size: 0.8rem;
    }
    
    .service-category li {
        padding-left: 1.2rem;
        font-size: 0.85rem;
    }
    
    .welcome-content h1 {
        font-size: 1.6rem;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .btn {
        max-width: 240px;
        font-size: 0.85rem;
    }
    
    .image-placeholder {
        width: 140px;
        height: 140px;
        font-size: 1.8rem;
    }
}

/* Testimonials Section */
.testimonials-section {
    padding: 6rem 0;
    background: white;
    scroll-margin-top: 80px;
    position: relative;
}

.testimonials-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.testimonials-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Testimonials Grid - Flowing Animation */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
}

.flowing-testimonials {
    animation: testimonialsFlow 30s ease-in-out infinite;
    will-change: transform;
    transform: translateZ(0);
    perspective: 1200px;
}

.flowing-testimonials:hover {
    animation-play-state: paused;
}

@keyframes testimonialsFlow {
    0% {
        transform: translateY(0px) rotateX(0deg);
    }
    25% {
        transform: translateY(-5px) rotateX(0.5deg);
    }
    50% {
        transform: translateY(0px) rotateX(0deg);
    }
    75% {
        transform: translateY(-3px) rotateX(-0.3deg);
    }
    100% {
        transform: translateY(0px) rotateX(0deg);
    }
}

/* Testimonial Items */
.testimonial-item {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    animation: 
        testimonialFadeIn 1s ease-out forwards,
        testimonialFloat 12s ease-in-out infinite;
    backface-visibility: hidden;
    will-change: transform;
}

.testimonial-item:nth-child(1) { 
    animation-delay: 0.1s, 0s; 
}
.testimonial-item:nth-child(2) { 
    animation-delay: 0.2s, 2s; 
}
.testimonial-item:nth-child(3) { 
    animation-delay: 0.3s, 4s; 
}
.testimonial-item:nth-child(4) { 
    animation-delay: 0.4s, 1s; 
}

@keyframes testimonialFadeIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes testimonialFloat {
    0%, 100% {
        transform: translateY(0px) rotateZ(0deg);
    }
    25% {
        transform: translateY(-8px) rotateZ(0.3deg);
    }
    50% {
        transform: translateY(0px) rotateZ(0deg);
    }
    75% {
        transform: translateY(-4px) rotateZ(-0.2deg);
    }
}

/* Testimonial Cards */
.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 1px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--current-gradient, #6366f1);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.testimonial-item:hover .testimonial-card {
    transform: translateY(-10px) rotateY(5deg);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.15),
        0 5px 20px rgba(0, 0, 0, 0.1);
}

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

/* Quote Icon */
.quote-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--current-light, #f0f4ff);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.quote-icon i {
    font-size: 1.5rem;
    color: var(--current-primary, #6366f1);
    transition: var(--transition);
}

.testimonial-item:hover .quote-icon {
    background: var(--current-gradient, #6366f1);
    transform: scale(1.1) rotate(5deg);
}

.testimonial-item:hover .quote-icon i {
    color: white;
}

/* Testimonial Content */
.testimonial-content {
    margin-bottom: 2rem;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--gray);
    font-style: italic;
    position: relative;
    z-index: 2;
}

.testimonial-content p::before {
    content: '"';
    font-size: 4rem;
    color: var(--current-primary, #6366f1);
    position: absolute;
    top: -1rem;
    left: -1rem;
    opacity: 0.1;
    font-family: Georgia, serif;
    z-index: -1;
}

/* Patient Info */
.patient-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.patient-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--current-gradient, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.patient-avatar i {
    color: white;
    font-size: 1.2rem;
}

.patient-details h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.3rem;
}

.patient-details span {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
    display: block;
}

/* Rating Stars */
.rating {
    display: flex;
    gap: 0.2rem;
}

.rating i {
    color: #fbbf24;
    font-size: 0.9rem;
    transition: var(--transition);
}

.testimonial-item:hover .rating i {
    transform: scale(1.1);
    color: #f59e0b;
}

/* Testimonial Stats */
.testimonial-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    padding: 3rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--light-gray);
    border-radius: 15px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--current-gradient, #6366f1);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: center;
}

.stat-item:hover {
    background: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--current-primary, #6366f1);
    margin-bottom: 0.5rem;
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.stat-stars {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
}

.stat-stars i {
    color: #fbbf24;
    font-size: 1.2rem;
}

/* Testimonial Type Specific Styling */
.general-testimonial .testimonial-card::before {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.womens-testimonial .testimonial-card::before {
    background: var(--womens-gradient);
}

.general-medicine-testimonial .testimonial-card::before {
    background: var(--general-gradient);
}

/* Hover Ripple Effect for Testimonials */
.testimonial-item:hover {
    animation-play-state: paused;
}

.testimonial-item:hover .testimonial-card {
    animation: testimonialRipple 0.6s ease-out;
}

@keyframes testimonialRipple {
    0% {
        box-shadow: 
            0 10px 30px rgba(0, 0, 0, 0.1),
            0 0 0 0 rgba(var(--current-primary-rgb, 99, 102, 241), 0.4);
    }
    50% {
        box-shadow: 
            0 25px 60px rgba(0, 0, 0, 0.15),
            0 0 0 20px rgba(var(--current-primary-rgb, 99, 102, 241), 0);
    }
    100% {
        box-shadow: 
            0 25px 60px rgba(0, 0, 0, 0.15),
            0 0 0 0 rgba(var(--current-primary-rgb, 99, 102, 241), 0);
    }
}

/* Performance optimization for mobile */
@media (prefers-reduced-motion: reduce) {
    .flowing-testimonials,
    .testimonial-item {
        animation: none !important;
    }
}

/* Testimonials Section Mobile */
.testimonials-section {
    padding: 4rem 0;
    scroll-margin-top: 70px;
}

.testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.flowing-testimonials {
    animation: testimonialsFlowMobile 25s ease-in-out infinite;
}

@keyframes testimonialsFlowMobile {
    0% {
        transform: translateY(0px);
    }
    33% {
        transform: translateY(-3px);
    }
    66% {
        transform: translateY(1px);
    }
    100% {
        transform: translateY(0px);
    }
}

.testimonial-item {
    animation: 
        testimonialFadeIn 0.8s ease-out forwards,
        testimonialFloatMobile 15s ease-in-out infinite;
}

@keyframes testimonialFloatMobile {
    0%, 100% {
        transform: translateY(0px);
    }
    25% {
        transform: translateY(-4px);
    }
    50% {
        transform: translateY(0px);
    }
    75% {
        transform: translateY(-2px);
    }
}

.testimonial-card {
    padding: 2rem;
    border-radius: 15px;
}

.testimonial-item:hover .testimonial-card {
    transform: translateY(-5px) rotateY(2deg);
}

.quote-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1.2rem;
}

.quote-icon i {
    font-size: 1.3rem;
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-size: 1rem;
    line-height: 1.6;
}

.testimonial-content p::before {
    font-size: 3rem;
    top: -0.8rem;
    left: -0.8rem;
}

.patient-avatar {
    width: 45px;
    height: 45px;
}

.patient-avatar i {
    font-size: 1.1rem;
}

.patient-details h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.patient-details span {
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}

.rating i {
    font-size: 0.8rem;
}

.testimonial-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
    padding: 2rem 0;
}

.stat-item {
    padding: 1.5rem 1rem;
}

.stat-number {
    font-size: 2.5rem;
    margin-bottom: 0.4rem;
}

.stat-label {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.stat-stars i {
    font-size: 1rem;
}

/* Testimonials Tablet Optimizations */
.testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.8rem;
    margin-top: 2.5rem;
}

.flowing-testimonials {
    animation: testimonialsFlowTablet 28s ease-in-out infinite;
}

@keyframes testimonialsFlowTablet {
    0% {
        transform: translateY(0px) rotateX(0deg);
    }
    25% {
        transform: translateY(-4px) rotateX(0.3deg);
    }
    50% {
        transform: translateY(0px) rotateX(0deg);
    }
    75% {
        transform: translateY(-2px) rotateX(-0.2deg);
    }
    100% {
        transform: translateY(0px) rotateX(0deg);
    }
}

.testimonial-item {
    animation: 
        testimonialFadeIn 0.9s ease-out forwards,
        testimonialFloatTablet 14s ease-in-out infinite;
}

@keyframes testimonialFloatTablet {
    0%, 100% {
        transform: translateY(0px) rotateZ(0deg);
    }
    25% {
        transform: translateY(-6px) rotateZ(0.2deg);
    }
    50% {
        transform: translateY(0px) rotateZ(0deg);
    }
    75% {
        transform: translateY(-3px) rotateZ(-0.1deg);
    }
}

.testimonial-card {
    padding: 2.2rem;
}

.testimonial-item:hover .testimonial-card {
    transform: translateY(-8px) rotateY(3deg);
}

/* Testimonials Extra Small */
.testimonials-grid {
    gap: 1.2rem;
}

.flowing-testimonials {
    animation: testimonialsFlowSmall 20s ease-in-out infinite;
}

@keyframes testimonialsFlowSmall {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-2px);
    }
}

.testimonial-item {
    animation: 
        testimonialFadeIn 0.7s ease-out forwards,
        testimonialFloatSmall 18s ease-in-out infinite;
}

@keyframes testimonialFloatSmall {
    0%, 100% {
        transform: translateY(0px);
    }
    25% {
        transform: translateY(-3px);
    }
    50% {
        transform: translateY(0px);
    }
    75% {
        transform: translateY(-1px);
    }
}

.testimonial-card {
    padding: 1.5rem;
    border-radius: 12px;
}

.testimonial-item:hover .testimonial-card {
    transform: translateY(-3px) rotateY(1deg);
}

.quote-icon {
    width: 45px;
    height: 45px;
    margin-bottom: 1rem;
}

.quote-icon i {
    font-size: 1.2rem;
}

.testimonial-content {
    margin-bottom: 1.2rem;
}

.testimonial-content p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.testimonial-content p::before {
    font-size: 2.5rem;
    top: -0.6rem;
    left: -0.6rem;
}

.patient-avatar {
    width: 40px;
    height: 40px;
}

.patient-avatar i {
    font-size: 1rem;
}

.patient-details h4 {
    font-size: 1rem;
    margin-bottom: 0.1rem;
}

.patient-details span {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
}

.rating i {
    font-size: 0.75rem;
}

.testimonial-stats {
    gap: 1.2rem;
    margin-top: 2.5rem;
    padding: 1.5rem 0;
}

.stat-item {
    padding: 1.2rem 0.8rem;
}

.stat-number {
    font-size: 2rem;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.stat-stars i {
    font-size: 0.9rem;
}

@keyframes testimonialWave {
    0% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-5px) scale(1.01);
    }
    100% {
        transform: translateY(0px) scale(1);
    }
}

/* Performance optimization for mobile */

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background: white;
    scroll-margin-top: 80px;
    position: relative;
}

.contact-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.contact-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.contact-grid.single-contact {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 3rem auto 0;
}

/* Contact Cards */
.contact-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: var(--transition);
}

.womens-contact::before {
    background: var(--womens-gradient);
}

.general-contact-card::before {
    background: var(--general-gradient);
}

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

.contact-card.full-width {
    padding: 3rem;
}

/* Contact Header */
.contact-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: var(--transition);
}

.womens-contact .contact-icon {
    background: var(--womens-gradient);
}

.general-contact-card .contact-icon {
    background: var(--general-gradient);
}

.contact-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.contact-header p {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray);
    margin-bottom: 1rem;
}

.contact-header .credentials {
    font-size: 0.9rem;
    color: var(--gray);
    font-style: italic;
}

.doctor-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.doctor-credentials span {
    background: var(--current-light, #f0f4ff);
    color: var(--current-primary, #6366f1);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--current-secondary, #a5b4fc);
}

/* Contact Locations */
.contact-locations {
    margin-bottom: 2rem;
}

.contact-locations.expanded {
    margin-bottom: 3rem;
}

.contact-locations.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.locations-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.left-column {
    padding-right: 1rem;
}

.right-column {
    padding-left: 1rem;
}

.location-item {
    background: var(--light-gray);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: var(--transition);
}

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

.location-item.featured {
    background: white;
    border: 2px solid var(--current-light, #f0f4ff);
    padding: 2.5rem;
}

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

.location-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.location-item h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location-item h4 i {
    color: var(--current-primary, #6366f1);
}



/* Location Details */
.location-details {
    display: grid;
    gap: 2rem;
}

.location-details h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location-details h5 i {
    color: var(--current-primary, #6366f1);
}

/* Address Styling */
.address-text p {
    margin-bottom: 0.3rem;
    color: var(--gray);
    line-height: 1.5;
}

/* Timings */
.timings ul {
    list-style: none;
    padding: 0;
}

.timings li {
    padding: 0.6rem 0;
    color: var(--gray);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timings li:last-child {
    border-bottom: none;
}

.timings strong {
    color: var(--dark-gray);
    font-weight: 600;
}

/* Timing Grid */
.timing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.timing-item {
    background: var(--current-light, #f0f4ff);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--current-secondary, #a5b4fc);
}

.timing-item strong {
    display: block;
    color: var(--current-primary, #6366f1);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.timing-item span {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Contact Info */
.contact-info p {
    margin-bottom: 0.5rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info i {
    color: var(--current-primary, #6366f1);
    width: 20px;
}

.phone-numbers {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.phone-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--current-light, #f0f4ff);
    border-radius: 10px;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
}

.phone-item:hover {
    background: var(--current-gradient, #6366f1);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.phone-item.primary {
    background: var(--current-gradient, #6366f1);
    color: white;
    border-color: var(--current-primary, #6366f1);
}

.phone-item.primary:hover {
    background: var(--current-primary, #6366f1);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.phone-item i {
    font-size: 1.2rem;
    width: auto;
}

.phone-item span {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.quick-actions.expanded {
    margin-top: 2rem;
    justify-content: center;
}

.action-btn {
    flex: 1;
    min-width: 120px;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.action-btn.large {
    padding: 1.2rem 2rem;
    font-size: 1rem;
    min-width: 180px;
}

.action-btn.primary {
    background: var(--current-gradient, #6366f1);
    color: white;
    box-shadow: var(--current-shadow, var(--shadow));
}

.action-btn.secondary {
    background: var(--current-light, #f0f4ff);
    color: var(--current-primary, #6366f1);
    border: 2px solid var(--current-secondary, #a5b4fc);
}

.action-btn.whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.action-btn.whatsapp:hover {
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
}

/* Contact Stats */
.contact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 15px;
    transition: var(--transition);
}

.stat-item:hover {
    background: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--current-gradient, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.stat-content p {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Mobile Responsive - Contact Section */
@media (max-width: 768px) {
    .contact-section {
        padding: 4rem 0;
        scroll-margin-top: 70px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }
    
    .contact-card {
        padding: 2rem;
        border-radius: 15px;
    }
    
    .contact-card.full-width {
        padding: 2.5rem;
    }
    
    .contact-header {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
    
    .contact-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .contact-header h3 {
        font-size: 1.5rem;
        margin-bottom: 0.4rem;
    }
    
    .contact-header p {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .contact-header .credentials {
        font-size: 0.85rem;
    }
    
    .doctor-credentials {
        gap: 0.4rem;
        margin-top: 0.8rem;
    }
    
    .doctor-credentials span {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    .location-item {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .location-item.featured {
        padding: 2rem;
    }

    .contact-locations.two-column {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .left-column,
    .right-column {
        padding-left: 0;
        padding-right: 0;
    }
    
    .location-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
        margin-bottom: 1.2rem;
    }
    
    .location-item h4 {
        font-size: 1.2rem;
    }
    

    
    .location-details {
        gap: 1.5rem;
    }
    
    .location-details h5 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .timing-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .timing-item {
        padding: 0.8rem;
    }
    
    .timing-item strong {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }
    
    .timing-item span {
        font-size: 0.85rem;
    }
    
    .phone-numbers {
        gap: 0.8rem;
    }
    
    .phone-item {
        padding: 0.8rem;
        gap: 0.8rem;
    }
    
    .phone-item span {
        font-size: 1rem;
    }
    
    .quick-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .action-btn {
        min-width: auto;
        padding: 0.9rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .action-btn.large {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
        min-width: auto;
    }
    
    .contact-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 3rem;
        padding-top: 2rem;
    }
    
    .stat-item {
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .stat-content h4 {
        font-size: 1.1rem;
        margin-bottom: 0.4rem;
    }
    
    .stat-content p {
        font-size: 0.85rem;
    }
}

/* Small Mobile Responsive - Contact Section */
@media (max-width: 480px) {
    .contact-card {
        padding: 1.5rem;
    }
    
    .contact-card.full-width {
        padding: 2rem;
    }
    
    .contact-header {
        margin-bottom: 1.5rem;
        padding-bottom: 1.2rem;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .contact-header h3 {
        font-size: 1.3rem;
        margin-bottom: 0.3rem;
    }
    
    .contact-header p {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
    
    .contact-header .credentials {
        font-size: 0.8rem;
    }
    
    .doctor-credentials span {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    .location-item {
        padding: 1.2rem;
        margin-bottom: 1.2rem;
    }
    
    .location-item.featured {
        padding: 1.5rem;
    }

    .contact-locations.two-column {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .locations-column {
        gap: 1rem;
    }
    
    .location-item h4 {
        font-size: 1.1rem;
    }
    
    .location-details h5 {
        font-size: 0.95rem;
        margin-bottom: 0.6rem;
    }
    
    .timing-item {
        padding: 0.6rem;
    }
    
    .timing-item strong {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
    }
    
    .timing-item span {
        font-size: 0.8rem;
    }
    
    .phone-item {
        padding: 0.6rem;
        gap: 0.6rem;
    }
    
    .phone-item span {
        font-size: 0.9rem;
    }
    
    .action-btn {
        padding: 0.8rem 1rem;
        font-size: 0.8rem;
    }
    
    .action-btn.large {
        padding: 0.9rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .stat-item {
        padding: 1.2rem;
        gap: 0.8rem;
    }
    
    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .stat-content h4 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }
    
    .stat-content p {
        font-size: 0.8rem;
    }
}

/* Footer Section */
.footer {
    background: linear-gradient(135deg, var(--dark-gray) 0%, #0f172a 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.footer::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 1000 300"><defs><pattern id="footer-pattern" patternUnits="userSpaceOnUse" width="60" height="60"><circle cx="30" cy="30" r="1.5" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="1000" height="300" fill="url(%23footer-pattern)"/></svg>');
    pointer-events: none;
}

.footer .container {
    position: relative;
    z-index: 2;
}

/* Footer Content */
.footer-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    padding: 4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-stats {
        justify-content: center;
    }
}

.footer-content.active {
    display: grid;
    opacity: 1;
    transform: translateY(0);
}

.footer-column h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-column h4 i {
    color: var(--current-primary, #6366f1);
    font-size: 1.1rem;
}

/* Footer Logo */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.footer-logo h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* Footer Stats */
.footer-stats {
    display: flex;
    gap: 2rem;
}

.footer-stat {
    text-align: center;
}

.footer-stat .stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--current-primary, #6366f1);
    margin-bottom: 0.2rem;
}

.footer-stat .stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-link:hover {
    color: var(--current-primary, #6366f1);
    transform: translateX(5px);
}

.footer-link::before {
    content: '→';
    opacity: 0;
    transition: var(--transition);
}

.footer-link:hover::before {
    opacity: 1;
}

/* Doctor Info in Footer */
.doctor-info {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.doctor-info h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.doctor-info .credentials {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

/* Clinic Locations in Footer */
.clinic-location {
    margin-bottom: 2rem;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid var(--current-primary, #6366f1);
}

.clinic-location:last-child {
    margin-bottom: 0;
}

.clinic-location h6 {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.clinic-location h6 i {
    color: var(--current-primary, #6366f1);
    font-size: 0.9rem;
}

.clinic-location .address p {
    margin-bottom: 0.2rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.4;
}

.clinic-location .timing {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.clinic-location .phone {
    color: var(--current-primary, #6366f1);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.clinic-location .phone i {
    font-size: 0.8rem;
}

/* Footer Services */
.footer-services {
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-services h4 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 2rem;
}

.footer-services .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.footer-services .service-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-services .service-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.footer-services .service-item i {
    font-size: 1.2rem;
    color: var(--current-primary, #6366f1);
    flex-shrink: 0;
}

.footer-services .service-item span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Footer Emergency */
.footer-emergency {
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.emergency-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.emergency-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--current-gradient, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.emergency-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.emergency-numbers {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.emergency-number {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.emergency-number:hover {
    background: var(--current-gradient, #6366f1);
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.emergency-number.womens:hover {
    background: var(--womens-gradient);
}

.emergency-number.general:hover {
    background: var(--general-gradient);
}

.emergency-number span {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Footer Bottom */
.footer-bottom {
    padding: 2rem 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.footer-location,
.footer-accreditation {
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-location i,
.footer-accreditation i {
    color: var(--current-primary, #6366f1);
    font-size: 0.8rem;
}

.footer-separator {
    color: rgba(255, 255, 255, 0.5);
}

/* Mobile Responsive - Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 3rem 0;
    }
    
    .footer-logo {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .footer-logo h3 {
        font-size: 1.3rem;
    }
    
    .footer-description {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .footer-stats {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .footer-stat .stat-number {
        font-size: 1.5rem;
    }
    
    .footer-column h4 {
        font-size: 1.2rem;
        justify-content: center;
        text-align: center;
        margin-bottom: 1.2rem;
    }
    
    .footer-links {
        text-align: center;
    }
    
    .footer-link {
        justify-content: center;
    }
    
    .doctor-info {
        padding: 1.2rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .clinic-location {
        padding: 1rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .clinic-location h6 {
        justify-content: center;
        margin-bottom: 0.6rem;
    }
    
    .clinic-location .phone {
        justify-content: center;
    }
    
    .footer-services {
        padding: 2.5rem 0;
    }
    
    .footer-services h4 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-services .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .footer-services .service-item {
        padding: 0.8rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .footer-services .service-item span {
        font-size: 0.85rem;
    }
    
    .footer-emergency {
        padding: 2.5rem 0;
    }
    
    .emergency-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .emergency-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .emergency-content h4 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .emergency-numbers {
        gap: 0.6rem;
        width: 100%;
    }
    
    .emergency-number {
        padding: 0.6rem 1rem;
        justify-content: center;
    }
    
    .emergency-number span {
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        padding: 1.5rem 0;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .copyright {
        font-size: 0.85rem;
    }
    
    .footer-location,
    .footer-accreditation {
        font-size: 0.85rem;
    }
    
    .footer-separator {
        display: none;
    }
}

/* Small Mobile Responsive - Footer */
@media (max-width: 480px) {
    .footer-content {
        gap: 2rem;
        padding: 2.5rem 0;
    }
    
    .footer-logo h3 {
        font-size: 1.2rem;
    }
    
    .footer-description {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }
    
    .footer-stats {
        gap: 1rem;
    }
    
    .footer-stat .stat-number {
        font-size: 1.3rem;
    }
    
    .footer-stat .stat-label {
        font-size: 0.75rem;
    }
    
    .footer-column h4 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .footer-link {
        font-size: 0.9rem;
    }
    
    .doctor-info {
        padding: 1rem;
        margin-bottom: 1.2rem;
    }
    
    .doctor-info h5 {
        font-size: 1.1rem;
        margin-bottom: 0.4rem;
    }
    
    .doctor-info .credentials {
        font-size: 0.8rem;
    }
    
    .clinic-location {
        padding: 0.8rem;
        margin-bottom: 1.2rem;
    }
    
    .clinic-location h6 {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    .clinic-location .address p {
        font-size: 0.85rem;
        margin-bottom: 0.1rem;
    }
    
    .clinic-location .timing {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }
    
    .clinic-location .phone {
        font-size: 0.85rem;
    }
    
    .footer-services {
        padding: 2rem 0;
    }
    
    .footer-services h4 {
        font-size: 1.2rem;
        margin-bottom: 1.2rem;
    }
    
    .footer-services .services-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .footer-services .service-item {
        padding: 0.6rem;
        gap: 0.4rem;
    }
    
    .footer-services .service-item i {
        font-size: 1rem;
    }
    
    .footer-services .service-item span {
        font-size: 0.8rem;
    }
    
    .footer-emergency {
        padding: 2rem 0;
    }
    
    .emergency-card {
        padding: 1.2rem;
        gap: 1.2rem;
    }
    
    .emergency-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .emergency-content h4 {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }
    
    .emergency-number {
        padding: 0.5rem 0.8rem;
    }
    
    .emergency-number span {
        font-size: 0.85rem;
    }
    
    .footer-bottom {
        padding: 1.2rem 0;
    }
    
    .copyright {
        font-size: 0.8rem;
    }
    
    .footer-location,
    .footer-accreditation {
        font-size: 0.8rem;
    }
}

/* Back to Top Button */

.footer-column.clinic-locations-footer {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
    margin-top: 2rem;
}
.footer-column.clinic-locations-footer .clinic-location {
    min-width: 220px;
    max-width: 260px;
    flex: 1 1 220px;
    margin-bottom: 0;
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    border-left: 3px solid var(--current-primary, #6366f1);
    padding: 1.2rem;
    text-align: left;
}
@media (max-width: 900px) {
    .footer-column.clinic-locations-footer {
        flex-direction: column;
        gap: 1.2rem;
    }
}

.footer-content.general-footer {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: space-between;
    align-items: flex-start;
    padding: 4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-content.general-footer .footer-column {
    flex: 1 1 220px;
    min-width: 220px;
    max-width: 350px;
}
@media (max-width: 900px) {
    .footer-content.general-footer {
        flex-direction: column;
        gap: 2rem;
        padding: 2.5rem 0;
    }
    .footer-content.general-footer .footer-column {
        max-width: 100%;
        min-width: 0;
    }
}
