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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Vazir', sans-serif;
    line-height: 1.6;
    color: #333;
    direction: rtl;
    overflow-x: hidden;
    overflow-y: auto;
}

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


.header { width: 100%; z-index: 1000; }
.navbar { min-height: 56px; }

.logo h2 {
    color: #4f46e5;
    font-weight: 600;
    margin: 0;
    font-size: 1.5rem;
}

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

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: #4f46e5;
}

.contact-info {
    color: #4f46e5;
    font-weight: 500;
    white-space: nowrap;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #4f46e5;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 1rem;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

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

.mobile-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    display: block;
}


.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 0 20px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 2;
    flex: 1;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #ff6b6b;
    color: white;
}

.btn-primary:hover {
    background: #ff5252;
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: white;
    color: #4f46e5;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
}


.hero-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 15px;
    border-radius: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #333;
    z-index: 3;
}

.hero-image {
    position: relative;
    z-index: 2;
}


.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

.scroll-btn:hover {
    color: #fff;
    transform: translateY(-5px);
}

.scroll-btn i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.services {
    padding: 80px 0;
    background: #f8fafc;
}

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

.section-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
}

.service-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    text-align: center;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 400px;

 
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.service-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}


.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -30px auto 1rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

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

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
    padding: 0 1rem;
}

.service-card p {
    color: #666;
    line-height: 1.6;
    padding: 0 1rem;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.service-card .btn {
    margin: 1rem 1rem 1.5rem;
    align-self: center;
}


.service-card h3 {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
}


.row.g-4 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; 
}

.row.g-4 > [class*="col-"] {
    display: flex;
    margin-bottom: 2rem;
    justify-content: center; 
}

.services-list {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.services-list h3 {
    color: #4f46e5;
    font-weight: 600;
    margin-bottom: 2rem;
}

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

.service-items li {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 1rem;
    color: #334155;
    transition: all 0.3s ease;
}

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

.service-items li:hover {
    background: #f8fafc;
    padding-right: 1rem;
    border-radius: 8px;
}

.service-items li i {
    color: #10b981;
    margin-left: 12px;
    font-size: 1.1rem;
    min-width: 20px;
}


.about {
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.features {
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.feature i {
    color: #4f46e5;
    margin-left: 10px;
    font-size: 1.2rem;
}


.image-gallery {
    position: relative;
}

.main-image {
    width: 100%;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.gallery-thumbs {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.thumb-img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.thumb-img:hover {
    opacity: 1;
    transform: scale(1.1);
}


.modal-content {
    max-width: 600px;
    background: white;
    border-radius: 15px;
}

.modal-content h3 {
    color: #4f46e5;
    margin-bottom: 1rem;
}

.modal-content ul {
    text-align: right;
    padding-right: 20px;
}

.modal-content li {
    margin-bottom: 8px;
    color: #666;
}


.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23e2e8f0' fill-opacity='0.2' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.6;
    z-index: 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.map-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.map-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(79, 70, 229, 0.15);
}

.hospital-image {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hospital-image {
    position: relative;
    padding: 20px;
}

.hospital-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.hospital-image:hover img {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-map {
    margin: 20px auto 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-map::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.btn-map:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

.btn-map:hover::before {
    opacity: 1;
}

.btn-map i {
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.btn-map:hover i {
    transform: translateX(-3px);
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: #4f46e5;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-left: auto;
    margin-right: auto;
}

.contact-item h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #666;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.footer {
    background: #333;
    color: white;
    padding: 40px 0 20px;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #4f46e5;
}

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

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

.footer-section p {
    color: #ccc;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #ccc;
}

/* Mobile First Styles */
.contact {
    padding: 2rem 0;
    background: #f8fafc;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

.contact-info-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.contact-item i {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #4f46e5;
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
}

.contact-item h4 {
    margin: 0 0 0.5rem 0;
    color: #1e293b;
    font-size: 1.1rem;
}

.contact-item p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
}

.map-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hospital-image {
    position: relative;
    width: 100%;
}

.hospital-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.btn-map {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    background: #4f46e5;
    color: white;
    border: none;
    border-radius: 0 0 12px 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-map:hover {
    background: #4338ca;
}

.btn-map i {
    font-size: 1.1em;
}

/* Tablet and Larger */
@media (min-width: 768px) {
    .contact {
        padding: 4rem 0;
    }
    
    .contact-content {
        flex-direction: row;
        padding: 0 2rem;
    }
    
    .contact-info-section {
        flex: 1;
        padding-left: 2rem;
    }
    
    .map-container {
        flex: 1;
        max-width: 600px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .contact-content {
        max-width: 1200px;
        padding: 0;
    }
    
    .contact-info-section {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .contact {
        padding: 1.5rem 0;
    }
    
    .contact-content {
        padding: 0 1rem;
    }
    
    .contact-item {
        padding: 1rem;
    }
    
    .contact-item i {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
    
    .hospital-image img {
        height: 240px;
    }
    
    .btn-map {
        padding: 0.875rem;
        font-size: 0.95rem;
    }
    
    /* Contact Section */
    .contact-content {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0 10px;
    }
    
    .contact-info-section {
        order: 2;
        width: 100%;
        margin-top: 1rem;
    }
    
    .map-container {
        order: 1;
        width: 100%;
        margin: 0;
        padding: 0;
        box-shadow: none;
    }
    
    .hospital-image {
        padding: 0 15px;
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        position: relative;
    }
    
    .hospital-image img {
        width: 100%;
        height: 220px;
        border-radius: 10px;
        margin: 0 0 20px 0;
        display: block;
        object-fit: cover;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    .btn-map {
        display: block;
        width: calc(100% - 30px);
        max-width: 100%;
        margin: 20px auto 0;
        padding: 14px;
        font-size: 1rem;
        border-radius: 8px;
        position: relative;
        z-index: 2;
        box-sizing: border-box;
        background: #4f46e5;
        color: white;
        text-align: center;
        text-decoration: none;
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .btn-map:hover {
        background: #4338ca;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    }
    
    .contact-item {
        flex-direction: row;
        align-items: flex-start;
        text-align: right;
        padding: 15px;
        margin-bottom: 15px;
        background: rgba(255, 255, 255, 0.8);
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .contact-item i {
        margin-left: 15px;
        margin-right: 0;
        flex-shrink: 0;
    }
    
    .contact-item div {
        text-align: right;
    }

    .navbar {
        padding: 0.75rem 0;
        position: relative;
    }

    .logo h2 {
        font-size: 1.2rem;
        line-height: 1.2;
    }

    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .contact-info {
        font-size: 0.8rem;
        order: 3;
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
    }

    .hero {
        height: 100vh;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 0 10px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .hero-text p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        padding: 14px 20px;
        font-size: 1rem;
    }

    .hero-badge {
        position: static;
        margin: 1rem auto 0;
        width: fit-content;
    }

    .scroll-down {
        bottom: 20px;
    }

    .scroll-btn {
        font-size: 0.8rem;
    }

    .scroll-btn i {
        font-size: 1.2rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hospital-image {
        padding: 0 15px 20px;
        margin: 0 auto;
        max-width: 100%;
    }
    
    .hospital-image img {
        height: 220px;
        margin: 0 auto;
        display: block;
    }
    
    .btn-map {
        padding: 12px 20px;
        font-size: 0.95rem;
        margin: 15px auto;
        display: block;
        width: 90%;
        max-width: 280px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        padding: 15px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        margin-bottom: 10px;
    }
    
    .contact-item i {
        margin-bottom: 10px;
    }

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

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

    .service-card {
        margin-bottom: 1.5rem;
        min-height: 350px;
        margin-left: auto; 
        margin-right: auto; 
    }

    .service-card h3 {
        min-height: 50px;
        font-size: 1.1rem;
    }

    .service-card p {
        min-height: 50px;
        font-size: 0.9rem;
    }

    .services-list {
        padding: 1.5rem;
        margin-top: 1rem;
    }

    .service-items li {
        font-size: 0.9rem;
        padding: 0.6rem 0;
    }

    .contact-item {
        text-align: center;
        gap: 0.5rem;
    }

    .contact-item p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .map-container {
        height: 250px;
    }
}


@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0;
        position: sticky;
        top: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(6px);
        z-index: 1001;
    }

    .mobile-menu { top: 60px; border-radius: 12px; margin: 0 12px; }
    .mobile-menu a { padding: 10px 6px; }

    .mobile-cta-bar {
        position: fixed;
        bottom: 0; left: 0; right: 0;
        background: linear-gradient(90deg, #4f46e5, #7c3aed);
        color: #fff;
        display: flex; justify-content: space-around; align-items: center;
        padding: 10px 12px; z-index: 1100;
        box-shadow: 0 -6px 20px rgba(0,0,0,0.15);
    }
    .mobile-cta-bar a { color: #fff; text-decoration: none; font-weight: 600; font-size: 0.95rem; }
    .mobile-cta-bar i { font-size: 1.1rem; margin-left: 6px; }
    .mobile-cta-spacer { height: 64px; }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        height: 100vh;
    }

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

    .hero-text h1 {
        font-size: 1.75rem;
    }

    .services, .about, .contact {
        padding: 60px 0;
    }

    .service-card {
        padding: 1rem;
    }

    .services-list {
        padding: 1rem;
    }
}

body.dark-mode {
    background-color: #1a202c; 
    color: #e2e8f0; 
}

body.dark-mode .navbar {
    background-color: #2d3748 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
}

body.dark-mode .navbar-brand,
body.dark-mode .nav-link,
body.dark-mode .navbar-text {
    color: #e2e8f0 !important; 
}

body.dark-mode .navbar-toggler-icon {
    filter: invert(1); 
}

body.dark-mode .hero {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%); /* Darker hero background */
}

body.dark-mode .hero-text h1,
body.dark-mode .hero-text p {
    color: #e2e8f0;
}

body.dark-mode .hero-badge {
    background: rgba(45, 55, 72, 0.95);
    color: #e2e8f0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

body.dark-mode .scroll-btn {
    color: #e2e8f0;
}

body.dark-mode .services {
    background: #2d3748; 
}

body.dark-mode .section-header h2,
body.dark-mode .section-header p {
    color: #e2e8f0;
}

body.dark-mode .service-card {
    background: #4a5568;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

body.dark-mode .service-card h3,
body.dark-mode .service-card p {
    color: #e2e8f0;
}

body.dark-mode .service-icon {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); /* Keep original gradient or adjust */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

body.dark-mode .services-list {
    background: #4a5568;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

body.dark-mode .services-list h3,
body.dark-mode .service-items li {
    color: #e2e8f0;
}

body.dark-mode .service-items li {
    border-bottom-color: #666 !important;
}

body.dark-mode .service-items li:hover {
    background: #2d3748;
}

body.dark-mode .about {
    background-color: #1a202c;
}

body.dark-mode .about-text h2,
body.dark-mode .about-text p {
    color: #e2e8f0;
}

body.dark-mode .feature i {
    color: #9f7aea; 
}

body.dark-mode .image-gallery img {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

body.dark-mode .modal-content {
    background: #2d3748;
    color: #e2e8f0;
}

body.dark-mode .modal-content h3 {
    color: #9f7aea;
}

body.dark-mode .modal-content li {
    color: #e2e8f0;
}

body.dark-mode .contact {
    background: #0f172a;
}

body.dark-mode .contact-item {
    background: #1e293b;
    border: 1px solid #334155;
}

body.dark-mode .contact-item h4 {
    color: #e2e8f0;
}

body.dark-mode .contact-item p {
    color: #94a3b8;
}

body.dark-mode .contact-item i {
    background: #7c3aed;
}

body.dark-mode .btn-map {
    background: #7c3aed;
}

body.dark-mode .btn-map:hover {
    background: #6d28d9;
}

body.dark-mode .contact-item {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid #334155;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}


@media (max-width: 400px) {
    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 12px;
    }
    
    .contact-item i {
        margin: 0 0 10px 0;
    }
    
    .contact-item div {
        text-align: center;
        width: 100%;
    }
    
    .btn-map {
        padding: 12px;
        font-size: 0.95rem;
    }
    
    .hospital-image img {
        height: 200px;
    }
}

body.dark-mode .map-container {
    background: #1e293b;
    border: 1px solid #334155;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

body.dark-mode .hospital-image img {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .hospital-image:hover img {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

body.dark-mode .btn-map {
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

body.dark-mode .btn-map:hover {
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4);
}

body.dark-mode .btn-map {
    background: #7c3aed;
}

body.dark-mode .btn-map:hover {
    background: #6d28d9;
}

body.dark-mode .contact-item i {
    background: #9f7aea;
}

body.dark-mode .contact-item h4,
body.dark-mode .contact-item p {
    color: #e2e8f0;
}

body.dark-mode .map-container {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

body.dark-mode .footer {
    background: #1a202c;
    border-top-color: #4a5568 !important;
}

body.dark-mode .footer-section h3,
body.dark-mode .footer-section h4 {
    color: #9f7aea;
}

body.dark-mode .footer-section p,
body.dark-mode .footer-section ul li,
body.dark-mode .footer-bottom p {
    color: #e2e8f0;
}

body.dark-mode .mobile-cta-bar {
    background: linear-gradient(90deg, #2d3748, #4a5568);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.5);
}

body.dark-mode .mobile-cta-bar a {
    color: #e2e8f0;
}

body.dark-mode::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #9f7aea, #667eea);
}

body.dark-mode::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #805ad5, #5a67d8);
}
