/* ==========================================================================
   Design System & Custom CSS for New Lifeline Hospital
   Colors: Navy Blue (Trust), Medical Teal (Hygiene), Mint (New Life), Coral (Emergency)
   ========================================================================== */

/* Google Font Import is in HTML head */

:root {
    /* Color Palette */
    --color-primary: #0f172a;       /* Deep Navy */
    --color-primary-light: #1e293b; /* Lighter Navy */
    --color-teal: #0d9488;          /* Medical Teal */
    --color-teal-light: #14b8a6;    /* Bright Teal */
    --color-teal-tint: #f0fdfa;     /* Very Light Teal */
    --color-mint: #10b981;          /* Mint (New Life) */
    --color-mint-light: #34d399;   /* Bright Mint */
    --color-coral: #ef4444;         /* Coral (Emergency Red) */
    --color-coral-dark: #b91c1c;    /* Deep Red */
    --color-bg-light: #f8fafc;      /* Off-white */
    --color-bg-alt: #f1f5f9;        /* Light Gray */
    --color-border: #e2e8f0;        /* Card Borders */
    --color-text-dark: #0f172a;     /* Main Text */
    --color-text-muted: #475569;    /* Subtitles / Paragraphs */
    --color-text-light: #94a3b8;    /* Muted Labels */
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(13, 148, 136, 0.25);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

/* ==========================================================================
   1. Reset & Global Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: #ffffff;
}

section {
    overflow: hidden; /* Prevent horizontal scrolls from animated elements on page margins */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-primary);
}

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

a:hover {
    color: var(--color-teal-light);
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center { text-align: center; }
.text-white { color: #ffffff; }
.text-mint { color: var(--color-mint); }
.align-center { align-items: center; }

/* Grid Layout Utilities */
.grid-two-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

/* ==========================================================================
   2. Components (Buttons, Badges)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-light) 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.6);
}

.btn-secondary {
    background-color: var(--color-primary);
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: var(--color-teal);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
}

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

.btn-block {
    width: 100%;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: rgba(13, 148, 136, 0.1);
    color: var(--color-teal);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

/* ==========================================================================
   3. Header, Navigation, Emergency Ticker
   ========================================================================== */
.emergency-bar {
    background-color: var(--color-primary);
    color: #ffffff;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.emergency-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.emergency-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.live-pulse {
    width: 10px;
    height: 10px;
    background-color: var(--color-coral);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 rgba(239, 68, 68, 0.7);
    animation: pulse 1.8s infinite;
}

.emergency-phone-link {
    color: var(--color-coral);
    font-weight: 700;
    font-size: 0.95rem;
}

.emergency-phone-link:hover {
    color: #ff8a8a;
    text-decoration: underline;
}

.emergency-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--color-border);
}

.divider {
    opacity: 0.4;
}

.whatsapp-top-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #25d366;
    font-weight: 600;
}

.whatsapp-top-link:hover {
    color: #34e073;
}

.svg-inline {
    width: 16px;
    height: 16px;
}

/* Sticky Header styling */
.main-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    transition: all var(--transition-normal);
}

.main-header.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.hospital-logo {
    height: 50px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--color-primary);
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.logo-subtitle {
    font-size: 0.68rem;
    color: var(--color-teal);
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-top: 1px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--color-primary-light);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.2rem;
    border-bottom: 2px solid transparent;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-teal);
    border-bottom-color: var(--color-teal);
}

.nav-cta {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1010;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

/* ==========================================================================
   4. Hero Section & Ken Burns Animation
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 9rem 0 10rem;
    color: #ffffff;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.55) 0%, rgba(13, 148, 136, 0.35) 100%);
    z-index: 1;
}

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

.hero-content {
    max-width: 720px;
}

.hero-content .badge {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-title {
    font-size: 3.2rem;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.hero-typewriter {
    margin-bottom: 1.8rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.35rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.text-teal-light {
    color: var(--color-teal-light);
}

.typewriter-cursor {
    color: var(--color-teal-light);
    animation: blink 0.75s step-end infinite;
}

@keyframes blink {
    from, to { color: transparent; }
    50% { color: var(--color-teal-light); }
}

.hero-description {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

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

/* Quick Features Section overlapping Hero Section bottom */
.quick-features-section {
    position: relative;
    margin-top: -6rem; /* Pull cards upward naturally over the hero */
    z-index: 10;
    width: 100%;
}

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

.feature-card {
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 2.2rem 2rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-border);
    transition: all var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 40px -10px rgba(0, 0, 0, 0.15);
    border-color: rgba(13, 148, 136, 0.3);
}

.card-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-icon-wrapper.emergency {
    background: linear-gradient(135deg, #ef4444 0%, #f43f5e 100%);
    color: #ffffff;
}

.card-icon-wrapper.icu {
    background: linear-gradient(135deg, #0d9488 0%, #10b981 100%);
    color: #ffffff;
}

.card-icon-wrapper.services {
    /* Diagnostics & Rx Card uses a beautiful custom Purple gradient to look unique */
    background: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
    color: #ffffff;
}

.svg-card {
    width: 32px;
    height: 32px;
}

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

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

/* ==========================================================================
   5. Stats Section
   ========================================================================== */
.stats-section {
    padding: 6rem 0 5rem; /* Reduced top padding since features occupy physical layout space now */
    background-color: var(--color-bg-light);
    border-bottom: 1px solid var(--color-border);
}

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

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-teal);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

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

/* ==========================================================================
   6. About Us Section
   ========================================================================== */
.about-section {
    padding: 7rem 0;
}

.about-visual {
    position: relative;
}

.about-image {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.section-subtitle {
    display: block;
    color: var(--color-teal);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.section-title {
    font-size: 2.3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about-p {
    color: var(--color-text-muted);
    margin-bottom: 1.2rem;
    font-size: 0.98rem;
}

.about-list {
    list-style: none;
    margin-top: 1.8rem;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--color-primary-light);
    font-size: 0.95rem;
}

.list-svg-icon {
    width: 22px;
    height: 22px;
    color: var(--color-teal);
    flex-shrink: 0;
}

/* ==========================================================================
   6b. Interactive Infrastructure Virtual Tour (NEW SECTION)
   ========================================================================== */
.facility-section {
    padding: 7rem 0;
    background-color: #ffffff;
}

.facility-container {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 3.5rem;
    margin-top: 3.5rem;
}

.facility-tabs {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.facility-tab {
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.8rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    cursor: pointer;
    text-align: left;
    transition: all var(--transition-normal);
    font-family: var(--font-body);
}

.facility-tab:hover {
    background-color: #ffffff;
    border-color: var(--color-teal);
    transform: translateX(6px);
}

.facility-tab.active {
    background-color: #ffffff;
    border-color: var(--color-teal);
    box-shadow: var(--shadow-lg);
    border-left: 5px solid var(--color-teal);
}

.floor-num {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-text-light);
    line-height: 1;
    transition: var(--transition-fast);
}

.facility-tab.active .floor-num {
    color: var(--color-teal);
}

.floor-desc h4 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
    color: var(--color-primary);
    font-weight: 700;
}

.floor-desc p {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

.facility-display {
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
    box-shadow: var(--shadow-xl);
}

.display-img-wrapper {
    width: 100%;
    height: 380px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.facility-display-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity var(--transition-normal);
}

.facility-dots {
    position: absolute;
    bottom: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 5;
    background-color: rgba(15, 23, 42, 0.45);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    backdrop-filter: blur(4px);
}

.facility-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.facility-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.facility-dot.active {
    background-color: var(--color-teal-light);
    width: 24px;
    border-radius: var(--radius-full);
}

.display-info h3 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    color: var(--color-primary);
}

.display-info p {
    color: var(--color-text-muted);
    font-size: 0.96rem;
    line-height: 1.65;
    margin-bottom: 1.8rem;
}

/* ==========================================================================
   7. Interactive CSS Milestones Timeline
   ========================================================================== */
.timeline-section {
    padding: 7rem 0;
    background-color: var(--color-bg-light);
}

.section-desc {
    max-width: 600px;
    margin: 0 auto 4rem;
    color: var(--color-text-muted);
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--color-border);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 2rem 3rem;
}

.timeline-item.left-item {
    left: 0;
    text-align: right;
}

.timeline-item.right-item {
    left: 50%;
    text-align: left;
}

.timeline-badge {
    position: absolute;
    top: 2.2rem;
    width: 60px;
    height: 36px;
    background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-light) 100%);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.left-item .timeline-badge {
    right: -30px;
}

.right-item .timeline-badge {
    left: -30px;
}

.timeline-panel {
    background-color: #ffffff;
    padding: 1.8rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    transition: all var(--transition-normal);
}

.timeline-panel:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(13, 148, 136, 0.2);
    transform: translateY(-3px);
}

.timeline-panel h3 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    color: var(--color-teal);
}

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

/* ==========================================================================
   8. Specialties Image Cards Section
   ========================================================================== */
.services-section {
    padding: 7rem 0;
}

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

.service-card {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-teal-light);
}

.service-img-wrapper {
    width: 100%;
    height: 180px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1.5rem;
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Display realistic photograph neatly stretched inside card bounds */
    transition: transform var(--transition-normal);
}

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

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
    font-weight: 700;
}

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

/* ==========================================================================
   8b. Interactive Symptom Navigator Section (NEW SECTION)
   ========================================================================== */
.symptom-section {
    padding: 7rem 0;
    background-color: var(--color-bg-light);
}

.symptom-container {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 3.5rem;
    margin-top: 3.5rem;
}

.symptom-grid-selector {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.symptom-pill {
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.4rem 1.6rem;
    display: flex;
    align-items: center;
    gap: 1.4rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.symptom-pill:hover {
    transform: translateY(-2px);
    border-color: var(--color-coral);
    box-shadow: var(--shadow-md);
}

.symptom-pill.active {
    border-color: var(--color-coral);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(to right, #ffffff, #fffdfd);
    border-left: 5px solid var(--color-coral);
}

.symptom-emoji {
    font-size: 2.2rem;
}

.symptom-txt h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    color: var(--color-primary);
    font-weight: 700;
}

.symptom-txt p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.symptom-action-panel {
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.action-header {
    padding: 2rem 2.5rem;
    border-bottom: 1px solid var(--color-border);
    background-color: #fffdfd;
}

.care-type {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 1.2px;
}

.care-type.red {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--color-coral);
}

.action-header h3 {
    font-size: 1.6rem;
    color: var(--color-primary);
    font-weight: 800;
}

.action-body {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.protocol-box h4 {
    font-size: 1.1rem;
    color: var(--color-coral);
    margin-bottom: 1rem;
    font-weight: 700;
}

.protocol-box ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.protocol-box ul li {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
}

.protocol-box ul li::before {
    content: '•';
    position: absolute;
    left: 0.2rem;
    color: var(--color-coral);
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
}

.response-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    background-color: var(--color-bg-light);
    padding: 1.5rem 1.8rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.response-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.resp-label {
    font-size: 0.8rem;
    color: var(--color-text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.resp-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
}

.resp-val.green {
    color: var(--color-mint);
}

.action-footer {
    padding: 1.8rem 2.5rem;
    background-color: var(--color-bg-light);
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
}

.call-emergency-btn {
    background: linear-gradient(135deg, var(--color-coral) 0%, var(--color-coral-dark) 100%);
    color: #ffffff !important;
    border: none;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

.call-emergency-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.5);
}

/* ==========================================================================
   9. Why Choose Us Section
   ========================================================================== */
.why-us-section {
    padding: 7rem 0;
    background-color: var(--color-bg-light);
}

.why-us-desc {
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
}

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

.why-feature-item {
    display: flex;
    gap: 1.2rem;
}

.why-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-light) 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(13, 148, 136, 0.2);
}

.why-feature-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

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

.why-us-visual {
    display: flex;
    justify-content: center;
}

.hospital-infobox {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.hospital-infobox::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background-color: rgba(13, 148, 136, 0.15);
    border-radius: 50%;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-row:first-child {
    padding-top: 0;
}

.info-label {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.info-val {
    font-weight: 700;
    color: var(--color-mint-light);
}

/* ==========================================================================
   10. Appointment Booking Section & Form
   ========================================================================== */
.appointment-section {
    padding: 7rem 0;
}

.form-box-wrapper {
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.form-grid {
    display: grid;
    grid-template-columns: 2.2fr 3.8fr;
}

.form-info-panel {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: #ffffff;
    padding: 3.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.form-info-panel::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, var(--color-teal), var(--color-mint));
}

.form-info-panel h2 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 1.2rem;
}

.form-info-panel p {
    color: rgba(255, 255, 255, 0.80);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.quick-contact-notes {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-note strong {
    font-size: 0.9rem;
    color: var(--color-mint-light);
    display: block;
    margin-bottom: 0.2rem;
}

.contact-note p a {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
}

.contact-note p a:hover {
    color: var(--color-teal-light);
}

.form-form-panel {
    padding: 3.5rem 3.5rem;
}

.appointment-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-primary-light);
}

.form-group label .required {
    color: var(--color-coral);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--color-text-dark);
    transition: all var(--transition-fast);
    background-color: var(--color-bg-light);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-teal);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.error-msg {
    display: none;
    color: var(--color-coral);
    font-size: 0.78rem;
    font-weight: 500;
}

/* Invalid field style */
.form-group.invalid input {
    border-color: var(--color-coral);
    background-color: #fffdfd;
}

.form-group.invalid .error-msg {
    display: block;
}

/* ==========================================================================
   11. FAQ Section (Accordion Effect)
   ========================================================================== */
.faq-section {
    padding: 7rem 0;
    background-color: var(--color-bg-light);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background-color: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.faq-item:hover {
    border-color: rgba(13, 148, 136, 0.2);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 1.8rem;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
}

.faq-icon {
    font-size: 1.4rem;
    color: var(--color-teal);
    font-weight: 300;
    transition: transform var(--transition-normal);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.8rem;
    transition: all var(--transition-normal) cubic-bezier(0, 1, 0, 1);
}

.faq-answer p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    padding-bottom: 1.5rem;
}

/* Active State Accordion */
.faq-item.active {
    border-color: var(--color-teal);
    box-shadow: var(--shadow-md);
}

.faq-item.active .faq-question {
    color: var(--color-teal);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 1.8rem;
}

/* ==========================================================================
   12. Contact details & Map Location
   ========================================================================== */
.contact-section {
    padding: 7rem 0;
}

.contact-intro {
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
}

.contact-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.8rem;
}

.contact-item-card {
    display: flex;
    gap: 1.2rem;
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
    padding: 1.5rem 1.5rem;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.contact-item-card:hover {
    background-color: #ffffff;
    box-shadow: var(--shadow-md);
    border-color: var(--color-teal);
}

.icon-span {
    width: 46px;
    height: 46px;
    background-color: #ffffff;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--color-border);
}

.svg-contact {
    width: 24px;
    height: 24px;
}

.contact-item-card h4 {
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
}

.contact-item-card p {
    color: var(--color-text-muted);
    font-size: 0.92rem;
}

.contact-item-card p a {
    font-weight: 600;
    color: var(--color-primary-light);
}

.contact-item-card p a:hover {
    color: var(--color-teal);
}

.contact-map-panel {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    min-height: 400px;
}

.map-wrapper {
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   13. Footer Section
   ========================================================================== */
.main-footer {
    background-color: var(--color-primary);
    color: rgba(255, 255, 255, 0.75);
    padding: 5rem 0 0;
    border-top: 5px solid var(--color-teal);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2.2fr 1.2fr 1.4fr 2.2fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.brand-col .logo-area {
    margin-bottom: 1.5rem;
}

.light-logo .logo-title {
    color: #ffffff;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.8rem;
}

.registration-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-mint-light);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 700;
}

.footer-col h3 {
    color: #ffffff;
    font-size: 1.15rem;
    margin-bottom: 1.8rem;
    position: relative;
    padding-bottom: 0.5rem;
}

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

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
}

.footer-links a:hover {
    color: var(--color-mint-light);
    padding-left: 5px;
}

.contact-col p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.contact-col p .svg-inline {
    flex-shrink: 0;
    margin-top: 4px;
}

.contact-col p a {
    color: #ffffff;
    font-weight: 600;
}

.contact-col p a:hover {
    color: var(--color-mint-light);
}

.footer-bottom {
    background-color: #0b1120;
    padding: 1.8rem 0;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ==========================================================================
   14. Floating Elements & Keyframe Animations
   ========================================================================== */
.floating-whatsapp {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.5);
    z-index: 999;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.7);
}

.whatsapp-float-icon {
    width: 32px;
    height: 32px;
}

/* Keyframes for Ken Burns, Pulse & Glows */
@keyframes kenBurns {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.15);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

@keyframes hoverGlow {
    0% {
        box-shadow: var(--shadow-xl);
    }
    100% {
        box-shadow: 0 25px 45px -10px rgba(13, 148, 136, 0.25);
        transform: translateY(-2px);
    }
}

/* Transition Scroll classes */
.animate-on-scroll {
    opacity: 0;
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.animate-on-scroll.fadeInUp {
    transform: translateY(30px);
}

.animate-on-scroll.slide-in-left {
    transform: translateX(-40px);
}

.animate-on-scroll.slide-in-right {
    transform: translateX(40px);
}

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

/* ==========================================================================
   15. Mobile Responsiveness / Media Queries
   ========================================================================== */

/* Large Tablets & Small Desktops (1024px) */
@media (max-width: 1024px) {
    .features-grid {
        gap: 1.5rem;
    }
    .grid-two-cols {
        gap: 2rem;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.8rem;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    .hero-title {
        font-size: 2.7rem;
    }
    .facility-container, .symptom-container {
        gap: 2rem;
    }
}

/* Small Tablets & Mobile Devices (768px) */
@media (max-width: 768px) {
    /* Prevent horizontal page overflows from animations and elements */
    .animate-on-scroll.slide-in-left,
    .animate-on-scroll.slide-in-right {
        transform: translateY(15px) !important;
    }
    
    h1, h2, h3, h4, h5, h6 {
        word-break: keep-all !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
    }

    /* Reset features layout overlapping hero */
    .hero-section {
        padding: 5rem 0 4rem;
    }
    
    .hero-typewriter {
        font-size: 1.15rem;
    }
    
    .quick-features-section {
        margin-top: 0;
        padding: 1rem 0 0;
    }
    
    /* Horizontal Swiping for Quick Feature Cards on Mobile */
    .features-grid {
        display: flex !important;
        grid-template-columns: none !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        scroll-behavior: smooth !important;
        gap: 1.5rem !important;
        padding: 1rem 1.5rem 2rem !important;
        margin: 0 -1.5rem !important;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch;
    }
    
    .features-grid::-webkit-scrollbar {
        display: none !important;
    }
    
    .feature-card {
        flex-shrink: 0 !important;
        width: 290px !important;
        scroll-snap-align: center !important;
        margin-bottom: 0 !important;
        box-shadow: var(--shadow-lg) !important;
    }
    
    /* Stats Counters: same row on mobile */
    .stats-section {
        padding: 3rem 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 0.4rem !important;
        padding: 0 0.2rem !important;
    }
    
    .stat-item {
        padding: 0.1rem !important;
    }
    
    .stat-number {
        font-size: 1.4rem !important;
        margin-bottom: 0.2rem !important;
    }
    
    .stat-label {
        font-size: 0.65rem !important;
        line-height: 1.25 !important;
    }
    
    .grid-two-cols {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    /* Left align content for readability */
    .about-info {
        text-align: left;
    }
    
    .about-list li {
        justify-content: flex-start;
    }
    
    /* New sections: Tour & Symptom Selector horizontal swipe panels */
    .facility-container, .symptom-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .facility-tabs, .symptom-grid-selector {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.8rem;
        gap: 1rem;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
        scrollbar-color: var(--color-teal) var(--color-border);
    }
    
    .facility-tab, .symptom-pill {
        flex-shrink: 0;
        width: 280px;
        scroll-snap-align: start;
    }
    
    .facility-tab:hover {
        transform: none; /* Disable shift hover on mobile */
    }
    
    /* Landscape Mode Facility Images */
    .display-img-wrapper {
        height: auto !important;
        aspect-ratio: 1.6 / 1 !important;
    }
    
    .facility-display {
        padding: 1.2rem !important;
        gap: 1.5rem !important;
    }
    
    .action-footer {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .action-footer .btn {
        width: 100%;
        margin: 0;
    }
    
    .action-body {
        padding: 1.5rem;
    }
    
    /* Milestones Timeline - Shift central line left, make it single column */
    .timeline-line {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 55px;
        padding-right: 0;
        text-align: left !important;
    }
    
    .timeline-item.right-item {
        left: 0;
    }
    
    .timeline-badge {
        left: 5px !important;
        right: auto !important;
        top: 1.8rem;
        width: 36px;
        height: 36px;
        font-size: 0.75rem;
        border-radius: 50%;
    }
    
    /* Header & Navigation Drawer */
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 86px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 86px);
        background-color: #ffffff;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 3rem 2rem;
        gap: 2rem;
        box-shadow: 0 15px 30px rgba(0,0,0,0.08);
        transition: all var(--transition-normal);
        overflow-y: auto;
        z-index: 999;
    }
    
    .nav-menu.open {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.15rem;
        width: 100%;
        text-align: center;
        padding: 0.8rem 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }

    /* Hero Horizontal Widescreen Layout on Mobile (768px) */
    .hero-section {
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        background-color: var(--color-primary) !important;
    }
    
    .hero-bg-video-wrapper {
        position: relative !important;
        width: 100% !important;
        aspect-ratio: 16 / 9 !important;
        height: auto !important;
        z-index: 1 !important;
        border-bottom: 4px solid var(--color-teal) !important;
        box-shadow: 0 4px 20px rgba(13, 148, 136, 0.25) !important;
    }
    
    .hero-bg-video {
        position: relative !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    .hero-overlay {
        display: none !important;
    }
    
    .hero-container {
        position: relative !important;
        padding: 2.2rem 1.5rem 2.8rem !important;
        z-index: 3 !important;
        width: 100% !important;
        margin: 0 !important;
    }
    
    .hero-content {
        max-width: 100% !important;
    }

    /* Hide hero heading on mobile (keep same on desktop) */
    h1.hero-title {
        display: none !important;
    }
    
    /* Redesign typewriter as the main title header on mobile */
    .hero-typewriter {
        font-size: 1.25rem !important;
        font-weight: 700 !important;
        color: #ffffff !important;
        margin-bottom: 1rem !important;
        line-height: 1.4 !important;
    }
    
    .hero-description {
        font-size: 0.82rem !important;
        line-height: 1.4 !important;
        margin-bottom: 1.2rem !important;
        opacity: 0.9 !important;
    }
    
    .hero-ctas {
        gap: 0.8rem !important;
    }
    
    .hero-ctas .btn {
        padding: 0.65rem 1.2rem !important;
        font-size: 0.85rem !important;
    }
    
    h2, .section-title {
        font-size: 1.45rem !important;
        line-height: 1.3 !important;
    }
    
    h3 {
        font-size: 1.2rem !important;
        line-height: 1.3 !important;
    }
    
    h4 {
        font-size: 1.02rem !important;
        line-height: 1.3 !important;
    }

    .nav-cta {
        width: 100%;
        max-width: 280px;
        margin-left: 0;
        margin-top: 1rem;
    }
    
    /* Hamburger Menu Animation */
    .menu-toggle.open .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .menu-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.open .bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    
    /* Appointment Booking Form Grid */
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-form-panel {
        padding: 2.5rem 1.8rem;
    }
    
    .form-info-panel {
        padding: 2.5rem 1.8rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-map-panel {
        min-height: 320px;
    }
}

/* Extra Small Screens (480px) */
@media (max-width: 480px) {
    .emergency-flex {
        justify-content: center;
        text-align: center;
        flex-direction: column;
    }
    
    .emergency-right {
        display: none; /* Hide top bar right-side on super small screens to save space */
    }
    
    .hero-title {
        font-size: 1.35rem !important;
    }
    
    .hero-ctas .btn {
        width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Keep stats grid at 4 columns on 480px, overriding 1 column defaults */
    .stats-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 0.3rem !important;
    }
    
    .stat-number {
        font-size: 1.25rem !important;
    }
    
    .stat-label {
        font-size: 0.6rem !important;
    }
    
    .floating-whatsapp {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-float-icon {
        width: 26px;
        height: 26px;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
}

/* ==========================================================================
   Hero Video Background, Team, Gallery, and Lightbox Additions
   ========================================================================== */
.hero-bg-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* Timeline Dot Milestones */
.timeline-badge.timeline-dot {
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-light) 100%) !important;
    border: 4px solid #ffffff !important;
    box-shadow: var(--shadow-sm) !important;
    top: 2.7rem !important;
}

.left-item .timeline-badge.timeline-dot {
    right: -10px !important;
    left: auto !important;
}

.right-item .timeline-badge.timeline-dot {
    left: -10px !important;
    right: auto !important;
}

@media (max-width: 768px) {
    .timeline-badge.timeline-dot {
        left: 12px !important;
        right: auto !important;
        top: 2.3rem !important;
        width: 16px !important;
        height: 16px !important;
    }
}

/* Infinite Auto-Scrolling Staff Image Marquee */
.staff-slider-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 1.5rem 0;
    position: relative;
}

.staff-slider-track {
    display: flex;
    width: calc(260px * 12); /* 240px slide + 20px gap */
    animation: scrollStaff 22s linear infinite;
}

.staff-slide {
    width: 240px;
    height: 240px;
    margin: 0 10px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal);
}

.staff-slide:hover {
    transform: scale(1.03);
}

.staff-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-slider-wrapper:hover .staff-slider-track {
    animation-play-state: paused;
}

@keyframes scrollStaff {
    0%, 13.6% { transform: translateX(0); }
    16.6%, 30.2% { transform: translateX(-260px); }
    33.2%, 46.8% { transform: translateX(-520px); }
    49.8%, 63.4% { transform: translateX(-780px); }
    66.4%, 80% { transform: translateX(-1040px); }
    83%, 96.6% { transform: translateX(-1300px); }
    100% { transform: translateX(-1560px); }
}

@media (max-width: 768px) {
    .staff-slide {
        width: 180px;
        height: 180px;
    }
    .staff-slider-track {
        width: calc(200px * 12);
        animation: scrollStaffMobile 22s linear infinite !important;
    }
    @keyframes scrollStaffMobile {
        0%, 13.6% { transform: translateX(0); }
        16.6%, 30.2% { transform: translateX(-200px); }
        33.2%, 46.8% { transform: translateX(-400px); }
        49.8%, 63.4% { transform: translateX(-600px); }
        66.4%, 80% { transform: translateX(-800px); }
        83%, 96.6% { transform: translateX(-1000px); }
        100% { transform: translateX(-1200px); }
    }
}

/* General Gallery Grid */
.gallery-section {
    padding: 7rem 0;
    background-color: var(--color-bg-light);
}

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

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-item.hidden {
    display: none;
}

.gallery-actions {
    text-align: center;
    margin-top: 3rem;
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

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

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-fast);
}

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

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    padding: 15px;
    user-select: none;
    transition: var(--transition-fast);
    z-index: 2010;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--color-teal-light);
    scale: 1.1;
}

@media (max-width: 768px) {
    .lightbox-prev,
    .lightbox-next {
        font-size: 36px;
        padding: 10px;
    }
    .lightbox-prev {
        left: 10px;
    }
    .lightbox-next {
        right: 10px;
    }
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   Preloader Styles
   ========================================================================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.preloader-logo {
    height: 70px;
    width: auto;
    animation: logoPulse 2s infinite ease-in-out;
}

.preloader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(13, 148, 136, 0.15);
    border-top-color: var(--color-teal);
    border-radius: 50%;
    animation: spin 1s infinite linear;
}

.preloader-text {
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 1px;
    opacity: 0.95;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.06); opacity: 1; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Header Dropdown Submenus
   ========================================================================== */
.nav-item-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
}

.svg-chevron {
    width: 12px;
    height: 12px;
    fill: currentColor;
    transition: transform var(--transition-fast) ease;
}

.nav-item-dropdown:hover .svg-chevron {
    transform: rotate(180deg);
}

.dropdown-menu-container {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    background-color: #ffffff;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    padding: 0.5rem 0;
    min-width: 210px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast) ease;
    z-index: 1010;
}

.dropdown-menu-container::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent #ffffff transparent;
}

.nav-item-dropdown:hover .dropdown-menu-container {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(2px);
}

.dropdown-link {
    display: block;
    padding: 0.6rem 1.25rem;
    color: var(--color-primary-light);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast) ease;
    text-align: left;
}

.dropdown-link:hover {
    color: var(--color-teal);
    background-color: var(--color-bg-light);
}

/* Mobile responsive navigation dropdown override */
@media (max-width: 768px) {
    .nav-item-dropdown {
        width: 100%;
    }
    .dropdown-toggle {
        justify-content: center;
        width: 100%;
    }
    .dropdown-menu-container {
        position: static;
        transform: none !important;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        background-color: var(--color-bg-light);
        padding: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .nav-item-dropdown.active-dropdown .dropdown-menu-container {
        max-height: 350px;
        border-top: 1px solid var(--color-border);
        border-bottom: 1px solid var(--color-border);
        margin: 0.5rem 0;
        padding: 0.4rem 0;
    }
    .dropdown-link {
        text-align: center;
        padding: 0.6rem 1rem;
        font-size: 0.92rem;
    }
}

/* ==========================================================================
   Homepage Blogs Grid Section
   ========================================================================== */
.blog-section {
    padding: 6.5rem 0 7rem;
    background-color: var(--color-bg-light);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

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

.blog-card {
    background-color: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform var(--transition-normal) ease, box-shadow var(--transition-normal) ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.blog-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.blog-date {
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
}

.blog-tag {
    background-color: rgba(13, 148, 136, 0.1);
    color: var(--color-teal);
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-title {
    font-family: var(--font-heading);
    font-size: 1.22rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.35;
    margin-bottom: 0.8rem;
}

.blog-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast) ease;
}

.blog-title a:hover {
    color: var(--color-teal);
}

.blog-excerpt {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.btn-link {
    font-family: var(--font-heading);
    color: var(--color-teal);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    display: inline-block;
    transition: transform var(--transition-fast) ease;
}

.btn-link:hover {
    transform: translateX(4px);
    color: var(--color-teal-dark);
}

/* ==========================================================================
   Blog Details Reading Template
   ========================================================================== */
.top-blog-cta-banner {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: #ffffff;
    padding: 0.75rem 0;
    font-size: 0.82rem;
    border-bottom: 3px solid var(--color-teal);
    z-index: 1060;
}

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

.cta-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.emergency-badge {
    background-color: var(--color-coral);
    color: #ffffff;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.cta-phone a {
    color: #ffffff;
    text-decoration: none;
}

.cta-phone a:hover {
    color: var(--color-mint);
}

.cta-divider {
    color: rgba(255,255,255,0.2);
}

.blog-detail-body {
    background-color: #ffffff;
}

.blog-detail-content-wrapper {
    padding: 5rem 0 7rem;
    background-color: var(--color-bg-light);
}

.blog-detail-article {
    max-width: 820px !important;
    background: #ffffff;
    padding: 3.5rem 4rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    margin: 0 auto;
}

.blog-detail-header {
    margin-bottom: 2rem;
}

.blog-detail-meta {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
}

.meta-divider {
    margin: 0 0.5rem;
    color: var(--color-border);
}

.blog-detail-title {
    font-family: var(--font-heading);
    font-size: 2.35rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.25;
    margin-bottom: 1rem;
}

.blog-detail-intro {
    font-size: 1.05rem;
    color: var(--color-primary-light);
    line-height: 1.5;
    max-width: 720px;
    margin: 0 auto;
    font-weight: 500;
}

.blog-divider {
    border: 0;
    border-top: 1px solid var(--color-border);
    margin: 2.5rem 0;
}

/* Rich Blog Content Formatting (TinyMCE Content Container) */
.blog-rich-content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #334155;
}

.blog-rich-content p {
    margin-bottom: 1.6rem;
}

.blog-rich-content strong {
    color: var(--color-primary);
}

.blog-rich-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-primary);
    font-weight: 800;
    margin: 2.5rem 0 1rem;
    line-height: 1.3;
}

.blog-rich-content h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-primary-light);
    font-weight: 700;
    margin: 2rem 0 0.8rem;
    line-height: 1.3;
}

.blog-rich-content ul, .blog-rich-content ol {
    margin-bottom: 1.6rem;
    padding-left: 2rem;
}

.blog-rich-content li {
    margin-bottom: 0.6rem;
}

.blog-rich-content a {
    color: var(--color-teal);
    text-decoration: underline;
    font-weight: 600;
}

.blog-rich-content a:hover {
    color: var(--color-teal-dark);
}

/* Bottom CTA block in blog detail */
.blog-bottom-cta-box {
    margin-top: 4rem;
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-teal);
    border-radius: var(--radius-sm);
    padding: 2.5rem;
}

.cta-box-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2rem;
    align-items: center;
}

.cta-box-info h3 {
    font-family: var(--font-heading);
    font-size: 1.28rem;
    color: var(--color-primary);
    font-weight: 800;
    margin-bottom: 0.6rem;
}

.cta-box-info p {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.cta-box-features {
    list-style: none;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-primary-light);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.cta-box-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

/* Blog detail responsiveness */
@media (max-width: 768px) {
    .cta-banner-flex {
        flex-direction: column;
        gap: 0.6rem;
        text-align: center;
    }
    .cta-left {
        justify-content: center;
        gap: 0.5rem;
    }
    .cta-divider {
        display: none;
    }
    .blog-detail-content-wrapper {
        padding: 2rem 0 4rem;
    }
    .blog-detail-article {
        padding: 2.5rem 1.8rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    .blog-detail-title {
        font-size: 1.7rem;
    }
    .blog-detail-intro {
        font-size: 0.95rem;
    }
    .blog-bottom-cta-box {
        padding: 1.5rem;
    }
    .cta-box-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Blog Cover Image Styles */
.blog-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--color-border);
}

.blog-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-normal) ease;
}

.blog-card:hover .blog-cover-img {
    transform: scale(1.04);
}
