* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a4d6d;
    --secondary-color: #e74c3c;
    --light-bg: #f8f9fa;
    --border-color: #e0e0e0;
    --text-primary: #333;
    --text-secondary: #666;
    --text-muted: #999;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fff;
    color: var(--text-primary);
    line-height: 1.6;
}

.container-main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navigation Bar */
.navbar {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

.logo-subtitle {
    font-size: 12px;
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s;
}

.nav-btn:hover,
.nav-btn.active {
    color: var(--secondary-color);
    font-weight: 600;
}

.language-select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    background-color: #fff;
    color: var(--text-secondary);
}

.language-select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

/* Page Content */
.page-content {
    flex: 1;
}

.page {
    display: none;
    min-height: calc(100vh - 70px);
}

.page.active {
    display: block;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1a4d6d 0%, #2d5a7b 100%);
    color: white;
    padding: 100px 20px;
    text-align: center;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Buttons */
.btn-primary {
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 40px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #d63825;
    transform: translateY(-2px);
}

.back-btn {
    background: none;
    border: none;
    color: var(--secondary-color);
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.back-btn:hover {
    color: #d63825;
}

/* Features Section */
.features-section {
    padding: 60px 20px;
    background-color: white;
}

.features-section h2 {
    font-size: 32px;
    font-weight: 600;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    padding: 30px;
    background-color: var(--light-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* CTA Section */
.cta-section {
    background-color: #f0f4f8;
    padding: 60px 20px;
    text-align: center;
}

.cta-section h2 {
    font-size: 32px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* Search & Filters */
.search-filters {
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.search-input,
.filter-select {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.search-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

/* Hospital Grid */
.hospital-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.hospital-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s;
}

.hospital-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.hospital-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.hospital-header {
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.hospital-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.hospital-location {
    color: var(--text-muted);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.hospital-category {
    background-color: var(--secondary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.hospital-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 13px;
    margin-bottom: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.hospital-info-label {
    color: var(--text-muted);
}

.hospital-info-value {
    font-weight: 600;
    color: var(--text-primary);
}

.hospital-description {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 15px;
}

.hospital-ratings {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    margin-bottom: 15px;
}

.rating-item {
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 600;
}

.rating-label {
    font-size: 11px;
    color: var(--text-muted);
}

.hospital-card-btn {
    width: 100%;
    padding: 10px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.hospital-card-btn:hover {
    background-color: #0d2e42;
}

/* Hospital Detail */
.hospital-detail-hero {
    background: linear-gradient(135deg, #1a4d6d 0%, #2d5a7b 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.hospital-detail-hero h1 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 15px;
}

.detail-info-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.detail-info-item {
    font-size: 13px;
    color: #ccc;
}

.detail-info-value {
    font-size: 16px;
    font-weight: 500;
    color: white;
    margin-top: 5px;
}

.detail-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.detail-stat-card {
    background-color: var(--light-bg);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.stat-label {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-color);
}

.detail-section {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.detail-section h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.detail-section p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.specialty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.specialty-item {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.specialty-rating {
    font-size: 24px;
    color: var(--secondary-color);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.service-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-secondary);
}

/* About Page */
.about-mission {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
}

.about-mission h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.about-mission p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.stat-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-secondary);
}

.about-benefits {
    background-color: #f0f4f8;
    padding: 30px;
    border-radius: 12px;
}

.about-benefits h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-benefits ul {
    list-style: none;
}

.about-benefits li {
    color: var(--text-secondary);
    line-height: 2;
    font-size: 16px;
}

/* Contact Page */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.contact-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-detail {
    font-size: 16px;
    color: var(--secondary-color);
    font-weight: 500;
}

.contact-form {
    background-color: var(--light-bg);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.contact-form h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-section p {
    color: #ccc;
    font-size: 14px;
}

.footer-link {
    display: block;
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 8px;
    text-align: left;
    transition: all 0.3s;
}

.footer-link:hover {
    color: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
    text-align: center;
    color: #ccc;
    font-size: 13px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 15px;
    }

    .nav-btn {
        display: none;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .hospital-grid {
        grid-template-columns: 1fr;
    }

    .detail-info-grid {
        flex-direction: column;
    }

    .contact-info-grid {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .page-container {
        padding: 20px 15px;
    }

    .features-section h2,
    .cta-section h2 {
        font-size: 24px;
    }

    .search-filters {
        grid-template-columns: 1fr;
    }

    .hospital-ratings {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .footer-content {
        gap: 20px;
    }
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.no-results h3 {
    font-size: 18px;
    margin-bottom: 10px;
}
