/* ============================================================
   GLOBAL STYLES – Enhanced & Stylish
   ============================================================ */
:root {
    --primary: #08135e;
    --primary-dark: #060f44;
    --primary-light: #e6edff;
    --primary-glow: rgba(8, 19, 94, 0.15);
    --secondary: #ff5252;
    --accent: #ffab40;
    --text: #1e293b;
    --text-light: #475569;
    --white: #ffffff;
    --bg: #f4f7fb;
    --card-bg: #ffffff;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 24px 60px rgba(8, 19, 94, 0.18);
    --radius: 14px;
    --radius-sm: 8px;
    --radius-lg: 22px;
    --radius-xl: 28px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 64px;
    --nav-height: 70px;
    --desktop-nav-bg: #f0f4f8;
    --success: #4caf50;
    --warning: #ff9800;
    --rating-gold: #f59e0b;
    --rating-gray: #d1d5db;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    padding-top: var(--header-height);
    padding-bottom: var(--nav-height);
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 18px;
    width: 100%;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    margin-bottom: 0.5em;
}
h1 { font-size: 2.4rem; font-weight: 800; }
h2 { font-size: 1.9rem; font-weight: 700; }
h3 { font-size: 1.4rem; font-weight: 600; }
p { margin-bottom: 1rem; color: var(--text-light); }
a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}
a:hover, a:focus { color: var(--primary-dark); }
.section-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 16px;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* ===== Header ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--white);
    box-shadow: var(--shadow);
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 0 18px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}
.header-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.logo-img {
    height: 44px;
    width: auto;
    max-width: 100%;
}
.location-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg);
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    cursor: default;
    border: 1px solid #e2e8f0;
}
.location-badge i { color: var(--primary); }

/* ===== Hero Banner (Slider-style) ===== */
.hero-banner {
    margin: 16px 0 24px;
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}
.hero-slider {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-slide {
    flex: 0 0 100%;
    padding: 36px 28px 32px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    position: relative;
}
.hero-slide:nth-child(1) { background: linear-gradient(135deg, #08135e, #1a3a8a); }
.hero-slide:nth-child(2) { background: linear-gradient(135deg, #0f3b5e, #1e6f9f); }
.hero-slide:nth-child(3) { background: linear-gradient(135deg, #5b2e91, #8b5cf6); }
.hero-slide::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    pointer-events: none;
}
.hero-slide .slide-content {
    flex: 1;
    position: relative;
    z-index: 2;
}
.hero-slide .slide-content h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 4px;
    color: white;
}
.hero-slide .slide-content p {
    font-size: 0.95rem;
    opacity: 0.92;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 14px;
}
.hero-slide .slide-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    margin-left: 16px;
    position: relative;
    z-index: 2;
}
.hero-btn {
    background: white;
    border: none;
    color: var(--primary);
    font-weight: 700;
    padding: 10px 28px;
    border-radius: 40px;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: inline-block;
    text-decoration: none;
    transition: var(--transition);
}
.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    background: #f8f8f8;
}
.hero-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px 0 4px;
}
.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 20px;
    background: #cbd5e1;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}
.hero-dot.active {
    width: 28px;
    background: var(--primary);
}

/* ===== Trust Bar ===== */
.trust-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 32px;
    background: var(--white);
    padding: 16px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin: 16px 0 24px;
    border: 1px solid #e2e8f0;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
}
.trust-item i {
    color: var(--primary);
    font-size: 1.3rem;
}

/* ===== Duty Doctors Section ===== */
.doctors-available-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}
.doctor-card.duty-card {
    position: relative;
    overflow: hidden;
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 0;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #eef2f6;
}
.doctor-card.duty-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 100%;
    background-color: #4caf50;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.doctor-card.duty-card:hover::before { opacity: 1; }
.online-status {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #4caf50;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    animation: pulse-badge 2s infinite;
    z-index: 2;
}
@keyframes pulse-badge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.5); }
    50% { box-shadow: 0 0 0 6px rgba(76, 175, 80, 0); }
}
.online-dot {
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
    animation: blink 1.5s infinite;
    display: inline-block;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.consultation-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #ff9800;
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    z-index: 2;
}
.doctor-info {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}
.doctor-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-light);
    flex-shrink: 0;
}
.doctor-details {
    flex: 1;
    min-width: 0;
}
.doctor-details .doctor-name {
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 1.1rem;
}
.doctor-details .doctor-specialty {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 4px;
}
.doctor-details .doctor-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: #ff9800;
}
.response-time {
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}
.availability-timeline {
    display: flex;
    gap: 4px;
    margin-top: 6px;
}
.time-slot {
    width: 12px;
    height: 4px;
    background-color: #e0e0e0;
    border-radius: 2px;
}
.time-slot.available { background-color: #4caf50; }
.doctor-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.doctor-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}
.doctor-consult-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.doctor-consult-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(8, 19, 94, 0.3);
}
.blink2 {
    animation: blinker 1.5s linear infinite;
    color: #ffffff !important;
}
@keyframes blinker {
    50% { opacity: 0; }
}

@media (min-width: 480px) {
    .doctors-available-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .doctor-card.duty-card { margin-bottom: 0; }
}
@media (max-width: 375px) {
    .doctor-info { flex-direction: column; text-align: center; }
    .doctor-avatar { margin-bottom: 8px; }
    .doctor-actions { flex-direction: column; gap: 8px; }
    .doctor-price { text-align: center; }
    .doctor-consult-btn { width: 100%; max-width: 200px; }
}

/* ===== Section Titles ===== */
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    margin: 32px 0 6px;
}
.section-title .highlight { color: var(--primary); }
.section-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* ===== Cities Grid ===== */
.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin: 20px 0 30px;
}
.city-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #eef2f6;
    text-decoration: none;
    color: var(--text);
    display: block;
}
.city-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    background: var(--primary-light);
}
.city-card .icon {
    font-size: 2.6rem;
    color: var(--primary);
    margin-bottom: 8px;
    transition: var(--transition);
}
.city-card:hover .icon { transform: scale(1.1); }
.city-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.city-card p {
    font-size: 0.75rem;
    color: var(--text-light);
    margin: 0;
}

/* ===== Doctors Grid ===== */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin: 20px 0;
}
.doctor-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px 18px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #eef2f6;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.doctor-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.doctor-card .badge-online {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--success);
    color: white;
    font-size: 0.6rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    animation: pulse-badge 2s infinite;
}
.doctor-card .badge-pmdc {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: white;
    font-size: 0.55rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
}
.doctor-card .doc-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-light);
    margin-bottom: 10px;
    transition: var(--transition);
}
.doctor-card:hover .doc-avatar {
    border-color: var(--primary);
    transform: scale(1.03);
}
.doctor-card .doc-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 2px;
}
.doctor-card .doc-specialty {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 2px;
}
.doctor-card .doc-qualification {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 8px;
}
.doctor-card .doc-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: var(--rating-gold);
    margin-bottom: 10px;
}
.doctor-card .doc-city {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.doctor-card .doc-fee {
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 10px;
}
.doctor-card .doc-consult-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 24px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    max-width: 200px;
}
.doctor-card .doc-consult-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(8, 19, 94, 0.3);
}

/* ===== Load More ===== */
.load-more-wrap {
    text-align: center;
    margin: 24px 0 30px;
}
.load-more-btn {
    background: var(--white);
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 12px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.load-more-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}
.load-more-btn .spinner { display: none; animation: spin 0.8s linear infinite; }
.load-more-btn.loading .spinner { display: inline-block; }
.load-more-btn.loading .btn-text { display: none; }
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Specialties Grid ===== */
.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 16px;
    margin: 20px 0 30px;
}
.specialty-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #eef2f6;
    text-decoration: none;
    color: var(--text);
    display: block;
}
.specialty-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    background: var(--primary-light);
}
.specialty-card .icon {
    font-size: 2.4rem;
    color: var(--primary);
    margin-bottom: 8px;
    transition: var(--transition);
}
.specialty-card:hover .icon { transform: scale(1.1); }
.specialty-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.specialty-card p {
    font-size: 0.75rem;
    color: var(--text-light);
    margin: 0;
}

/* ===== Content Cards ===== */
.content-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    margin: 28px 0;
    box-shadow: var(--shadow);
    border: 1px solid #eef2f6;
    transition: var(--transition);
}
.content-card:hover { box-shadow: var(--shadow-md); }
.content-card h2 { color: var(--primary); margin-top: 0; }
.content-card ul, .content-card ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.content-card li { margin-bottom: 0.5rem; color: var(--text-light); }

/* ===== Steps CTA ===== */
.steps-cta {
    background: linear-gradient(135deg, #f8fbff, #e6f2ff);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    margin: 28px 0;
    text-align: center;
    border: 1px solid #d6e4ff;
    position: relative;
    overflow: hidden;
}
.steps-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 20px 0 28px;
}
.step-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.step-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.step-item .step-num {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    line-height: 40px;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.step-item h4 { font-size: 0.95rem; margin-bottom: 4px; }
.step-item p { font-size: 0.8rem; margin: 0; }
.btn-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(8, 19, 94, 0.3);
    border: none;
    cursor: pointer;
}
.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(8, 19, 94, 0.4);
    color: white;
    background: linear-gradient(135deg, var(--primary-dark), #0a1a7a);
}

/* ===== Rating Section ===== */
.rating-section {
    background: linear-gradient(135deg, #fef9e7, #fdf2e9);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    margin: 28px 0;
    text-align: center;
    border: 1px solid #fdebd0;
}
.rating-section h2 {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 6px;
}
.stars-container {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin: 18px 0;
    flex-wrap: wrap;
}
.star-btn {
    background: none;
    border: none;
    font-size: 46px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--rating-gray);
    padding: 4px;
    line-height: 1;
}
.star-btn:hover { transform: scale(1.25); }
.star-btn.active { color: var(--rating-gold); }
.rating-message {
    margin-top: 16px;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 500;
    display: none;
    animation: fadeIn 0.4s ease;
}
.rating-message.show { display: block; }
.rating-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.rating-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}
.rating-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===== Bottom Navigation ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background-color: var(--white);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.65rem;
    gap: 2px;
    padding: 8px 0;
    flex: 1;
    transition: var(--transition);
}
.nav-item i {
    font-size: 20px;
    transition: var(--transition);
}
.nav-item.active { color: var(--primary); }
.nav-item.active i { transform: translateY(-4px); }
.nav-brand {
    flex: 0 0 auto;
    background-color: var(--primary);
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    box-shadow: 0 4px 14px rgba(8, 19, 94, 0.25);
}
.nav-brand i { font-size: 24px; }
.nav-brand span { font-size: 0.45rem; font-weight: bold; margin-top: 1px; }

/* ===== Footer ===== */
.footer {
    background: var(--primary);
    color: white;
    padding: 32px 20px 24px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin-top: 40px;
    text-align: center;
}
.footer a { color: #b1d0ff; }
.footer a:hover { color: white; }
.footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 24px;
    margin: 16px 0;
}
.footer .footer-links a {
    font-size: 0.9rem;
    text-decoration: none;
}
.footer .copyright {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

/* ===== Responsive ===== */
@media (min-width: 768px) {
    .bottom-nav {
        background-color: var(--desktop-nav-bg);
        height: 80px;
        padding: 0 8%;
    }
    .nav-item {
        flex: 0 1 auto;
        padding: 12px 20px;
        border-radius: var(--radius-sm);
        font-size: 0.8rem;
        gap: 6px;
        flex-direction: row;
    }
    .nav-item i { font-size: 18px; }
    .nav-item:hover {
        background: rgba(8, 19, 94, 0.08);
        color: var(--primary);
    }
    .nav-item.active {
        background: var(--primary);
        color: white;
        box-shadow: var(--shadow);
    }
    .nav-item.active i { transform: translateY(0); }
    .nav-brand {
        width: 64px;
        height: 64px;
        margin-bottom: 22px;
    }
    .nav-brand i { font-size: 26px; }
    body { padding-bottom: 80px; }
    .hero-slide .slide-content h2 { font-size: 2rem; }
    .doctors-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
    .specialties-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
    .cities-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

@media (max-width: 480px) {
    h1 { font-size: 1.7rem; }
    h2 { font-size: 1.4rem; }
    .hero-slide {
        padding: 24px 18px 20px;
        min-height: 170px;
    }
    .hero-slide .slide-content h2 { font-size: 1.2rem; }
    .hero-slide .slide-icon {
        width: 54px;
        height: 54px;
        font-size: 1.6rem;
    }
    .doctors-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .doctor-card { padding: 14px 10px; }
    .doctor-card .doc-avatar {
        width: 56px;
        height: 56px;
    }
    .doctor-card .doc-name { font-size: 0.85rem; }
    .doctor-card .doc-specialty { font-size: 0.7rem; }
    .doctor-card .doc-fee { font-size: 0.85rem; }
    .doctor-card .doc-consult-btn {
        font-size: 0.7rem;
        padding: 6px 12px;
    }
    .specialties-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .cities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .steps-grid { grid-template-columns: 1fr 1fr; }
    .trust-bar {
        gap: 10px 18px;
        padding: 12px 16px;
    }
    .trust-item { font-size: 0.75rem; }
    .star-btn { font-size: 34px; }
}

@media (max-width: 400px) {
    .doctors-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .specialties-grid { grid-template-columns: 1fr 1fr; }
    .cities-grid { grid-template-columns: 1fr 1fr; }
}