@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #008080;
    --primary-dark: #006666;
    --secondary-color: #2c3e50;
    --accent-color: #e7f3f3;
    --text-color: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
    width: 100%;
    position: relative;
    overflow-x: clip;
}

body {
    /* font-family: 'Outfit', sans-serif; */
    /* color: var(--text-color); */
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: clip;
    font: 13px / 1.65em "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #444;
}

main {
    overflow-x: clip;
    width: 100%;
}

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

ul {
    list-style: none;
}

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

/* Header Styles */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

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

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

.top-bar-info {
    display: flex;
    gap: 20px;
    
}

.top-bar-info i {
    margin-right: 8px;
}

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

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

header {
    background: #fff;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1100;
    box-shadow: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

header .container {
    position: relative;
}

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

.logo img {
    height: 80px;
    width: auto;
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


/* sticky navbar */

/* Top bar normal */
.top-bar{
    position: relative;
    z-index: 1200;
}

/* Sticky Navbar */
header.scrolled {
    padding: 5px 0;
    box-shadow: 0 10px 30px rgba(0, 128, 128, 0.06);
    border-bottom: none;
}

@media (min-width: 769px) {
    header.scrolled .logo img {
        height: 55px;
    }
}


/* Mega Menu Styles */
.nav-links > ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links li {
    position: relative;
    padding: 10px 0;
}

.nav-links li.has-mega-menu {
    position: static;
}

.nav-links li i {
    font-size: 11px;
    margin-left: 5px;
    vertical-align: middle;
}

.nav-links li a {
    font-weight: 600; /* Bold link text */
    color: var(--primary-color);
    transition: var(--transition);
}

.nav-links li:hover > a {
    color: var(--secondary-color);
}

.nav-links li:hover .mega-menu,
.nav-links li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu, .dropdown-menu {
    display: block; /* Override Bootstrap 5 display: none */
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background-color: #fff;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    padding: 30px;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1000;
    border-top: 3px solid var(--primary-color);
    border-left: none;
    border-right: none;
    border-bottom: none;
    margin: 0; /* Reset Bootstrap margin */
}

.mega-menu {
    width: 900px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.dropdown-menu {
    width: 250px;
    padding: 15px 0;
}

.menu-column h3 {
    color: var(--primary-color);
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    letter-spacing: 1px;
}

.menu-column ul {
    padding: 0;
}

.menu-column ul li {
    padding: 5px 0;
}

.menu-column ul li a {
    color: #666;
    font-size: 14px;
    font-weight: 400;
    transition: var(--transition);
}

.menu-column ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 25px;
    color: var(--primary-color);
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
}

.dropdown-menu li a:hover {
    background-color: #f8fbfb;
    color: var(--secondary-color);
    padding-left: 30px;
}

.appointment-btn {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    display: inline-block;
    transition: var(--transition);
}

.appointment-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 128, 128, 0.2);
}

/* Slider Styles */
.hero-slider {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.swiper {
    width: 100%;
}

.swiper-slide {
    position: relative;
    width: 100%;
}

.swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* Footer Styles */
.site-footer {
    background-color: #332a30;
    color: #cccccc;
    padding: 50px 0 0;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 600;
}

.footer-col p {
    margin-bottom: 12px;
    line-height: 1.8;
}

.footer-col .map-placeholder {
    width: 100%;
    height: 150px;
    background-color: #e5e4d7;
    border: 1px solid #444;
}

.footer-bottom {
    background-color: #2b2328;
    padding: 20px 0;
    border-top: 1px solid #444;
}

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

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

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

.footer-social a {
    color: var(--primary-color);
    font-size: 14px;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: rgba(0,0,0,0.5);
    color: #fff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #666;
    border-radius: 4px;
    z-index: 100;
}

@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom .container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Welcome Section Styles */
.welcome-section {
    background-color: #f4f4f4;
    padding: 40px 0;
}

.welcome-grid {
    display: flex;
    gap: 40px;
    align-items: stretch;
}

.welcome-card {
    flex: 1.5;
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 4px;
    overflow: hidden;
}

.welcome-card-header {
    background-color: #2e68b1; /* Blue from screenshot */
    color: #fff;
    padding: 20px;
    text-align: center;
}

.welcome-card-header h2 {
    font-size: 24px;
    font-weight: 500;
}

.welcome-card-body {
    padding: 30px;
    color: #666;
    line-height: 1.8;
    font-size: 15px;
    text-align: justify;
}

.read-more-btn {
    display: inline-block;
    background-color: #5c7dd2; /* Lighter blue from button screenshot */
    color: #fff !important;
    padding: 10px 25px;
    margin-top: 20px;
    font-weight: 500;
    transition: var(--transition);
}

.read-more-btn:hover {
    background-color: #2e68b1;
    transform: translateY(-2px);
}

.welcome-image {
    flex: 1;
    display: flex;
    align-items: stretch;
    min-height: 400px;
    max-height: 650px;
    overflow: hidden;
}

.welcome-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: block;
}

@media (max-width: 1024px) {
    .welcome-grid {
        flex-direction: column;
    }
}

/* Categories Section Styles */
.categories-section {
    padding: 40px 0;
    background-color: #fff;
}

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

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
}

.category-icon-box {
    width: 180px;
    height: 180px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 25px;
    transition: var(--transition);
}

.category-icon-box img {
    width: 100px;
    height: auto;
}

.category-item h3 {
    color: var(--primary-color);
    font-size: 22px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.category-item:hover .category-icon-box {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

/* Diseases & Conditions Section Styles */
.diseases-section {
    padding: 50px 0;
    background-color: #f9f9f9;
}

.section-heading {
    text-align: center;
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 30px;
    text-transform: uppercase;
    font-weight: 700;
}

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

.disease-col {
    text-align: center;
    background: #fff;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.disease-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.disease-icon img {
    width: 100%;
    height: auto;
}

.disease-col h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 5px;
}

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

.disease-list li {
    margin-bottom: 12px;
    color: #666;
    font-size: 16px;
}

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

/* Services Section Styles */
.services-section {
    padding: 50px 0;
    background-color: #fff;
}

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

.service-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f1f3f6;
    padding: 30px;
    border-radius: 4px;
    transition: var(--transition);
}



.service-info {
    flex: 1;
}

.service-info h3 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 10px;
}

.service-info a {
    color: #2e68b1;
    font-size: 14px;
    font-weight: 500;
}

.service-icon-small {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon-small img {
    max-width: 100%;
    height: auto;
}

.service-box:hover {
    background-color: #e2e6eb;
    transform: translateY(-5px);
}

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

/* Surgery Section Styles */
.surgery-section {
    padding: 40px 0 0;
    background-color: #fff;
}

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

.surgery-card {
    background-color: #fff;
    border-radius: 4px;
    overflow: visible; /* Allow icon to overlap */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.surgery-card-header {
    background-color: #2e68b1;
    color: #fff;
    padding: 30px 20px 60px; /* Extra bottom padding for icon overlap */
}

.surgery-card-header h3 {
    font-size: 22px;
    font-weight: 500;
}

.surgery-card-body {
    padding: 60px 25px 40px; /* Top padding to account for overlapping icon */
    background-color: #fff;
    position: relative;
}

.surgery-icon-overlap {
    width: 100px;
    height: 100px;
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 2;
    border: 3px solid #fff;
}

.surgery-icon-overlap img {
    width: 60px;
    height: auto;
}

.surgery-card-body p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .surgery-grid {
        grid-template-columns: 1fr;
        gap: 60px; /* More gap because of overlap */
    }
}

/* Testimonials Section Styles */
.testimonials-section {
    padding: 50px 0;
    background-color: #f0f7f7;
    position: relative;
}

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

.testimonial-card {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 128, 128, 0.05);
    position: relative;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 128, 128, 0.1);
}

.quote-icon {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #e0f0f0;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.testimonial-user img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
}

.testimonial-user h4 {
    color: var(--secondary-color);
    font-size: 18px;
    font-weight: 600;
}

.testimonial-text {
    color: #666;
    font-size: 15px;
    line-height: 1.8;
    font-style: italic;
}

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

/* Balanced & Premium About Page Styles */
.about-hero-balanced {
    background: var(--accent-color); /* Soft brand medical teal-gray */
    padding: 50px 0 45px; /* Clean, balanced padding */
    text-align: center;
}

.about-hero-balanced h1 {
    color: var(--secondary-color) !important;
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 5px;
}

.about-hero-balanced .breadcrumb a {
    color: var(--primary-color) !important;
}

.about-hero-balanced .breadcrumb a:hover {
    color: var(--primary-dark) !important;
    text-decoration: underline;
}

.about-hero-balanced .breadcrumb .separator {
    color: var(--text-light) !important;
}

.about-hero-balanced .breadcrumb .current {
    color: var(--secondary-color) !important;
}

.hero-content-centered .top-tag {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.3);
}

.hero-content-centered h1 {
    font-size: 54px;
    margin-bottom: 5px;
    font-weight: 800;
}

.breadcrumb {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-size: 16px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

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

.breadcrumb .separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
}

.breadcrumb .current {
    color: #fff;
    font-weight: 600;
}

.hero-content-centered p {
    font-size: 22px;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

/* Profile Section Balanced */
.profile-section-balanced {
    padding: 40px 0;
    background: #fff;
}

.profile-header-wide {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 60px;
    background: #fdfdfd;
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}

.profile-img-box {
    position: relative;
    flex-shrink: 0;
}

.profile-img-box img {
    width: 280px;
    height: 350px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.exp-badge-small {
    position: absolute;
    bottom: -15px;
    right: -15px;
    background: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 5px 15px rgba(0, 128, 128, 0.3);
}

.profile-title-box .founder-tag {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    margin-bottom: 10px;
    display: block;
}

.profile-title-box h2 {
    font-size: 48px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.profile-title-box .deg {
    font-size: 20px;
    color: #777;
    margin-bottom: 30px;
}

.quick-contact-strip {
    display: flex;
    gap: 30px;
}

.quick-contact-strip span {
    background: #f0f7f7;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.bio-full-width .bio-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.bio-columns p {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

/* Facility Grid */
.facility-grid-section {
    padding: 40px 0;
    background: #f8fbfb;
}

.section-title-premium {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 20px;
}

.section-title-premium::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

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

.facility-card-compact {
    background: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.03);
    transition: var(--transition);
}

.facility-card-compact:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 128, 128, 0.08);
}

.card-icon {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.facility-card-compact h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--secondary-color);
}

.facility-card-compact p {
    font-size: 15px;
    color: #777;
    line-height: 1.6;
}

.surgery-showcase {
    background: #fff;
    padding: 50px;
    border-radius: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.03);
}

.surgery-info {
    flex: 1;
}

.surgery-info h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.surgery-info p {
    color: #666;
    line-height: 1.7;
}

.staff-badge-balanced {
    background: var(--accent-color);
    padding: 20px 30px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--primary-color);
    font-weight: 700;
}

/* Balanced Tabs */
.professional-record-balanced {
    padding: 50px 0;
    background: #fff;
}

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

.tabs-nav-balanced {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.tab-link {
    padding: 15px 30px;
    border: 2px solid #eee;
    background: #fff;
    border-radius: 12px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: var(--transition);
}

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

.tab-link.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 128, 128, 0.2);
}

.tabs-body-balanced {
    background: #fdfdfd;
    padding: 50px;
    border-radius: 30px;
    border: 1px solid #f0f0f0;
}

.tab-pane-balanced {
    display: none;
    animation: fadeIn 0.4s ease;
}

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

.record-group {
    margin-bottom: 30px;
}

.record-group:last-child {
    margin-bottom: 0;
}

.record-group h4 {
    font-size: 22px;
    color: var(--secondary-color);
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.record-group h4 i {
    color: var(--primary-color);
    font-size: 18px;
}

.list-2-col ul {
    column-count: 2;
    column-gap: 50px;
    list-style: none;
    padding: 0;
}

.list-2-col li {
    padding: 10px 0;
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    position: relative;
    padding-left: 20px;
    break-inside: avoid;
}

.list-2-col li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

@media (max-width: 1024px) {
    .profile-header-wide {
        flex-direction: column;
        text-align: center;
    }
    .quick-contact-strip {
        justify-content: center;
    }
    .bio-columns {
        grid-template-columns: 1fr !important;
    }
    .modern-grid-3 {
        grid-template-columns: 1fr 1fr;
    }
    .surgery-showcase {
        flex-direction: column;
        text-align: center;
    }
    .list-2-col ul {
        column-count: 1;
    }
}

@media (max-width: 768px) {
    .modern-grid-3 {
        grid-template-columns: 1fr;
    }
    .tabs-nav-balanced {
        flex-direction: column;
    }
    .hero-content-centered h1 {
        font-size: 36px;
    }
    .profile-title-box h2 {
        font-size: 32px;
    }
}

/* Contact Page Styles */
.contact-hero {
    background: linear-gradient(rgba(0, 128, 128, 0.8), rgba(0, 128, 128, 0.8)), url('../img/hospital.jpg');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    color: #fff;
    text-align: center;
}

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

.contact-info-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    text-align: center;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.contact-info-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.contact-info-card i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-info-card h3 {
    color: var(--secondary-color);
    font-size: 20px;
    margin-bottom: 20px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info-card p {
    color: #666;
    font-size: 15px;
    line-height: 1.8;
}

.contact-details-section {
    padding-bottom: 40px;
}

.contact-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form-container {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.contact-form-container h2 {
    margin-bottom: 30px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.1);
}

.submit-btn {
    width: 100%;
    background: var(--primary-color);
    color: #fff;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

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

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    height: 100%;
    min-height: 450px;
}

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .contact-flex {
        flex-direction: column;
        gap: 30px;
    }
    .map-container {
        min-height: 350px;
    }
}

/* Global Arranged Condition Page Styles */
.condition-section {
    padding: 50px 0;
    background: #fff;
}

.condition-content {
    max-width: 1400px;
    margin: 0 auto;
}

/* Intro Grid: Image Left, Info Box Right */
.condition-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 30px;
}

.condition-intro-grid .condition-image {
    margin: 0;
    max-width: 550px;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    background: #fdfdfd; /* Light background for 'contain' mode */
    display: flex;
    align-items: center;
    justify-content: center;
}

.condition-intro-grid .condition-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Prevents cutting of medical details */
    transition: transform 0.5s ease;
}

.condition-intro-grid .info-box {
    margin: 0;
    flex: 1;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.condition-image img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.condition-image:hover img {
    transform: scale(1.02);
}

/* Info Box Arrangement */
.info-box {
    background: #fdfdfd;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #f0f0f0;
    border-left: 6px solid var(--primary-color);
    margin: 25px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02);
}

.info-box p {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    margin: 0;
}

/* Section Heading Arrangement */
.section-heading {
    font-size: 32px;
    color: var(--secondary-color);
    margin: 40px 0 20px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
    font-weight: 700;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Grid Arrangement */
.condition-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 20px 0;
}

/* Card Arrangement */
.clinic-card {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #eee;
    box-shadow: 0 8px 30px rgba(0,0,0,0.03);
    transition: var(--transition);
}

.clinic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 128, 128, 0.08);
    border-color: var(--accent-color);
}

.clinic-card h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 15px;
}

.clinic-card p, .clinic-card ul li {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

/* List Arrangement */
.condition-content ul {
    list-style: none;
    padding: 0;
}

.condition-content ul li {
    padding: 10px 0;
    position: relative;
    padding-left: 25px;
    display: block;
}

.condition-content ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* Warning/Alert Box Arrangement */
.warning-box {
    background: #fff5f5;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #feb2b2;
    color: #c53030;
    margin: 25px 0;
    display: block;
}

/* CTA Arrangement */
.appointment-btn {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 18px 45px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 128, 128, 0.2);
    margin-top: 40px;
}

.appointment-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(2, 27, 51, 0.2);
    color: #fff;
}

@media (max-width: 1024px) {
    .condition-intro-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .condition-grid {
        grid-template-columns: 1fr;
    }
    .condition-intro-grid .condition-image {
        border-radius: 15px;
        height: auto;
    }
    .condition-intro-grid .condition-image img {
        height: auto;
    }
    /* Limit inline grids to max 2 columns on tablet */
    [style*="grid-template-columns: 1fr 1fr 1fr"],
    [style*="grid-template-columns:1fr 1fr 1fr"],
    [style*="grid-template-columns: 1fr 1fr 1fr 1fr"],
    [style*="grid-template-columns:1fr 1fr 1fr 1fr"],
    [style*="grid-template-columns: repeat(3"],
    [style*="grid-template-columns:repeat(3"],
    [style*="grid-template-columns: repeat(4"],
    [style*="grid-template-columns:repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}



.treatment-step {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
}

.step-num {
    background: var(--primary-color);
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

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

/* --- MOBILE RESPONSIVENESS (MAIN) --- */

/* Header & Navigation */
.menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--secondary-color);
    cursor: pointer;
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: block;
        z-index: 1100;
    }

    .top-bar {
        display: none;
    }

    header {
        padding: 12px 0;
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 1100; /* Higher than backdrop */
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #fff;
        box-shadow: 10px 0 30px rgba(0,0,0,0.1);
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1200;
        padding-top: 80px;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        overflow-y: auto; /* Ensure scrolling works */
        -webkit-overflow-scrolling: touch;
    }

    .nav-links.active {
        left: 0;
    }

    /* Keep backdrop but ensure it's behind header and menu */
    body.menu-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.4);
        z-index: 1050; /* Lower than header (1100) */
    }

    .nav-links ul {
        flex-direction: column;
        padding: 0 0 100px; /* Extra padding at bottom for scrolling */
        align-items: stretch !important;
        gap: 0 !important;
    }

    .nav-links ul li {
        width: 100%;
        margin: 0;
        padding: 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-links ul li a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 25px;
        font-size: 16px;
        color: var(--secondary-color);
        width: 100%;
        background: #fff;
    }

    .nav-links ul li a i {
        transition: transform 0.3s ease;
    }

    /* Submenu States */
    .mega-menu, .dropdown-menu {
        display: none !important; 
        position: static !important;
        width: 100% !important;
        background: #fff !important; /* Keep white as requested */
        box-shadow: none !important;
        padding: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        border-top: none !important;
        border-left: 4px solid var(--primary-color) !important;
    }

    .nav-links ul li.dropdown-open > .mega-menu,
    .nav-links ul li.dropdown-open > .dropdown-menu {
        display: block !important;
    }

    .nav-links ul li.dropdown-open > a {
        background: #fff;
        color: var(--primary-color);
    }

    .nav-links ul li.dropdown-open > a i {
        transform: rotate(180deg);
    }

    /* Convert Mega Menu to Single Column */
    .mega-menu {
        grid-template-columns: 1fr !important;
    }

    .menu-column {
        padding: 15px 25px;
        width: 100% !important;
        margin: 0 !important;
    }

    .menu-column h3 {
        font-size: 14px !important;
        margin-bottom: 15px !important;
        color: var(--primary-color);
        border-bottom: 1px dashed #ddd;
    }

    .menu-column ul li {
        border-bottom: none;
    }

    .menu-column ul li a {
        padding: 10px 0 !important;
        font-size: 14px !important;
        color: #555 !important;
    }

    /* Simple Dropdown Fix */
    .dropdown-menu {
        padding: 10px 25px !important;
    }

    .dropdown-menu li {
        border-bottom: none !important;
    }

    .dropdown-menu li a {
        padding: 10px 0 !important;
        font-size: 14px !important;
    }

    /* Disable hover triggers explicitly on mobile */
    .nav-links li:hover .mega-menu,
    .nav-links li:hover .dropdown-menu {
        display: none !important;
    }

    .logo img {
        height: 100px;
        width: auto;
    }
}

/* Home Page Sections */
@media (max-width: 768px) {
    .hero-content-centered h1 {
        font-size: 32px;
    }

    .hero-content-centered p {
        font-size: 16px;
    }

    .section-heading {
        font-size: 28px;
    }

    .diseases-grid, .testimonial-grid, .footer-grid, .modern-grid-3 {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

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

    .footer-bottom .flex-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .profile-header-wide {
        flex-direction: column;
        gap: 30px;
        padding: 20px;
    }

    .profile-img-box img {
        width: 100%;
        height: auto;
    }

    .bio-columns {
        grid-template-columns: 1fr !important;
    }

    .condition-intro-grid {
        grid-template-columns: 1fr !important;
    }
 
    .condition-intro-grid .condition-image {
        height: auto;
    }
    .condition-intro-grid .condition-image img {
        height: auto;
    }

    .welcome-image {
        min-height: 250px;
        height: 280px;
    }

    /* Collapse all inline grids to a single column on mobile */
    [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    .condition-content {
        padding: 0 15px;
    }

    .surgery-showcase {
        flex-direction: column;
        padding: 25px;
        text-align: center;
    }

    /* Navbar compactness */
    header {
        padding: 8px 0;
    }

    .logo img {
        height: 45px;
    }

    /* Slider Arrows Size */
    .hero-slider {
        --swiper-navigation-size: 20px;
    }

    .swiper-button-prev, 
    .swiper-button-next {
        background: rgba(0,0,0,0.2);
        width: 35px;
        height: 35px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .swiper-button-prev:after, 
    .swiper-button-next:after {
        font-size: 16px !important;
    }

    .swiper-button-prev { left: 5px; }
    .swiper-button-next { right: 5px; }
}

/* Fix for large images site-wide */
img {
    max-width: 100%;
    height: auto;
}

/* Active State Styles */
.nav-links li a.active {
    color: var(--primary-color) !important;
    border-bottom: 2px solid var(--primary-color);
}

.mega-menu li a.active-sub {
    color: var(--primary-color) !important;
    font-weight: 700 !important;
    padding-left: 5px;
}

/* --- Added Animations --- */

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

/* Surgery Card Hover */
.surgery-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}



/* Facility Card Hover */
.facility-card-compact {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.facility-card-compact:hover {
    background-color: #fff;
    box-shadow: var(--shadow);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.facility-card-compact:hover .card-icon {
    color: var(--white);
    background-color: var(--primary-color);
    transform: scale(1.1) rotate(5deg);
}

/* Button Pulse Animation */
@keyframes pulse-primary {
    0% { box-shadow: 0 0 0 0 rgba(0, 128, 128, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 128, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 128, 128, 0); }
}

.read-more-btn {
    animation: pulse-primary 2s infinite;
}

/* Section Title Underline Animation */
.section-heading::after, .section-title-premium::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    margin: 15px auto 0;
    transition: width 0.3s ease;
}

.section-heading:hover::after, .section-title-premium:hover::after {
    width: 100px;
}

/* Hero Text Animation */
.hero-content-centered h1 {
    animation: fadeInUp 1s ease-out;
}

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

/* --- Gallery & Lightbox Styles --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item-wrapper {
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    aspect-ratio: 1 / 1;
}

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

.gallery-item-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-item-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 27, 51, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item-wrapper:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: #fff;
    font-size: 30px;
}

/* Lightbox Modal Styles */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: auto;
}

.lightbox-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 1200px;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    transition: opacity 0.3s ease;
    object-fit: contain;
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

.close-lightbox:hover {
    color: var(--accent-color);
}

.prev-img, .next-img {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 20px;
    margin-top: -30px;
    color: white;
    font-weight: bold;
    font-size: 40px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    text-decoration: none;
    background: rgba(0,0,0,0.2);
}

.next-img {
    right: -60px;
    border-radius: 3px 0 0 3px;
}

.prev-img {
    left: -60px;
}

.prev-img:hover, .next-img:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.lightbox-caption {
    text-align: center;
    color: #ccc;
    padding: 20px 0;
    font-size: 18px;
}

@media (max-width: 1400px) {
    .prev-img { left: 0; }
    .next-img { right: 0; }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 10px;
    }
    .close-lightbox { top: 15px; right: 20px; font-size: 40px; }
    .lightbox-content { width: 95%; height: 70vh; }
}

/* Gallery Groupings & Headings styling */
.gallery-group {
    margin-bottom: 70px;
}

.gallery-group:last-child {
    margin-bottom: 0;
}

.gallery-group-title {
    text-align: center;
    color: var(--secondary-color);
    font-size: 26px;
    font-weight: 600;
    margin: 0 auto 35px;
    max-width: 950px;
    line-height: 1.5;
    position: relative;
    padding-bottom: 20px;
}

.gallery-group-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.gallery-group-title:hover::after {
    width: 100px;
}

@media (max-width: 768px) {
    .gallery-group {
        margin-bottom: 50px;
    }
    .gallery-group-title {
        font-size: 20px;
        margin-bottom: 25px;
        padding-bottom: 15px;
    }
}


