:root {
    --ink: #1f2a30;
    --muted: #5b6770;
    --brand: #048288;
    --brand-dark: #045c61;
    --brand-soft: #e9f6f7;
    --brand-contrast: #f4fafb;
    --accent-gold: #c9b46a;
    --accent-gold-dark: #a69048;
    --accent-gold-soft: #f3ebd1;
    --accent: #048288;
    --accent-dark: #045c61;
    --accent-soft: #d7e7ea;
    --surface: #ffffff;
    --surface-alt: #f4fafb;
    --border: #d7e7ea;
    --shadow-sm: 0 8px 24px rgba(17, 29, 35, 0.08);
    --shadow-md: 0 14px 30px rgba(17, 29, 35, 0.12);
    --hero-grad-start: #f4fafb;
    --hero-grad-end: #e9f6f7;
    --cta-grad-start: #eef8f9;
    --cta-grad-end: #e6f2f4;
    --footer-grad-start: #f4fafb;
    --footer-grad-end: #e6f2f4;
    --promo-grad-start: #048288;
    --promo-grad-end: #0c949b;
    --dash-1-start: #048288;
    --dash-1-end: #045c61;
    --dash-2-start: #0c949b;
    --dash-2-end: #046e73;
    --dash-3-start: #c9b46a;
    --dash-3-end: #a69048;
    --dash-4-start: #5b6770;
    --dash-4-end: #3f4a52;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans 3', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(1200px 600px at 8% -10%, #f1f5f2 0%, transparent 60%),
        radial-gradient(900px 400px at 90% 5%, #eef2f1 0%, transparent 55%),
        linear-gradient(180deg, #f8f8f5 0%, #edf1ef 50%, #f8f8f5 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Fraunces', 'Georgia', serif;
    letter-spacing: 0.2px;
}

.navbar .nav-link,
.navbar .dropdown-item {
    font-family: 'Source Sans 3', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

a {
    color: var(--accent);
}

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

/* Brand Utilities */
.text-brand {
    color: var(--brand) !important;
}

.text-accent {
    color: var(--accent-gold) !important;
}

.hero-surface {
    background: linear-gradient(135deg, var(--hero-grad-start) 0%, var(--hero-grad-end) 100%);
    border-radius: 16px;
}

.homepage-hero {
    margin-top: 12px;
}

.hero-card {
    background: linear-gradient(135deg, var(--hero-grad-start) 0%, #f8fbfa 100%);
    border-radius: 24px;
    padding: 36px;
    border: 1px solid rgba(227, 231, 232, 0.7);
    box-shadow: var(--shadow-md);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

.trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.trust-item {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border);
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    color: var(--ink);
    box-shadow: 0 6px 12px rgba(17, 29, 35, 0.06);
}

.search-card {
    margin-bottom: 0;
    border-radius: 20px;
    box-shadow: 0 12px 24px rgba(17, 29, 35, 0.12);
}

.search-card--primary {
    border: 1px solid rgba(4, 130, 136, 0.35);
    box-shadow: 0 18px 32px rgba(4, 130, 136, 0.18);
}

.stats-strip {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.cta-surface {
    background: linear-gradient(120deg, var(--cta-grad-start) 0%, var(--cta-grad-end) 100%);
}

.highlight-surface {
    background: linear-gradient(135deg, var(--hero-grad-start) 0%, var(--hero-grad-end) 100%);
}

.promo-surface {
    background: linear-gradient(135deg, var(--promo-grad-start) 0%, var(--promo-grad-end) 100%);
    border-radius: 12px;
}

.footer-surface {
    background: linear-gradient(135deg, var(--footer-grad-start) 0%, var(--footer-grad-end) 100%) !important;
    box-shadow: 0 -12px 24px rgba(17, 29, 35, 0.08);
    border-top: 1px solid rgba(4, 130, 136, 0.12);
}

.footer-bridge {
    height: 36px;
    background:
        linear-gradient(180deg, rgba(248, 248, 245, 0) 0%, rgba(244, 250, 251, 0.7) 60%, rgba(244, 250, 251, 1) 100%);
    position: relative;
}

.footer-bridge::after {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 10px;
    height: 1px;
    background: rgba(4, 130, 136, 0.12);
}

/* Doctor Dashboard - Working Hours */
.working-hours-card {
    border-radius: 18px;
    border: 1px solid rgba(4, 130, 136, 0.12);
    overflow: hidden;
}

.working-hours-header {
    background: linear-gradient(135deg, var(--dash-3-start) 0%, var(--dash-3-end) 100%);
    border: none;
    padding: 18px 24px;
    color: #ffffff;
}

.working-hours-title {
    color: #ffffff;
}

.working-hours-body {
    padding: 24px;
}

.working-hours-intro {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hours-grid {
    row-gap: 16px;
}

.hours-field {
    background: rgba(244, 250, 251, 0.7);
    border-radius: 14px;
    padding: 12px 14px 10px;
    border: 1px solid rgba(4, 130, 136, 0.1);
}

.hours-field.is-closed {
    background: rgba(231, 238, 240, 0.7);
    border-color: rgba(120, 130, 140, 0.18);
}

.hours-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hours-label {
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
}

.hours-input {
    border-radius: 10px;
    border: 1px solid rgba(4, 130, 136, 0.16);
}

.hours-input:focus {
    border-color: rgba(4, 130, 136, 0.4);
    box-shadow: 0 0 0 0.2rem rgba(4, 130, 136, 0.12);
}

.hours-closed-toggle {
    white-space: nowrap;
    min-width: 78px;
}

.hours-quickfill {
    background: rgba(244, 250, 251, 0.7);
    border: 1px solid rgba(4, 130, 136, 0.12);
    border-radius: 14px;
    padding: 14px;
}

.hours-quickfill-label {
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 10px;
}

.hours-quickfill-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hours-quickfill-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hours-hint {
    display: block;
    margin-top: 6px;
}

.hours-tip {
    border-radius: 12px;
}

/* Doctor Profile Edit */
.profile-edit-card {
    border-radius: 18px;
    border: 1px solid rgba(4, 130, 136, 0.12);
    overflow: hidden;
}

.profile-edit-header {
    background: linear-gradient(135deg, var(--dash-1-start) 0%, var(--dash-1-end) 100%);
    color: #ffffff;
    padding: 18px 24px;
    border: none;
}

.profile-edit-body {
    padding: 28px 28px 32px;
}

.profile-edit-note {
    border-radius: 12px;
}

.profile-edit-divider {
    border-color: rgba(4, 130, 136, 0.12);
}

.profile-edit-section {
    margin-bottom: 10px;
}

.profile-edit-warning {
    border-radius: 12px;
}

.gradient-brand {
    background: linear-gradient(135deg, var(--dash-1-start) 0%, var(--dash-1-end) 100%);
}

.gradient-sage {
    background: linear-gradient(135deg, var(--dash-2-start) 0%, var(--dash-2-end) 100%);
}

.gradient-sand {
    background: linear-gradient(135deg, var(--dash-3-start) 0%, var(--dash-3-end) 100%);
}

.gradient-slate {
    background: linear-gradient(135deg, var(--dash-4-start) 0%, var(--dash-4-end) 100%);
}

/* Navbar */
.custom-navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 6px 18px rgba(17, 29, 35, 0.06);
    position: sticky;
    top: 0;
    z-index: 1050;
}

.custom-navbar .navbar-brand {
    color: var(--ink);
    font-weight: 600;
    font-size: 1.35rem;
    text-decoration: none;
}

.custom-navbar .navbar-brand img {
    height: 40px;
    width: auto;
    transition: transform 0.2s ease;
}

.custom-navbar .navbar-brand:hover img {
    transform: scale(1.05);
}

.custom-navbar .logo-text {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--ink);
}

.custom-navbar .nav-link {
    color: var(--muted);
    font-weight: 500;
}

.custom-navbar .nav-link:hover,
.custom-navbar .nav-link:focus {
    color: var(--ink);
}

.custom-navbar .dropdown-menu {
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    z-index: 1060;
}

.navbar-light .navbar-toggler {
    border-color: var(--border);
}

.navbar-light .navbar-toggler-icon {
    filter: grayscale(1);
    opacity: 0.8;
}

/* Cards */
.card,
.doctor-card {
    border: 1px solid rgba(227, 231, 232, 0.8);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover,
.doctor-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.doctor-card.featured {
    border-left: 4px solid var(--accent-gold);
    position: relative;
}

.doctor-card.featured::before {
    content: "FEATURED";
    position: absolute;
    top: -10px;
    right: 12px;
    background: var(--accent-gold-soft);
    color: #6c5a1f;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 4px rgba(108, 90, 31, 0.15);
    z-index: 10;
}

/* Verified doctors - subtle green border */
.doctor-card.verified {
    border-left: 2px solid rgba(60, 122, 98, 0.3);
}

.doctor-card.verified:hover {
    border-left-color: rgba(60, 122, 98, 0.5);
}

/* Make doctor cards equal height in their row */
.doctor-card {
    display: flex;
    flex-direction: column;
}

.doctor-card .card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 12px;
    font-family: 'Plus Jakarta Sans', 'Source Sans 3', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.doctor-card .doctor-details {
    flex-grow: 1;
}

.doctor-card .doctor-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.doctor-card .doctor-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.doctor-card .doctor-title {
    min-width: 0;
}

.doctor-card .doctor-name {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--ink);
    margin-bottom: 4px;
    line-height: 1.3;
    font-family: 'Playfair Display', 'Fraunces', 'Georgia', serif;
}

.doctor-card .doctor-subtitle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--muted);
}

.doctor-card .doctor-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 2px;
}

.doctor-card .doctor-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 0.82rem;
    color: var(--muted);
}

.doctor-card .doctor-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.doctor-card .doctor-meta-item a {
    color: var(--muted);
    text-decoration: none;
}

.doctor-card .doctor-meta-item a:hover {
    color: var(--brand);
    text-decoration: underline;
}

.doctor-card .doctor-info-lines {
    margin: 8px 0;
    font-size: 0.85rem;
}

.doctor-card .doctor-info-lines .info-line {
    color: var(--ink);
    margin-bottom: 6px;
    line-height: 1.4;
}

.doctor-card .doctor-info-lines .info-line strong {
    font-weight: 600;
    color: var(--ink);
}

.doctor-card .doctor-rating-section {
    margin: 10px 0;
    font-size: 0.85rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.doctor-card .doctor-rating-section .rating-display {
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--surface-alt);
    padding: 5px 10px;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid var(--border);
}

.doctor-card .doctor-rating-section .rating-display i {
    color: var(--accent-gold);
}

.doctor-card .doctor-rating-section .rating-display .rating-score-v2 {
    color: var(--ink);
    font-weight: 700;
}

.doctor-card .doctor-rating-section .rating-display .rating-count-v2 {
    color: var(--muted);
    font-weight: 600;
    margin-left: 4px;
}

.doctor-card .doctor-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.doctor-card .doctor-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(4, 130, 136, 0.08);
    color: var(--ink);
    font-size: 0.82rem;
}

.doctor-card .doctor-stat .rating {
    color: var(--accent-gold);
    font-size: 0.9rem;
    display: inline-flex;
    gap: 2px;
}

.doctor-card .doctor-stat.is-muted {
    color: var(--muted);
    background: rgba(120, 130, 140, 0.08);
}

.doctor-card .doctor-summary {
    margin: 8px 0;
    color: #475569;
    font-size: 0.85rem;
    line-height: 1.4;
    max-height: 4.2em; /* 3 lines * 1.4 line-height */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.doctor-card .doctor-actions {
    margin-top: auto;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.doctor-card .btn-view-doctor {
    background: transparent;
    color: var(--brand);
    border: 2px solid var(--brand);
    border-radius: 8px;
    padding: 9px 20px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
    text-decoration: none;
}

@media (max-width: 576px) {
    .doctor-card .doctor-actions {
        justify-content: center;
    }

    .doctor-card .btn-view-doctor {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.9rem;
        min-height: 44px;
    }
}

.doctor-card .btn-view-doctor:hover,
.doctor-card .btn-view-doctor:focus {
    background: var(--brand);
    color: #ffffff;
}

/* Claim Profile Link for Unclaimed Doctors */
.claim-link {
    display: block;
    text-align: center;
    font-size: 0.78rem;
    color: #475569;
    margin-top: 10px;
    text-decoration: none;
}

.claim-link:hover {
    color: var(--brand);
    text-decoration: underline;
}

.claim-link.claim-link-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #f8fafc;
    color: #0f766e;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.claim-link.claim-link-pill:hover {
    background: #ffffff;
    color: var(--brand);
    text-decoration: none;
    border-color: rgba(4, 130, 136, 0.3);
}

/* Limit description text to 3 lines to keep cards uniform */
.doctor-card .doctor-details > p.text-muted:last-of-type {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.5em;
    line-height: 1.5em;
}

.doctor-avatar {
    width: 80px;
    height: 80px;
    flex: 0 0 80px;
}

.doctor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Doctor card v2 */
.doctor-card.doctor-card-v2 {
    border-radius: 20px;
    border: 1px solid rgba(4, 130, 136, 0.12);
    box-shadow: 0 10px 40px rgba(17, 29, 35, 0.06);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    background: var(--surface);
    cursor: pointer;
}

.doctor-card.doctor-card-v2:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(4, 130, 136, 0.16);
    border-color: rgba(4, 130, 136, 0.4);
}

.doctor-card.doctor-card-v2.featured::before {
    top: 10px;
    right: 12px;
}

.doctor-card-v2 .card-header-v2 {
    background: linear-gradient(to bottom, #ffffff 0%, #fcfcfc 100%);
    padding: 24px 24px 0;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.doctor-card-v2 .avatar-wrapper-v2 {
    position: relative;
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    margin-bottom: 16px;
}

.doctor-card-v2 .avatar-halo {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid rgba(0, 0, 0, 0.05);
    border-radius: 50%;
}

.doctor-card-v2 .doctor-avatar-v2 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 12px rgba(17, 29, 35, 0.12);
}

.doctor-card-v2 .badge-verified-v2 {
    position: absolute;
    bottom: 4px;
    right: 0;
    background: #10b981;
    color: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 10px rgba(17, 29, 35, 0.18);
}

.doctor-card-v2 .doctor-name-v2 {
    font-family: 'Playfair Display', 'Fraunces', 'Georgia', serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
    line-height: 1.1;
    letter-spacing: -0.3px;
}

.doctor-card-v2 .rating-pill-v2 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--surface-alt);
    padding: 6px 14px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--muted);
}

.doctor-card-v2 .stars-v2 {
    color: var(--accent-gold);
    font-size: 0.9rem;
    text-shadow: 0 1px 1px rgba(201, 180, 106, 0.2);
}

.doctor-card-v2 .stars-v2 .text-warning {
    color: var(--accent-gold) !important;
}

.doctor-card-v2 .stars-v2 .text-muted {
    color: #cbd5e1 !important;
}

.doctor-card-v2 .rating-score-v2 {
    color: var(--ink);
    font-weight: 700;
    margin-left: 4px;
}

.doctor-card-v2 .rating-count-v2 {
    color: var(--muted);
}

.doctor-card-v2 .card-body-v2 {
    padding: 18px 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--surface);
}

.doctor-card-v2 .detail-grid-v2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.doctor-card-v2 .detail-pill-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: var(--surface-alt);
    padding: 14px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--ink);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.doctor-card-v2:hover .detail-pill-v2 {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(17, 29, 35, 0.08);
}

.doctor-card-v2 .detail-icon-v2 {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1px;
}

.doctor-card-v2 .detail-label-v2 {
    font-size: 0.72rem;
    color: var(--muted);
    font-weight: 600;
}

.doctor-card-v2 .detail-value-v2 {
    font-weight: 600;
    text-align: center;
    line-height: 1.25;
    word-break: break-word;
}

.doctor-card-v2 .card-footer-v2 {
    border-top: 1px solid #f1f5f9;
    padding: 16px 24px;
    text-align: center;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.doctor-card-v2 .btn-view-v2 {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #ffffff;
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 999px;
    font-family: 'Plus Jakarta Sans', 'Source Sans 3', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.4px;
    box-shadow: 0 6px 20px rgba(4, 130, 136, 0.25);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.doctor-card-v2:hover .btn-view-v2 {
    background: linear-gradient(135deg, var(--brand-dark) 0%, #045052 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(4, 130, 136, 0.35);
}

@media (max-width: 576px) {
    .doctor-card-v2 .card-header-v2 {
        padding: 20px 16px 0;
    }

    .doctor-card-v2 .card-body-v2 {
        padding: 16px;
    }

    .doctor-card-v2 .avatar-wrapper-v2 {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .doctor-card-v2 .detail-grid-v2 {
        grid-template-columns: 1fr;
    }
}

/* Rating Stars */
.rating {
    color: var(--accent-gold);
}

.rating .star {
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
    font-size: 1.15rem;
}

.rating .star:hover {
    color: var(--accent-gold-dark);
    transform: scale(1.08);
}

.star-rating {
    display: flex;
    gap: 5px;
    font-size: 1.4rem;
}

.star-rating .star {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.star-rating .star:hover {
    transform: scale(1.15);
}

/* Advertisement Styling */
.ad-container {
    background: var(--surface);
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 20px rgba(17, 29, 35, 0.05);
}

.ad-container.sticky-top {
    position: sticky;
    top: 20px;
    z-index: 100;
}

.ad-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.ad-link {
    display: block;
    text-decoration: none;
}

.ad-link:hover {
    opacity: 0.92;
}

/* Native In-Feed Ads */
.ad-card {
    background: linear-gradient(135deg, #f6f7f4 0%, #e9efec 100%);
    border: 1px dashed #d7dbdd !important;
}

.ad-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

/* Mobile Bottom Anchor Ad */
.mobile-ad-anchor {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--surface);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    text-align: center;
    padding: 6px;
}

/* Text Ads */
.text-ad {
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.text-ad h4 {
    color: var(--ink);
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.text-ad a {
    color: var(--accent);
    text-decoration: none;
}

.text-ad a:hover {
    text-decoration: underline;
}

/* AdSense Container */
.adsense-ad {
    text-align: center;
    padding: 10px;
}

/* Responsive Ad Sizes */
@media (max-width: 768px) {
    .ad-container {
        padding: 12px;
    }

    .ad-container img {
        max-width: 100%;
        height: auto;
    }

    .ad-container[data-format="728x90"],
    .ad-container[data-format="970x250"] {
        display: none;
    }

    body {
        padding-bottom: 60px;
    }
}

@media (min-width: 769px) {
    .mobile-ad-anchor {
        display: none !important;
    }
}

/* Ad Loading State */
.ad-container.loading {
    background: #f1f2f3;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* User Profile Enhancements */
.profile-header {
    background: linear-gradient(135deg, #dae6e1 0%, #f2f4f2 100%);
    color: var(--ink);
    border-radius: 16px 16px 0 0;
    padding: 32px;
    border: 1px solid var(--border);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--surface);
    box-shadow: 0 6px 14px rgba(17, 29, 35, 0.15);
}

.profile-card {
    overflow: hidden;
}

.profile-banner {
    height: 90px;
    background: linear-gradient(135deg, rgba(4, 130, 136, 0.2), rgba(122, 165, 162, 0.2));
    position: relative;
    border-bottom: 1px solid var(--border);
}

.profile-avatar-circle {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--brand);
    color: white;
    font-weight: 700;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    bottom: -44px;
    transform: translateX(-50%);
    border: 4px solid var(--surface);
    box-shadow: 0 6px 14px rgba(17, 29, 35, 0.15);
}

.profile-card .card-body {
    padding-top: 56px;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 6px;
}

.profile-about {
    margin: 8px 0 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(4, 130, 136, 0.08), rgba(242, 244, 242, 0.9));
    border: 1px solid rgba(227, 231, 232, 0.8);
}

.stat-label {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-bottom: 6px;
}

.stat-value {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--ink);
}

.stat-meta {
    color: var(--muted);
    font-size: 0.8rem;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(4, 130, 136, 0.06);
    text-decoration: none;
    color: var(--ink);
    border: 1px solid rgba(4, 130, 136, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.activity-item:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
}

.activity-title {
    font-weight: 600;
    margin-bottom: 2px;
}

.activity-meta {
    font-size: 0.78rem;
    color: var(--muted);
}

.next-goal {
    padding: 12px;
    border-radius: 12px;
    background: rgba(4, 130, 136, 0.06);
    border: 1px solid rgba(4, 130, 136, 0.12);
}

/* Status Badges */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.4px;
}

.badge.bg-warning {
    background: #f0e2b8 !important;
    color: #6b5618 !important;
}

.badge.bg-success {
    background: #d7ece0 !important;
    color: #235d44 !important;
}

.badge.bg-danger {
    background: #f3d4d2 !important;
    color: #7a2b27 !important;
}

/* Button Enhancements */
.btn {
    border-radius: 10px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    padding: 10px 22px;
}

.btn-primary {
    background: var(--brand);
    border: none;
    box-shadow: 0 8px 18px rgba(47, 111, 109, 0.2);
}

.btn-primary:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(36, 87, 86, 0.25);
}

.btn-success {
    background: #3c7a62;
    border: none;
}

.btn-success:hover {
    background: #2f5f4c;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(47, 95, 76, 0.25);
}

.btn-outline-primary {
    color: var(--brand);
    border-color: var(--brand);
}

.btn-outline-primary:hover {
    background: var(--brand);
    border-color: var(--brand);
}

/* Search Form */
.search-container {
    background: var(--surface);
    padding: 32px;
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    border: 1px solid var(--border);
}

.search-container h3 {
    color: var(--ink);
    margin-bottom: 18px;
    font-weight: 600;
}

.form-select, .form-control {
    border-radius: 10px;
    border: 1px solid var(--border);
    padding: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-select:focus, .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(47, 111, 109, 0.15);
}

/* Doctor List Container */
#doctor-list .row {
    margin: 0 -10px;
}

#doctor-list .col-md-6 {
    padding: 10px;
}

/* Review Cards */
.review {
    background: var(--surface-alt);
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 4px solid var(--accent);
}

/* Table Enhancements */
.table {
    background: var(--surface);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.table thead {
    background: #f1f3f3;
}

.table th {
    font-weight: 600;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
    padding: 12px;
}

.table td {
    padding: 12px;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: #f7f8f6;
    cursor: pointer;
}

/* Alerts */
.alert {
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(17, 29, 35, 0.06);
}

.alert-info {
    background: #e6f0ef;
    color: #244948;
}

.alert-success {
    background: #e6f3ec;
    color: #24583c;
}

.alert-warning {
    background: #f7f0dc;
    color: #67531c;
}

.alert-danger {
    background: #f4dfdd;
    color: #6e2c28;
}

/* Homepage Section Divider */
.section-divider {
    position: relative;
    height: 28px;
    margin: 22px 0 26px;
}

.section-divider::before {
    content: "";
    position: absolute;
    left: 6%;
    right: 6%;
    top: 50%;
    height: 1px;
    background: rgba(4, 130, 136, 0.16);
    transform: translateY(-50%);
}

.section-divider::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(4, 130, 136, 0), rgba(4, 130, 136, 0.08), rgba(4, 130, 136, 0));
    opacity: 0.6;
}

/* Modal Enhancements */
.modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 16px 36px rgba(17, 29, 35, 0.2);
}

.modal-header {
    background: #f3f4f3;
    border-bottom: 1px solid var(--border);
    border-radius: 16px 16px 0 0;
}

.modal-title {
    font-weight: 600;
    color: var(--ink);
}

/* Doctor Profile Sidebar */
.doctor-profile-sidebar {
    position: sticky;
    top: 20px;
}

.doctor-profile-sidebar img {
    border: 4px solid var(--surface);
    box-shadow: 0 6px 14px rgba(17, 29, 35, 0.12);
}

/* Review Cards */
.review-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.review-card {
    background: var(--surface);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(227, 231, 232, 0.8);
    box-shadow: var(--shadow-sm);
    width: 100%;
}

.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(4, 130, 136, 0.12);
    color: var(--brand-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    font-family: 'Fraunces', 'Georgia', serif;
}

.reviewer-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.reviewer-name {
    font-weight: 700;
    color: var(--ink);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    line-height: 1.2;
}

.reviewer-badge {
    background: rgba(4, 130, 136, 0.12);
    color: var(--brand-dark);
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 600;
    white-space: nowrap;
}

.reviewer-badge.is-trusted {
    background: rgba(34, 197, 94, 0.14);
    color: #166534;
}

.reviewer-subtitle {
    color: var(--muted);
    font-size: 0.8rem;
}

.review-stars {
    color: var(--accent-gold);
    font-size: 0.95rem;
    white-space: nowrap;
}

.review-body {
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 12px 0 0;
}

.review-footer {
    margin-top: 14px;
    border-top: 1px solid var(--border);
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--muted);
}

.review-helpful {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
}

.review-helpful i {
    color: var(--brand);
}

.review-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.doctor-response {
    margin-top: 14px;
    padding: 12px;
    background: var(--surface-alt);
    border-radius: 12px;
    border: 1px solid var(--border);
}

/* Footer */
footer {
    margin-top: 60px;
    background: #202a30 !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.12);
}

/* Loading States */
.loading-spinner {
    text-align: center;
    padding: 40px;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Subtle Page Reveal */
.card,
.doctor-card,
.search-container,
.profile-header,
.table,
.alert {
    animation: fadeUp 0.6s ease both;
}

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

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .search-container {
        padding: 22px;
    }

    .hero-card {
        padding: 24px;
        border-radius: 18px;
    }

    .trust-strip {
        justify-content: center;
        gap: 8px;
    }

    .trust-item {
        width: auto;
        flex: 0 1 auto;
        white-space: nowrap;
        justify-content: center;
        text-align: center;
        font-size: 0.75rem;
        padding: 8px 12px;
    }

    .trust-item i {
        font-size: 0.7rem;
    }

.doctor-card {
    margin-bottom: 15px;
}

    .review-masonry {
        grid-template-columns: 1fr;
    }

.doctor-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.doctor-chips .chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    background: rgba(4, 130, 136, 0.08);
    color: var(--ink);
}

.doctor-chips .chip i {
    color: var(--brand);
}

.doctor-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 6px;
}

.doctor-location i {
    color: var(--brand);
}

.clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

    .profile-header {
        padding: 22px;
        text-align: center;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
    }

    .profile-banner {
        height: 80px;
    }

    .profile-avatar-circle {
        width: 72px;
        height: 72px;
        font-size: 1.5rem;
        bottom: -36px;
    }

    .profile-card .card-body {
        padding-top: 48px;
    }

    .activity-item {
        align-items: flex-start;
    }

    .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .table {
        font-size: 0.9rem;
    }

    .hero-surface,
    .cta-surface,
    .highlight-surface,
    .promo-surface {
        border-radius: 12px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 2px solid rgba(47, 111, 109, 0.6);
    outline-offset: 2px;
}

/* ============================================
   NEW DOCTOR CARD V2 STYLES
   ============================================ */

/* --- CARD CONTAINER --- */
.ranksewa-card-v2 {
    background: #ffffff !important;
    width: 100%;
    border-radius: 16px;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04) !important;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.25s ease;
    overflow: hidden;
    display: flex !important;
    flex-direction: column !important;
    position: relative;
    cursor: pointer;
}

/* HOVER EFFECT: Smooth lift */
.ranksewa-card-v2:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12) !important;
    border-color: #cbd5e1;
}

/* --- HEADER SECTION --- */
.card-header-v2 {
    background: linear-gradient(to bottom, #ffffff 0%, #fcfcfc 100%);
    padding: 20px 20px 14px 20px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Avatar & Halo */
.avatar-wrapper-v2 {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    margin-bottom: 14px;
}

.avatar-halo {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid rgba(0, 0, 0, 0.05);
    border-radius: 50%;
}

.doctor-avatar-v2 {
    width: 100px !important;
    height: 100px !important;
    max-width: 100px !important;
    max-height: 100px !important;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Verified Badge (Floating) */
.badge-verified-v2 {
    position: absolute;
    bottom: 4px;
    right: 0px;
    background: #0d9488;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 2px 6px rgba(13, 148, 136, 0.4);
    border: 2px solid white;
}

/* Name */
.doctor-name-v2 {
    font-family: 'Fraunces', 'Georgia', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

/* Rating Pill */
.rating-pill-v2 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--surface-alt);
    padding: 6px 14px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--muted);
}

.rating-stack-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.stars-v2 {
    color: #f59e0b;
    font-size: 0.7rem;
    display: inline-flex;
    gap: 1px;
}

.stars-v2 i {
    font-size: 0.65rem;
}

.stars-v2 .far {
    color: #d1d5db;
}

.rating-score-v2 {
    color: var(--ink);
    font-weight: 700;
    margin-left: 4px;
}

.rating-count-v2 {
    color: #94a3b8;
}

/* --- BODY SECTION --- */
.card-body-v2 {
    padding: 14px 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--surface);
    flex-grow: 1;
}

/* Detail Grid (2 Columns) */
.detail-grid-v2 {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px;
}

.detail-pill-v2 {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 2px;
    background: #f8fafc !important;
    padding: 10px 8px;
    border-radius: 10px;
    font-size: 0.82rem;
    color: #1e293b;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}

.ranksewa-card-v2:hover .detail-pill-v2 {
    background: #ffffff !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.detail-icon-v2 {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1px;
}

.detail-label-v2 {
    font-size: 0.65rem;
    color: #94a3b8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.detail-value-v2 {
    font-weight: 600;
    font-size: 0.8rem;
    line-height: 1.2;
    word-break: break-word;
}

/* --- FOOTER SECTION --- */
.card-footer-v2 {
    border-top: 1px solid #f1f5f9;
    padding: 14px 20px;
    text-align: center;
    background: #ffffff;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}


/* View Profile Button - Outline style */
.btn-view-v2 {
    background: transparent !important;
    color: #0d9488 !important;
    text-decoration: none !important;
    padding: 10px 24px !important;
    border-radius: 8px !important;
    font-family: 'Source Sans 3', 'Plus Jakarta Sans', sans-serif;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.2px;
    box-shadow: none !important;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    border: 2px solid #0d9488 !important;
    cursor: pointer;
}

.btn-view-v2:hover {
    background: #0d9488 !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.btn-view-v2:active {
    background: #0f766e !important;
    border-color: #0f766e !important;
}

.btn-view-v2 i {
    font-size: 0.8rem;
    transition: transform 0.15s ease;
}

.btn-view-v2:hover i {
    transform: translateX(3px);
}

.btn-claim-v2 {
    background: #f8fafc !important;
    color: #0d9488 !important;
    text-decoration: none !important;
    padding: 10px 18px !important;
    border-radius: 8px !important;
    font-family: 'Source Sans 3', 'Plus Jakarta Sans', sans-serif;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.2px;
    box-shadow: none !important;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    border: 1px solid #cbd5e1 !important;
    cursor: pointer;
}

.btn-claim-v2:hover {
    background: #0d9488 !important;
    color: #ffffff !important;
    border-color: #0d9488 !important;
    text-decoration: none !important;
}

/* Featured Variant */
.ranksewa-card-v2.featured {
    border-left: 4px solid var(--accent-gold);
}

.ranksewa-card-v2.featured .rating-pill-v2 {
    background: #fffbeb;
    color: #92400e;
}

/* Featured Badge - integrated style like verified */
.badge-featured-v2 {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    color: #b8860b;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 0;
}

.badge-featured-v2::before {
    content: "★";
    font-size: 0.75rem;
}

/* Description text with fade-out */
.description-v2 {
    margin: 12px 0 0 0;
    padding: 0;
    background: transparent;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #475569;
    max-height: 4.5em; /* 3 lines × 1.5 line-height */
    min-height: 4.5em;
    overflow: hidden;
    position: relative;
}

.description-v2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1.8em;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 90%);
    pointer-events: none;
}

/* No rating state */
.rating-pill-v2.no-rating {
    background: var(--surface-alt);
    color: var(--muted);
}

.rating-pill-v2.no-rating .stars-v2 {
    color: #cbd5e1;
}

/* Admin edit button in footer */
.card-footer-v2 .btn-admin-edit {
    margin-left: 8px;
}

/* Responsive adjustments for v2 cards */
@media (max-width: 768px) {
    .ranksewa-card-v2 {
        border-radius: 12px;
    }

    .card-header-v2 {
        padding: 16px 14px 12px 14px;
    }

    .avatar-wrapper-v2 {
        position: relative !important;
        width: 82px;
        height: 82px;
        margin-bottom: 10px;
    }

    .doctor-avatar-v2 {
        width: 82px !important;
        height: 82px !important;
        max-width: 82px !important;
        max-height: 82px !important;
        border-width: 2px;
    }

    .avatar-halo {
        top: -3px;
        left: -3px;
        right: -3px;
        bottom: -3px;
    }

    .badge-verified-v2 {
        width: 22px;
        height: 22px;
        font-size: 11px;
        bottom: 0px !important;
        right: 0px !important;
        position: absolute !important;
    }

    .doctor-name-v2 {
        font-size: 1.1rem;
        margin-bottom: 6px;
    }

    .rating-pill-v2 {
        padding: 4px 10px;
        font-size: 0.8rem;
    }

    .badge-featured-v2 {
        font-size: 0.65rem;
        margin-top: 4px;
    }

    .card-body-v2 {
        padding: 12px 14px 14px;
        gap: 6px;
    }

    .detail-grid-v2 {
        gap: 6px;
    }

    .detail-pill-v2 {
        padding: 8px 6px;
        border-radius: 8px;
    }

    .detail-icon-v2 {
        font-size: 0.8rem;
    }

    .detail-label-v2 {
        font-size: 0.6rem;
    }

    .detail-value-v2 {
        font-size: 0.75rem;
    }

    .description-v2 {
        font-size: 0.88rem;
        margin-top: 8px;
        -webkit-line-clamp: 3;
        max-height: 4.2em;
        min-height: 4.2em;
    }

    .card-footer-v2 {
        padding: 12px 14px;
    }

    .btn-view-v2 {
        padding: 10px 20px;
        font-size: 0.85rem;
        width: 100%;
        justify-content: center;
    }

    .btn-claim-v2 {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .detail-grid-v2 {
        grid-template-columns: 1fr;
    }

    .card-header-v2 {
        padding: 18px 16px 14px 16px;
    }

    .avatar-wrapper-v2 {
        width: 92px;
        height: 92px;
        margin-bottom: 12px;
    }

    .doctor-avatar-v2 {
        width: 92px !important;
        height: 92px !important;
        max-width: 92px !important;
        max-height: 92px !important;
    }

    .doctor-name-v2 {
        font-size: 1.15rem;
    }

    .rating-pill-v2 {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    .detail-label-v2 {
        font-size: 0.62rem;
    }

    .detail-value-v2 {
        font-size: 0.82rem;
    }

    .description-v2 {
        font-size: 0.85rem;
    }

    .btn-view-v2 {
        font-size: 0.9rem;
    }
}

/* Extra small screens (small phones) */
@media (max-width: 400px) {
    .card-header-v2 {
        padding: 14px 12px 10px 12px;
    }

    .avatar-wrapper-v2 {
        width: 80px;
        height: 80px;
        margin-bottom: 8px;
    }

    .doctor-avatar-v2 {
        width: 80px !important;
        height: 80px !important;
        max-width: 80px !important;
        max-height: 80px !important;
    }

    .doctor-name-v2 {
        font-size: 1.05rem;
    }

    .card-body-v2 {
        padding: 10px 12px 12px;
    }

    .detail-pill-v2 {
        padding: 6px 4px;
    }

    .detail-icon-v2 {
        font-size: 0.75rem;
    }

    .detail-label-v2 {
        font-size: 0.55rem;
    }

    .detail-value-v2 {
        font-size: 0.7rem;
    }

    .description-v2 {
        -webkit-line-clamp: 2;
        max-height: 2.8em;
        min-height: 2.8em;
    }

    .card-footer-v2 {
        padding: 10px 12px;
    }

    .btn-view-v2 {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}
