/* Design System Variables */
:root {
    --primary: #0a6e65; /* Deep Teal/Green from logo & flyer */
    --primary-light: #0d8479;
    --primary-dark: #07524b;
    --primary-rgb: 10, 110, 101;
    --secondary: #e11d48; /* Red/Crimson for Coming Soon / Urgency */
    --accent: #fbbf24; /* Gold/Amber for appointment highlight */
    --accent-dark: #d97706;
    --accent-rgb: 251, 191, 36;
    --text-main: #0f172a; /* Premium dark slate */
    --text-muted: #64748b;
    --bg-light: #f0fdfa; /* Light teal tint */
    --bg-white: #ffffff;
    --border-color: #cbd5e1;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 25px 50px rgba(10, 110, 101, 0.15);
    --radius-sm: 8px;
    --radius-md: 15px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: #fafdfd;
    overflow-x: hidden;
}

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

/* Top Bar */
.top-bar {
    background-color: var(--primary-dark);
    color: white;
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1001;
    height: 40px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.top-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.top-bar-info {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.top-bar-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-bar-info a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.top-bar-info a:hover {
    color: var(--accent);
}

.top-bar-social {
    display: flex;
    gap: 1rem;
}

.top-bar-social a {
    color: white;
    transition: var(--transition);
    font-size: 0.95rem;
}

.top-bar-social a:hover {
    color: var(--accent);
    transform: translateY(-1px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 40px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
    height: 70px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-logo .logo-img {
    height: 50px;
    width: auto;
    margin-right: 15px;
    border-radius: 6px;
    transition: var(--transition);
}

.nav-logo .logo-img:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-main);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    margin-top: 110px; /* Accounts for 40px top-bar + 70px navbar */
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
    position: relative;
    overflow: hidden;
}

.hero::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 1440 320"><path fill="%23ffffff" fill-opacity="0.08" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.25;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--bg-white);
    color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    background: var(--accent);
    color: var(--primary-dark);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.hero-image {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.hero-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.hero-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
}

.hero-card i {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
}

.hero-card h3 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Featured Doctors Section */
.featured-doctors {
    padding: 80px 0;
    background: #f4fbfb;
    clear: both;
    position: relative;
    z-index: 1;
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.doctor-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--border-color);
}

.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.doctor-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

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

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

.doctor-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.doctor-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.doctor-info .specialty {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.doctor-info .degree {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.doctor-info .experience {
    color: #10b981;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.doctor-time {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.doctor-time i {
    margin-right: 0.5rem;
    color: var(--primary);
}

.book-btn {
    width: 100%;
    margin-top: auto;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.book-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(10, 110, 101, 0.25);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.see-all-container {
    text-align: center;
    margin-top: 3rem;
    clear: both;
}

.see-all-btn {
    padding: 14px 30px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.see-all-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(10, 110, 101, 0.15);
}

.see-all-btn i {
    margin-left: 0.5rem;
    transition: var(--transition);
}

.see-all-btn:hover i {
    transform: translateX(5px);
}

/* Page Header */
.page-header {
    padding: 150px 0 60px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    text-align: center;
    color: white;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Doctors Section */
.doctors-section {
    padding: 80px 0;
    background: #f8fafc;
}

/* Services Overview */
.services-overview {
    padding: 100px 0;
    background: #f4fbfb;
}

.section-title {
    font-size: 2.6rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 4rem;
    font-size: 1.15rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.service-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.pathology-card::before { background: linear-gradient(90deg, var(--primary), var(--primary-light)); }
.checkup-card::before { background: linear-gradient(90deg, #0d9488, #2dd4bf); }
.pharmacy-card::before { background: linear-gradient(90deg, #10b981, #34d399); }
.ecg-card::before { background: linear-gradient(90deg, var(--secondary), #fb7185); }
.xray-card::before { background: linear-gradient(90deg, #4f46e5, #818cf8); }
.opd-card::before { background: linear-gradient(90deg, #0284c7, #38bdf8); }

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.pathology-card .service-icon { background: linear-gradient(135deg, var(--primary), var(--primary-light)); }
.checkup-card .service-icon { background: linear-gradient(135deg, #0d9488, #2dd4bf); }
.pharmacy-card .service-icon { background: linear-gradient(135deg, #10b981, #34d399); }
.ecg-card .service-icon { background: linear-gradient(135deg, var(--secondary), #fb7185); }
.xray-card .service-icon { background: linear-gradient(135deg, #4f46e5, #818cf8); }
.opd-card .service-icon { background: linear-gradient(135deg, #0284c7, #38bdf8); }

.service-icon i {
    font-size: 1.8rem;
    color: white;
}

.service-card h3 {
    font-size: 1.45rem;
    font-weight: 750;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.service-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 500;
}

.service-features i {
    color: #10b981;
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

.service-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 6px 12px;
    background-color: #f0fdf4;
    color: #16a34a;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: auto;
    border: 1px solid #bbf7d0;
    width: fit-content;
}

.specialties-list {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-color);
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    font-weight: 500;
}

.specialties-list span {
    color: var(--primary-dark);
    font-weight: 600;
}

.service-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
    margin-top: auto;
}

.service-link:hover {
    color: var(--primary-dark);
}

.service-link i {
    margin-left: 0.5rem;
    transition: var(--transition);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* Medical Section */
.medical-section {
    padding: 80px 0;
    background: white;
}

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

.medical-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.medical-feature {
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: 1px solid transparent;
}

.medical-feature:hover {
    background: #f4fbfb;
    transform: translateY(-5px);
    border-color: var(--border-color);
}

.feature-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.medical-feature:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(10, 110, 101, 0.25);
}

.feature-icon i {
    font-size: 2.2rem;
    color: white;
}

.medical-feature h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.medical-feature p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Enhanced CTA Section */
.cta-section {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    border-radius: var(--radius-lg);
    color: white;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.cta-badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--accent);
    color: var(--primary-dark);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 850;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(251, 191, 36, 0.2);
}

.cta-section h3 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.cta-section p {
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-phones {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-phone-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 15px 35px;
    background-color: var(--bg-white);
    color: var(--primary-dark);
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.cta-phone-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    background-color: var(--accent);
    color: var(--primary-dark);
}

/* Pharmacy Section */
.pharmacy-section {
    padding: 80px 0;
    background: #f4fbfb;
}

.pharmacy-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

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

.pharmacy-feature {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

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

.pharmacy-feature .feature-icon {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.pharmacy-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.highlight-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 4px solid #10b981;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.highlight-card h4 {
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.highlight-card p {
    color: #64748b;
    font-size: 0.9rem;
}

/* Lab Section */
.lab-section {
    padding: 80px 0;
    background: white;
}

.lab-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

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

.lab-service {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

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

.lab-service .service-icon {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.lab-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.lab-feature-card {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

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

.lab-feature-card i {
    font-size: 2rem;
    color: #f59e0b;
    margin-bottom: 1rem;
}

.lab-feature-card h4 {
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.lab-feature-card p {
    color: #64748b;
    font-size: 0.9rem;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: #f8fafc;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

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

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

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

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
    color: white;
}

.contact-details h3 {
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.contact-details a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10, 110, 101, 0.1);
}

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

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 60px 0 20px;
}

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

.footer-section h4 {
    margin-bottom: 1.5rem;
    color: white;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.footer-logo .logo-img {
    height: 70px;
    width: auto;
    margin-bottom: 1rem;
    border-radius: 12px;
    filter: brightness(1.1) contrast(1.1);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.footer-logo .logo-img:hover {
    transform: scale(1.05);
    filter: brightness(1.2) contrast(1.2);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.footer-section p {
    color: #94a3b8;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 1rem;
}

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

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: white;
    font-family: inherit;
}

.newsletter-form input::placeholder {
    color: #94a3b8;
}

.newsletter-form button {
    width: 45px;
    height: 45px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--primary-light);
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .top-bar {
        display: none; /* Hide top-bar on mobile for clean screen space and to eliminate offset gaps */
    }
    
    .navbar {
        top: 0;
        position: fixed;
        height: 70px;
    }
    
    .hero {
        margin-top: 70px; /* Perfectly aligns with navbar height */
        padding: 60px 0;
    }
    
    .page-header {
        padding: 110px 0 40px; /* Responsive header padding */
    }
    
    .hamburger {
        display: flex;
    }
    
    /* Hamburger Menu Active Transforms (Animates into an X) */
    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .nav-menu {
        position: fixed;
        right: -50%;
        left: auto;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 50%;
        height: calc(100vh - 70px);
        text-align: center;
        transition: 0.3s ease-in-out;
        box-shadow: -5px 0 27px rgba(0, 0, 0, 0.08);
        padding: 2rem 0;
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.3rem;
    }
    
    .hero-image {
        grid-template-columns: 1fr;
        margin-top: 2rem;
    }
    
    /* 2 columns in a row on mobile viewports */
    .doctors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 10px;
    }
    
    .doctor-card {
        max-width: 100%;
        margin: 0;
    }
    
    .doctor-image {
        height: 140px; /* Compact height to avoid tall narrow faces */
    }
    
    .doctor-info {
        padding: 10px;
    }
    
    .doctor-info h3 {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    
    .doctor-info .specialty {
        font-size: 0.85rem;
        margin-bottom: 0.2rem;
    }
    
    .doctor-info .degree {
        font-size: 0.75rem;
        margin-bottom: 0.2rem;
    }
    
    .doctor-info .experience {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .doctor-time {
        font-size: 0.75rem;
        margin-bottom: 0.3rem;
    }
    
    .book-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .pharmacy-content,
    .lab-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .medical-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}
