/* ==========================================================================
   TrustDento - Modern Healthcare Design System
   Font Family: Sora (Google Fonts)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Brand Palettes */
    --primary: #0284c7;        /* Medical Sky Blue */
    --primary-dark: #0369a1;
    --primary-light: #e0f2fe;
    --primary-glow: rgba(2, 132, 199, 0.15);

    --accent: #0d9488;         /* Clinical Teal */
    --accent-dark: #0f766e;
    --accent-light: #ccfbf1;

    --success: #10b981;        /* Verified Emerald */
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;

    /* Neutrals & Surfaces */
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-subtle: #f1f5f9;
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;

    --text-main: #0f172a;      /* Slate 900 */
    --text-muted: #64748b;     /* Slate 500 */
    --text-light: #94a3b8;     /* Slate 400 */

    /* Typography - Sora */
    --font-heading: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Shadows & Radii */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 2px 8px -1px rgba(15, 23, 42, 0.06), 0 0 1px rgba(15, 23, 42, 0.08);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Transitions */
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Setup */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Premium directory surfaces */
.location-hero-card{position:relative;overflow:hidden;padding:2.65rem;margin-bottom:1.1rem;background:linear-gradient(135deg,#fff 0%,#effaf9 58%,#eaf4ff 100%);border-color:#dbe9ed}.location-hero-card:after{content:"";position:absolute;width:260px;height:260px;border-radius:50%;right:-80px;top:-110px;background:radial-gradient(circle,rgba(2,132,199,.13),transparent 68%);pointer-events:none}.treatment-location-hero{background:linear-gradient(135deg,#fff 0%,#eefaff 50%,#f0fdf4 100%)}.trust-proof-row{display:flex;flex-wrap:wrap;gap:.65rem;margin-top:1.1rem}.trust-proof-row span{display:inline-flex;align-items:center;gap:.4rem;background:rgba(255,255,255,.8);border:1px solid #dbe5ee;border-radius:999px;padding:.45rem .7rem;font-size:.75rem;font-weight:700;color:#334155}.trust-proof-row svg{width:15px;height:15px;color:var(--accent)}.directory-summary-bar{display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border:1px solid var(--border-color);border-radius:14px;margin-bottom:2.7rem;box-shadow:var(--shadow-card)}.directory-summary-bar>div{padding:1rem 1.25rem;border-right:1px solid var(--border-color)}.directory-summary-bar>div:last-child{border:0}.directory-summary-bar strong{display:block;font-size:1.1rem;color:var(--text-main)}.directory-summary-bar span{font-size:.72rem;color:var(--text-muted)}.clinic-mini-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}.clinic-mini-card{display:flex;align-items:flex-start;gap:.85rem;padding:1rem;background:#fff;border:1px solid var(--border-color);border-radius:13px;color:var(--text-main);box-shadow:var(--shadow-card)}.clinic-mini-card:hover{transform:translateY(-2px);border-color:#bae6fd;box-shadow:var(--shadow-lg)}.clinic-mini-icon{width:42px;height:42px;border-radius:10px;background:var(--primary-light);color:var(--primary);display:grid;place-items:center;flex:0 0 auto}.clinic-mini-icon svg{width:19px}.clinic-mini-card h3{font-size:.9rem;margin:0 0 .25rem}.clinic-mini-card p{color:var(--text-muted);font-size:.75rem;margin:0 0 .5rem}.clinic-mini-card div>span{display:flex;align-items:center;gap:.25rem;color:var(--primary);font-size:.72rem;font-weight:700}.clinic-mini-card div>span svg{width:12px}.medical-content-note{display:flex;gap:.85rem;align-items:flex-start;background:#f8fafc;border:1px solid var(--border-color);border-radius:12px;padding:1rem;margin-top:2rem;color:var(--text-muted)}.medical-content-note>svg{width:20px;color:var(--primary);flex:0 0 auto}.medical-content-note b{color:var(--text-main);font-size:.82rem}.medical-content-note p{font-size:.75rem;margin:.2rem 0 0;line-height:1.55}.care-path-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.8rem;margin:0 0 2.6rem}.care-path-grid article{display:flex;gap:.8rem;background:#fff;border:1px solid var(--border-color);border-radius:12px;padding:1rem}.care-path-grid article>span{width:31px;height:31px;border-radius:9px;background:var(--primary);color:#fff;display:grid;place-items:center;font-size:.7rem;font-weight:800}.care-path-grid b{font-size:.82rem}.care-path-grid p{font-size:.72rem;color:var(--text-muted);margin:.2rem 0 0}.semantic-care-guide{display:grid;grid-template-columns:1.6fr 1fr;gap:2rem;background:#fff;border:1px solid var(--border-color);border-radius:16px;padding:1.5rem;margin:0 auto 1.25rem;max-width:980px}.semantic-care-guide h2{margin:.65rem 0;font-size:1.35rem}.semantic-care-guide p{color:var(--text-muted);font-size:.86rem;line-height:1.7}.guide-facts{display:grid;gap:.6rem}.guide-facts>div{background:#f8fafc;border:1px solid var(--border-color);border-radius:10px;padding:.75rem}.guide-facts span,.guide-facts b{display:block}.guide-facts span{font-size:.68rem;color:var(--text-muted);text-transform:uppercase;font-weight:700}.guide-facts b{font-size:.92rem;margin-top:.2rem}
@media(max-width:850px){.clinic-mini-grid{grid-template-columns:1fr 1fr}.semantic-care-guide{grid-template-columns:1fr}.directory-summary-bar{grid-template-columns:1fr 1fr}.directory-summary-bar>div:nth-child(2){border-right:0}.directory-summary-bar>div:nth-child(-n+2){border-bottom:1px solid var(--border-color)}}
@media(max-width:560px){.location-hero-card{padding:1.35rem}.clinic-mini-grid,.care-path-grid{grid-template-columns:1fr}.directory-summary-bar{grid-template-columns:1fr 1fr}.trust-proof-row{display:grid}.trust-proof-row span{justify-content:center}}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.main-content {
    flex: 1 0 auto;
    width: 100%;
}

/* ==========================================================================
   Header & Navigation (with Mobile Drawer)
   ========================================================================== */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 1rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.site-logo span {
    color: var(--accent);
}

.logo-badge {
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 0.25rem;
}

/* Desktop Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Mobile Hamburger Toggle */
.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.5rem 0.65rem;
    cursor: pointer;
    color: var(--text-main);
    font-size: 1.25rem;
    line-height: 1;
}

.mobile-nav-toggle:hover {
    background: var(--bg-card-subtle);
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
    display: none;
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 1.25rem;
    box-shadow: var(--shadow-lg);
}

.mobile-nav-drawer.active {
    display: block;
}

.mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.mobile-nav-list a {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    display: block;
    padding: 0.4rem 0;
}

.mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
    text-align: center;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(2, 132, 199, 0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(2, 132, 199, 0.3);
}

.btn-accent {
    background: var(--accent);
    color: #ffffff;
}

.btn-accent:hover {
    background: var(--accent-dark);
    color: #ffffff;
}

.btn-outline {
    background: #ffffff;
    border-color: var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--bg-card-subtle);
    border-color: var(--border-hover);
}

.btn-sm {
    padding: 0.45rem 0.85rem;
    font-size: 0.825rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    border-radius: var(--radius-md);
    font-weight: 700;
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   Comprehensive Form Input & Select Styling
   ========================================================================== */
.form-group {
    margin-bottom: 1.25rem;
    width: 100%;
}

.form-label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.4rem;
    color: var(--text-main);
}

/* All inputs, selects, and textareas */
.form-control,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="time"],
select,
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    background-color: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-control:hover,
input[type="text"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
input[type="password"]:hover,
input[type="number"]:hover,
input[type="date"]:hover,
input[type="time"]:hover,
select:hover,
textarea:hover {
    border-color: var(--border-hover);
}

.form-control:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
    background-color: #ffffff;
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
    color: var(--text-light);
    font-weight: 400;
}

/* Custom Select Dropdown with Chevron */
select,
.form-control[type="select"],
select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.75rem;
    cursor: pointer;
}

/* Textarea */
textarea,
textarea.form-control {
    resize: vertical;
    min-height: 90px;
    line-height: 1.6;
}

/* Styled Checkbox and Radio */
input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--primary);
    width: 1.15rem;
    height: 1.15rem;
    cursor: pointer;
    vertical-align: middle;
    margin: 0;
}

/* Styled File Inputs */
input[type="file"],
input[type="file"].form-control {
    padding: 0.5rem 0.75rem;
    background: var(--bg-card-subtle);
    border: 1.5px dashed var(--border-color);
    cursor: pointer;
}

input[type="file"]::file-selector-button,
input[type="file"]::-webkit-file-upload-button {
    background: var(--primary-light);
    color: var(--primary-dark);
    border: none;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    margin-right: 0.75rem;
    transition: var(--transition);
}

input[type="file"]::file-selector-button:hover,
input[type="file"]::-webkit-file-upload-button:hover {
    background: var(--primary);
    color: #ffffff;
}

.form-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
    display: block;
}

/* ==========================================================================
   Badges
   ========================================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
}

.badge-verified {
    background-color: var(--success-light);
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.badge-featured {
    background-color: var(--warning-light);
    color: #92400e;
    border: 1px solid #fde68a;
}

.badge-primary {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.badge-secondary {
    background-color: var(--bg-card-subtle);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
.breadcrumbs-nav {
    padding: 0.75rem 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
}

.breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    gap: 0.5rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    color: var(--text-muted);
}

.breadcrumb-item a {
    color: var(--text-muted);
    font-weight: 500;
}

.breadcrumb-item a:hover {
    color: var(--primary);
}

.breadcrumb-separator {
    margin: 0 0.4rem;
    color: var(--text-light);
}

.breadcrumb-item.active {
    color: var(--text-main);
    font-weight: 700;
}

/* ==========================================================================
   Cards & Layout Components
   ========================================================================== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.card-body {
    padding: 1.5rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
    padding: 3.5rem 0 4rem;
    border-bottom: 1px solid var(--border-color);
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.hero-title .highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 680px;
    margin-bottom: 2rem;
}

/* Hero Multi-Search Bar */
.search-widget {
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    position: relative;
    gap: 0.5rem;
}

.search-field {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0.5rem 0.85rem;
    border-right: 1px solid var(--border-color);
    position: relative;
    min-width: 0;
}

.search-field:last-of-type {
    border-right: none;
}

.search-icon {
    color: var(--text-light);
    margin-right: 0.65rem;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.search-input {
    width: 100%;
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    background: transparent;
    box-shadow: none;
    padding: 0.25rem 0;
}

.search-input::placeholder {
    color: var(--text-light);
}

/* Dentist Card */
.dentist-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.dentist-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: #93c5fd;
    transform: translateY(-2px);
}

.dentist-avatar {
    width: 96px;
    height: 96px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    background: var(--bg-card-subtle);
    flex-shrink: 0;
    border: 2px solid var(--primary-light);
}

.dentist-details {
    flex: 1;
    min-width: 0;
}

.dentist-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.dentist-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.dentist-specialty {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.dentist-quals {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.dentist-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.dentist-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.dentist-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-color);
    margin-top: 0.75rem;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.dentist-fee {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
}

.dentist-fee-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    display: block;
}

/* Treatment / Service Card */
.treatment-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.treatment-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.treatment-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.treatment-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.treatment-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    flex: 1;
}

.treatment-cost {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent);
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

/* Grid Systems */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Section Spacing */
.section {
    padding: 4rem 0;
}

.section-alt {
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
}

.section-title {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Flash Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
    gap: 0.75rem;
}

.alert-success {
    background: var(--success-light);
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-danger {
    background: var(--danger-light);
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: var(--warning-light);
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-info {
    background: var(--primary-light);
    color: #075985;
    border: 1px solid #bae6fd;
}

/* Footer */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 4rem 0 2rem;
    margin-top: auto;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-logo span {
    color: #38bdf8;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-links a {
    color: #94a3b8;
    font-weight: 500;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    gap: 1rem;
}

/* ==========================================================================
   Responsive Grid & Page Layout Classes
   ========================================================================== */
.detail-page-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr;
    gap: 2.5rem;
    align-items: flex-start;
    min-width: 0; /* Prevent grid blowout */
}

.detail-page-grid > * {
    min-width: 0; /* Allow children to shrink */
    overflow-x: hidden;
}


.search-page-grid {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.search-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
}

.admin-2col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: flex-start;
}

.admin-verify-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr;
    gap: 2rem;
    align-items: flex-start;
}

/* ==========================================================================
   Responsive Media Queries & Mobile Optimizations
   ========================================================================== */
@media (max-width: 1024px) {
    .detail-page-grid,
    .admin-verify-grid,
    .admin-2col-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* On tablet/mobile, booking aside is no longer sticky — flows naturally */
    .detail-page-grid > aside {
        position: static !important;
        top: auto !important;
    }

    .search-page-grid {
        flex-direction: column;
        gap: 1.5rem;
    }

    .search-sidebar {
        width: 100%;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}


@media (max-width: 768px) {
    .header-inner {
        height: 64px;
    }
    
    .nav-links,
    .header-actions {
        display: none;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .hero-section {
        padding: 2.5rem 0 3rem;
    }

    .hero-title {
        font-size: 1.85rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    /* Stack Search Widget cleanly on mobile */
    .search-widget {
        flex-direction: column;
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .search-field {
        width: 100% !important;
        max-width: 100% !important;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 0.6rem 0.5rem;
    }

    .search-widget .btn {
        width: 100%;
        margin: 0 !important;
    }

    .dentist-card {
        flex-direction: column;
        padding: 1.25rem;
        gap: 1rem;
    }

    .dentist-avatar {
        width: 72px;
        height: 72px;
    }

    .dentist-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .dentist-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .dentist-footer .btn {
        width: 100%;
    }

    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Fix table overflow clipping on mobile */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 520px; /* Allow horizontal scroll instead of clipping */
    }

    /* Doctor profile page fixes */
    .detail-page-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .detail-page-grid > aside {
        position: static !important;
        top: auto !important;
        order: -1; /* Show booking widget ABOVE profile details on mobile */
    }

    .admin-2col-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .section {
        padding: 2.5rem 0;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
