:root {
    --primary: #615EFC;
    --primary-hover: #4f4be3;
    --secondary: #EBEAFF;
    --secondary-hover: #d2cfff;
    --bg-gradient: linear-gradient(135deg, #fbfbfe 0%, #f1f3f9 100%);
    --card-bg: rgba(255, 255, 255, 0.85);
    --text-primary: #0D1127;
    --text-secondary: #5a6281;
    --text-muted: #8e95b2;
    --border-color: #e5e8f4;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --shadow: 0 10px 30px -10px rgba(97, 94, 252, 0.12);
    --card-shadow: 0 8px 24px -4px rgba(97, 94, 252, 0.08);
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 8px;
    --font: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font);
    background: var(--bg-gradient);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    padding: 0 20px 20px 20px;
    overflow-x: hidden;
}

/* Header & Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px -5px rgba(0,0,0,0.02);
    margin: 0 -20px 15px -20px;
    border-radius: 0;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    transition: transform 0.2s;
    flex-shrink: 0;
    max-width: 100%;
}

.nav-brand:hover {
    transform: scale(1.02);
}

.nav-logo {
    height: 38px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.nav-title {
    height: 28px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link.active {
    color: var(--primary) !important;
    font-weight: 700;
}

.nav-btn {
    background: var(--primary);
    color: white;
    padding: 10px 22px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(97, 94, 252, 0.2);
}

.nav-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(97, 94, 252, 0.3);
}

.nav-btn.secondary {
    background: var(--secondary);
    color: var(--primary);
    box-shadow: none;
}

.nav-btn.secondary:hover {
    background: var(--secondary-hover);
    box-shadow: none;
}

/* Container */
.container {
    max-width: 100%;
    margin: 15px auto 40px auto;
    padding: 0;
}

/* ============================================ */
/* HERO SECTION - Image Only, No Overlay */
/* ============================================ */

.hero-section-new {
    background-image: url('images/banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    aspect-ratio: 1920 / 495;
    width: 100%;
    margin-bottom: 40px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px 20px 10px 20px;
}

.hero-content-desktop {
    width: 100%;
    max-width: 100%;
    position: relative;
    z-index: 1;
}

.hero-search-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.doctor-search-section {
    margin-bottom: 24px;
}

/* Mobile Search Bar - Hidden on desktop */
.hero-search-mobile {
    display: none;
    margin-bottom: 30px;
}

/* ============================================ */
/* AUTO-SEARCH FORM */
/* ============================================ */

.hero-search-auto {
    max-width: 100%;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    overflow: hidden;
}

.search-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr auto;
    align-items: center;
    gap: 0;
}

.search-submit-btn {
    height: 100%;
    min-height: 48px;
    border-radius: 0 30px 30px 0;
    font-size: 15px;
    font-weight: 600;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    background: var(--primary);
    color: white;
    transition: all 0.3s;
    white-space: nowrap;
}

.search-submit-btn:hover {
    background: var(--primary-hover);
}

.search-field.search-action {
    padding: 0;
    height: 100%;
}

.search-field {
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-right: 1px solid var(--border-color);
    position: relative;
    cursor: pointer;
}

.search-field:last-child {
    border-right: none;
}

.search-field i {
    color: var(--text-muted);
    font-size: 16px;
    flex-shrink: 0;
    margin-right: 10px;
}

.search-field input,
.search-field select {
    border: none;
    outline: none;
    padding: 14px 14px;
    font-size: 14px;
    font-family: var(--font);
    color: var(--text-primary);
    background: transparent;
    width: 100%;
    cursor: pointer;
}

.search-field select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 8px;
}

select option {
    padding: 10px 12px;
    font-size: 15px;
    line-height: 1.5;
}

.search-field input::placeholder {
    color: var(--text-muted);
}

.search-field .fa-chevron-down {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
}

/* ============================================ */
/* LOCATION MODAL */
/* ============================================ */

.location-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.location-modal.show {
    display: flex;
}

.location-modal-content {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 450px;
    width: 100%;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlide 0.3s ease;
}

.location-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.location-modal-header h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
}

.location-modal-header h3 i {
    color: var(--primary);
    margin-right: 8px;
}

.location-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
}

.location-close:hover {
    color: var(--danger);
}

.location-modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.location-step label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.location-step select {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: var(--font);
    background: #f8fafc;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.location-step select:focus {
    border-color: var(--primary);
}

.location-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.location-modal-actions button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font);
}

.location-clear-btn {
    background: var(--secondary);
    color: var(--text-secondary);
}

.location-clear-btn:hover {
    background: var(--secondary-hover);
}

.location-apply-btn {
    background: var(--primary);
    color: white;
}

.location-apply-btn:hover {
    background: var(--primary-hover);
}

@keyframes modalSlide {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ============================================ */
/* SECTION HEADERS */
/* ============================================ */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.section-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
}

.section-title i {
    color: var(--primary);
    margin-right: 8px;
}

.section-view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.section-view-all:hover {
    gap: 10px;
}

/* ============================================ */
/* POPULAR SPECIALTIES */
/* ============================================ */

.specialists-scroll-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-light) transparent;
}

.specialists-row {
    display: flex;
    flex-direction: row;
    gap: 16px;
    width: max-content;
}

.specialists-scroll-container::-webkit-scrollbar {
    height: 6px;
}
.specialists-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}
.specialists-scroll-container::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

.specialist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: white;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    transition: all 0.2s;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 13px;
    text-align: left;
    width: max-content;
    min-height: 50px;
}

.specialist-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
    color: var(--primary);
}

.specialist-item i {
    font-size: 20px;
    color: var(--primary);
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.specialist-item span {
    display: block;
    line-height: 1.3;
    flex: 1;
    font-size: 13px;
    white-space: nowrap;
}

.hide-on-tablet {
    display: flex !important;
}

/* ============================================ */
/* FEATURED DOCTORS */
/* ============================================ */

.featured-doctors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.featured-doctor-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all 0.3s;
    box-shadow: var(--card-shadow);
    text-decoration: none;
    color: inherit;
    display: block;
}

.featured-doctor-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.featured-doctor-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.featured-doctor-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.featured-doctor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-doctor-avatar .placeholder {
    font-size: 32px;
    color: var(--primary);
}

.featured-doctor-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2px;
    line-height: 1.2;
}

.featured-doctor-specialty {
    font-size: 11px;
    color: var(--primary);
    font-weight: 600;
    line-height: 1.3;
}

.featured-doctor-bottom {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.featured-doctor-bottom .btn-small {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.featured-doctor-bottom .btn-view {
    background: var(--secondary);
    color: var(--primary);
}

.featured-doctor-bottom .btn-view:hover {
    background: var(--secondary-hover);
}

.featured-doctor-bottom .btn-book {
    background: var(--primary);
    color: white;
}

.featured-doctor-bottom .btn-book:hover {
    background: var(--primary-hover);
}

/* ============================================ */
/* POPULAR DIAGNOSTIC CENTERS */
/* ============================================ */

.diagnostics-grid-home {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.diagnostic-card-home {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.3s;
    box-shadow: var(--card-shadow);
    text-decoration: none;
    color: inherit;
    display: block;
}

.diagnostic-card-home:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.diagnostic-card-home .diag-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--primary);
    flex-shrink: 0;
}

.diagnostic-card-home .diag-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.diagnostic-card-home .diag-address {
    font-size: 13px;
    color: var(--text-secondary);
}

.diagnostic-card-home .diag-doctors {
    font-size: 14px;
    color: var(--text-muted);
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.diagnostic-card-home .diag-doctors strong {
    color: var(--primary);
    font-size: 18px;
    font-weight: 800;
}

/* ============================================ */
/* WHY CHOOSE US */
/* ============================================ */

.why-choose-us {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    padding: 30px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.why-item {
    text-align: center;
    padding: 10px;
}

.why-item .why-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--primary);
    margin: 0 auto 10px;
}

.why-item .why-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
    line-height: 1.3;
}

.why-item .why-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ============================================ */
/* DOCTOR CARDS (Original) */
/* ============================================ */

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.doctor-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--card-shadow);
    padding: 24px;
    display: flex;
    flex-direction: row;
    gap: 24px;
    backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.doctor-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(97, 94, 252, 0.2);
}

.doctor-photo-wrapper {
    flex-shrink: 0;
}

.doctor-photo {
    width: 110px;
    height: 110px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.doctor-placeholder {
    width: 110px;
    height: 110px;
    border-radius: var(--radius-md);
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 40px;
}

.doctor-info {
    flex: 1.2;
}

.doctor-name {
    font-size: 21px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.doctor-bmdc {
    display: inline-block;
    padding: 3px 8px;
    background: #f1f5f9;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 8px;
    border: 1px solid var(--border-color);
}

.doctor-specialty {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

.doctor-qualification {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.doctor-chambers {
    flex: 2;
    border-left: 1px solid var(--border-color);
    padding-left: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chamber-row {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    transition: border-color 0.2s;
}

.chamber-row:hover {
    border-color: var(--primary);
}

.chamber-details {
    flex: 1;
}

.chamber-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.chamber-address {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.chamber-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.chamber-meta span i {
    color: var(--primary);
    margin-right: 4px;
}

.book-btn {
    background: var(--primary);
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(97, 94, 252, 0.15);
}

.book-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.02);
}

/* ============================================ */
/* AUTHENTICATION */
/* ============================================ */

.auth-container {
    max-width: 480px;
    margin: 60px auto;
    background: white;
    padding: 35px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    border: 1px solid var(--border-color);
    outline: none;
    padding: 12px 16px;
    font-size: 15px;
    border-radius: var(--radius-md);
    transition: border-color 0.2s;
}

.form-input:focus {
    border-color: var(--primary);
}

.auth-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(97, 94, 252, 0.2);
}

.auth-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.auth-toggle {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-toggle a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.tabs-header {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 25px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    color: var(--text-secondary);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.tab-btn.active {
    color: var(--primary);
    border-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ============================================ */
/* BOOKING */
/* ============================================ */

.book-layout {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 30px;
}

.book-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    padding: 24px;
    height: fit-content;
}

.alert {
    padding: 12px 18px;
    border-radius: var(--radius-md);
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: 600;
}

.alert-danger {
    background: #fde8e8;
    color: #e02424;
    border: 1px solid #fbd5d5;
}

.alert-success {
    background: #def7ec;
    color: #03543f;
    border: 1px solid #bcf0da;
}

.slot-select-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    margin: 15px 0 25px;
}

.slot-item {
    border: 2px solid var(--border-color);
    padding: 12px;
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.slot-item.active {
    border-color: var(--primary);
    background: var(--secondary);
    color: var(--primary);
}

/* ============================================ */
/* BOOKINGS TABLE */
/* ============================================ */

.bookings-table-wrapper {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.bookings-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.bookings-table th {
    background: #f8fafc;
    padding: 16px 24px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.bookings-table td {
    padding: 18px 24px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.bookings-table tr:last-child td {
    border-bottom: none;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.badge-waiting {
    background: #fef3c7;
    color: #d97706;
}

.badge-approved {
    background: #def7ec;
    color: #03543f;
}

.badge-rejected {
    background: #fde8e8;
    color: #e02424;
}

.cancel-btn {
    background: transparent;
    color: var(--danger);
    border: 1px solid var(--danger);
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.cancel-btn:hover {
    background: var(--danger);
    color: white;
}

/* ============================================ */
/* DIAGNOSTIC CENTERS LIST */
/* ============================================ */

.diag-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.diag-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s;
}

.diag-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.diag-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.diag-address {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    flex-grow: 1;
}

.diag-btn {
    background: var(--secondary);
    color: var(--primary);
    padding: 10px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
}

.diag-btn:hover {
    background: var(--primary);
    color: white;
}

/* ============================================ */
/* LANGUAGE SELECTOR */
/* ============================================ */

.lang-selector {
    position: relative;
    display: inline-block;
}

.lang-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    transition: all 0.2s;
    user-select: none;
}

.lang-trigger:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--secondary);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    min-width: 130px;
    z-index: 1000;
    overflow: hidden;
}

.lang-dropdown.show {
    display: block;
    animation: fadeIn 0.15s ease-out;
}

.lang-option {
    padding: 10px 15px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.lang-option:hover {
    background: var(--secondary);
    color: var(--primary);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================ */
/* MODAL STYLES */
/* ============================================ */

.modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 17, 39, 0.45);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 440px;
    padding: 30px;
    box-shadow: 0 20px 40px -10px rgba(13, 17, 39, 0.2);
    position: relative;
    animation: modalSlide 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--danger);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 20px;
    border: 3px solid white;
    box-shadow: 0 4px 15px rgba(97, 94, 252, 0.15);
}

.profile-title {
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.profile-phone {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.profile-edit-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
    font-size: 16px;
    margin-left: 8px;
    transition: color 0.2s;
}

.profile-edit-btn:hover {
    color: var(--primary-hover);
}

.profile-edit-field {
    display: none;
    margin-top: 15px;
    animation: fadeIn 0.2s ease;
}

.profile-edit-field.show {
    display: block;
}

/* ============================================ */
/* SLIDER STYLES */
/* ============================================ */

.slider-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    background: var(--primary);
    width: 100%;
    aspect-ratio: 16/7;
    min-height: 280px;
    max-height: 450px;
}

.slider-slide {
    min-width: 100%;
    height: 100%;
    transition: all 0.5s ease;
    flex-shrink: 0;
}

.slider-image {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-image img {
    width: 140px;
    height: 140px;
    object-fit: cover;
}

.slider-image i {
    font-size: 60px;
    color: rgba(255,255,255,0.5);
}

.slider-content {
    flex: 1;
    color: white;
    min-width: 0;
}

.slider-name {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 6px 0;
    color: white;
    line-height: 1.2;
}

.slider-specialty {
    font-size: 16px;
    opacity: 0.9;
    margin: 0 0 4px 0;
    font-weight: 600;
}

.slider-qualification {
    font-size: 14px;
    opacity: 0.8;
    margin: 0 0 16px 0;
}

.slider-btn {
    display: inline-block;
    background: white;
    color: var(--primary);
    padding: 10px 28px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.slider-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(255,255,255,0.3);
}

#prevSlide, #nextSlide {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

#prevSlide {
    left: 16px;
}

#nextSlide {
    right: 16px;
}

#prevSlide:hover, #nextSlide:hover {
    background: rgba(255,255,255,0.4);
    transform: translateY(-50%) scale(1.1);
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot:hover {
    transform: scale(1.3);
}

/* ============================================ */
/* FEATURE CARDS */
/* ============================================ */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.feature-card {
    text-decoration: none;
    display: block;
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
}

.feature-card .bg-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

.feature-card .bg-circle-top {
    top: -60px;
    right: -60px;
    width: 160px;
    height: 160px;
}

.feature-card .bg-circle-bottom {
    bottom: -40px;
    left: -40px;
    width: 120px;
    height: 120px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}

.feature-title {
    font-size: 20px;
    font-weight: 800;
    color: white;
    margin: 0 0 4px 0;
}

.feature-subtitle {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    margin: 0;
}

.feature-count {
    font-size: 28px;
    font-weight: 800;
    color: white;
}

.feature-view {
    color: rgba(255,255,255,0.7);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Card Colors */
.feature-card.blue {
    background: linear-gradient(145deg, #1a56db, #1e3a5f);
    box-shadow: 0 8px 24px rgba(26, 86, 219, 0.25);
}

.feature-card.teal {
    background: linear-gradient(145deg, #0d9488, #115e59);
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.25);
}

.feature-card.purple {
    background: linear-gradient(145deg, #7c3aed, #5b21b6);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.25);
}

/* ============================================ */
/* MISCELLANEOUS */
/* ============================================ */

.menu-toggle {
    display: none !important;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text-primary);
    cursor: pointer;
    padding: 6px;
    transition: color 0.2s;
}

.menu-toggle:hover {
    color: var(--primary);
}

.filter-scroll {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin: 25px 0 45px;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
}

.filter-scroll::-webkit-scrollbar {
    height: 4px;
}

.filter-scroll::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.filter-badge {
    flex-shrink: 0;
    padding: 8px 18px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.filter-badge:hover, .filter-badge.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(97, 94, 252, 0.15);
}

.specialty-tag {
    display: inline-block;
    padding: 10px 22px;
    background: white;
    border: 1.5px solid var(--border-color);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: var(--card-shadow);
}

.specialty-tag:hover {
    background: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(97, 94, 252, 0.2);
}

.cta-section {
    background: linear-gradient(135deg, #f0f4ff, #e8edf5);
    border-radius: var(--radius-lg);
    padding: 48px 32px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.appear {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================ */
/* RESPONSIVE STYLES */
/* ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .search-row {
        grid-template-columns: 1fr;
    }
    
    .search-field.search-action {
        padding: 14px;
        background-color: var(--card-bg);
        border-radius: 0 0 var(--radius-md) var(--radius-md);
    }
    
    .search-field.search-action .search-submit-btn {
        border-radius: 30px;
        padding: 12px;
        width: 100%;
    }
    .search-field {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .search-field:last-child {
        border-bottom: none;
    }
}

@media (max-width: 992px) {
    .navbar {
        padding: 15px 20px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }
    
    .menu-toggle {
        display: block !important;
    }
    
    .nav-links {
        display: none !important;
        flex-direction: column;
        width: 100%;
        gap: 15px;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid var(--border-color);
        align-items: flex-start;
    }
    
    .nav-links.show {
        display: flex !important;
    }
    
    .nav-links .nav-link, .nav-links .lang-selector-container {
        padding: 8px 0;
        width: 100%;
    }
    
    .nav-links .nav-btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    /* Hero section - just image, no overlay text */
    .hero-section-new {
        min-height: auto;
        padding: 20px;
        margin-bottom: 20px;
        border-radius: var(--radius-md);
        align-items: center;
    }
    
    /* Hide desktop search on tablet/mobile */
    .hero-content-desktop {
        display: none !important;
    }
    
    /* Show mobile search below hero */
    .hero-search-mobile {
        display: block !important;
    }
    
    .hero-search-mobile .hero-search-auto {
        border-radius: var(--radius-md);
        box-shadow: var(--card-shadow);
    }
    
    .hero-search-mobile .search-row {
        grid-template-columns: 1fr;
    }
    
    .hero-search-mobile .search-field {
        border-bottom: 1px solid var(--border-color);
        padding: 0 14px;
    }
    
    .hero-search-mobile .search-field:last-child {
        border-bottom: none;
    }

    .hero-search-mobile .search-field.search-action {
        padding: 14px;
        background-color: var(--card-bg);
    }
    
    .hero-search-mobile .search-submit-btn {
        border-radius: 30px;
        padding: 12px;
        width: 100%;
    }
    
    .hero-search-mobile .search-field input,
    .hero-search-mobile .search-field select {
        padding: 12px 0;
        font-size: 13px;
    }

    /* Specialists - Desktop overrides */
    .specialists-scroll-container {
        gap: 12px;
    }
    
    .specialists-row {
        gap: 12px;
    }
    
    .specialist-item {
        padding: 12px 14px;
        font-size: 12px;
        min-height: 45px;
    }
    
    .specialist-item i {
        font-size: 18px;
        width: 24px;
    }
    
    .specialist-item span {
        font-size: 12px;
    }
    
    .hide-on-tablet {
        display: none !important;
    }

    /* Featured Doctors - 2 columns */
    .featured-doctors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* Diagnostic Centers - 2 columns on tablet */
    .diagnostics-grid-home {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* Why Choose Us - 3 columns */
    .why-choose-us {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        padding: 24px 16px;
    }
    
    .why-item .why-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .why-item .why-title {
        font-size: 13px;
    }
    
    .why-item .why-desc {
        font-size: 11px;
    }

    /* Doctor cards */
    .doctor-card {
        flex-direction: column;
        gap: 15px;
    }
    
    .doctor-chambers {
        border-left: none;
        padding-left: 0;
        margin-top: 15px;
    }
    
    .book-layout {
        grid-template-columns: 1fr;
    }

    /* Slider */
    .slider-wrapper {
        aspect-ratio: auto;
        min-height: 320px;
        max-height: 400px;
    }
    
    .card-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
    
    .slider-slide {
        padding: 25px 35px !important;
    }
    
    .slider-image {
        width: 110px !important;
        height: 110px !important;
    }
    
    .slider-image img {
        width: 110px !important;
        height: 110px !important;
    }
    
    .slider-image i {
        font-size: 44px !important;
    }
    
    .slider-name {
        font-size: 26px !important;
    }
    
    .slider-specialty {
        font-size: 14px !important;
    }
    
    .slider-qualification {
        font-size: 13px !important;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .desktop-search {
        display: none !important;
    }
    .hero-section-new {
        min-height: auto;
        padding: 16px;
        margin-bottom: 16px;
        border-radius: var(--radius-sm);
        align-items: center;
    }
    
    .hero-search-mobile .search-row {
        grid-template-columns: 1fr;
    }
    
    .hero-search-mobile .search-field {
        border-bottom: 1px solid var(--border-color);
        padding: 0 12px;
    }
    
    .hero-search-mobile .search-field:last-child {
        border-bottom: none;
    }
    
    .hero-search-mobile .search-field input,
    .hero-search-mobile .search-field select {
        padding: 10px 0;
        font-size: 12px;
    }

    .search-row {
        grid-template-columns: 1fr;
    }
    
    .search-field {
        border-bottom: 1px solid var(--border-color);
        padding: 0 14px;
    }
    
    .search-field:last-child {
        border-bottom: none;
    }
    
    .search-field input,
    .search-field select {
        padding: 12px 0;
        font-size: 13px;
    }

    .location-modal-content {
        padding: 20px;
        margin: 10px;
        max-width: 100%;
    }

    /* Specialists - Tablet overrides */
    .specialists-scroll-container {
        gap: 10px;
    }
    
    .specialists-row {
        gap: 10px;
    }
    
    .specialist-item {
        padding: 12px 14px;
        font-size: 12px;
        gap: 8px;
        border-radius: var(--radius-sm);
        min-height: 44px;
    }
    
    .specialist-item i {
        font-size: 18px;
        width: 22px;
    }
    
    .specialist-item span {
        font-size: 12px;
        white-space: nowrap;
        display: block;
    }
    
    .hide-on-tablet {
        display: none !important;
    }

    /* Featured Doctors - 1 column */
    .featured-doctors-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .featured-doctor-card {
        padding: 16px !important;
    }
    
    .featured-doctor-avatar {
        width: 60px !important;
        height: 60px !important;
    }
    
    .featured-doctor-avatar .placeholder {
        font-size: 28px !important;
    }
    
    .featured-doctor-name {
        font-size: 16px !important;
    }
    
    .featured-doctor-specialty {
        font-size: 12px !important;
    }

    /* Diagnostic Centers - 1 column */
    .diagnostics-grid-home {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .diagnostic-card-home {
        padding: 16px !important;
    }
    
    .diagnostic-card-home .diag-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
    }
    
    .diagnostic-card-home .diag-name {
        font-size: 15px !important;
    }

    /* Why Choose Us - 2 columns */
    .why-choose-us {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 16px 12px;
    }
    
    .why-item {
        padding: 8px 4px;
    }
    
    .why-item .why-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
        margin-bottom: 6px;
    }
    
    .why-item .why-title {
        font-size: 11px;
        margin-bottom: 1px;
    }
    
    .why-item .why-desc {
        font-size: 10px;
    }

    /* Slider */
    .slider-wrapper {
        aspect-ratio: auto;
        min-height: 280px;
        max-height: 380px;
        border-radius: var(--radius-md) !important;
    }
    
    .slider-slide {
        flex-direction: column !important;
        text-align: center;
        padding: 20px 16px !important;
        gap: 8px !important;
        justify-content: center !important;
    }
    
    .slider-image {
        width: 80px !important;
        height: 80px !important;
        border-width: 3px !important;
    }
    
    .slider-image img {
        width: 80px !important;
        height: 80px !important;
    }
    
    .slider-image i {
        font-size: 32px !important;
    }
    
    .slider-name {
        font-size: 20px !important;
        margin-bottom: 2px !important;
    }
    
    .slider-specialty {
        font-size: 13px !important;
    }
    
    .slider-qualification {
        font-size: 12px !important;
        margin-bottom: 8px !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .slider-btn {
        padding: 8px 20px !important;
        font-size: 13px !important;
    }
    
    .slider-content > div:first-child {
        font-size: 10px !important;
        padding: 2px 12px !important;
        margin-bottom: 6px !important;
    }
    
    #prevSlide, #nextSlide {
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
    }
    
    #prevSlide {
        left: 8px !important;
    }
    
    #nextSlide {
        right: 8px !important;
    }
    
    .slider-dot {
        width: 8px !important;
        height: 8px !important;
    }

    /* Cards */
    .card-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
    
    .feature-card {
        padding: 24px 18px !important;
    }
    
    .feature-title {
        font-size: 17px !important;
    }
    
    .feature-icon {
        width: 48px !important;
        height: 48px !important;
        font-size: 22px !important;
    }
    
    .feature-count {
        font-size: 24px !important;
    }
    
    .feature-subtitle {
        font-size: 12px !important;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-section-new {
        min-height: auto;
        padding: 12px;
        margin-bottom: 12px;
        border-radius: var(--radius-sm);
        align-items: center;
    }
    
    .hero-search-mobile .search-field input,
    .hero-search-mobile .search-field select {
        padding: 8px 0;
        font-size: 11px;
    }

    .search-field input,
    .search-field select {
        padding: 10px 0;
        font-size: 12px;
    }

    .location-modal-content {
        padding: 16px;
    }

    /* Specialists */
    .specialists-scroll-container {
        gap: 8px;
    }
    
    .specialists-row {
        gap: 8px;
    }
    
    .specialist-item {
        padding: 10px 12px;
        font-size: 11px;
        gap: 6px;
        min-height: 40px;
        border-radius: var(--radius-sm);
    }
    
    .specialist-item i {
        font-size: 16px;
        width: 20px;
    }
    
    .specialist-item span {
        font-size: 11px;
        white-space: nowrap;
        display: block;
    }
    
    .hide-on-tablet {
        display: none !important;
    }

    /* Featured Doctors */
    .featured-doctors-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .featured-doctor-card {
        padding: 14px !important;
        border-radius: var(--radius-md) !important;
    }
    
    .featured-doctor-avatar {
        width: 52px !important;
        height: 52px !important;
    }
    
    .featured-doctor-avatar .placeholder {
        font-size: 24px !important;
    }
    
    .featured-doctor-name {
        font-size: 15px !important;
    }
    
    .featured-doctor-specialty {
        font-size: 11px !important;
    }
    
    .featured-doctor-bottom .btn-small {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }

    /* Why Choose Us */
    .why-choose-us {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 12px 8px;
        border-radius: var(--radius-md);
    }
    
    .why-item {
        padding: 6px 2px;
    }
    
    .why-item .why-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .why-item .why-title {
        font-size: 10px;
        font-weight: 700;
    }
    
    .why-item .why-desc {
        font-size: 9px;
        display: none;
    }

    /* Slider */
    .slider-wrapper {
        min-height: 260px;
        max-height: 350px;
        border-radius: var(--radius-sm) !important;
    }
    
    .slider-slide {
        padding: 16px 12px !important;
        gap: 6px !important;
    }
    
    .slider-image {
        width: 65px !important;
        height: 65px !important;
    }
    
    .slider-image img {
        width: 65px !important;
        height: 65px !important;
    }
    
    .slider-image i {
        font-size: 26px !important;
    }
    
    .slider-name {
        font-size: 17px !important;
    }
    
    .slider-specialty {
        font-size: 12px !important;
    }
    
    .slider-qualification {
        font-size: 11px !important;
        -webkit-line-clamp: 1 !important;
    }
    
    .slider-btn {
        padding: 6px 16px !important;
        font-size: 12px !important;
    }
    
    .slider-content > div:first-child {
        font-size: 9px !important;
        padding: 2px 10px !important;
    }
    
    #prevSlide, #nextSlide {
        width: 28px !important;
        height: 28px !important;
        font-size: 12px !important;
    }
    
    .slider-dot {
        width: 6px !important;
        height: 6px !important;
    }

    .card-grid {
        gap: 12px !important;
    }
    
    .feature-card {
        padding: 18px 14px !important;
    }
    
    .feature-title {
        font-size: 15px !important;
    }
    
    .feature-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
    }
    
    .feature-count {
        font-size: 20px !important;
    }
    
    .feature-subtitle {
        font-size: 11px !important;
    }
    
    .feature-view {
        font-size: 12px !important;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .specialists-scroll-container {
        gap: 6px;
    }
    
    .specialists-row {
        gap: 6px;
    }
    
    .specialist-item {
        padding: 8px 10px;
        font-size: 10px;
        gap: 4px;
        min-height: 36px;
    }
    
    .specialist-item i {
        font-size: 14px;
        width: 18px;
    }
    
    .specialist-item span {
        font-size: 10px;
        white-space: nowrap;
        display: block;
    }
    
    .hide-on-tablet {
        display: none !important;
    }

    .featured-doctors-grid {
        gap: 10px;
    }
    
    .featured-doctor-card {
        padding: 12px !important;
    }
    
    .featured-doctor-avatar {
        width: 44px !important;
        height: 44px !important;
    }
    
    .featured-doctor-avatar .placeholder {
        font-size: 20px !important;
    }
    
    .featured-doctor-name {
        font-size: 14px !important;
    }
    
    .featured-doctor-specialty {
        font-size: 10px !important;
    }
    
    .featured-doctor-bottom .btn-small {
        padding: 4px 8px !important;
        font-size: 11px !important;
    }

    .why-choose-us {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        padding: 10px 6px;
    }
    
    .why-item .why-icon {
        width: 26px;
        height: 26px;
        font-size: 12px;
        margin-bottom: 3px;
    }
    
    .why-item .why-title {
        font-size: 9px;
    }

    .slider-wrapper {
        min-height: 220px;
        max-height: 300px;
    }
    
    .slider-image {
        width: 55px !important;
        height: 55px !important;
    }
    
    .slider-image img {
        width: 55px !important;
        height: 55px !important;
    }
    
    .slider-image i {
        font-size: 20px !important;
    }
    
    .slider-name {
        font-size: 15px !important;
    }
    
    .slider-specialty {
        font-size: 11px !important;
    }
    
    .slider-qualification {
        font-size: 10px !important;
    }
    
    .slider-btn {
        padding: 5px 14px !important;
        font-size: 11px !important;
    }
    
    #prevSlide, #nextSlide {
        width: 24px !important;
        height: 24px !important;
        font-size: 10px !important;
    }
}
/* ============================================ */
/* AVAILABILITY DOT - Featured Doctors */
/* ============================================ */

.featured-doctor-avatar {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: visible;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.featured-doctor-avatar .availability-dot {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid white;
    z-index: 20;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.featured-doctor-avatar .availability-dot.available {
    background: #22c55e;
    box-shadow: 0 2px 12px rgba(34, 197, 94, 0.6);
}

.featured-doctor-avatar .availability-dot.unavailable {
    background: #ef4444;
    box-shadow: 0 2px 12px rgba(239, 68, 68, 0.6);
}

/* ============================================ */
/* STATUS DOT - Doctor List Cards */
/* ============================================ */

.doctor-photo-wrapper {
    position: relative;
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    overflow: visible;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.doctor-photo-wrapper .status-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid white;
    z-index: 5;
}

.doctor-photo-wrapper .status-dot.available {
    background: #22c55e;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.5);
}

.doctor-photo-wrapper .status-dot.unavailable {
    background: #ef4444;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5);
}

/* ============================================ */
/* DOCTOR FEE STYLES */
/* ============================================ */

.doctor-fee {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
    font-weight: 600;
}

.doctor-fee i {
    color: var(--primary);
    font-size: 11px;
}

.doctor-fee.na {
    color: var(--text-muted);
    font-weight: 400;
}

.doctor-fee.na i {
    color: var(--text-muted);
}

/* ============================================ */
/* NO RESULTS STYLES */
/* ============================================ */

.no-results {
    color: var(--text-secondary);
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 0;
}

.no-results i {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 15px;
    display: block;
}

.no-results h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.no-results p {
    color: var(--text-muted);
    margin-bottom: 15px;
}

/* ============================================ */
/* SECTION WRAPPER */
/* ============================================ */

.section-wrapper {
    margin-bottom: 40px;
}

/* ============================================ */
/* AVAILABILITY LABEL - Doctor List Cards */
/* ============================================ */

.availability-label {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.availability-label.available {
    color: #22c55e;
}

.availability-label.unavailable {
    color: #ef4444;
}

.availability-label i {
    font-size: 8px;
}

/* ============================================ */
/* DOCTOR LIST CARD - Override for list page */
/* ============================================ */

.doctor-list-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    height: 100%;
    border: 1px solid var(--border-color);
    background: white;
    transition: all 0.2s;
    box-shadow: var(--card-shadow);
    padding: 10px;
    border-radius: var(--radius-lg);
    position: relative;
}

.doctor-list-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.doctor-main-info {
    display: flex;
    gap: 16px;
    align-items: center;
    width: 100%;
}

.doctor-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

/* ============================================ */
/* PAGINATION STYLES */
/* ============================================ */

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background: transparent;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.pagination-link:hover:not(.disabled):not(.active) {
    background: var(--secondary);
    border-color: var(--border-color);
}

.pagination-link.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination-link.disabled {
    background: #f1f5f9;
    color: var(--text-muted);
    cursor: not-allowed;
    border: 1px solid var(--border-color);
    opacity: 0.6;
}

.pagination-link.prev-next {
    padding: 8px 16px;
    background: var(--secondary);
    color: var(--primary);
    border: 1px solid var(--border-color);
}

.pagination-link.prev-next:hover:not(.disabled) {
    background: var(--secondary-hover);
}

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    padding: 0 4px;
    color: var(--text-muted);
}

.results-info {
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================ */
/* FILTER MODAL STYLES */
/* ============================================ */

.filter-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 9999;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.filter-modal-content {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    margin-top: 20px;
    animation: modalSlide 0.3s ease;
}

.filter-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
}

.filter-modal-close:hover {
    color: var(--danger);
}

.filter-modal-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--text-primary);
}

.filter-modal-title i {
    color: var(--primary);
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 6px;
}

.filter-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: var(--font);
    background: #f8fafc;
    cursor: pointer;
    margin-bottom: 10px;
}

.filter-group select:last-child {
    margin-bottom: 0;
}

.filter-group select:focus {
    border-color: var(--primary);
    outline: none;
}

.filter-apply-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font);
}

.filter-apply-btn:hover {
    background: var(--primary-hover);
}

/* ============================================ */
/* RESPONSIVE - Doctor List Page */
/* ============================================ */

@media (max-width: 768px) {
    .doctor-list-header {
        gap: 10px !important;
    }
    
    .title-wrapper {
        padding: 0 5px !important;
    }
    
    .main-title {
        font-size: 16px !important;
        line-height: 1.1 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .result-count {
        font-size: 11px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .filter-toggle-btn {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }
    
    .filter-modal {
        padding: 0 !important;
        align-items: center !important;
    }
    
    .filter-modal-content {
        max-width: 100% !important;
        width: 100% !important;
        height: 100% !important;
        border-radius: 0 !important;
        margin-top: 0 !important;
        padding: 30px 20px !important;
        overflow-y: auto !important;
    }
    
    .specialties-scroll {
        padding: 6px 0 10px 0 !important;
        margin-bottom: 12px !important;
    }
    
    .filter-badge {
        padding: 6px 14px !important;
        font-size: 12px !important;
    }
    
    .pagination-container {
        gap: 4px !important;
    }
    
    .pagination-link {
        min-width: 30px !important;
        height: 30px !important;
        font-size: 12px !important;
        padding: 0 6px !important;
    }
    
    .pagination-link.prev-next {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }
    
    .doctor-photo-wrapper {
        width: 60px !important;
        height: 60px !important;
    }
    
    .doctor-photo-wrapper .doctor-placeholder {
        font-size: 30px !important;
    }
    
    .doctor-photo-wrapper img {
        width: 60px !important;
        height: 60px !important;
    }
    
    .doctor-photo-wrapper .status-dot {
        width: 14px !important;
        height: 14px !important;
    }
    
    .doctor-name {
        font-size: 15px !important;
    }
    
    .doctor-specialty {
        font-size: 12px !important;
    }
    
    .doctor-qualification {
        font-size: 11px !important;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 14px !important;
    }
    
    .result-count {
        font-size: 10px !important;
    }
    
    .filter-toggle-btn {
        padding: 8px 14px !important;
        font-size: 12px !important;
    }
    
    .pagination-link {
        min-width: 26px !important;
        height: 26px !important;
        font-size: 11px !important;
        padding: 0 4px !important;
    }
    
    .pagination-link.prev-next {
        padding: 4px 8px !important;
        font-size: 11px !important;
    }
    
    .doctor-photo-wrapper {
        width: 60px !important;
        height: 60px !important;
    }
    
    .doctor-photo-wrapper .doctor-placeholder {
        font-size: 30px !important;
    }
    
    .doctor-photo-wrapper img {
        width: 60px !important;
        height: 60px !important;
    }
    
    .doctor-photo-wrapper .status-dot {
        width: 12px !important;
        height: 12px !important;
    }
    
    .doctor-name {
        font-size: 15px !important;
    }
    
    .doctor-specialty {
        font-size: 12px !important;
    }
    
    .doctor-qualification {
        font-size: 11px !important;
    }
}

/* ============================================ */
/* NEW GRID FOOTER */
/* ============================================ */
.main-footer {
    background: #f8fafc;
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px 0;
    margin-top: 60px;
    color: var(--text-secondary);
    font-family: var(--font);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 15px;
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-col p {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13.5px;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.footer-contact p i {
    color: var(--primary);
    width: 20px;
    margin-right: 6px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 25px;
    text-align: center;
    font-size: 12.5px;
    color: var(--text-muted);
}

/* Tablet & Mobile Footer Grid */
@media (max-width: 768px) {
    .main-footer {
        padding: 40px 0 20px 0;
    }
    
    .footer-row {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }
    
    .footer-about {
        grid-column: span 2;
    }
    
    .footer-links {
        grid-column: span 1;
    }
    
    .footer-contact {
        grid-column: span 2;
    }
}