/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #fd39f6;
    --secondary-color: #ff6b9d;
    --accent-color: #e846fe;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Top Bar */
.top-bar {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.contact-info span {
    display: inline-flex;
    align-items: center;
    margin-right: 15px;
}

.contact-info i {
    margin-right: 5px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: var(--transition);
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    padding: 10px 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

/* Logo Container */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

/* Logo Image */
.logo img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid var(--primary-color);
    padding: 3px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

/* Logo Hover Effect */
.logo img:hover {
    transform: scale(1.08);
}

/* Logo Text */
.logo h1 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #222;
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.3;
}

/* Highlight Text */
.logo h1 span {
    color: var(--primary-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Navigation */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    font-size: 15px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #fd39f6 0%, #ff6b9d 100%);
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideShow 15s infinite;
}

.slide1 { background-image: url('../images/hero1.jpg'); animation-delay: 0s; }
.slide2 { background-image: url('../images/hero2.jpg'); animation-delay: 5s; }
.slide3 { background-image: url('../images/hero3.jpg'); animation-delay: 10s; }

@keyframes slideShow {
    0%, 20% { opacity: 1; }
    25%, 100% { opacity: 0; }
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 600px;
    padding: 40px 20px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
    animation-delay: 0.5s;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
    animation-delay: 0.8s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    margin-right: 15px;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(253,57,246,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(253,57,246,0.4);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Section Styles */
.section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
}

.section-header p {
    color: var(--text-light);
    font-size: 16px;
}

/* Cards Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* Department Card */
.dept-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    height: 100%;
}

.dept-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.dept-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient);
}

.dept-card-content {
    padding: 25px;
    text-align: center;
}

.dept-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 28px;
    transition: var(--transition);
}

.dept-card:hover .dept-icon {
    transform: rotateY(180deg);
}

.dept-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 20px;
}

.dept-card p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 14px;
}

/* Doctor Card */
.doctor-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.doctor-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.doctor-img {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.doctor-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.doctor-card:hover .doctor-img img {
    transform: scale(1.1);
}

.doctor-info {
    padding: 20px;
    text-align: center;
    position: relative;
}

.doctor-info h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 18px;
}

.doctor-info p {
    color: var(--text-light);
    margin-bottom: 5px;
    font-size: 14px;
}

.doctor-social {
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    justify-content: center;
    gap: 15px;
    transform: translateY(100%);
    transition: var(--transition);
}

.doctor-card:hover .doctor-social {
    transform: translateY(0);
}

.doctor-social a {
    color: var(--white);
    font-size: 16px;
    transition: var(--transition);
}

.doctor-social a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Statistics Section */
.stats-section {
    background: var(--gradient);
    color: var(--white);
    padding: 50px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    text-align: center;
}

.stat-item {
    padding: 15px;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
}

/* Why Choose Us Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.feature-card {
    text-align: center;
    padding: 25px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 18px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 14px;
}

/* Testimonials Section */
.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-card {
    background: var(--white);
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow);
    margin: 15px;
    text-align: center;
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 80px;
    color: var(--secondary-color);
    opacity: 0.2;
    font-family: serif;
}

.testimonial-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 15px;
    overflow: hidden;
    border: 3px solid var(--secondary-color);
}

.testimonial-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-rating {
    color: #ffd700;
    margin-bottom: 10px;
}

.testimonial-text {
    color: var(--text-light);
    margin-bottom: 15px;
    font-style: italic;
    font-size: 14px;
}

.testimonial-name {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 16px;
}

/* Appointment Section */
.appointment-section {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('../images/appointment-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
}

.appointment-form {
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    background: rgba(255,255,255,0.9);
    font-family: inherit;
    font-size: 14px;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

/* Page Header */
.page-header {
    padding: 60px 0;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 15px;
    color: white;
}

.breadcrumbs {
    font-size: 14px;
}

.breadcrumbs a {
    color: white;
    text-decoration: none;
}

.breadcrumbs span {
    color: var(--secondary-color);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h3 {
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 8px;
    font-size: 18px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-col p {
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact i {
    margin-right: 8px;
    color: var(--secondary-color);
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 14px;
}

.newsletter-form button {
    padding: 8px 15px;
    background: var(--secondary-color);
    border: none;
    color: var(--white);
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s;
}

.loader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--light-bg);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* About Page Styles */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.experience-badge {
    background: var(--gradient);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
    text-align: center;
}

.experience-badge h3 {
    font-size: 48px;
    margin-bottom: 5px;
}

.section-title {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 32px;
}

.about-description {
    margin-bottom: 20px;
    line-height: 1.8;
}

.features-list {
    margin: 30px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.feature-item i {
    color: var(--secondary-color);
    font-size: 24px;
    margin-right: 15px;
}

/* Mission Vision Section */
.mission-vision-section {
    background: var(--light-bg);
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.mv-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    height: 100%;
}

.mv-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.mv-icon i {
    color: white;
    font-size: 32px;
}

.mv-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.values-list {
    list-style: none;
    padding: 0;
}

.values-list li {
    margin-bottom: 10px;
}

/* CTA Section */
.cta-section {
    background: var(--gradient);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    color: white;
    margin-bottom: 20px;
    font-size: 36px;
}

.cta-section p {
    margin-bottom: 30px;
    font-size: 18px;
}

/* Departments Page */
.departments-page {
    background: var(--light-bg);
}

.departments-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.doctor-count {
    background: var(--secondary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    display: inline-block;
    margin-top: 10px;
}

/* Doctors Page */
.doctors-page {
    background: var(--light-bg);
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.doctor-specialization {
    color: var(--secondary-color);
    font-weight: 600;
}

.doctor-qualification {
    font-size: 14px;
    color: var(--text-light);
}

.doctor-experience {
    font-size: 14px;
    margin: 10px 0;
}

.doctor-about {
    font-size: 14px;
    margin: 15px 0;
}

.doctor-action {
    margin-top: 20px;
}

/* Services Page */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-icon i {
    color: white;
    font-size: 32px;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card p {
    margin-bottom: 20px;
    color: var(--text-light);
}

/* Gallery Page */
.gallery-page {
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 15px;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

/* Testimonials Page */
.testimonials-page {
    background: var(--light-bg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
    border: 3px solid var(--secondary-color);
}

.testimonial-meta h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.testimonial-rating {
    color: #ffd700;
}

.testimonial-content {
    position: relative;
    padding-left: 30px;
}

.quote-icon {
    position: absolute;
    top: -10px;
    left: -10px;
    font-size: 40px;
    color: var(--secondary-color);
    opacity: 0.2;
}

.testimonial-content p {
    line-height: 1.8;
    font-style: italic;
}

/* Contact Page */
.contact-info-section {
    background: var(--white);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.contact-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    height: 100%;
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.contact-icon i {
    color: white;
    font-size: 28px;
}

.contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.contact-card p {
    color: var(--text-light);
}

.contact-form-section {
    background: var(--light-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.map-container h2,
.form-container h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.map-wrapper {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text-dark);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.emergency-section {
    background: var(--gradient);
    color: white;
    padding: 60px 0;
}

.emergency-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: center;
}

.emergency-content h2 {
    color: white;
    margin-bottom: 20px;
}

.emergency-content p {
    margin-bottom: 20px;
    font-size: 18px;
}

.emergency-number {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.emergency-number i {
    font-size: 48px;
}

.emergency-number h3 {
    color: white;
    font-size: 36px;
    margin-bottom: 5px;
}

.ambulance-card {
    background: rgba(255,255,255,0.1);
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.ambulance-card h3 {
    color: white;
    margin-bottom: 20px;
}

.ambulance-features {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.ambulance-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.ambulance-features i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.ambulance-card h4 {
    color: white;
    margin-top: 20px;
    font-size: 18px;
}

/* Index Page Specific Styles */
.about-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 40px;
}

.about-preview-img {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.about-preview-text {
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-images-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.about-image-item {
    width: 100%;
}

.departments-section {
    background: var(--light-bg);
}

.view-btn {
    padding: 8px 20px !important;
    font-size: 14px;
}

.doctors-section {
    background: var(--white);
}

.features-section {
    background: var(--light-bg);
}

.text-center {
    text-align: center;
    margin-top: 40px;
}

.white-text {
    color: var(--white) !important;
}

.white-text-light {
    color: rgba(255,255,255,0.9) !important;
}

.submit-btn {
    width: 100%;
}

/* Responsive Styles for All Pages */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .hero-content h1 {
        font-size: 42px;
    }
    
    .departments-grid,
    .doctors-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 20px 30px;
        transition: var(--transition);
        z-index: 999;
        box-shadow: var(--shadow);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 12px 0;
        font-size: 16px;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }

    .nav-menu a::after {
        display: none;
    }

    .hero-content h1 {
        font-size: 36px;
    }
    
    .about-grid,
    .about-preview-grid,
    .contact-grid,
    .emergency-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .mv-grid,
    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 32px;
    }
    
    .about-images-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }

    .top-bar .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .contact-info {
        justify-content: center;
    }
    
    .contact-info span {
        margin: 0 8px;
    }
    
    .top-bar-right {
        justify-content: center;
        width: 100%;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-buttons .btn {
        margin: 0;
        text-align: center;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .departments-grid,
    .doctors-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .mv-grid,
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-col ul li a:hover {
        padding-left: 0;
    }
    
    .newsletter-form {
        max-width: 300px;
        margin: 15px auto 0;
    }
    
    .page-header {
        padding: 50px 0;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
    
    .appointment-form {
        padding: 25px;
        margin: 0 15px;
    }
    
    .logo h1 {
        font-size: 16px;
    }
    
    .logo img {
        width: 50px;
        height: 50px;
    }
    
    .header-right .btn {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .experience-badge h3 {
        font-size: 36px;
    }
    
    .feature-item i {
        font-size: 20px;
    }
    
    .mv-card {
        padding: 30px 20px;
    }
    
    .mv-icon {
        width: 70px;
        height: 70px;
    }
    
    .mv-icon i {
        font-size: 28px;
    }
    
    .contact-form {
        padding: 30px;
    }
    
    .ambulance-card {
        padding: 30px;
    }
    
    .emergency-number h3 {
        font-size: 30px;
    }
    
    .cta-section h2 {
        font-size: 28px;
    }
    
    .cta-section p {
        font-size: 16px;
    }
    
    .testimonial-avatar {
        width: 70px;
        height: 70px;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .about-preview-text {
        font-size: 14px;
    }
    
    .about-images-grid {
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 24px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .section {
        padding: 40px 0;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .section-header p {
        font-size: 14px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-number {
        font-size: 30px;
    }
    
    .dept-card-content {
        padding: 20px;
    }
    
    .doctor-img {
        height: 200px;
    }
    
    .doctor-info {
        padding: 15px;
    }
    
    .doctor-info h3 {
        font-size: 16px;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .feature-card h3 {
        font-size: 16px;
    }
    
    .testimonial-card {
        padding: 20px;
        margin: 10px;
    }
    
    .testimonial-img {
        width: 60px;
        height: 60px;
    }
    
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .logo h1 {
        font-size: 14px;
    }
    
    .logo img {
        width: 40px;
        height: 40px;
    }
    
    .header-right .btn {
        display: none;
    }
    
    .language-switcher .lang-btn {
        padding: 4px 6px;
        font-size: 10px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item img {
        height: 180px;
    }
    
    .breadcrumbs {
        font-size: 12px;
    }
    
    .page-header h1 {
        font-size: 24px;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-item i {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .testimonial-header {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonial-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .testimonial-content {
        padding-left: 0;
        text-align: center;
    }
    
    .quote-icon {
        display: none;
    }
    
    .emergency-number {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        width: 60px;
        height: 60px;
    }
    
    .contact-icon i {
        font-size: 24px;
    }
    
    .contact-card {
        padding: 20px;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .ambulance-card {
        padding: 20px;
    }
    
    .experience-badge {
        padding: 15px;
    }
    
    .experience-badge h3 {
        font-size: 30px;
    }
    
    .mv-card {
        padding: 25px 15px;
    }
    
    .emergency-number i {
        font-size: 36px;
    }
    
    .emergency-number h3 {
        font-size: 24px;
    }
    
    .about-preview-grid {
        gap: 20px;
    }
    
    .about-images-grid {
        gap: 15px;
    }
}

@media (max-width: 375px) {
    .contact-info span {
        font-size: 12px;
        margin: 0 5px;
    }
    
    .social-links a {
        font-size: 14px;
    }
    
    .lang-btn {
        padding: 3px 5px;
        font-size: 9px;
    }
    
    .logo h1 {
        font-size: 12px;
    }
    
    .logo img {
        width: 35px;
        height: 35px;
    }
    
    .dept-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .dept-card h3 {
        font-size: 18px;
    }
    
    .gallery-item img {
        height: 150px;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
    }
    
    .contact-icon i {
        font-size: 20px;
    }
    
    .testimonial-avatar {
        width: 60px;
        height: 60px;
    }
    
    .experience-badge h3 {
        font-size: 24px;
    }
}

/* Additional Mobile Fixes */
@media (max-width: 992px) {
    .header .container {
        padding: 10px 15px;
    }
    
    .nav-menu {
        padding-top: 70px;
    }
    
    .nav-menu.active {
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }
}

/* Fix for images on mobile */
img {
    max-width: 100%;
    height: auto;
}

/* Form inputs on mobile */
input, select, textarea, button {
    font-size: 16px !important; /* Prevents zoom on iOS */
}

/* Touch-friendly elements */
@media (max-width: 768px) {
    .btn, 
    .nav-menu a,
    .social-links a,
    .lang-btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .menu-toggle {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}