* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0066cc;
    --primary-dark: #0052a3;
    --secondary: #00a859;
    --light: #f0f8ff;
    --dark: #333;
    --gray: #777;
    --light-gray: #f5f5f5;
    --white: #fff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark);
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2.2rem;
    color: var(--primary);
    position: relative;
    padding-bottom: 0.8rem;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--secondary);
}

h3 {
    font-size: 1.5rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #008e4a;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.text-center {
    text-align: center;
}

.text-center h2:after {
    left: 50%;
    transform: translateX(-50%);
}

/* Header & Navigation */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-icon {
    color: var(--primary);
    font-size: 2.5rem;
    margin-right: 10px;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.logo-text span {
    color: var(--secondary);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 102, 204, 0.85), rgba(0, 82, 163, 0.9)), url('https://images.unsplash.com/photo-1586773860418-dc22f8b874bc?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-image: url('images/mission.jpeg');
    background-position: center;
    color: var(--white);
    padding: 120px 0;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

/* Services Section */
.services {
    background-color: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    background-color: var(--light);
    color: var(--primary);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

/* Emergency Banner */
.emergency-banner {
    background-color: var(--primary);
    color: var(--white);
    padding: 40px 0;
}

.emergency-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.emergency-text h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.emergency-text p {
    font-size: 1.1rem;
}

/* Doctors Section */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.doctor-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.doctor-card:hover {
    transform: translateY(-10px);
}

.doctor-img {
    height: 250px;
    background-color: #ddd;
    overflow: hidden;
}

.doctor-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-info {
    padding: 25px;
}

.doctor-specialty {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

/* Appointment Section */
.appointment {
    background-color: var(--light);
}

.appointment-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: center;
}

.appointment-form {
    flex: 1;
    min-width: 300px;
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
}

/* Contact & Footer */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-icon {
    background-color: var(--light);
    color: var(--primary);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #bbb;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
    color: #bbb;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .emergency-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: var(--shadow);
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav ul li {
        margin: 0;
        text-align: center;
        padding: 15px 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-btns {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .appointment-container {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .appointment-form {
        padding: 30px 20px;
    }

}
/* Services Grid Layout for 6 items */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* For larger screens, show 3 columns for 6 items */
@media (min-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Ambulance hotline styling */
.ambulance-hotline {
    margin-top: 15px;
    padding: 8px 15px;
    background: var(--light);
    border-radius: 4px;
    display: inline-block;
    font-size: 0.9rem;
    transition: var(--transition);
}

.ambulance-hotline:hover {
    background: #e3f2fd;
    transform: translateY(-2px);
}
/* Logo Container */
.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 15px;
}

/* Logo Image */
.logo-image {
    flex-shrink: 0;
}

.logo-img {
    height: 65px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
}

/* Logo Text */
.logo-text-container {
    display: flex;
    flex-direction: column;
}

.logo-main-text {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.logo-part1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.logo-part2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1;
}

.logo-badge {
    font-size: 0.7rem;
    background: var(--secondary);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-left: 8px;
}

.logo-tagline {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 3px;
    letter-spacing: 0.5px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .logo-container {
        gap: 10px;
    }
    
    .logo-img {
        height: 50px;
        max-width: 60px;
    }
    
    .logo-part1, .logo-part2 {
        font-size: 1.5rem;
    }
    
    .logo-tagline {
        font-size: 0.7rem;
    }
}
