/* ============================================
   Siri Nursing Home - Main Stylesheet
   ============================================ */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #d32f2f;
    --secondary-color: #f44336;
    --accent-color: #ff5252;
    --text-color: #212121;
    --bg-color: #ffffff;
    --light-bg: #ffebee;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(211, 47, 47, 0.15);
    --shadow-hover: 0 4px 20px rgba(211, 47, 47, 0.25);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
    padding-top: 0;
    font-size: 16px; /* Minimum 16px for mobile-friendly */
}

/* Font display swap for any future web fonts */
@font-face {
    font-family: 'CustomFont';
    font-display: swap;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 40px;
    left: 0;
    right: 0;
    z-index: 1001;
    transition: all 0.3s ease;
    width: 100%;
    margin: 0;
}

.header.sticky {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-color);
}

.logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}


.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-list a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--primary-color);
}

.nav-list a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.header-cta {
    display: flex;
    align-items: center;
}

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 5px;
    z-index: 1002;
    position: relative;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 2px;
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 14px 30px; /* Increased padding for better touch targets (min 44px height) */
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    font-size: 1rem; /* 16px - mobile-friendly */
    min-height: 44px; /* Minimum touch target size for mobile */
    min-width: 44px; /* Minimum touch target size for mobile */
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #0a5d61;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #0f7d6f;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-emergency {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 20px; /* Increased for better touch target */
    font-size: 1rem; /* 16px - mobile-friendly */
    white-space: nowrap;
    min-height: 44px; /* Minimum touch target size */
}

.btn-emergency:hover {
    background-color: #b71c1c;
}

.btn-emergency-large {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 40px;
    font-size: 1.1rem;
    margin: 10px;
}

.btn-emergency-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 20px; /* Increased for better touch target */
    font-size: 1rem; /* 16px - mobile-friendly */
    text-decoration: none;
    display: inline-block;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    min-height: 44px; /* Minimum touch target size */
}

.btn-emergency-footer:hover {
    background-color: var(--white);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
}

/* Marquee Banner */
.marquee-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 0;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1002;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 40px;
    display: flex;
    align-items: center;
    line-height: 40px;
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 25s linear infinite;
    font-weight: 600;
    font-size: 1rem; /* 16px - mobile-friendly */
    letter-spacing: 1px;
    width: 100%;
}

.marquee-content span {
    display: inline-block;
    padding-right: 100px;
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #d32f2f 0%, #f44336 25%, #ff5252 50%, #e91e63 75%, #d32f2f 100%);
    background-size: 400% 400%;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    height: 85vh;
    min-height: 85vh;
    max-height: 85vh;
    display: flex;
    align-items: center;
    animation: gradientShift 15s ease infinite;
    margin-top: 120px;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.85) 0%, rgba(244, 67, 54, 0.85) 50%, rgba(255, 82, 82, 0.85) 100%);
    z-index: 1;
}

.hero-pattern-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    z-index: 2;
    animation: patternFloat 20s ease-in-out infinite;
}

@keyframes patternFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-20px, -20px) scale(1.05);
    }
}

.hero-content-centered {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-block;
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--white);
    display: flex;
    flex-direction: column;
    letter-spacing: -1px;
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.2);
}

.hero-title-line1 {
    display: block;
    margin-bottom: 10px;
    font-size: 0.75em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 1px;
}

.hero-title-line2 {
    display: block;
    color: var(--white);
    font-size: 1em;
    font-weight: 900;
    text-shadow: 3px 5px 15px rgba(0, 0, 0, 0.3);
}

.hero-subtitle-text {
    font-size: 1.8rem;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 3px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: 2px;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 30px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    text-shadow: 1px 2px 5px rgba(0, 0, 0, 0.1);
}

.hero-features-quick {
    display: flex;
    gap: 35px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-feature-quick {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.hero-feature-quick:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hero-feature-quick .hero-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--white);
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.btn-hero-services {
    background-color: var(--white);
    color: var(--primary-color);
    padding: 18px 45px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-hero-services:hover {
    background-color: var(--accent-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.btn-hero-emergency {
    background-color: transparent;
    color: var(--white);
    padding: 18px 45px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    border: 2px solid var(--white);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
}

.btn-hero-emergency:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3);
}


/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 150px;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.95), rgba(244, 67, 54, 0.95));
    z-index: 1;
}

.page-header h1,
.page-header p {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--white);
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* Section Styles */
section {
    padding: 80px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

section:first-of-type:not(.page-header):not(.emergency-hero):not(.hero) {
    margin-top: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
    line-height: 1.4;
    letter-spacing: -0.2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
}

/* About Brief Section */
.about-brief {
    background-color: var(--light-bg);
}

.about-brief-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-brief-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.about-brief-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Specialities Grid */
.specialities {
    background-color: var(--white);
}

.specialities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.speciality-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.speciality-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.speciality-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    color: var(--white);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.2);
}

.speciality-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    transform: rotate(0deg);
    transition: transform 0.8s ease;
}

.speciality-card:hover .speciality-icon {
    transform: translateY(-10px) rotateY(360deg) scale(1.15);
    box-shadow: 0 15px 35px rgba(211, 47, 47, 0.4);
    border-radius: 50%;
}

.speciality-card:hover .speciality-icon::before {
    transform: rotate(180deg);
}

.speciality-icon svg,
.speciality-icon img {
    position: relative;
    z-index: 1;
    transition: transform 0.5s ease;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.speciality-card:hover .speciality-icon svg,
.speciality-card:hover .speciality-icon img {
    transform: scale(1.2) rotate(-10deg);
}

.speciality-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 700;
    transition: color 0.3s ease;
    letter-spacing: -0.2px;
}

.speciality-card:hover h3 {
    color: var(--secondary-color);
}

.speciality-card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Internal links in paragraphs - proper styling */
p a,
.speciality-card p a,
.about-brief-text p a,
.why-choose-card p a,
.doctor-card p a,
.service-card-page p a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

p a:hover,
.speciality-card p a:hover,
.about-brief-text p a:hover,
.why-choose-card p a:hover,
.doctor-card p a:hover,
.service-card-page p a:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
    text-decoration: none;
}

/* Doctors Highlight */
.doctors-highlight {
    background-color: var(--light-bg);
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.doctor-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.doctor-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-info {
    padding: 20px;
    text-align: center;
}

.doctor-info h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.doctor-speciality {
    color: #666;
    font-size: 0.9rem;
}

.section-cta {
    text-align: center;
}

/* Insurance & Ambulance Section */
.insurance-ambulance {
    background: linear-gradient(135deg, var(--light-bg), #ffffff);
    padding: 80px 0;
}

.insurance-ambulance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.insurance-column {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(211, 47, 47, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.insurance-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--white);
}

.insurance-column h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    text-align: center;
    color: var(--white);
}

.insurance-column p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

.insurance-list {
    list-style: none;
    margin: 25px 0;
    padding: 0;
}

.insurance-list li {
    padding: 12px 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.insurance-list li:last-child {
    border-bottom: none;
}

.insurance-note {
    margin-top: 25px;
    font-size: 0.95rem;
    opacity: 0.9;
    font-style: italic;
}

.ambulance-column {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ambulance-image-wrapper {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.ambulance-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ambulance-column:hover .ambulance-image-wrapper img {
    transform: scale(1.1);
}

.ambulance-content {
    padding: 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ambulance-content h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 15px;
}

.ambulance-content p {
    color: #555;
    margin-bottom: 25px;
    line-height: 1.8;
}

.ambulance-features {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.ambulance-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-weight: 500;
}

.ambulance-feature svg {
    color: var(--secondary-color);
}

.btn-ambulance {
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-ambulance:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
}

/* Emergency Section */
.emergency-section {
    background-color: var(--white);
}

.emergency-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.emergency-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.emergency-features {
    margin: 30px 0;
}

.emergency-feature {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.emergency-icon {
    font-size: 2.5rem;
}

.emergency-feature h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.emergency-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Why Choose Section */
.why-choose {
    background: linear-gradient(135deg, var(--light-bg), #ffffff);
}

.why-choose-stack {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}

.why-choose-stack-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.why-choose-stack-card {
    background: var(--white);
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(211, 47, 47, 0.1);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    border-left: 5px solid var(--primary-color);
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.why-choose-stack-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.05), rgba(244, 67, 54, 0.05));
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.why-choose-stack-card:hover::before {
    opacity: 1;
}

.why-choose-stack-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(211, 47, 47, 0.25);
    border-left-color: var(--accent-color);
}

.stack-card-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
    min-width: 60px;
    opacity: 0.3;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.why-choose-stack-card:hover .stack-card-number {
    opacity: 1;
    color: var(--secondary-color);
    transform: scale(1.1);
}

.stack-card-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.stack-card-content h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.why-choose-stack-card:hover .stack-card-content h3 {
    color: var(--secondary-color);
}

.stack-card-content p {
    color: #666;
    line-height: 1.8;
    font-size: 1rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--white);
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
    color: var(--white);
}

.cta-content p a {
    color: var(--white);
    text-decoration: underline;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-content p a:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--white);
}

.cta-buttons .btn:hover {
    background-color: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 70px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.footer-logo img:hover {
    transform: scale(1.05);
}

.social-media-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.4);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.footer-section h3,
.footer-section h4 {
    color: var(--accent-color);
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.copyright-section {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 15px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright-section p {
    margin: 0;
    font-size: 0.9rem;
    color: #cccccc;
}

.copyright-section a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.copyright-section a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #999;
}

.footer-bottom a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* About Page Styles */
.about-section {
    background-color: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.about-text h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2rem;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.vision-mission {
    background-color: var(--light-bg);
}

.vision-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.vision-mission-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.vision-mission-card h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.infrastructure {
    background-color: var(--white);
}

.infrastructure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.infrastructure-item {
    text-align: center;
    padding: 30px;
    background-color: var(--light-bg);
    border-radius: 10px;
}

.infrastructure-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.infrastructure-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.patient-care {
    background-color: var(--light-bg);
}

.patient-care-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.patient-care-text h3 {
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.patient-care-text h3:first-child {
    margin-top: 0;
}

.patient-care-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Doctors Page Styles */
.doctors-page {
    background-color: var(--white);
    padding: 60px 0;
}

.doctors-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.doctor-card-page {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.doctor-card-page:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.doctor-card-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.doctor-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-card-content {
    padding: 30px;
}

.doctor-card-content h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.doctor-qualification {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.doctor-specialization {
    color: #666;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.doctor-description {
    margin-bottom: 20px;
    line-height: 1.8;
}

.doctor-visiting {
    padding-top: 15px;
    border-top: 1px solid #eee;
    color: #666;
}

/* Services Page Styles */
.services-page {
    background-color: var(--white);
    padding: 60px 0;
}

.services-grid-page {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service-card-page {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card-page:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-icon-page {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.service-card-page h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.service-card-page ul {
    list-style: none;
    margin: 20px 0;
}

.service-card-page ul li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
}

.service-card-page ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.service-doctor {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #666;
}

.additional-services {
    background-color: var(--light-bg);
}

.additional-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.additional-service-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
}

.additional-service-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Emergency Page Styles */
.emergency-hero {
    margin-top: 150px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.emergency-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--white);
}

.emergency-hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

.emergency-phone-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.emergency-services-page {
    background-color: var(--white);
    padding: 60px 0;
}

.emergency-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.emergency-service-card {
    background-color: var(--light-bg);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.emergency-service-card:hover {
    transform: translateY(-5px);
}

.emergency-service-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.emergency-service-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.emergency-types {
    background-color: var(--light-bg);
}

.emergency-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.emergency-type-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.emergency-type-item h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.emergency-type-item ul {
    list-style: none;
}

.emergency-type-item ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.emergency-type-item ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.5rem;
}

.emergency-contact-section {
    background-color: var(--white);
}

.emergency-contact-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.emergency-contact-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.emergency-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.emergency-contact-card {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.emergency-contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.emergency-phone {
    display: block;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 10px;
}

.emergency-message {
    background-color: #fff3cd;
    padding: 20px;
    border-radius: 5px;
    margin-top: 30px;
    border-left: 4px solid var(--secondary-color);
}

.emergency-location {
    background-color: var(--light-bg);
}

.emergency-location-content {
    text-align: center;
}

.emergency-location-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.emergency-address {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: inline-block;
    margin-top: 20px;
}

/* Contact Page Styles */
.contact-section {
    background-color: var(--white);
    padding: 60px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-map-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}

.contact-info-sidebar {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}

.map-wrapper-full {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-wrapper-full h2 {
    padding: 20px 30px;
    margin: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.map-wrapper-full iframe {
    display: block;
    width: 100%;
    border: none;
}

.contact-info h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: start;
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-text h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.contact-text a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: var(--primary-color);
}

.emergency-link {
    color: var(--primary-color) !important;
    font-weight: bold;
    font-size: 1.1rem;
}

.contact-form-wrapper {
    background-color: var(--light-bg);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-form-wrapper h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.error-message {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-top: 5px;
    display: block;
}

.form-success {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    border-left: 4px solid #28a745;
}

.map-section {
    background-color: var(--light-bg);
    padding: 60px 0;
}

.map-section h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
}

.map-wrapper {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-wrapper iframe {
    display: block;
}

.quick-actions {
    background-color: var(--white);
    padding: 60px 0;
}

.quick-actions h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.quick-action-card {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quick-action-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.quick-action-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.quick-action-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav {
        position: fixed;
        top: 120px;
        left: -100%;
        width: 100%;
        background-color: var(--white);
        box-shadow: var(--shadow);
        transition: left 0.3s ease;
        z-index: 999;
    }

    .nav.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-list a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid #eee;
    }

    .hamburger {
        display: flex;
        z-index: 1002;
        position: relative;
    }

    .header-cta {
        display: none;
    }

    .hero {
        padding: 50px 0;
        height: 85vh;
        min-height: 85vh;
        max-height: 85vh;
        margin-top: 120px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-title-line1 {
        font-size: 0.8em;
    }

    .hero-title-line2 {
        font-size: 1em;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 8px 20px;
        margin-bottom: 15px;
    }

    .about-brief-content,
    .about-content,
    .emergency-content,
    .patient-care-content,
    .contact-content,
    .contact-map-wrapper,
    .insurance-ambulance-grid,
    .why-choose-layout {
        grid-template-columns: 1fr;
    }

    .contact-info-sidebar {
        position: static;
    }

    .why-choose-main {
        gap: 20px;
    }

    .why-choose-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .why-choose-item:hover {
        transform: translateY(-5px);
    }

    .vision-mission-grid {
        grid-template-columns: 1fr;
    }

    .doctors-page-grid,
    .services-grid-page {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 2rem;
        color: var(--primary-color);
    }

    .page-header h1 {
        font-size: 2rem;
        color: var(--white);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 30px 0;
        height: 85vh;
        min-height: 85vh;
        max-height: 85vh;
        margin-top: 120px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-title-line1 {
        font-size: 0.75em;
    }

    .hero-title-line2 {
        font-size: 1em;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 20px;
        padding: 0 20px;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 8px 16px;
        letter-spacing: 2px;
    }

    .hero-features-quick {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .hero-feature-quick {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .btn-hero-services,
    .btn-hero-emergency {
        padding: 15px 30px;
        font-size: 0.95rem;
        width: 100%;
        max-width: 300px;
    }

    section {
        padding: 50px 0;
    }

    .cta-content h2 {
        font-size: 1.8rem;
        color: var(--white);
    }

    .cta-content p {
        color: var(--white);
    }

    .cta-content p a {
        color: var(--white);
    }

    .emergency-hero-content h1 {
        font-size: 2rem;
        color: var(--white);
    }

    .emergency-phone-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-emergency-large {
        width: 100%;
        max-width: 300px;
    }

    .insurance-ambulance-grid {
        gap: 30px;
    }

    .insurance-column,
    .ambulance-content {
        padding: 30px 20px;
    }

    .insurance-column h2 {
        font-size: 1.8rem;
        color: var(--white);
    }

    .ambulance-content h2 {
        font-size: 1.8rem;
        color: var(--primary-color);
    }

    .ambulance-image-wrapper {
        height: 250px;
    }

    .ambulance-features {
        flex-direction: column;
        gap: 15px;
    }

    .why-choose-stack {
        gap: 20px;
    }

    .why-choose-stack-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .why-choose-stack-card {
        padding: 25px 20px;
    }

    .stack-card-number {
        font-size: 2.5rem;
        min-width: 50px;
    }

    .stack-card-content h3 {
        font-size: 1.3rem;
    }

    .speciality-icon {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.2rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-badge {
        font-size: 0.75rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
        color: var(--primary-color);
    }

    .contact-form-wrapper {
        padding: 25px;
    }
}

