/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #10b981;      /* xanh lá */
    --primary-dark: #047857;       /* xanh lá đậm */
    --blue-color: #1d4ed8;         /* xanh dương */
    --blue-dark: #1e3a8a;          /* xanh dương đậm */
    --sky-color: #0ea5e9;          /* xanh da trời */
    --sky-light: #e0f2fe;          /* xanh da trời nhạt */
    --secondary-color: #1d4ed8;
    --text-primary: #000000;       /* đen */
    --text-secondary: #1e3a8a;     /* chữ phụ: xanh dương đậm thay cho xám */
    --bg-light: #f0fdf4;
    --bg-white: #ffffff;
    --border-color: #d1fae5;
    --success-color: #10b981;
    --shadow-sm: 0 1px 2px 0 rgba(29, 78, 216, 0.08);
    --shadow-md: 0 4px 6px -1px rgba(29, 78, 216, 0.15);
    --shadow-lg: 0 10px 15px -3px rgba(29, 78, 216, 0.15);
    --shadow-xl: 0 20px 25px -5px rgba(29, 78, 216, 0.2);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.navbar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.logo svg {
    flex-shrink: 0;
}

/* Nút menu (chỉ hiện trên điện thoại) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    display: inline-block;
    text-decoration: none;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-large {
    padding: 14px 32px;
    font-size: 16px;
}

/* Hero Section */
.hero {
    padding: 80px 0 120px;
    background: linear-gradient(135deg, #ecfdf5 0%, var(--sky-light) 100%);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.hero-title span {
    display: block;
    white-space: nowrap;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 80px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Khi bấm link trên menu, chừa chỗ cho thanh menu dính ở trên */
section[id] {
    scroll-margin-top: 72px;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 64px;
}

/* Dịch Vụ */
.services {
    padding: 100px 0 80px;
    background: var(--bg-white);
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.service-card {
    flex: 1 1 300px;
    max-width: 370px;
    display: flex;
    flex-direction: column;
    padding: 28px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--sky-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

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

.service-card p {
    color: var(--text-secondary);
    flex: 1;
    margin-bottom: 20px;
}

.service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.service-price {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    color: var(--text-secondary);
}

.service-price strong {
    font-size: 16px;
    color: var(--primary-dark);
}

/* Tại Sao Chọn – gọn, nền nhạt */
.why {
    padding: 56px 0;
    background: var(--bg-light);
}

.why-title {
    font-size: 28px;
    margin-bottom: 32px;
}

.why-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 20px 28px;
}

.why-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.why-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.why-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.why-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* How It Works Section */
.how-it-works {
    padding: 100px 0;
    background: var(--bg-white);
}

.steps {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    flex: 1;
    text-align: center;
}

.step-number {
    width: 64px;
    height: 64px;
    background: var(--blue-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 24px;
}

.step h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.step p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--blue-color) 100%);
    color: white;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
}

.cta .btn-primary {
    background: white;
    color: var(--blue-color);
}

.cta .btn-primary:hover {
    background: var(--sky-light);
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 60px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section h4 {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-section a {
    display: block;
    color: #bae6fd;
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-section p {
    color: #bae6fd;
    margin-top: 12px;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(16, 185, 129, 0.35);
    text-align: center;
    color: #7dd3fc;
}

/* Overlay and Scheduler */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.scheduler-container {
    background: white;
    border-radius: 16px;
    padding: 48px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 32px;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}

.close-btn:hover {
    background: var(--bg-light);
    color: var(--text-primary);
}

.scheduler-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    color: var(--text-primary);
}

/* ===== Đặt lịch hẹn (booking.js) ===== */
.scheduler-content h2 {
    margin-bottom: 28px;
}

.booking-stepper {
    list-style: none;
    display: flex;
    margin-bottom: 32px;
}

.booking-stepper li {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}

/* đường nối giữa các bước */
.booking-stepper li + li::before {
    content: "";
    position: absolute;
    top: 18px;
    right: 50%;
    width: 100%;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.booking-stepper li.done + li::before {
    background: var(--primary-color);
}

.booking-dot {
    position: relative;
    z-index: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    font-weight: 600;
}

.booking-stepper li.current {
    color: var(--blue-color);
    font-weight: 700;
}

.booking-stepper li.current .booking-dot {
    background: var(--blue-color);
    border-color: var(--blue-color);
    color: white;
}

.booking-stepper li.done .booking-dot {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.booking-stepper li.done[onclick] {
    cursor: pointer;
}

.booking-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 8px 0 14px;
}

.booking-body {
    min-height: 240px;
}

/* lựa chọn dịch vụ */
.choice-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.choice-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.choice {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.choice:hover {
    border-color: var(--sky-color);
}

.choice.selected {
    border-color: var(--primary-color);
    background: var(--bg-light);
}

.choice input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.choice-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.choice-body strong {
    color: var(--text-primary);
}

.choice-body span {
    font-size: 14px;
    color: var(--text-secondary);
}

.choice-meta {
    text-align: right;
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.choice-meta b {
    color: var(--primary-dark);
}

/* biểu mẫu thông tin */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.field-full {
    grid-column: 1 / -1;
}

.field em {
    color: var(--blue-color);
    font-style: normal;
}

.field input,
.field textarea {
    font: inherit;
    font-weight: 400;
    font-size: 16px;
    padding: 12px 14px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    background: var(--bg-white);
    resize: vertical;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--sky-color);
    box-shadow: 0 0 0 3px var(--sky-light);
}

.booking-zone {
    font-size: 14px;
    color: var(--blue-dark);
    background: var(--sky-light);
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.booking-loading {
    text-align: center;
    padding: 48px 0;
    color: var(--text-secondary);
}

.spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    border: 4px solid var(--bg-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* chọn ngày giờ */
.date-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 16px;
    scroll-snap-type: x proximity;
}

.date-chip {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 76px;
    padding: 10px 12px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-white);
    color: var(--text-secondary);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    scroll-snap-align: start;
}

.date-chip strong {
    font-size: 17px;
    color: var(--text-primary);
}

.date-chip.selected {
    border-color: var(--blue-color);
    background: var(--blue-color);
    color: var(--sky-light);
}

.date-chip.selected strong {
    color: white;
}

.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: 10px;
}

.slot {
    padding: 12px 0;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-white);
    color: var(--text-primary);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.slot:hover:not(:disabled) {
    border-color: var(--sky-color);
}

.slot.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.slot:disabled {
    cursor: not-allowed;
    text-decoration: line-through;
    color: var(--sky-color);
    background: var(--sky-light);
    border-color: var(--sky-light);
}

/* thanh toán */
.pay-box {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.pay-qr img,
.pay-qr-empty {
    width: 220px;
    height: 220px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

.pay-qr-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
    border: 2px dashed var(--sky-color);
    color: var(--text-secondary);
    font-size: 14px;
}

.pay-info,
.summary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 16px;
    font-size: 15px;
}

.pay-info {
    flex: 1;
}

.pay-info dt,
.summary dt {
    color: var(--text-secondary);
}

.pay-info dd,
.summary dd {
    color: var(--text-primary);
    font-weight: 500;
    word-break: break-word;
}

.pay-info dd.pay-amount {
    color: var(--primary-dark);
    font-size: 18px;
    font-weight: 700;
}

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

.booking-muted {
    font-size: 14px;
    color: var(--text-secondary);
}

.booking-error {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 10px;
    background: var(--sky-light);
    color: var(--blue-dark);
    font-weight: 500;
    border-left: 4px solid var(--blue-color);
}

.booking-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
}

.booking-actions button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.booking-success {
    text-align: center;
    padding: 24px 0;
}

.success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    font-size: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.booking-success h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.booking-success p {
    color: var(--text-secondary);
}

/* ===== Trang Về Bác Sỹ Đăng (about.html) ===== */
.nav-links a.active {
    color: var(--primary-color);
}

/* Nội dung mẫu cần thay bằng thông tin thật */
.placeholder {
    outline: 2px dashed var(--sky-color);
    outline-offset: 4px;
    border-radius: 4px;
}

.about-hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #ecfdf5 0%, var(--sky-light) 100%);
}

.about-hero-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 64px;
    align-items: center;
}

.doctor-photo img,
.photo-placeholder {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: var(--shadow-xl);
}

.photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--bg-white);
    border: 2px dashed var(--sky-color);
    color: var(--text-secondary);
    font-weight: 500;
}

.eyebrow {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 14px;
    margin-bottom: 8px;
}

.about-intro h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.doctor-title {
    display: inline-block;
    font-size: 20px;
    font-weight: 600;
    color: var(--blue-color);
    margin-bottom: 20px;
}

.about-lead {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.about-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.about-stats {
    padding: 48px 0;
    background: var(--bg-white);
}

.about-stats-row {
    border-top: none;
    padding-top: 0;
}

.about-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.about-section-alt {
    background: var(--bg-light);
}

.about-narrow {
    max-width: 800px;
}

.about-narrow p {
    color: var(--text-secondary);
    font-size: 17px;
    margin-bottom: 16px;
}

.about-heading {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 32px;
}

.about-note {
    font-size: 15px !important;
    color: var(--blue-color) !important;
}

.about-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.timeline {
    list-style: none;
    border-left: 2px solid var(--primary-color);
    padding-left: 24px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.timeline li {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: var(--text-secondary);
}

.timeline li::before {
    content: "";
    position: absolute;
    left: -32px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 3px solid var(--blue-color);
}

.timeline-year {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
}

.timeline strong {
    color: var(--text-primary);
    font-size: 17px;
}

.specialty-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.specialty-list li {
    padding: 10px 20px;
    border-radius: 999px;
    background: var(--sky-light);
    color: var(--blue-dark);
    font-weight: 500;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 20px;
}

.contact-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}

.contact-card h3 {
    font-size: 16px;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.contact-card p {
    margin-bottom: 0;
    color: var(--text-primary);
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .navbar {
        position: sticky;
    }

    .nav-content {
        padding: 12px 0;
        position: relative;
    }

    .logo {
        font-size: 18px;
        gap: 10px;
    }

    .logo svg {
        width: 40px;
        height: 40px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: -16px;
        right: -16px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 16px 16px;
        background: var(--bg-white);
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        display: block;
        padding: 14px 4px;
        font-size: 16px;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links .btn-primary {
        margin-top: 16px;
        padding: 14px 20px;
        font-size: 16px;
    }

    .hero {
        padding: 48px 0 64px;
    }

    .hero-title {
        /* co chữ theo màn hình để mỗi dòng luôn nằm trên 1 hàng */
        font-size: clamp(20px, 6.6vw, 40px);
        line-height: 1.25;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 48px;
    }

    .hero-buttons .btn-large {
        width: 100%;
        text-align: center;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding-top: 32px;
    }

    .stat-number {
        font-size: 26px;
        margin-bottom: 4px;
    }

    .stat-label {
        font-size: 13px;
        line-height: 1.3;
    }

    .how-it-works,
    .cta {
        padding: 64px 0;
    }

    .section-title {
        font-size: 28px;
        line-height: 1.25;
    }

    .section-subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .services {
        padding: 64px 0 48px;
    }

    .services-grid {
        gap: 16px;
    }

    .service-card {
        padding: 20px;
        max-width: none;
    }

    .service-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 12px;
    }

    .service-card p {
        margin-bottom: 14px;
    }

    .why {
        padding: 40px 0;
    }

    .why-title {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .why-list {
        gap: 16px;
    }

    .steps {
        flex-direction: column;
        gap: 32px;
    }

    .cta h2 {
        font-size: 28px;
        line-height: 1.25;
    }

    .cta p {
        font-size: 16px;
    }

    .cta .btn-large {
        width: 100%;
    }

    .footer {
        padding: 48px 0 24px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-content .footer-section:first-child {
        grid-column: 1 / -1;
    }

    .scheduler-container {
        padding: 48px 16px 32px;
        width: 94%;
    }

    .scheduler-content h2 {
        font-size: 24px;
        margin-bottom: 32px;
    }

    .booking-step-label {
        font-size: 11px;
    }

    .booking-stepper li:not(.current) .booking-step-label {
        visibility: hidden;
    }

    .booking-dot {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .booking-stepper li + li::before {
        top: 16px;
    }

    .choice {
        padding: 12px;
    }

    .choice-row,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .pay-box {
        flex-direction: column;
        align-items: center;
    }

    .pay-info {
        width: 100%;
    }

    .summary,
    .pay-info {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .summary dd,
    .pay-info dd {
        margin-bottom: 8px;
    }

    .booking-actions .btn-large {
        flex: 1;
        padding: 14px 12px;
    }
}

@media (max-width: 380px) {
    .logo span {
        font-size: 16px;
    }

    .stat-number {
        font-size: 22px;
    }
}

/* Trang Về Bác Sỹ Đăng trên điện thoại */
@media (max-width: 768px) {
    .about-hero {
        padding: 40px 0 56px;
    }

    .about-hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .doctor-photo {
        width: 100%;
        max-width: 240px;
        margin: 0 auto;
    }

    .about-intro h1 {
        font-size: 34px;
    }

    .doctor-title {
        font-size: 18px;
    }

    .about-lead {
        font-size: 16px;
    }

    .about-buttons {
        flex-direction: column;
    }

    .about-buttons .btn-large {
        width: 100%;
        text-align: center;
    }

    .about-section {
        padding: 56px 0;
    }

    .about-heading {
        font-size: 26px;
        margin-bottom: 24px;
    }

    .about-columns {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .specialty-list {
        gap: 10px;
    }

    .specialty-list li {
        padding: 8px 16px;
        font-size: 15px;
    }
}
