/* ==========================================================
   Dr. Vinod Javeri - Senior Urology & Andrology Consultant
   Clean, Realistic & Responsive Medical Website Stylesheet
   ========================================================== */

/* 1. Global Reset & Variables */
:root {
    --primary: #0f52ba;          /* Sapphire / Medical Blue */
    --primary-dark: #0a367c;     /* Deep Navy */
    --primary-light: #e8f1fc;    /* Soft Tint */
    --accent: #0ea5e9;           /* Sky Blue Accent */
    --success: #10b981;          /* Health Green */
    --text-main: #1e293b;        /* Slate 800 */
    --text-muted: #64748b;       /* Slate 500 */
    --bg-page: #ffffff;
    --bg-light: #f8fafc;         /* Clean background */
    --border-color: #e2e8f0;
    --card-shadow: 0 4px 20px -2px rgba(15, 82, 186, 0.08);
    --card-hover: 0 12px 28px -4px rgba(15, 82, 186, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --nav-height: 76px;
    --topbar-height: 40px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: var(--bg-page);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

/* Prevent horizontal scrollbar on mobile */
html, body {
    overflow-x: hidden;
    width: 100%;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}

ul {
    list-style: none;
}

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

.bg-light {
    background-color: var(--bg-light);
}

.section-padding {
    padding: 85px 0;
}

/* 2. Typography & Section Headers */
.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 50px auto;
}

.section-header.align-left {
    text-align: left;
    margin-left: 0;
}

.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-light);
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: clamp(26px, 3.5vw, 36px);
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.25;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-muted);
}

/* 3. Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
}

.btn-large {
    padding: 13px 26px;
    font-size: 16px;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(15, 82, 186, 0.28);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15, 82, 186, 0.35);
}

.btn-outline {
    background: #ffffff;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.btn-whatsapp {
    background: #25d366;
    color: #ffffff !important;
    border: 1px solid #20ba5a;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.28);
}

.btn-whatsapp:hover {
    background: #1da851;
    border-color: #1a9648;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}

.btn-block {
    width: 100%;
}

.btn-svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    flex-shrink: 0;
    vertical-align: middle;
}

/* 4. Top Announcement Bar */
.top-bar {
    background-color: #0b1a2d;
    color: #cbd5e1;
    font-size: 13px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-info-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: #e2e8f0;
}

.loc-short, .badge-text-short {
    display: none;
}

.top-bar-right a, .top-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #f1f5f9;
    font-size: 13px;
    font-weight: 500;
}

.top-bar-right a:hover, .top-link:hover {
    color: #38bdf8;
}

.top-svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    flex-shrink: 0;
    vertical-align: middle;
}

.top-bar .divider {
    opacity: 0.35;
    color: #64748b;
}

/* 5. Sticky Header & Navigation */
header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    z-index: 1000;
    transition: box-shadow 0.25s ease;
    border-bottom: 1px solid #e2e8f0;
}

header.scrolled {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #eff6ff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.doctor-title {
    font-size: 18.5px;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.2;
    white-space: nowrap;
}

.doctor-subtitle {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Navigation Links - Single line, no wrapping */
.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-main);
    padding: 6px 0;
    position: relative;
    white-space: nowrap;
    transition: color 0.2s ease;
}

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

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2.5px;
    background: var(--primary);
    border-radius: 2px;
}

.header-cta {
    white-space: nowrap;
    padding: 10px 20px;
    font-size: 14.5px;
    font-weight: 700;
    flex-shrink: 0;
}

.mobile-only-cta {
    display: none;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--primary-dark);
    transition: 0.3s ease;
}

/* 6. Hero Section (Clean, Static, Dignified & Highly Readable) */
.hero-section {
    padding: 55px 0 65px 0;
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

.hero-affiliation-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--primary);
    background: #eff6ff;
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 16px;
    border: 1px solid #dbeafe;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--success);
    display: inline-block;
    flex-shrink: 0;
}

.hero-doctor-name {
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.15;
    margin-bottom: 6px;
}

.hero-qualifications {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.hero-role-desc {
    font-size: 16px;
    color: #334155;
    line-height: 1.75;
    margin-bottom: 24px;
}

.hero-highlights-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.hl-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14.5px;
    color: #1e293b;
}

.hl-check {
    width: 22px;
    height: 22px;
    background: #dcfce7;
    color: #15803d;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hl-check svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    display: block;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Static Doctor Profile Card (Hospital Standard) */
.hero-media {
    display: flex;
    justify-content: center;
}

.doctor-profile-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(15, 82, 186, 0.08);
    overflow: hidden;
    max-width: 480px;
    width: 100%;
}

.card-hospital-header {
    background: linear-gradient(135deg, #0a367c 0%, #0f52ba 100%);
    color: #ffffff;
    padding: 10px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hospital-seal {
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.8px;
}

.hospital-sub {
    font-size: 10px;
    font-weight: 600;
    opacity: 0.85;
    letter-spacing: 0.5px;
}

.doctor-photo-box {
    background: #d3effe;
    width: 100%;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: hidden;
}

.doctor-photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    display: block;
}

.doctor-card-details {
    padding: 20px;
    text-align: center;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.doctor-card-details h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.doctor-card-qual {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 3px;
}

.doctor-card-dept {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.doctor-schedule-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    text-align: center;
}

.schedule-label {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.schedule-time {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 2px;
}

.schedule-venue {
    font-size: 12px;
    color: #475569;
}

/* 7. Trust Highlights Bar */
.highlights-section {
    background: #ffffff;
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.highlight-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.highlight-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary);
    display: block;
}

.highlight-item h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.highlight-item p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* 8. About The Doctor */
.about-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 50px;
    align-items: center;
}

.about-text {
    font-size: 16px;
    color: var(--text-main);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-philosophy {
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    background: #ffffff;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-top: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.about-philosophy blockquote {
    font-style: italic;
    font-size: 15px;
    color: var(--primary-dark);
    font-weight: 600;
}

.credentials-card {
    background: #ffffff;
    padding: 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.credentials-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.credentials-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 25px;
}

.credentials-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.check-icon {
    width: 22px;
    height: 22px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.check-icon svg {
    width: 13px;
    height: 13px;
    stroke: var(--primary);
    display: block;
}

.credentials-list li strong {
    display: block;
    font-size: 15px;
    color: var(--text-main);
}

.credentials-list li span {
    font-size: 13px;
    color: var(--text-muted);
}

.credential-box-action {
    margin-top: 20px;
}

/* ==========================================================
   8b. Interactive Credentials Tabs: Education, Experience & Awards
   ========================================================== */
.credentials-section {
    background-color: #ffffff;
}

.tabs-container {
    max-width: 1040px;
    margin: 0 auto;
}

/* Styled Segmented Tab Bar (Mirroring User Screenshot Layout with Modern Polish) */
.tabs-nav-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 40px;
    border: 1.5px solid #e2e8f0;
    margin: 0 auto 40px auto;
    width: 100%;
    max-width: 720px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
    gap: 6px;
}

.tab-pill-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 30px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.tab-pill-btn:hover {
    color: var(--primary-dark);
}

.tab-pill-btn.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(15, 82, 186, 0.3);
}

.tab-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tab-btn-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    display: block;
}

/* Tab Panels Content */
.tab-panel {
    display: none;
    animation: fadeInTab 0.35s ease forwards;
}

.tab-panel.active {
    display: block;
}

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

.tab-panel-intro {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 36px auto;
}

.tab-panel-intro h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.tab-panel-intro p {
    font-size: 15px;
    color: var(--text-muted);
}

/* TAB 1: Education Cards */
.education-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 36px;
}

.edu-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    position: relative;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.edu-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-hover);
    border-color: #cbd5e1;
}

.edu-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-light);
    padding: 3px 10px;
    border-radius: 20px;
}

.edu-icon-svg {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    flex-shrink: 0;
}

.edu-icon-svg svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
    display: block;
}

.edu-card h4 {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 6px;
}

.edu-degree-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 14px;
    display: block;
}

.edu-card p {
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.6;
    margin-top: auto;
}

.edu-trust-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 10px;
}

.trust-badge-pill {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2px;
}

.trust-badge-pill span {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--primary-dark);
}

.trust-badge-pill small {
    font-size: 12px;
    color: var(--text-muted);
}

/* TAB 2: Experience & Specialties */
.experience-quote-card {
    background: linear-gradient(135deg, #f8fafc 0%, #edf4fc 100%);
    border-left: 5px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 28px 32px;
    margin-bottom: 36px;
    box-shadow: 0 4px 16px rgba(15, 82, 186, 0.05);
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.exp-quote-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.exp-quote-icon svg {
    width: 32px;
    height: 32px;
    fill: var(--primary);
    opacity: 0.6;
    display: block;
}

.sub-section-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 22px;
    text-align: center;
}

.experience-pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.pillar-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--card-shadow);
    transition: all 0.25s ease;
}

.pillar-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.pillar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.pillar-icon-svg {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--primary-light);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pillar-icon-svg svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    display: block;
}

.pillar-header h5 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-dark);
}

.pillar-card ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pillar-card li {
    font-size: 13.5px;
    color: var(--text-muted);
    position: relative;
    padding-left: 16px;
    line-height: 1.5;
}

.pillar-card li::before {
    content: '•';
    color: var(--primary);
    position: absolute;
    left: 2px;
    font-size: 16px;
    line-height: 1;
}

/* TAB 3: Awards & Residencies Timeline */
.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 860px;
    margin: 0 auto 36px auto;
}

.timeline-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.timeline-marker {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-light);
    border: 2px solid #ffffff;
    box-shadow: 0 4px 10px rgba(15, 82, 186, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.geo-badge {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--primary);
}

.timeline-card {
    flex: 1;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    box-shadow: var(--card-shadow);
    transition: all 0.25s ease;
}

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

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.residency-type {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.country-badge {
    font-size: 12px;
    font-weight: 700;
    background: #f1f5f9;
    padding: 3px 10px;
    border-radius: 20px;
    color: var(--text-main);
}

.timeline-card h4 {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.institution-name {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
}

.timeline-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.international-training-badge {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 860px;
    margin: 0 auto;
}

.badge-star-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid #bfdbfe;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.badge-star-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    display: block;
}

.international-training-badge strong {
    font-size: 15px;
    color: var(--primary-dark);
    display: block;
    margin-bottom: 2px;
}

.international-training-badge p {
    font-size: 13.5px;
    color: var(--text-main);
    margin: 0;
}

/* 9. Specialities & Services */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover);
    border-color: #cbd5e1;
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.service-icon-svg {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-icon-svg svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    display: block;
}

.service-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 20px;
}

.service-card h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 12px;
    line-height: 1.35;
}

.service-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 18px;
}

.service-points {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px dashed var(--border-color);
}

.service-points li {
    font-size: 13px;
    color: var(--text-main);
    font-weight: 500;
    margin-bottom: 6px;
    position: relative;
    padding-left: 16px;
}

.service-points li::before {
    content: '•';
    color: var(--primary);
    position: absolute;
    left: 2px;
    font-size: 16px;
    line-height: 1;
}

/* 10. OPD Schedule & Clinic Timings */
.timing-card-wrapper {
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
}

.timing-hospital-info {
    padding: 36px;
    background: linear-gradient(135deg, #0a367c 0%, #0f52ba 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hospital-badge {
    display: inline-block;
    align-self: flex-start;
    font-size: 12px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.18);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.timing-hospital-info h3 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px;
}

.hospital-address {
    font-size: 14px;
    color: #e2e8f0;
    margin-bottom: 20px;
    line-height: 1.6;
}

.hospital-contact-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
}

.inline-svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    vertical-align: -2.5px;
    display: inline-block;
    margin-right: 6px;
    flex-shrink: 0;
}

.schedule-table-box {
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.schedule-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    gap: 12px;
}

.schedule-row .day {
    font-weight: 700;
    font-size: 14px;
    color: var(--primary-dark);
    min-width: 130px;
}

.schedule-row .timing {
    font-size: 14px;
    color: var(--text-main);
    flex: 1;
}

.schedule-row .status {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.schedule-row .status.available {
    background: #dcfce7;
    color: #15803d;
}

.schedule-row .status.surgery {
    background: #e0e7ff;
    color: #3730a3;
}

.schedule-row .status.emergency {
    background: #fef3c7;
    color: #b45309;
}

.schedule-row.highlight-slot {
    background: #f0f7ff;
    border: 1.5px solid #bae6fd;
    box-shadow: 0 2px 8px rgba(15, 82, 186, 0.06);
}

.schedule-row.highlight-slot .day {
    color: var(--primary);
    font-size: 15px;
}

.schedule-row.highlight-slot .timing strong {
    color: var(--primary-dark);
    font-size: 15px;
}

.timing-notice-card {
    margin-top: 28px;
    background: #f0f7ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-sm);
    padding: 18px 22px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.notice-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(15, 82, 186, 0.1);
}

.notice-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    display: block;
}

.notice-text {
    font-size: 13.5px;
    line-height: 1.6;
    color: #1e3a8a;
}

.notice-text strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--primary-dark);
}

/* 11. Patient Testimonials */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.review-card {
    background: #ffffff;
    padding: 28px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
}

.review-stars {
    color: #f59e0b;
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.review-text {
    font-size: 14.5px;
    color: var(--text-main);
    line-height: 1.65;
    margin-bottom: 20px;
    flex: 1;
}

.reviewer-meta strong {
    display: block;
    font-size: 15px;
    color: var(--primary-dark);
}

.reviewer-meta small {
    font-size: 12px;
    color: var(--text-muted);
}

/* 12. Appointment Section */
.appointment-layout {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 36px;
    align-items: start;
}

.appointment-form-box {
    background: #ffffff;
    padding: 36px;
    border-radius: var(--radius-md);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.form-feedback {
    margin-bottom: 20px;
    padding: 16px;
    border-radius: var(--radius-sm);
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-size: 14px;
    line-height: 1.6;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    color: var(--text-main);
    background-color: var(--bg-light);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 82, 186, 0.15);
    background-color: #ffffff;
}

.appointment-sidebar {
    position: sticky;
    top: 100px;
}

.direct-call-card {
    background: #ffffff;
    padding: 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    text-align: center;
}

.urgent-icon-svg {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px auto;
}

.urgent-icon-svg svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
    display: block;
}

.direct-call-card h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.direct-call-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.divider-text {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    margin: 14px 0;
}

.clinic-location-note {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-muted);
    text-align: left;
}

.opd-timing-text {
    display: inline-block;
    margin-top: 4px;
    color: var(--primary);
    font-weight: 700;
}

/* 13. FAQ Accordion */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item.active {
    border-color: var(--primary);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 18px 22px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.faq-icon {
    font-size: 22px;
    font-weight: 300;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.3s ease;
    padding: 0 22px;
}

.faq-item.active .faq-answer {
    max-height: 250px;
    padding: 0 22px 18px 22px;
}

.faq-answer p {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* 14. Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.contact-box {
    background: #ffffff;
    padding: 30px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    text-align: center;
}

.contact-icon-svg {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
}

.contact-icon-svg svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
    display: block;
}

.contact-box h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.contact-box p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.contact-box a {
    color: var(--primary);
    font-weight: 600;
}

.contact-box a:hover {
    text-decoration: underline;
}

/* 15. Footer */
footer {
    background-color: #0b1a2d;
    color: #e2e8f0;
    padding: 60px 0 30px 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
}

.footer-qual {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.6;
}

.footer-links h4,
.footer-disclaimer h4 {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 14px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    font-size: 14px;
    color: #cbd5e1;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-disclaimer p {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.6;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

/* 15. Floating WhatsApp Button (Desktop & Tablet) */
.floating-whatsapp {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #25d366;
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 20px 12px 16px;
    border-radius: 50px;
    box-shadow: 0 6px 22px rgba(37, 211, 102, 0.4);
    z-index: 999;
    text-decoration: none;
    font-weight: 600;
    font-size: 14.5px;
    transition: all 0.25s ease;
}

.floating-whatsapp:hover {
    background: #1da851;
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 26px rgba(37, 211, 102, 0.55);
}

.floating-wa-svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    flex-shrink: 0;
}

/* 16. Mobile Floating Action Bar */
.mobile-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #ffffff;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.12);
    z-index: 1050;
    padding: 8px 10px;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    box-sizing: border-box;
}

.mobile-bar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    padding: 0 6px;
    box-sizing: border-box;
}

.mobile-bar-btn.call-btn {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.mobile-bar-btn.wa-btn {
    background: #25d366;
    color: #ffffff;
}

.mobile-bar-btn.wa-btn:hover {
    background: #1da851;
}

.mobile-bar-btn.book-btn {
    background: var(--primary);
    color: #ffffff;
}

/* ==========================================================
   Responsive Media Queries (Mobile, Tablet, Desktop)
   ========================================================== */

/* Tablet & Smaller Laptops (<= 992px) */
@media (max-width: 992px) {
    .header-cta {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        padding: 24px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        border-top: 1px solid var(--border-color);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.3s ease;
        visibility: hidden;
        gap: 16px;
    }

    .nav-links.active {
        max-height: 520px;
        opacity: 1;
        visibility: visible;
    }

    .mobile-only-cta {
        display: block;
        width: 100%;
        margin-top: 8px;
    }

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

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        width: 100%;
        max-width: 480px;
    }

    .hero-actions {
        justify-content: center;
    }

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

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

    .education-cards-grid {
        grid-template-columns: 1fr;
    }

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

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

    .timing-card-wrapper {
        grid-template-columns: 1fr;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .appointment-layout {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Mobile Devices (<= 768px) */
@media (max-width: 768px) {
    body {
        padding-bottom: 64px; /* Space for mobile sticky action bar */
    }

    .navbar-container {
        height: 68px;
        gap: 10px;
    }

    .logo {
        min-width: 0;
        flex: 1;
        overflow: hidden;
        gap: 10px;
    }

    .logo-icon {
        width: 38px;
        height: 38px;
        flex-shrink: 0;
    }

    .logo-text {
        min-width: 0;
        overflow: hidden;
    }

    .doctor-title {
        font-size: 16px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .doctor-subtitle {
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-toggle {
        flex-shrink: 0;
    }

    .floating-whatsapp {
        display: none !important;
    }

    .mobile-sticky-bar {
        display: grid;
        padding: 7px 8px;
        gap: 6px;
        grid-template-columns: repeat(3, 1fr);
    }

    .mobile-bar-btn {
        font-size: 12px;
        padding: 0 4px;
        white-space: nowrap;
        gap: 5px;
    }

    .mobile-bar-btn svg {
        flex-shrink: 0;
        width: 15px;
        height: 15px;
    }

    .mobile-bar-btn span {
        white-space: nowrap;
    }

    .top-bar {
        font-size: 11px;
        padding: 6px 0;
    }

    .top-bar-content {
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .top-bar-left {
        min-width: 0;
        flex: 1;
        overflow: hidden;
    }

    .top-bar-left .divider,
    .top-bar-left span:last-child,
    .top-bar-right .divider,
    .top-bar-right a[href^="mailto:"],
    .top-bar-right .top-whatsapp-link {
        display: none; /* Keep top bar clean and single-line on small phones */
    }

    .loc-full, .badge-text-full {
        display: none !important;
    }

    .loc-short, .badge-text-short {
        display: inline !important;
    }

    .top-bar-left .top-info-item {
        font-size: 11px;
        white-space: nowrap;
    }

    .top-bar-right {
        flex-shrink: 0;
    }

    .top-bar-right .top-link {
        font-size: 11px;
        white-space: nowrap;
    }

    .hero-section {
        padding: 35px 0 45px 0;
    }

    .hero-affiliation-badge {
        font-size: 11.5px;
        padding: 6px 14px;
        line-height: 1.4;
        text-align: center;
        max-width: 100%;
        box-sizing: border-box;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .hero-affiliation-badge .badge-dot {
        vertical-align: middle;
        margin-right: 4px;
        flex-shrink: 0;
    }

    .hero-doctor-name {
        font-size: 32px;
    }

    .hero-highlights-card {
        padding: 14px 16px;
        width: 100%;
        box-sizing: border-box;
    }

    .hl-row {
        font-size: 13.5px;
        text-align: left;
    }

    .hl-row span:last-child {
        flex: 1;
        min-width: 0;
    }

    .doctor-profile-card {
        max-width: 480px;
        margin: 0 auto;
    }

    .doctor-photo-box {
        height: 320px;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    /* Mobile Tabs Navigation */
    .tabs-nav-bar {
        flex-direction: column;
        border-radius: var(--radius-md);
        padding: 6px;
        gap: 6px;
    }

    .tab-pill-btn {
        width: 100%;
        border-radius: var(--radius-sm);
        padding: 10px 16px;
        font-size: 14px;
    }

    .experience-quote-card {
        flex-direction: column;
        gap: 10px;
        padding: 20px;
    }

    .experience-pillars-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        flex-direction: column;
        gap: 12px;
    }

    .timeline-marker {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .timeline-card {
        padding: 20px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

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

    .schedule-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .schedule-row .day {
        min-width: auto;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Very Small Screens (<= 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

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

    .doctor-subtitle {
        font-size: 11px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .appointment-form-box {
        padding: 22px 16px;
    }

    .timing-hospital-info, 
    .schedule-table-box {
        padding: 24px 18px;
    }
}
