/* 
   Shreeram Healthcare - Premium Theme
   Based on modern web design principles (Glassmorphism, vibrant colors, shadows, etc.) 
*/

:root {
    /* Color Palette */
    --primary: #09999e;
    /* Prominent Teal color */
    --primary-light: #0ebec4;
    --primary-dark: #0d5c66;
    --secondary: #ff7e5f;
    /* Vibrant accent for buttons/highlights */
    --secondary-dark: #e86b4d;

    --text-main: #333333;
    --text-muted: #666666;
    --text-light: #f4f6f9;

    --bg-body: #ffffff;
    --bg-grey: #f8f9fa;
    --bg-card: #ffffff;

    /* Layout & Utilities */
    --container-width: 1280px;
    --border-radius: 12px;
    --border-radius-lg: 24px;

    /* Shadows & Effects */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(9, 153, 158, 0.12);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.15);

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Basic Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5em;
    color: var(--text-main);
}

/* Emphasize titles using Playfair or special styling if needed */
.title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.subtitle {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 5%;
}

.center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

/* Divider */
.divider {
    height: 4px;
    width: 60px;
    background: var(--primary);
    border-radius: 2px;
    margin: 0 auto 20px auto;
}

.section {
    padding: 100px 0;
}

.grey-bg {
    background-color: var(--bg-grey);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 8px 20px rgba(9, 153, 158, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(9, 153, 158, 0.4);
    color: white;
    /* to override general a:hover if needed */
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(9, 153, 158, 0.2);
}

.btn-light {
    background-color: white;
    color: var(--primary);
}

.btn-light:hover {
    background-color: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline-light {
    border-color: white;
    color: white;
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--primary);
    transform: translateY(-3px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* Top Bar */
.top-bar {
    background-color: var(--text-main);
    color: #dfdfdf;
    font-size: 0.85rem;
    padding: 8px 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contact,
.top-links {
    display: flex;
    gap: 20px;
}

.top-contact a:hover,
.top-links a:hover {
    color: white;
}

.top-contact i {
    color: var(--primary-light);
    margin-right: 5px;
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
    padding: 5px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--border-radius);
    padding: 15px 0;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    font-family: 'Playfair Display', serif;
}

.header-logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    /* Spacing between logo and text */
}

.header-logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    /* Extra bold */
    color: var(--primary-dark);
    font-family: 'Outfit', sans-serif;
    /* Matched website font */
    line-height: 1.2;
    white-space: nowrap;
    /* Forces text to stay on one line */
}

.logo-img {
    height: 60px;
    /* Kept slightly smaller for header */
    width: auto;
    display: block;
    margin: 0;
}

.footer-logo-img {
    height: 60px;
    /* Reduced to match text height better */
    margin: 0;
    filter: brightness(0) invert(1);
    /* Makes the logo white for dark background assuming it's colored */
}

.logo-text .highlight {
    color: var(--primary);
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links li a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
    position: relative;
    padding: 5px 0;
}

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

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* Hero Section */
.hero {
    position: relative;
    height: calc(100vh - 120px);
    min-height: 600px;
    max-height: 800px;
    overflow: hidden;
}

.hero-slides {
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Fade overlay from solid #e6f5f5 on the left to transparent on the right */
    background: linear-gradient(90deg, rgba(230, 245, 245, 0.95) 0%, rgba(230, 245, 245, 0.7) 45%, rgba(230, 245, 245, 0) 100%);
    z-index: 1;
    /* Sits between the background image and content */
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    width: 90%;
    max-width: 1280px;
    z-index: 2;
}

.hero-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 120px;
    width: 100%;
}

.hero-text-col {
    flex: 1;
    max-width: 650px;
}

.hero-image-col {
    flex: 0.8;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.prof-image-container {
    background: #ffffff;
    padding: 30px 20px 40px 20px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 420px;
    position: relative;
    border-top: 5px solid var(--primary);
    margin-top: 90px;
}

.prof-img {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    margin: -115px auto 20px auto;
    object-fit: cover;
    object-position: top center;
    border: 6px solid #ffffff;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
    background-color: #ffffff;
    display: block;
}

.prof-details h4 {
    color: var(--text-main);
    font-size: 1.6rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.prof-role {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.prof-award {
    color: var(--primary-dark);
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(9, 153, 158, 0.1);
    padding: 10px 15px;
    border-radius: 50px;
    margin: 0;
    white-space: nowrap;
    width: auto;
    max-width: fit-content;
}

/* Responsive adjustments for hero layout */
@media (max-width: 992px) {
    .hero {
        height: auto;
        min-height: auto;
        padding-bottom: 0px;
    }

    .hero-slides,
    .slide {
        height: auto;
    }

    .slide.active {
        position: relative;
    }

    .slide-bg {
        position: absolute;
        top: 0;
        left: 0;
    }

    .hero-layout {
        flex-direction: column;
        text-align: center;
        margin-top: 0px;
    }

    .hero-text-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .slide-buttons {
        justify-content: center;
    }

    .hero-image-col {
        margin-top: 50px;
        width: 100%;
    }

    .prof-image-container {
        width: 100%;
        max-width: 360px;
        padding: 20px 10px 30px 10px;
        margin-top: 70px;
    }

    .prof-award {
        font-size: 0.8rem;
        padding: 8px 12px;
    }

    .prof-img {
        width: 140px;
        height: 140px;
        margin: -90px auto 15px auto;
    }

    .slide-content {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        padding: 60px 5% 40px;
        margin: 0 auto;
    }
}

.slide-title {
    font-size: 3.5rem;
    color: #0c5c66;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
    text-shadow: 0 4px 15px rgba(255, 255, 255, 0.6);
}

.slide-text {
    font-size: 1.25rem;
    color: #09999e2;
    margin-bottom: 40px;
    max-width: 600px;
    animation: fadeInUp 1s ease-out 0.2s both;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.20);
}

.slide-buttons {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1s ease-out 0.4s both;
    flex-wrap: wrap;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Services Grid */
.section-header {
    margin-bottom: 60px;
    max-width: 700px;
    margin-inline: auto;
}

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

.service-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

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

.service-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(9, 153, 158, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    margin-bottom: 25px;
    color: var(--primary);
    font-size: 2.2rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(9, 153, 158, 0.2);
}

.service-info h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.service-info p {
    color: var(--text-muted);
    margin-bottom: 25px;
    flex-grow: 1;
}

.service-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 600;
    gap: 10px;
    margin-top: auto;
}

.service-link i {
    transition: transform 0.3s ease;
}

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

/* Services Page Categories */
.mb-5 {
    margin-bottom: 3rem;
}

.service-category {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.service-category:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px dashed rgba(0, 0, 0, 0.05);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: var(--shadow-md);
}

.category-title {
    font-size: 2rem;
    color: var(--primary-dark);
    margin: 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-main);
    padding: 15px;
    background: var(--bg-grey);
    border-radius: 10px;
    transition: var(--transition);
}

.category-item:hover {
    background: white;
    box-shadow: var(--shadow-sm);
    transform: translateX(5px);
}

.circle-icon {
    color: var(--secondary);
    font-size: 1.2rem;
}

/* Why Choose Us Section */
.why-us-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.features-list {
    margin-top: 40px;
}

.features-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.features-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.feat-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background-color: white;
    box-shadow: var(--shadow-sm);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
}

.feat-text h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.feat-text p {
    color: var(--text-muted);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-box {
    background-color: var(--bg-grey);
    padding: 40px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.stat-box h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-box h3 span {
    font-size: 2.5rem;
}

.stat-box p {
    font-weight: 500;
    color: var(--text-main);
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
}

.highlight-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: var(--shadow-lg);
}

.highlight-box h3,
.highlight-box p {
    color: white;
}

.highlight-box i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

/* Image Slider Section */
.image-slider-section {
    padding: 60px 0;
    background-color: var(--bg-light);
    overflow: hidden;
}

.slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.slider-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: slide 80s linear infinite;
    padding-left: 30px;
}

.slider-track img {
    height: 300px;
    width: 450px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }

    100% {
        /* Translate left by half the track width (the width of the first original 4 images + their gaps) */
        transform: translateX(calc(-50% - 15px));
    }
}

/* Specific Needs (Tags) */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.tag {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--bg-grey);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 50px;
    font-weight: 500;
    color: var(--text-main);
    transition: var(--transition);
}

.tag:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: #a0a0a0;
    padding-top: 80px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.footer-logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
}

.footer .highlight {
    color: var(--secondary);
}

.footer-col h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #a0a0a0;
}

.footer-col ul li a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.contact-list li {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.contact-list li i {
    color: var(--primary);
    margin-top: 5px;
}

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

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

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

.footer-bottom {
    background-color: #111;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-legal a {
    margin-left: 20px;
}

.footer-legal a:hover {
    color: white;
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.float-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-lg);
    color: white;
}

.float-wa {
    background-color: #25D366;
    /* WhatsApp Green */
}

.float-wa:hover {
    background-color: #1ebe58;
}

.float-call {
    background-color: var(--primary);
}

.float-call:hover {
    background-color: var(--primary-dark);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        min-height: 500px;
    }

    .slide-title {
        font-size: 3rem;
    }

    .why-us-inner {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        margin-top: 40px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .nav {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: white;
        flex-direction: column;
        justify-content: center;
        transition: 0.3s ease-in-out;
        z-index: 999;
    }

    .nav.active {
        left: 0;
    }

    .nav-links {
        flex-direction: column;
        text-align: center;
        font-size: 1.5rem;
        gap: 20px;
        margin-bottom: 30px;
    }

    .mobile-menu-toggle {
        display: block;
        z-index: 1000;
        cursor: pointer;
    }

    /* CSS-only Mobile Menu via Checkbox Hack */
    #menu-btn {
        display: none;
    }

    #menu-btn:checked~#nav {
        left: 0;
    }

    #menu-btn:checked+.mobile-menu-toggle .fa-bars::before {
        content: "\f00d";
        /* Change to X icon */
    }

    .slide-title {
        font-size: 2.2rem;
    }

    .section {
        padding: 60px 0;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        padding-bottom: 80px;
        /* Space for floating buttons */
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .stat-box h3 {
        font-size: 2rem;
    }

    .title {
        font-size: 2rem;
    }
}