/* CSS Design System for Dr. Mohammad Esmail Aramesh Boroujeni Website */
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

@font-face {
    font-family: 'Kalameh';
    src: url('../KalamehWeb-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Color Palette - Light Theme */
    --bg-primary: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-hover: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --primary: #006699;
    --primary-light: #0284c7;
    --primary-dark: #0369a1;
    --accent: #0d9488;
    --accent-light: #14b8a6;
    --danger: #e11d48;
    --border-color: #e2e8f0;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(0, 102, 153, 0.12);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 102, 153, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 102, 153, 0.12);
    --shadow-glow: 0 0 25px rgba(13, 148, 136, 0.3);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    /* Color Palette - Dark Theme */
    --bg-primary: #0b1120;
    --bg-surface: #1e293b;
    --bg-card: rgba(30, 41, 59, 0.8);
    --bg-card-hover: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --primary: #38bdf8;
    --primary-light: #0284c7;
    --primary-dark: #0369a1;
    --accent: #2dd4bf;
    --accent-light: #5eead4;
    --danger: #f43f5e;
    --border-color: #334155;
    --glass-bg: rgba(30, 41, 59, 0.75);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 30px rgba(45, 212, 191, 0.25);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Vazirmatn', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.8;
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .brand-title, .hero-title, .section-title, .service-title, .article-card-title, .article-detail-title, .diag-tab-btn {
    font-family: 'Kalameh', 'Vazirmatn', system-ui, -apple-system, sans-serif;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.4;
}

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

ul {
    list-style: none;
}

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

/* Motion & Keyframes */
@keyframes pulseHeartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.1); }
    28% { transform: scale(1); }
    42% { transform: scale(1.15); }
    70% { transform: scale(1); }
}

@keyframes floatElement {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 15px rgba(13, 148, 136, 0.2); }
    50% { box-shadow: 0 0 30px rgba(13, 148, 136, 0.5); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Header & Navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

.brand-text {
    white-space: nowrap;
    display: flex;
    flex-direction: column;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    box-shadow: var(--shadow-sm);
    animation: pulseHeartbeat 3s infinite;
    flex-shrink: 0;
}

.brand-title {
    font-size: 1.05rem;
    font-weight: 700;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-title-desktop {
    display: inline;
}

.brand-title-mobile {
    display: none;
}

.brand-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    white-space: nowrap;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 6px 0;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: var(--transition);
    border-radius: 2px;
}

[dir="ltr"] .nav-link::after {
    right: auto;
    left: 0;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-icon-toggle {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
}

.btn-icon-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-appoint-nav {
    background: linear-gradient(135deg, #e11d48, #be123c);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35);
    animation: glowPulse 3s infinite;
}

.btn-appoint-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.5);
    color: #ffffff;
}

.hero-btn-appoint {
    padding: 14px 28px;
    font-size: 1rem;
}

/* Navigation Overlay Backdrop */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

.nav-appoint-desktop {
    display: inline-flex;
}

/* Mobile Toggle */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

.nav-menu-mobile-appoint {
    display: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), #0f766e);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(13, 148, 136, 0.3);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(13, 148, 136, 0.4);
}

/* Hero Section */
.hero-section {
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero-bg-blobs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.blob-1 {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(0, 102, 153, 0.15), transparent 70%);
    filter: blur(50px);
}

.blob-2 {
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.15), transparent 70%);
    filter: blur(50px);
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(13, 148, 136, 0.1);
    border: 1px solid rgba(13, 148, 136, 0.3);
    color: var(--accent);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 900;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-quick-info {
    display: flex;
    gap: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

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

.info-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
}

.info-text strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.info-text span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Hero Portrait Frame */
.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.portrait-frame {
    position: relative;
    width: 100%;
    max-width: 420px;
    border-radius: 30px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(0,102,153,0.3), rgba(13,148,136,0.3));
    box-shadow: var(--shadow-lg);
    animation: floatElement 6s ease-in-out infinite;
}

.portrait-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: var(--shadow-md);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 16px 24px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 14px;
}

[dir="ltr"] .experience-badge {
    right: auto;
    left: -20px;
}

.exp-number {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--accent);
}

.exp-text {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Medical Cardiology Hero Slider Showcase */
.medical-slider-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    border-radius: 28px;
    padding: 14px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(13, 148, 136, 0.12);
    animation: floatElement 6s ease-in-out infinite;
    user-select: none;
    transition: var(--transition);
}

.medical-slider-card:hover {
    box-shadow: var(--shadow-lg), 0 0 35px rgba(13, 148, 136, 0.22);
}

/* Top ECG Status Header */
.slider-ecg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px 10px 8px;
}

.ecg-monitor-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-pulse-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: pulseGreen 1.8s infinite;
}

.ecg-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.2px;
}

.ecg-bpm-counter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(225, 29, 72, 0.1);
    border: 1px solid rgba(225, 29, 72, 0.25);
    color: var(--danger);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 800;
}

.heart-beat-anim {
    color: var(--danger);
    animation: heartBeat 1.2s ease-in-out infinite;
}

.bpm-num {
    font-weight: 900;
}

.bpm-unit {
    font-size: 0.68rem;
    opacity: 0.85;
}

/* Slider Viewport & Slides */
.slider-viewport {
    position: relative;
    width: 100%;
    height: 480px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: #0f172a;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.03);
    transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1), transform 0.65s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.65s;
    z-index: 1;
}

.slider-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 2;
}

.slide-img-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.12) 0%, rgba(15, 23, 42, 0.35) 45%, rgba(15, 23, 42, 0.92) 100%);
    pointer-events: none;
}

/* Slide Content Overlay */
.slide-content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 22px 20px 28px 20px;
    z-index: 3;
    color: #ffffff;
    pointer-events: none;
}

.slide-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(13, 148, 136, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    font-size: 0.74rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.slide-title {
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.45;
    margin-bottom: 10px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.slide-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.meta-pill {
    font-size: 0.74rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #f8fafc;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.meta-pill.highlight {
    background: rgba(56, 189, 248, 0.3);
    border-color: rgba(56, 189, 248, 0.55);
    color: #ffffff;
}

/* Slider Navigation Arrows */
.slider-arrow {
    position: absolute;
    top: 48%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.25s ease;
    font-size: 0.9rem;
}

.slider-arrow:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 0 15px rgba(13, 148, 136, 0.5);
}

.slider-arrow-prev {
    right: 12px;
}

.slider-arrow-next {
    left: 12px;
}

[dir="ltr"] .slider-arrow-prev {
    left: 12px;
    right: auto;
}

[dir="ltr"] .slider-arrow-next {
    right: 12px;
    left: auto;
}

[dir="ltr"] .slider-arrow-prev i,
[dir="ltr"] .slider-arrow-next i {
    transform: rotate(180deg);
}

/* Live animated ECG path overlay */
.slider-ecg-line-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 34px;
    pointer-events: none;
    z-index: 4;
    opacity: 0.85;
}

.ecg-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.ecg-path {
    fill: none;
    stroke: #2dd4bf;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 8px rgba(45, 212, 191, 0.9));
    stroke-dasharray: 450;
    stroke-dashoffset: 450;
    animation: ecgPulseDraw 3s linear infinite;
}

/* Bottom Controls & Dots */
.slider-footer-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding: 2px 6px;
}

.slider-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.slider-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--border-color);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.slider-dot.active {
    width: 26px;
    border-radius: 8px;
    background: var(--accent);
    box-shadow: 0 0 10px rgba(13, 148, 136, 0.5);
}

.slider-progress-bar {
    width: 110px;
    height: 4px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.slider-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 4px;
    transition: width 0.05s linear;
}

/* Trust Badge Overlay */
.slider-trust-badge {
    position: absolute;
    bottom: -22px;
    right: -15px;
    z-index: 6;
}

[dir="ltr"] .slider-trust-badge {
    right: auto;
    left: -15px;
}

/* Animations */
@keyframes pulseGreen {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% {
        transform: scale(1.18);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.26); }
    28% { transform: scale(1); }
    42% { transform: scale(1.18); }
    70% { transform: scale(1); }
}

@keyframes ecgPulseDraw {
    0% { stroke-dashoffset: 450; }
    100% { stroke-dashoffset: 0; }
}

/* Section Header */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-tag {
    display: inline-block;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.section-title {
    font-size: 2.1rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.section-description {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Bio Section */
.bio-section {
    padding: 80px 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.bio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.bio-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-sm);
}

.bio-education-list {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.edu-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.edu-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(0, 102, 153, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.edu-info h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.edu-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.traits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.trait-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: var(--transition);
}

.trait-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.trait-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 12px;
}

.trait-card h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.trait-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* Services Grid */
.services-section {
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: var(--transition);
}

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

.service-card:hover::before {
    opacity: 1;
}

.service-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(0, 102, 153, 0.1), rgba(13, 148, 136, 0.1));
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.service-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.service-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 102, 153, 0.08);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

/* Diagnostic Procedures Section */
.diagnostics-section {
    padding: 80px 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.diag-tabs-wrapper {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.diag-tab-btn {
    padding: 12px 24px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.diag-tab-btn.active, .diag-tab-btn:hover {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #ffffff;
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.diag-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.diag-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: var(--transition);
}

.diag-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.diag-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.diag-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(13, 148, 136, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

/* Articles Showcase */
.articles-section {
    padding: 80px 0;
}

.article-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex-grow: 1;
    max-width: 450px;
}

.search-input {
    width: 100%;
    padding: 14px 44px 14px 18px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

[dir="ltr"] .search-input {
    padding: 14px 18px 14px 44px;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 153, 0.15);
}

.search-icon {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
}

[dir="ltr"] .search-icon {
    right: auto;
    left: 16px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
}

.article-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.article-thumb {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #0f172a;
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-thumb img {
    transform: scale(1.06);
}

.category-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

[dir="ltr"] .category-badge {
    right: auto;
    left: 16px;
}

.article-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-date {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.5;
}

.article-card-summary {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.btn-read-link {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-read-link:hover {
    gap: 10px;
    color: var(--accent);
}

/* Accordion Tab UI */
.accordion-wrapper {
    margin: 32px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.accordion-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.accordion-header {
    width: 100%;
    padding: 18px 24px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Kalameh', 'Vazirmatn', system-ui, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    text-align: inherit;
    transition: var(--transition);
}

.accordion-header:hover {
    background: rgba(0, 102, 153, 0.04);
    color: var(--primary);
}

.accordion-icon {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
    color: var(--primary);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
    padding: 0 24px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.accordion-item.active .accordion-body {
    max-height: 1000px;
    padding: 0 24px 20px;
    transition: max-height 0.5s ease-in-out;
}

/* Single Article Detail Page */
.article-detail-header {
    padding: 60px 0 30px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
}

.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.article-detail-title {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.article-meta-info {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 0.88rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.article-main-body {
    padding: 60px 0;
}

.article-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.infographic-box {
    margin: 36px 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    background: #0f172a;
}

.infographic-box img {
    width: 100%;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.infographic-box img:hover {
    transform: scale(1.02);
}

.author-bio-box {
    margin-top: 50px;
    padding: 32px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 24px;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}

/* Contact & Booking Section */
.contact-section {
    padding: 80px 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-info-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.appointment-warning-box {
    background: rgba(225, 29, 72, 0.08);
    border: 1px solid rgba(225, 29, 72, 0.3);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-top: 28px;
}

.appointment-warning-box h4 {
    color: var(--danger);
    font-size: 0.95rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.appointment-warning-box p {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.map-container {
    height: 420px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Floating Action Bar */
.floating-action-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translate(-50%, 100px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 999;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    padding: 10px 24px;
    border-radius: 40px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, visibility 0.35s;
}

.floating-action-bar.visible {
    transform: translate(-50%, 0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Footer */
.site-footer {
    padding: 40px 0;
    background: #090e17;
    color: #94a3b8;
    border-top: 1px solid #1e293b;
    font-size: 0.88rem;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    /* Base Font Adjustment */
    html {
        font-size: 15.5px;
    }

    /* Layout Grids & Sections */
    .hero-grid, .bio-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .hero-title {
        font-size: 2rem;
    }
    .portrait-frame,
    .medical-slider-card {
        max-width: 380px;
        margin: 0 auto;
    }
    .slider-viewport {
        height: 420px;
    }

    /* Navbar Tablet/Mobile Setup */
    .brand-title-desktop {
        display: none;
    }
    .brand-title-mobile {
        display: inline;
    }
    .nav-brand {
        flex-shrink: 1;
        min-width: 0;
        gap: 10px;
    }
    .brand-title {
        font-size: 0.95rem;
        max-width: none;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .brand-subtitle {
        font-size: 0.72rem;
    }
    .brand-icon {
        width: 38px;
        height: 38px;
        font-size: 17px;
    }
    .nav-controls {
        gap: 8px;
        flex-shrink: 0;
    }
    .btn-icon-toggle {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }

    /* Hide header appointment button in nav-controls on mobile/tablet to prevent overflow */
    .nav-controls .btn-appoint-nav,
    .nav-appoint-desktop {
        display: none !important;
    }

    /* Mobile / Tablet Drawer Menu */
    .site-header {
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .navbar {
        position: relative;
    }

    .nav-menu {
        position: fixed;
        top: 66px;
        left: 0;
        right: 0;
        background: var(--bg-surface);
        flex-direction: column;
        padding: 20px 16px 28px;
        gap: 6px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
        border-bottom: 1px solid var(--border-color);
        z-index: 1000;
        
        /* Smooth Animated Drawer Transition */
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        overflow-y: auto;
        transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0.3s ease;
    }

    .nav-menu.active {
        display: flex;
        max-height: calc(100vh - 66px);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu .nav-link {
        display: block;
        padding: 12px 16px;
        border-radius: 12px;
        font-size: 1rem;
        font-weight: 600;
        color: var(--text-primary);
        transition: background-color 0.2s ease, color 0.2s ease;
    }

    .nav-menu .nav-link:hover, .nav-menu .nav-link.active {
        background: rgba(0, 102, 153, 0.08);
        color: var(--primary);
    }

    .nav-menu .nav-link::after {
        display: none;
    }

    .nav-menu-mobile-appoint {
        display: block;
        margin-top: 10px;
        padding-top: 14px;
        border-top: 1px solid var(--border-color);
        text-align: center;
    }

    .mobile-menu-appoint-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 0.95rem;
        border-radius: 14px;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 10px;
        background: var(--bg-surface);
        border: 1px solid var(--border-color);
        color: var(--text-primary);
        font-size: 1.05rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    body {
        padding-bottom: 65px;
    }

    .container {
        padding: 0 16px;
    }

    /* Header Container */
    .navbar {
        padding: 8px 0;
        gap: 8px;
    }

    .nav-brand {
        gap: 8px;
    }

    .brand-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
        border-radius: 10px;
    }

    .brand-title {
        font-size: 0.88rem;
        max-width: none;
    }

    .brand-subtitle {
        font-size: 0.7rem;
    }

    .nav-controls {
        gap: 6px;
    }

    .btn-icon-toggle {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
        border-radius: 8px;
    }

    .mobile-menu-btn {
        width: 34px;
        height: 34px;
        font-size: 0.95rem;
        border-radius: 8px;
    }

    /* Section Global Spacing */
    .hero-section {
        padding: 24px 0 16px;
    }

    .bio-section, 
    .services-section, 
    .diagnostics-section, 
    .articles-section, 
    .contact-section {
        padding: 36px 0;
    }

    .section-header {
        margin-bottom: 24px;
    }

    .section-tag {
        font-size: 0.76rem;
        padding: 4px 12px;
        margin-bottom: 10px;
    }

    .section-title {
        font-size: 1.35rem;
        line-height: 1.4;
        margin-bottom: 8px;
    }

    .section-description {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    /* Hero Section Mobile */
    .hero-badge {
        padding: 6px 14px;
        font-size: 0.76rem;
        margin-bottom: 14px;
        gap: 6px;
    }

    .hero-title {
        font-size: 1.45rem;
        line-height: 1.4;
        margin-bottom: 12px;
        letter-spacing: -0.3px;
    }

    .hero-subtitle {
        font-size: 0.88rem;
        line-height: 1.7;
        margin-bottom: 20px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        margin-bottom: 24px;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 12px 18px;
        font-size: 0.88rem;
        border-radius: 12px;
    }

    .hero-btn-appoint {
        padding: 12px 18px;
        font-size: 0.88rem;
    }

    .hero-quick-info {
        flex-direction: column;
        gap: 12px;
        padding-top: 18px;
    }

    .quick-info-item {
        gap: 10px;
    }

    .info-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
        border-radius: 10px;
    }

    .info-text strong {
        font-size: 0.88rem;
    }

    .info-text span {
        font-size: 0.8rem;
    }

    .portrait-frame,
    .medical-slider-card {
        max-width: 340px;
        border-radius: 22px;
        margin: 0 auto;
        padding: 10px;
    }

    .portrait-img {
        height: 320px;
    }

    .slider-viewport {
        height: 370px;
        border-radius: 18px;
    }

    .slide-content-overlay {
        padding: 14px 14px 24px 14px;
    }

    .slide-title {
        font-size: 0.98rem;
    }

    .experience-badge {
        right: 10px;
        bottom: -15px;
        padding: 8px 14px;
        font-size: 0.74rem;
        gap: 10px;
    }

    .slider-trust-badge {
        right: 0;
        left: 0;
        bottom: -20px;
        margin: 0 auto;
        width: calc(100% - 20px);
        max-width: 310px;
        padding: 10px 14px;
        gap: 10px;
    }

    [dir="ltr"] .experience-badge {
        right: auto;
        left: 10px;
    }

    [dir="ltr"] .slider-trust-badge {
        right: 0;
        left: 0;
    }

    /* Grids */
    .services-grid, 
    .diag-grid, 
    .articles-grid, 
    .traits-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    /* Cards */
    .bio-card, 
    .contact-info-card, 
    .service-card, 
    .diag-card, 
    .trait-card {
        padding: 18px 15px;
        border-radius: 16px;
    }

    .bio-card h3 {
        font-size: 1.1rem !important;
        margin-bottom: 12px !important;
    }

    .bio-card p {
        font-size: 0.88rem !important;
        line-height: 1.75 !important;
    }

    .edu-item {
        gap: 10px;
        margin-bottom: 12px;
    }

    .edu-icon {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
        border-radius: 10px;
    }

    .edu-info h4 {
        font-size: 0.88rem;
        margin-bottom: 2px;
    }

    .edu-info p {
        font-size: 0.8rem;
    }

    .trait-card .trait-icon {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .trait-card h3 {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }

    .trait-card p {
        font-size: 0.82rem;
        line-height: 1.6;
    }

    .service-card .service-icon-box {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .service-card .service-title {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .service-card .service-desc {
        font-size: 0.84rem;
        line-height: 1.65;
        margin-bottom: 12px;
    }

    .service-card .service-tag {
        font-size: 0.74rem;
        padding: 4px 10px;
    }

    .diag-card-header {
        gap: 10px;
        margin-bottom: 10px;
    }

    .diag-card .diag-card-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
        border-radius: 10px;
    }

    .diag-card h3 {
        font-size: 0.98rem;
    }

    .diag-card p {
        font-size: 0.84rem !important;
        line-height: 1.65 !important;
    }

    /* Article Cards & Filter */
    .article-filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 24px;
    }

    .search-box {
        max-width: 100%;
    }

    .search-box .search-input {
        padding: 10px 40px 10px 14px;
        font-size: 0.85rem;
    }

    [dir="ltr"] .search-box .search-input {
        padding: 10px 14px 10px 40px;
    }

    .diag-tabs-wrapper {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 6px;
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 0;
    }

    .diag-tab-btn {
        padding: 6px 12px;
        font-size: 0.78rem;
        white-space: nowrap;
    }

    .article-card .article-thumb {
        height: 180px;
    }

    .article-card .article-content {
        padding: 15px;
    }

    .article-card-title {
        font-size: 0.98rem;
        line-height: 1.45;
        margin-bottom: 6px;
    }

    .article-card-summary {
        font-size: 0.82rem;
        line-height: 1.6;
        margin-bottom: 12px;
    }

    /* Contact Details & Map */
    .contact-item {
        gap: 12px;
        margin-bottom: 16px;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        border-radius: 10px;
    }

    .contact-item h4 {
        font-size: 0.88rem !important;
    }

    .contact-item p {
        font-size: 0.84rem !important;
    }

    .appointment-warning-box {
        padding: 14px;
        margin-top: 18px;
    }

    .appointment-warning-box h4 {
        font-size: 0.86rem;
    }

    .appointment-warning-box p {
        font-size: 0.8rem;
        line-height: 1.6;
    }

    .map-container {
        height: 260px;
        border-radius: 16px;
    }

    /* Article Detail Page */
    .article-detail-header {
        padding: 24px 0 16px;
    }

    .article-detail-title {
        font-size: 1.35rem;
        line-height: 1.45;
    }

    .article-meta-info {
        gap: 12px;
        font-size: 0.78rem;
    }

    .article-main-body {
        padding: 30px 0;
    }

    .author-bio-box {
        flex-direction: column;
        text-align: center;
        padding: 18px 14px;
        gap: 14px;
        border-radius: 16px;
    }

    .author-avatar {
        width: 64px;
        height: 64px;
    }

    .author-bio-box h4 {
        font-size: 1rem;
    }

    .author-bio-box p {
        font-size: 0.82rem;
    }

    /* Floating Action Bar Responsiveness */
    .floating-action-bar {
        width: calc(100% - 24px);
        max-width: 400px;
        bottom: 10px;
        padding: 6px 10px;
        gap: 8px;
        border-radius: 30px;
    }

    .floating-action-bar .btn {
        flex: 1;
        min-width: 0;
        justify-content: center;
        padding: 9px 8px !important;
        font-size: 0.78rem !important;
        white-space: nowrap;
        gap: 6px;
    }

    .floating-action-bar .btn span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .floating-action-bar .btn i {
        font-size: 0.85rem;
        flex-shrink: 0;
    }

    /* Maps and Interactive Apps */
    .interactive-app-container {
        padding: 16px 14px !important;
        margin: 20px 0 !important;
        border-radius: 14px !important;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 16px;
    }

    .brand-title {
        font-size: 0.84rem;
        max-width: none;
    }

    .brand-subtitle {
        display: none;
    }

    .brand-icon {
        width: 34px;
        height: 34px;
        font-size: 15px;
        border-radius: 9px;
    }

    .btn-icon-toggle,
    .mobile-menu-btn {
        width: 33px;
        height: 33px;
        font-size: 0.9rem;
    }

    .hero-title {
        font-size: 1.35rem;
        line-height: 1.45;
    }

    .hero-badge {
        font-size: 0.72rem;
        padding: 5px 12px;
    }

    .hero-subtitle {
        font-size: 0.84rem;
        line-height: 1.7;
    }

    .portrait-frame,
    .medical-slider-card {
        max-width: 300px;
    }
    .slider-viewport {
        height: 330px;
    }
    .slide-title {
        font-size: 0.88rem;
    }
    .meta-pill {
        font-size: 0.66rem;
        padding: 2px 6px;
    }
    .slider-trust-badge {
        max-width: 275px;
        padding: 8px 12px;
        bottom: -18px;
    }
    .slider-trust-badge .exp-number {
        font-size: 1.4rem;
    }

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

    .section-description {
        font-size: 0.8rem;
    }

    .article-detail-title {
        font-size: 1.25rem;
        line-height: 1.45;
    }

    .article-meta-info {
        gap: 10px;
        font-size: 0.74rem;
    }

    .floating-action-bar {
        width: calc(100% - 16px);
        bottom: 8px;
        padding: 6px 8px;
        gap: 6px;
    }

    .floating-action-bar .btn {
        padding: 8px 6px !important;
        font-size: 0.74rem !important;
        gap: 5px;
    }
}

@media (max-width: 360px) {
    html {
        font-size: 13.5px;
    }

    .container {
        padding: 0 12px;
    }

    .brand-title {
        font-size: 0.78rem;
    }

    .brand-icon {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .btn-icon-toggle,
    .mobile-menu-btn {
        width: 30px;
        height: 30px;
        font-size: 0.82rem;
    }

    .nav-controls {
        gap: 4px;
    }

    .hero-title {
        font-size: 1.22rem;
    }

    .floating-action-bar .btn {
        font-size: 0.7rem !important;
        padding: 7px 4px !important;
    }
}

