/*
Theme Name: Kamal Hospital
Theme URI: http://kamalhospital.com
Author: Avisha Digital Services
Author URI: http://avishadigitalservices.com
Description: A professional medical-lifestyle WordPress theme for Kamal Hospital, fully compatible with Elementor.
Version: 1.0.9
License: GNU General Public License v2 or later
Text Domain: kamal-hospital
*/

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

:root {
    --primary: #10b981;
    --primary-hover: #059669;
    --primary-light: #ecfdf5;
    --navy: #1f2937;
    --navy-light: #374151;
    --text-main: #1f2937;
    --text-muted: #4b5563;
    --bg-white: #f9fafb;
    --bg-light: #ffffff;
    --azure: #3b82f6;
    --red: #ef4444;
    --red-hover: #dc2626;
    --border: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 1. Global Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    line-height: 1.2;
    color: var(--navy);
    margin-bottom: 1rem;
}

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

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

/* 2. Global Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

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

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* 3. Global Components - Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    gap: 0.625rem;
    border: none;
    font-size: 0.95rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
}

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

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

.btn-emergency {
    background-color: var(--red);
    color: white;
}

.btn-emergency:hover {
    background-color: var(--red-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.3);
}

/* 4. Global Components - Cards */
.card-standard {
    background: white;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

/* 5. Header & Navigation */
header {
    height: 4.5rem;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--navy);
}

.logo i {
    background: var(--primary);
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav ul li a {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

/* 6. Hero Components */
.hero {
    background: linear-gradient(135deg, #f0fdf9 0%, #ffffff 100%);
    min-height: calc(100vh - 4.5rem);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-image-wrapper {
    position: relative;
}

.hero-img {
    border-radius: 2.5rem;
    box-shadow: var(--shadow-lg);
    width: 100%;
}

/* 7. Stats & Banners */
.stats-banner {
    padding: 4rem 0;
    background: white;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-banner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.banner-stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.banner-stat .number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--navy);
}

.banner-stat .number.green {
    color: var(--primary);
}

.banner-stat .number.blue {
    color: var(--azure);
}

.banner-stat .label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Stats Strip (Divided Counters) */
.stats-strip {
    background: white;
    border-bottom: 1px solid var(--border);
}

.stats-strip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    padding: 2rem;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
}

.strip-stat {
    text-align: center;
    padding: 0 1.5rem;
    border-right: 1px solid var(--border);
}

.strip-stat:last-child {
    border-right: none;
}

.strip-stat .num {
    display: block;
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.strip-stat .num.blue {
    color: var(--azure);
}

.strip-stat .lbl {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.stats-card {
    position: absolute;
    bottom: -1.5rem;
    left: -1.5rem;
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 2.5rem;
    z-index: 10;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.page-hero {
    background: var(--navy);
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.page-hero h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.page-hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto;
}

.page-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 99px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
}

/* 8. Core Sections & Components */
.services {
    background: var(--bg-light);
    text-align: center;
}

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

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: left;
}

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

.service-icon {
    width: 4rem;
    height: 4rem;
    background: var(--primary-light);
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.service-icon i {
    font-size: 1.75rem;
}

/* Reference Sycn: High-Fidelity Service Variants */
.svc-card {
    background: white;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.svc-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.12);
}

.svc-card-top {
    padding: 2.5rem;
}

.svc-icon-box {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.svc-icon-box.green {
    background: var(--primary-light);
    color: var(--primary);
}

.svc-icon-box.blue {
    background: #eff6ff;
    color: #3b82f6;
}

.svc-icon-box.red {
    background: #fff1f2;
    color: #ef4444;
}

.svc-icon-box.purple {
    background: #f5f3ff;
    color: #8b5cf6;
}

.svc-icon-box.orange {
    background: #fff7ed;
    color: #f97316;
}

.svc-icon-box.teal {
    background: #f0fdfa;
    color: #14b8a6;
}

.svc-icon-box i {
    font-size: 1.75rem;
}

.svc-card-top h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: var(--navy);
}

.svc-card-top p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.svc-divider {
    height: 1px;
    background: var(--border);
    margin: 0 2.5rem;
}

.svc-card-bottom {
    padding: 1.5rem 2.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.svc-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.svc-feature i {
    color: var(--primary);
}

.departments {
    background: var(--bg-white);
}

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

.department-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.dept-img-container {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

.department-card:hover .dept-img {
    transform: scale(1.1);
}

.dept-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    width: 100%;
    color: white;
}

.dept-body {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dept-links {
    list-style: none;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dept-links li {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dept-links li::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

/* Reference Sync: Story Section Fidelity */
.story-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
}

.story-img-wrapper {
    position: relative;
}

.story-img {
    width: 100%;
    border-radius: 2rem;
    box-shadow: var(--shadow-lg);
}

.story-float {
    position: absolute;
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    bottom: -2rem;
    left: -2rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    z-index: 10;
}

.story-float-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.testimonials {
    background: var(--bg-white);
}

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

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stars {
    display: flex;
    gap: 0.25rem;
    color: #fbbf24;
    margin-bottom: 1rem;
}

.stars svg {
    fill: #fbbf24 !important;
    width: 18px;
    height: 18px;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.testi-author img {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    object-fit: cover;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 1rem;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    font-weight: 700;
    color: var(--navy);
    cursor: pointer;
    text-align: left;
}

.faq-icon-box {
    width: 1.75rem;
    height: 1.75rem;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.faq-item.active .faq-icon-box {
    background: var(--primary);
    color: white;
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    background: var(--bg-white);
}

.faq-answer-inner {
    padding: 1.5rem 2rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* 9. Specialized Layout Blocks */
.mvv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.mvv-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 2rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.mvv-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.mvv-icon-box {
    width: 4.5rem;
    height: 4.5rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

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

.value-item {
    border: 1.5px solid var(--border);
    padding: 2.5rem;
    border-radius: 1.5rem;
    transition: var(--transition);
}

.value-item:hover {
    border-color: var(--primary);
    background: var(--bg-white);
    transform: translateY(-5px);
}

.value-icon {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

.career-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    border: 1.5px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    transition: var(--transition);
}

.career-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

/* Reference Sync: Additional Button Variants */
.btn-teal {
    background: var(--primary);
    color: white;
}

.btn-teal:hover {
    background: var(--primary-hover);
    transform: translateX(5px);
}

.btn-outlined {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outlined:hover {
    background: var(--primary-light);
    transform: translateX(5px);
}

.btn-blue-outlined {
    border: 2px solid var(--azure);
    color: var(--azure);
    background: transparent;
}

.btn-blue-outlined:hover {
    background: #eff6ff;
    transform: translateX(5px);
}

/* 10. Footer Section */
footer {
    background: #020617;
    color: #94a3b8;
    padding: 6rem 0 3rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.logo-box {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.footer-col h4 {
    color: white;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-links a:hover {
    color: white;
    padding-left: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2.5rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

/* 11. Unified Responsive Standards */
@media (max-width: 1024px) {
    .container {
        max-width: 960px;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-content h1 {
        font-size: 3.25rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .stats-card {
        position: static;
        margin: 2rem auto 0;
        box-shadow: var(--shadow);
        width: fit-content;
    }

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

    .mvv-grid,
    .values-grid,
    .svc-grid {
        grid-template-columns: 1fr 1fr;
    }

    .story-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 4rem 0;
    }

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

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .stats-banner-grid {
        grid-template-columns: 1fr 1fr;
    }

    .mvv-grid,
    .values-grid,
    .footer-top,
    .svc-grid {
        grid-template-columns: 1fr;
    }

    .career-card {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .story-float {
        position: static;
        transform: none;
        margin: 2rem auto 0;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.25rem;
    }

    .stats-banner-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 1.5rem;
    }
}

.service-categories {
    background: var(--bg-white);
}

.category-tabs {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 3.5rem;
}

.cat-tab {
    padding: 0.5rem 1.25rem;
    border-radius: 99px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1.5px solid var(--border);
    background: white;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.cat-tab:hover,
.cat-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.services-main-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.svc-card {
    background: white;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.svc-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.12);
}

.svc-card-top {
    padding: 2rem 2rem 1.5rem;
}

.svc-icon-box {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.svc-icon-box.green {
    background: var(--primary-light);
    color: var(--primary);
}

.svc-icon-box.blue {
    background: #eff6ff;
    color: #3b82f6;
}

.svc-icon-box.red {
    background: #fff1f2;
    color: #ef4444;
}

.svc-icon-box.purple {
    background: #f5f3ff;
    color: #8b5cf6;
}

.svc-icon-box.orange {
    background: #fff7ed;
    color: #f97316;
}

.svc-icon-box.teal {
    background: #f0fdfa;
    color: #14b8a6;
}

.svc-icon-box i {
    width: 1.6rem;
    height: 1.6rem;
}

.svc-card-top h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--navy);
}

.svc-card-top p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.svc-divider {
    height: 1px;
    background: var(--border);
    margin: 0 2rem;
}

.svc-card-bottom {
    padding: 1.25rem 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    flex: 1;
}

.svc-feature {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.svc-feature i {
    width: 1rem;
    height: 1rem;
    color: var(--primary);
    flex-shrink: 0;
}

.svc-card-footer {
    padding: 0 2rem 1.75rem;
}

.svc-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9375rem;
    transition: gap 0.2s ease;
}

.svc-link i {
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s ease;
}

.svc-link:hover {
    gap: 0.875rem;
}

.svc-link:hover i {
    transform: translateX(3px);
}

.why-us {
    background: white;
}

.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.why-us-img-wrapper {
    position: relative;
}

.why-us-img {
    border-radius: 2rem;
    width: 100%;
    display: block;
}

.why-us-badge {
    position: absolute;
    bottom: 2rem;
    right: -1.5rem;
    background: white;
    border-radius: 1.25rem;
    padding: 1.25rem 1.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    text-align: center;
}

.why-us-badge .big-num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.why-us-badge .badge-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.why-us-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.why-us-content>p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

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

.why-feature {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.why-feature-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
}

.why-feature-icon i {
    width: 1.375rem;
    height: 1.375rem;
}

.why-feature-text h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.why-feature-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.process {
    background: var(--bg-white);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}

.process-grid::before {
    content: '';
    position: absolute;
    top: 2.5rem;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--azure));
    z-index: 0;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.process-num {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    box-shadow: 0 0 0 6px var(--primary-light);
}

.process-step h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.process-step p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.services-cta {
    background: linear-gradient(135deg, #059669 0%, #1d4ed8 100%);
    padding: 5rem 0;
    text-align: center;
}

.services-cta h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.services-cta p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* --- Departments Page --- */
.dept-filter {
    background: white;
    border-bottom: 1px solid var(--border);
    top: 4rem;
    z-index: 100;
}

.dept-filter-inner {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.dept-filter-inner::-webkit-scrollbar {
    display: none;
}

.filter-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 3px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    transition: var(--transition);
}

.filter-tab i {
    width: 1rem;
    height: 1rem;
}

.filter-tab:hover,
.filter-tab.active {
    color: var(--primary);
}

.filter-tab.active {
    border-bottom-color: var(--primary);
}

.depts-section {
    background: var(--bg-white);
}

.depts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.depts-grid .dept-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    text-align: left;
}

.depts-grid .dept-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.12);
}

.dept-card-img {
    position: relative;
    height: 210px;
    overflow: hidden;
}

.dept-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.depts-grid .dept-card:hover .dept-card-img img {
    transform: scale(1.07);
}

.dept-card-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.75) 0%, transparent 55%);
}

.dept-card-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 99px;
}

.dept-card-title-overlay {
    position: absolute;
    bottom: 1rem;
    left: 1.5rem;
    color: white;
}

.dept-card-title-overlay h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.dept-card-body {
    padding: 1.5rem 1.75rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dept-card-body p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.dept-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.specialty-tag {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 99px;
    background: var(--primary-light);
    color: var(--primary);
}

.dept-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.dept-doctors-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.dept-doctors-count i {
    width: 1rem;
    height: 1rem;
    color: var(--primary);
}

.dept-learn-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    transition: gap 0.2s ease;
}

.dept-learn-more i {
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s ease;
}

.dept-learn-more:hover {
    gap: 0.75rem;
}

.dept-learn-more:hover i {
    transform: translateX(3px);
}

.featured-dept {
    background: var(--navy);
    color: white;
}

.featured-dept-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.featured-dept-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.featured-dept-content h2 span {
    color: var(--primary);
}

.featured-dept-content p {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.0625rem;
}

.featured-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.featured-stat {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.25rem;
}

.featured-stat .f-num {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.featured-stat .f-lbl {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.featured-dept-img {
    border-radius: 2rem;
    width: 100%;
    display: block;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.expertise {
    background: white;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.expertise-card {
    background: var(--bg-white);
    border-radius: 1.25rem;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.expertise-card:hover {
    background: white;
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-color: transparent;
}

.expertise-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.expertise-icon i {
    width: 1.5rem;
    height: 1.5rem;
}

.expertise-icon.green {
    background: var(--primary-light);
    color: var(--primary);
}

.expertise-icon.blue {
    background: #eff6ff;
    color: #3b82f6;
}

.expertise-icon.red {
    background: #fff1f2;
    color: #ef4444;
}

.expertise-icon.purple {
    background: #f5f3ff;
    color: #8b5cf6;
}

.expertise-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.expertise-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.depts-cta {
    background: linear-gradient(135deg, #059669 0%, #1d4ed8 100%);
    padding: 5rem 0;
    text-align: center;
}

.depts-cta h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.depts-cta p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* --- Contact Page --- */
body.contact-page .page-hero {
    background: linear-gradient(135deg, #f0fdf9 0%, #ffffff 100%);
}

.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: -3rem;
    position: relative;
    z-index: 5;
}

.info-card {
    background: white;
    padding: 2.25rem 1.5rem;
    border-radius: 1.25rem;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

.info-card-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.info-card-icon i {
    width: 1.6rem;
    height: 1.6rem;
}

.info-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--navy);
}

.info-card p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.contact-main {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 4rem;
    align-items: start;
}

.form-box {
    background: white;
    padding: 3rem;
    border-radius: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.form-box h2 {
    font-size: 2rem;
    margin-bottom: 2.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.full-width {
    grid-column: span 2;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.625rem;
    color: var(--navy);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1.125rem;
    border-radius: 0.75rem;
    border: 1.5px solid var(--border);
    font-family: inherit;
    font-size: 0.9375rem;
    background: #f8fafc;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
}

.btn-submit:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.3);
}

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

.action-card {
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.action-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

.action-btns {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    border-radius: 0.875rem;
    font-weight: 700;
    font-size: 0.9375rem;
    transition: var(--transition);
    border: 1.5px solid transparent;
}

.action-btn i {
    width: 1.2rem;
    height: 1.2rem;
}

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

.btn-teal:hover {
    background: var(--primary-hover);
    transform: translateX(5px);
}

.btn-outlined {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outlined:hover {
    background: var(--primary-light);
    transform: translateX(5px);
}

.btn-blue-outlined {
    border-color: #3b82f6;
    color: #3b82f6;
}

.btn-blue-outlined:hover {
    background: #eff6ff;
    transform: translateX(5px);
}

.map-placeholder {
    height: 250px;
    background: #f1f5f9;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    margin-top: 1.5rem;
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.travel-info {
    background: var(--bg-white);
}

.travel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.travel-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border);
}

.travel-card i {
    width: 2rem;
    height: 2rem;
    color: var(--primary);
    margin-bottom: 1.25rem;
}

.travel-card h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.travel-card p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 1rem;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover,
.faq-item.active {
    border-color: var(--primary);
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.05);
}

.faq-item.active {
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.1);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.faq-question h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0;
    padding-right: 1.5rem;
}

.faq-icon-box {
    width: 1.5rem;
    height: 1.5rem;
    min-width: 1.5rem;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.faq-item.active .faq-icon-box {
    background: var(--primary);
    color: white;
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

.faq-answer-inner {
    padding: 0 2rem 1.5rem;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* Responsive Overrides for All Pages */
@media (max-width: 1024px) {

    .mvv-grid,
    .leader-grid,
    .values-grid,
    .info-cards-grid,
    .travel-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .depts-grid,
    .expertise-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    .story-grid,
    .leader-grid,
    .services-main-grid,
    .why-us-grid,
    .depts-grid,
    .featured-dept-grid,
    .form-grid,
    .travel-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .page-hero h1 {
        font-size: 2.25rem;
    }

    .page-hero-btns {
        flex-direction: column;
        align-items: center;
    }

    .info-cards-grid {
        grid-template-columns: 1fr;
    }

    .contact-main {
        grid-template-columns: 1fr;
    }
}

/* --- Doctors & Specialists Page --- */
.doctor-search {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.doctor-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 18px;
}

.doctor-search input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    font-size: 0.9rem;
    transition: var(--transition);
}

.doctor-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

/* --- Careers Page --- */
.career-listings {
    display: grid;
    gap: 1rem;
}

.career-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    transition: var(--transition);
}

.career-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.career-card h4 {
    margin-top: 0.5rem;
    font-size: 1.25rem;
    color: var(--navy);
}

.career-card .btn-primary {
    padding: 0.75rem 1.75rem;
}

/* --- Post & News Layouts --- */
.post-thumbnail img {
    border-radius: 1rem;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.post-content {
    color: var(--text-muted);
    line-height: 1.8;
}

.post-content h2,
.post-content h3 {
    color: var(--navy);
    margin: 2rem 0 1rem;
}

.pagination-wrapper .nav-links {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.pagination-wrapper .page-numbers {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--text-muted);
    transition: var(--transition);
}

.pagination-wrapper .page-numbers.current,
.pagination-wrapper .page-numbers:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* --- Miscellaneous Polish --- */
.page-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-emergency {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-emergency:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

@media (max-width: 768px) {
    .dept-filter-inner {
        flex-direction: column;
        align-items: stretch !important;
    }

    .doctor-search {
        max-width: 100%;
    }

    .career-card {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .career-card .btn-primary {
        width: 100%;
    }
}