/* Vimal Hospital - Modern Medical Website Design */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Colors derived from Logo (Green, Red, Blue) & Medical Cleanliness */
    --primary: #2ECC71;
    /* Fresh Green */
    --primary-dark: #27AE60;
    --secondary: #E74C3C;
    /* Alert/Emergency Red */
    --accent: #2C3E50;
    /* Dark Blue/Gray */
    --light: #F8F9FA;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #777777;
    --dark-bg: #1a252f;

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;

    /* Shadows */
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--light);
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--accent);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary);
}

.text-secondary {
    color: var(--secondary);
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 2px;
}

/* Header */
header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.brand img {
    height: 50px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--accent);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--accent);
}

/* Slider Section */
.hero-slider {
    position: relative;
    height: 85vh;
    /* Almost full screen */
    width: 100%;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    /* Overlay lightened */
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 20px;
    animation: fadeInUp 1s ease 0.5s forwards;
    /* Slight delay */
    opacity: 0;
    transform: translateY(30px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: var(--white) !important;
}

.slide-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    font-weight: 300;
    color: var(--white) !important;
}

/* Services Preview */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: 0.3s;
    text-align: center;
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--primary);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(rgba(44, 62, 80, 0.85), rgba(44, 62, 80, 0.85)), url('../images/hospital_interior.jpg') center/cover fixed;
    padding: 80px 0;
    color: var(--white);
    position: relative;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 10px;
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: var(--white);
    padding-top: 80px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 60px;
}

.footer-col h3 {
    color: var(--primary);
    margin-bottom: 25px;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 10px;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #bbb;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    color: #777;
}

/* Responsive */
@media (max-width: 992px) {
    .slide-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-md);
        transform: translateY(-150%);
        transition: 0.4s ease;
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .slide-content h1 {
        font-size: 2.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .brand {
        font-size: 1.2rem;
    }

    .slide-content h1 {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Feature Sections (Zig-Zag) */
.feature-section {
    padding: 80px 0;
    overflow: hidden;
}

.feature-block {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
}

.feature-block:last-child {
    margin-bottom: 0;
}

.feature-block.reverse {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1;
}

.feature-content h3 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.feature-content p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 25px;
}

.feature-img-box {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.feature-img-box img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}

.feature-img-box:hover img {
    transform: scale(1.05);
}

/* Disable zoom for poster images */
.feature-img-box:hover img.contain-img {
    transform: none;
}

/* Animations for Feature Text */
/* Simple fade/slide on hover of the container for now, or just static styling that looks good */
.feature-block:hover .feature-content h3 {
    color: var(--secondary);
    transition: 0.3s;
}

@media (max-width: 900px) {
    .feature-block {
        flex-direction: column !important;
        gap: 30px;
        margin-bottom: 60px;
        text-align: center;
    }

    .feature-content h3 {
        font-size: 1.8rem;
    }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Image Fit Utility for Posters - Ensure full visibility */
.contain-img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    max-height: none !important;
    max-width: 100% !important;
    border-radius: 0 !important;
    display: block !important;
    margin: 0 auto;
}

/* Stats Section Alignment */
.stats-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    /* Centered vertically as requested */
    flex-wrap: wrap;
    gap: 20px;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 5px;
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--white);
    opacity: 0.9;
}

.stat-item h3 {
    margin-bottom: 0;
    line-height: 1;
}

/* Stats Counter */
.counter {
    display: inline-block;
    min-width: 60px;
}

/* Bilingual Custom Translation Styling */
[lang="hi"] {
    display: none !important;
}

/* Hindi Mode Activations */
.lang-hindi [lang="en"] {
    display: none !important;
}
.lang-hindi [lang="hi"] {
    display: inline-block !important; /* Default fallback */
}

/* Layout preservation for block and flex elements in Hindi mode */
.lang-hindi p[lang="hi"],
.lang-hindi div[lang="hi"],
.lang-hindi h1[lang="hi"],
.lang-hindi h2[lang="hi"],
.lang-hindi h3[lang="hi"],
.lang-hindi h4[lang="hi"],
.lang-hindi h5[lang="hi"],
.lang-hindi h6[lang="hi"],
.lang-hindi section[lang="hi"],
.lang-hindi ul[lang="hi"],
.lang-hindi li[lang="hi"] {
    display: block !important;
}

.lang-hindi [lang="hi"].d-inline {
    display: inline !important;
}
.lang-hindi [lang="hi"].d-inline-block {
    display: inline-block !important;
}
.lang-hindi [lang="hi"].d-flex {
    display: flex !important;
}
.lang-hindi [lang="hi"].d-grid {
    display: grid !important;
}

/* Language pill button in navbar */
.lang-switcher {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.lang-btn {
    background: linear-gradient(135deg, var(--primary) 0%, #16a085 100%);
    color: white !important;
    border: none;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(46, 204, 113, 0.2);
}

.lang-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(46, 204, 113, 0.4);
    background: linear-gradient(135deg, var(--primary-dark) 0%, #117a65 100%);
}

.lang-btn i {
    font-size: 1rem;
    color: #fff;
    animation: rotateGlobe 12s linear infinite;
}

@keyframes rotateGlobe {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Mobile responsive alignment */
@media (max-width: 768px) {
    .lang-switcher {
        margin: 15px 0 5px 0;
        width: 100%;
        justify-content: center;
    }
    .lang-btn {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }
    
    /* Responsive Slider Proportions */
    .hero-slider {
        height: 50vh !important;
        min-height: 380px !important;
    }
    
    .slide-content {
        padding: 15px;
        max-width: 90%;
    }
    
    .slide-content h1 {
        font-size: 2.2rem !important;
        margin-bottom: 12px;
        color: var(--white) !important;
    }
    
    .slide-content p {
        font-size: 1.05rem !important;
        margin-bottom: 20px;
        line-height: 1.4;
        color: var(--white) !important;
    }
    
    .slide-content .btn {
        padding: 10px 20px !important;
        font-size: 0.85rem !important;
    }
}